@epilot/volt-ui 1.0.0-alpha.13 → 1.0.0-alpha.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/README.md +4 -4
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/field/field.d.ts +3 -2
- package/dist/components/label/label.d.ts +7 -1
- package/dist/components/separator/seperator.d.ts +2 -1
- package/dist/components/switch/switch.d.ts +10 -2
- package/dist/components/tooltip/tooltip.d.ts +5 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.es.js +1092 -1024
- package/dist/reset.css +1 -0
- package/dist/style.css +1 -1
- package/package.json +14 -5
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),ie=require("react"),en=require("react-dom");function tn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=tn(ie),nn=tn(en);function on(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=on(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function gt(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=on(e))&&(o&&(o+=" "),o+=t);return o}const ko=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},Oo=(e,t)=>({classGroupId:e,validator:t}),rn=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),He="-",Nt=[],To="arbitrary..",No=e=>{const t=jo(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return $o(s);const l=s.split(He),a=l[0]===""&&l.length>1?1:0;return sn(l,a,t)},getConflictingClassGroupIds:(s,l)=>{if(l){const a=o[s],u=n[s];return a?u?ko(u,a):a:u||Nt}return n[s]||Nt}}},sn=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],i=n.nextPart.get(r);if(i){const u=sn(e,t+1,i);if(u)return u}const s=n.validators;if(s===null)return;const l=t===0?e.join(He):e.slice(t).join(He),a=s.length;for(let u=0;u<a;u++){const d=s[u];if(d.validator(l))return d.classGroupId}},$o=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?To+o:void 0})(),jo=e=>{const{theme:t,classGroups:n}=e;return _o(n,t)},_o=(e,t)=>{const n=rn();for(const o in e){const r=e[o];ht(r,n,o,t)}return n},ht=(e,t,n,o)=>{const r=e.length;for(let i=0;i<r;i++){const s=e[i];Lo(s,t,n,o)}},Lo=(e,t,n,o)=>{if(typeof e=="string"){Do(e,t,n);return}if(typeof e=="function"){Io(e,t,n,o);return}Mo(e,t,n,o)},Do=(e,t,n)=>{const o=e===""?t:ln(t,e);o.classGroupId=n},Io=(e,t,n,o)=>{if(Fo(e)){ht(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Oo(n,e))},Mo=(e,t,n,o)=>{const r=Object.entries(e),i=r.length;for(let s=0;s<i;s++){const[l,a]=r[s];ht(a,ln(t,l),n,o)}},ln=(e,t)=>{let n=e;const o=t.split(He),r=o.length;for(let i=0;i<r;i++){const s=o[i];let l=n.nextPart.get(s);l||(l=rn(),n.nextPart.set(s,l)),n=l}return n},Fo=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,zo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(i,s)=>{n[i]=s,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=o[i])!==void 0)return r(i,s),s},set(i,s){i in n?n[i]=s:r(i,s)}}},at="!",$t=":",Wo=[],jt=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),Vo=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const i=[];let s=0,l=0,a=0,u;const d=r.length;for(let h=0;h<d;h++){const b=r[h];if(s===0&&l===0){if(b===$t){i.push(r.slice(a,h)),a=h+1;continue}if(b==="/"){u=h;continue}}b==="["?s++:b==="]"?s--:b==="("?l++:b===")"&&l--}const f=i.length===0?r:r.slice(a);let m=f,p=!1;f.endsWith(at)?(m=f.slice(0,-1),p=!0):f.startsWith(at)&&(m=f.slice(1),p=!0);const g=u&&u>a?u-a:void 0;return jt(i,p,m,g)};if(t){const r=t+$t,i=o;o=s=>s.startsWith(r)?i(s.slice(r.length)):jt(Wo,!1,s,void 0,!0)}if(n){const r=o;o=i=>n({className:i,parseClassName:r})}return o},Bo=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let i=0;i<n.length;i++){const s=n[i],l=s[0]==="[",a=t.has(s);l||a?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},Ho=e=>({cache:zo(e.cacheSize),parseClassName:Vo(e),sortModifiers:Bo(e),...No(e)}),Go=/\s+/,Uo=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:i}=t,s=[],l=e.trim().split(Go);let a="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:f,modifiers:m,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:h}=n(d);if(f){a=d+(a.length>0?" "+a:a);continue}let b=!!h,x=o(b?g.substring(0,h):g);if(!x){if(!b){a=d+(a.length>0?" "+a:a);continue}if(x=o(g),!x){a=d+(a.length>0?" "+a:a);continue}b=!1}const E=m.length===0?"":m.length===1?m[0]:i(m).join(":"),P=p?E+at:E,R=P+x;if(s.indexOf(R)>-1)continue;s.push(R);const A=r(x,b);for(let O=0;O<A.length;++O){const k=A[O];s.push(P+k)}a=d+(a.length>0?" "+a:a)}return a},Yo=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=an(n))&&(r&&(r+=" "),r+=o);return r},an=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=an(e[o]))&&(n&&(n+=" "),n+=t);return n},Xo=(e,...t)=>{let n,o,r,i;const s=a=>{const u=t.reduce((d,f)=>f(d),e());return n=Ho(u),o=n.cache.get,r=n.cache.set,i=l,l(a)},l=a=>{const u=o(a);if(u)return u;const d=Uo(a,n);return r(a,d),d};return i=s,(...a)=>i(Yo(...a))},qo=[],W=e=>{const t=n=>n[e]||qo;return t.isThemeGetter=!0,t},cn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,un=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zo=/^\d+\/\d+$/,Ko=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jo=/\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$/,Qo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,er=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xe=e=>Zo.test(e),T=e=>!!e&&!Number.isNaN(Number(e)),le=e=>!!e&&Number.isInteger(Number(e)),rt=e=>e.endsWith("%")&&T(e.slice(0,-1)),ne=e=>Ko.test(e),nr=()=>!0,or=e=>Jo.test(e)&&!Qo.test(e),dn=()=>!1,rr=e=>er.test(e),ir=e=>tr.test(e),sr=e=>!C(e)&&!S(e),lr=e=>Ee(e,mn,dn),C=e=>cn.test(e),he=e=>Ee(e,gn,or),it=e=>Ee(e,fr,T),_t=e=>Ee(e,fn,dn),ar=e=>Ee(e,pn,ir),Fe=e=>Ee(e,hn,rr),S=e=>un.test(e),Ne=e=>Pe(e,gn),cr=e=>Pe(e,pr),Lt=e=>Pe(e,fn),ur=e=>Pe(e,mn),dr=e=>Pe(e,pn),ze=e=>Pe(e,hn,!0),Ee=(e,t,n)=>{const o=cn.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},Pe=(e,t,n=!1)=>{const o=un.exec(e);return o?o[1]?t(o[1]):n:!1},fn=e=>e==="position"||e==="percentage",pn=e=>e==="image"||e==="url",mn=e=>e==="length"||e==="size"||e==="bg-size",gn=e=>e==="length",fr=e=>e==="number",pr=e=>e==="family-name",hn=e=>e==="shadow",mr=()=>{const e=W("color"),t=W("font"),n=W("text"),o=W("font-weight"),r=W("tracking"),i=W("leading"),s=W("breakpoint"),l=W("container"),a=W("spacing"),u=W("radius"),d=W("shadow"),f=W("inset-shadow"),m=W("text-shadow"),p=W("drop-shadow"),g=W("blur"),h=W("perspective"),b=W("aspect"),x=W("ease"),E=W("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...R(),S,C],O=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],w=()=>[S,C,a],$=()=>[xe,"full","auto",...w()],_=()=>[le,"none","subgrid",S,C],V=()=>["auto",{span:["full",le,S,C]},le,S,C],M=()=>[le,"auto",S,C],D=()=>["auto","min","max","fr",S,C],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...w()],j=()=>[xe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],y=()=>[e,S,C],z=()=>[...R(),Lt,_t,{position:[S,C]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],fe=()=>["auto","cover","contain",ur,lr,{size:[S,C]}],ke=()=>[rt,Ne,he],B=()=>["","none","full",u,S,C],G=()=>["",T,Ne,he],be=()=>["solid","dashed","dotted","double"],Ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[T,rt,Lt,_t],Oe=()=>["","none",g,S,C],pe=()=>["none",T,S,C],me=()=>["none",T,S,C],ye=()=>[T,S,C],ge=()=>[xe,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ne],breakpoint:[ne],color:[nr],container:[ne],"drop-shadow":[ne],ease:["in","out","in-out"],font:[sr],"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",T],text:[ne],"text-shadow":[ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xe,C,S,b]}],container:["container"],columns:[{columns:[T,C,S,l]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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:A()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[le,"auto",S,C]}],basis:[{basis:[xe,"full","auto",l,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[T,xe,"auto","initial","none",C]}],grow:[{grow:["",T,S,C]}],shrink:[{shrink:["",T,S,C]}],order:[{order:[le,"first","last","none",S,C]}],"grid-cols":[{"grid-cols":_()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":_()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[l,"screen",...j()]}],"min-w":[{"min-w":[l,"screen","none",...j()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,Ne,he]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,S,it]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rt,C]}],"font-family":[{font:[cr,C,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,S,C]}],"line-clamp":[{"line-clamp":[T,"none",S,it]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",S,C]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",S,C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[T,"from-font","auto",S,he]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[T,"auto",S,C]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S,C]}],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",S,C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:fe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},le,S,C],radial:["",S,C],conic:[le,S,C]},dr,ar]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:ke()}],"gradient-via-pos":[{via:ke()}],"gradient-to-pos":[{to:ke()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[T,S,C]}],"outline-w":[{outline:["",T,Ne,he]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",d,ze,Fe]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",f,ze,Fe]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[T,he]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",m,ze,Fe]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[T,S,C]}],"mix-blend":[{"mix-blend":[...Ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ie()}],"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":[T]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[S,C]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[T]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:fe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",S,C]}],filter:[{filter:["","none",S,C]}],blur:[{blur:Oe()}],brightness:[{brightness:[T,S,C]}],contrast:[{contrast:[T,S,C]}],"drop-shadow":[{"drop-shadow":["","none",p,ze,Fe]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",T,S,C]}],"hue-rotate":[{"hue-rotate":[T,S,C]}],invert:[{invert:["",T,S,C]}],saturate:[{saturate:[T,S,C]}],sepia:[{sepia:["",T,S,C]}],"backdrop-filter":[{"backdrop-filter":["","none",S,C]}],"backdrop-blur":[{"backdrop-blur":Oe()}],"backdrop-brightness":[{"backdrop-brightness":[T,S,C]}],"backdrop-contrast":[{"backdrop-contrast":[T,S,C]}],"backdrop-grayscale":[{"backdrop-grayscale":["",T,S,C]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[T,S,C]}],"backdrop-invert":[{"backdrop-invert":["",T,S,C]}],"backdrop-opacity":[{"backdrop-opacity":[T,S,C]}],"backdrop-saturate":[{"backdrop-saturate":[T,S,C]}],"backdrop-sepia":[{"backdrop-sepia":["",T,S,C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",S,C]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[T,"initial",S,C]}],ease:[{ease:["linear","initial",x,S,C]}],delay:[{delay:[T,S,C]}],animate:[{animate:["none",E,S,C]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,S,C]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[S,C,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"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",S,C]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S,C]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[T,Ne,he,it]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gr=Xo(mr),H=(...e)=>gr(gt(e));function Dt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function hr(...e){return t=>{let n=!1;const o=e.map(r=>{const i=Dt(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():Dt(e[r],null)}}}}var vr=Symbol.for("react.lazy"),Ge=c[" use ".trim().toString()];function br(e){return typeof e=="object"&&e!==null&&"then"in e}function vn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===vr&&"_payload"in e&&br(e._payload)}function bn(e){const t=xr(e),n=c.forwardRef((o,r)=>{let{children:i,...s}=o;vn(i)&&typeof Ge=="function"&&(i=Ge(i._payload));const l=c.Children.toArray(i),a=l.find(Cr);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}var yr=bn("Slot");function xr(e){const t=c.forwardRef((n,o)=>{let{children:r,...i}=n;if(vn(r)&&typeof Ge=="function"&&(r=Ge(r._payload)),c.isValidElement(r)){const s=Er(r),l=Sr(i,r.props);return r.type!==c.Fragment&&(l.ref=o?hr(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wr=Symbol("radix.slottable");function Cr(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wr}function Sr(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Er(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const It=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Mt=gt,yn=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Mt(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,s=Object.keys(r).map(u=>{const d=n==null?void 0:n[u],f=i==null?void 0:i[u];if(d===null)return null;const m=It(d)||It(f);return r[u][m]}),l=n&&Object.entries(n).reduce((u,d)=>{let[f,m]=d;return m===void 0||(u[f]=m),u},{}),a=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,d)=>{let{class:f,className:m,...p}=d;return Object.entries(p).every(g=>{let[h,b]=g;return Array.isArray(b)?b.includes({...i,...l}[h]):{...i,...l}[h]===b})?[...u,f,m]:u},[]);return Mt(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)},Pr=yn("volt-ui-inline-flex volt-ui-items-center volt-ui-justify-center volt-ui-gap-2 volt-ui-font-normal volt-ui-whitespace-nowrap volt-ui-transition-all volt-ui-cursor-pointer volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-disabled:pointer-events-none volt-ui-disabled:opacity-50 volt-ui-rounded-full volt-ui-shrink-0 volt-ui-[&_svg]:shrink-0 volt-ui-[&_svg]:pointer-events-none",{variants:{variant:{primary:"volt-ui-bg-accent-solid volt-ui-text-accent-contrast volt-ui-hover:bg-accent-solid-hover volt-ui-active:bg-accent-solid-hover volt-ui-focus-visible:outline-accent-a8",secondary:"volt-ui-bg-accent-soft volt-ui-text-accent-light volt-ui-hover:bg-accent-soft-hover volt-ui-focus-visible:outline-accent-a8",tertiary:"volt-ui-bg-transparent volt-ui-text-accent-light volt-ui-hover:bg-accent-soft volt-ui-focus-visible:outline-accent-a8",destructive:"volt-ui-bg-error-a9 volt-ui-text-error-contrast volt-ui-hover:bg-error-solid-hover volt-ui-active:bg-error-solid-hover volt-ui-focus-visible:outline-error-a8"},size:{sm:"volt-ui-px-3 volt-ui-py-1 volt-ui-min-h-6 volt-ui-text-sm volt-ui-has-[>svg]:px-2.5",base:"volt-ui-px-4 volt-ui-py-1 volt-ui-min-h-8 volt-ui-text-base volt-ui-has-[>svg]:px-3",large:"volt-ui-px-6 volt-ui-py-2.5 volt-ui-min-h-10 volt-ui-text-lg volt-ui-has-[>svg]:px-4"}},defaultVariants:{variant:"primary",size:"base"}}),xn=ie.forwardRef(({variant:e,size:t,asChild:n=!1,className:o,...r},i)=>{const s=n?yr:"button";return v.jsx(s,{"data-slot":"button",className:H(Pr({variant:e,size:t,className:o})),ref:i,...r})});xn.displayName="Button";var Rr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wn=Rr.reduce((e,t)=>{const n=bn(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),Ar="Label",Cn=c.forwardRef((e,t)=>v.jsx(wn.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Cn.displayName=Ar;var kr=Cn;const Sn=({className:e,...t})=>v.jsx(kr,{"data-slot":"label",className:H("volt-ui-flex volt-ui-items-center volt-ui-gap-2 volt-ui-text-sm volt-ui-text-gray-default volt-ui-leading-none volt-ui-font-medium volt-ui-group-data-[disabled=true]:pointer-events-none volt-ui-group-data-[disabled=true]:opacity-50 volt-ui-peer-disabled:cursor-not-allowed volt-ui-peer-disabled:opacity-50",e),...t}),En=ie.createContext(null),vt=()=>{const e=ie.useContext(En);if(!e)throw new Error("volt-ui-FieldInput volt-ui-must volt-ui-be volt-ui-used volt-ui-within volt-ui-a volt-ui-Field volt-ui-component");return e},Or=({className:e,...t})=>v.jsx("div",{"data-slot":"field-group",className:H("volt-ui-group/field-group volt-ui-@container/field-group volt-ui-flex volt-ui-w-full volt-ui-flex-col volt-ui-gap-2 volt-ui-*:data-[slot=field-group]:gap-2",e),...t}),Tr=({className:e,children:t,onClick:n,...o})=>{const r=c.useRef(null);return v.jsx(En.Provider,{value:{inputRef:r},children:v.jsx("div",{role:"group","data-slot":"field",className:H("volt-ui-flex-col volt-ui-*:w-full volt-ui-[&>.sr-only]:w-auto volt-ui-group/field volt-ui-flex volt-ui-w-full volt-ui-py-2 volt-ui-px-3 volt-ui-gap-1 volt-ui-rounded-lg volt-ui-transition-all volt-ui-bg-accent-a3 volt-ui-data-[invalid=true]:bg-error-soft volt-ui-focus-within:outline-2 volt-ui-focus-within:outline-offset-2 volt-ui-[&:not([data-invalid=true]):focus-within]:outline-accent-a8 volt-ui-data-[invalid=true]:focus-within:outline-error-a8",e),onClick:i=>{i.target===i.currentTarget&&r.current&&!r.current.disabled&&r.current.focus(),n==null||n(i)},...o,children:t})})},Nr=({className:e,...t})=>v.jsx("div",{"data-slot":"field-content",className:H("volt-ui-group/field-content volt-ui-flex volt-ui-flex-1 volt-ui-flex-col volt-ui-gap-2 volt-ui-leading-snug",e),...t}),$r=({className:e,...t})=>v.jsx(Sn,{"data-slot":"field-label",className:H("volt-ui-group/field-label volt-ui-text-xs volt-ui-peer/field-label volt-ui-flex volt-ui-w-fit volt-ui-gap-2 volt-ui-leading-snug volt-ui-group-data-[disabled=true]/field:opacity-50","volt-ui-has-[>[data-slot=field]]:w-full volt-ui-has-[>[data-slot=field]]:flex-col volt-ui-has-[>[data-slot=field]]:rounded-md volt-ui-has-[>[data-slot=field]]:border volt-ui-*:data-[slot=field]:p-4","volt-ui-has-data-[state=checked]:bg-accent-a3/5 volt-ui-has-data-[state=checked]:border-accent-a3 volt-ui-dark:has-data-[state=checked]:bg-accent-a3/10",e),...t}),jr=({className:e,...t})=>v.jsx("p",{"data-slot":"field-description",className:H("volt-ui-text-gray-light volt-ui-text-xs volt-ui-leading-normal volt-ui-font-normal","volt-ui-last:mt-0 volt-ui-nth-last-2:-mt-1 volt-ui-[[data-variant=legend]+&]:-mt-1.5","volt-ui-[&>a:hover]:text-gray-default volt-ui-[&>a]:underline volt-ui-[&>a]:underline-offset-4",e),...t}),_r=({className:e,children:t,errors:n,...o})=>{const r=ie.useMemo(()=>{var s;if(t)return t;if(!(n!=null&&n.length))return null;const i=[...new Map(n.map(l=>[l==null?void 0:l.message,l])).values()];return(i==null?void 0:i.length)==1?(s=i[0])==null?void 0:s.message:v.jsx("ul",{className:"volt-ui-ml-4 volt-ui-flex volt-ui-list-disc volt-ui-flex-col volt-ui-gap-1",children:i.map((l,a)=>(l==null?void 0:l.message)&&v.jsx("li",{children:l.message},a))})},[t,n]);return r?v.jsx("div",{role:"alert","data-slot":"field-error",className:H("volt-ui-text-error-light volt-ui-text-xs volt-ui-font-normal",e),...o,children:r}):null},Pn=ie.forwardRef(({className:e,...t},n)=>{const{inputRef:o}=vt();return v.jsx("input",{ref:r=>{o.current=r,typeof n=="function"?n(r):n&&(n.current=r)},"data-slot":"field-input",className:H("volt-ui-group/field-input volt-ui-w-full volt-ui-h-6 volt-ui-outline-none volt-ui-text-sm volt-ui-text-gray-default volt-ui-focus-visible:outline-none",e),...t})});Pn.displayName="FieldInput";const Rn=ie.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-slot":"field-input-group",className:H("volt-ui-flex volt-ui-items-center volt-ui-gap-1",e),...t}));Rn.displayName="FieldInputGroup";const Lr=yn("volt-ui-text-gray-light volt-ui-flex volt-ui-h-auto volt-ui-cursor-text volt-ui-whitespace-nowrap volt-ui-items-center volt-ui-justify-center volt-ui-gap-2 volt-ui-text-sm volt-ui-font-normal volt-ui-select-none volt-ui-group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{start:"order-first",end:"order-last"}},defaultVariants:{align:"start"}}),Dr=({className:e,align:t="start",...n})=>v.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:H(Lr({align:t}),e),onClick:o=>{var r,i;o.target.closest("button")||(i=(r=o.currentTarget.parentElement)==null?void 0:r.querySelector("input"))==null||i.focus()},...n}),An=ie.forwardRef(({className:e,resize:t="none",...n},o)=>{const{inputRef:r}=vt();return v.jsx("textarea",{ref:i=>{r.current=i,typeof o=="function"?o(i):o&&(o.current=i)},"data-slot":"field-textarea","data-resize":t,className:H("volt-ui-group/field-textarea volt-ui-w-full volt-ui-outline-none volt-ui-text-sm volt-ui-text-gray-default volt-ui-focus-visible:outline-none volt-ui-data-[resize=none]:resize-none volt-ui-data-[resize=vertical]:resize-vertical volt-ui-data-[resize=horizontal]:resize-horizontal",e),...n})});An.displayName="FieldTextarea";function K(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Ft(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function de(...e){return t=>{let n=!1;const o=e.map(r=>{const i=Ft(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():Ft(e[r],null)}}}}function se(...e){return c.useCallback(de(...e),e)}function bt(e,t=[]){let n=[];function o(i,s){const l=c.createContext(s),a=n.length;n=[...n,s];const u=f=>{var x;const{scope:m,children:p,...g}=f,h=((x=m==null?void 0:m[e])==null?void 0:x[a])||l,b=c.useMemo(()=>g,Object.values(g));return v.jsx(h.Provider,{value:b,children:p})};u.displayName=i+"Provider";function d(f,m){var h;const p=((h=m==null?void 0:m[e])==null?void 0:h[a])||l,g=c.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const r=()=>{const i=n.map(s=>c.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return r.scopeName=e,[o,Ir(r,...t)]}function Ir(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Mr(e){const t=Fr(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(Wr);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Fr(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=Br(r),l=Vr(i,r.props);return r.type!==c.Fragment&&(l.ref=o?de(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zr=Symbol("radix.slottable");function Wr(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zr}function Vr(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Br(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Hr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],kn=Hr.reduce((e,t)=>{const n=Mr(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Gr(e,t){e&&nn.flushSync(()=>e.dispatchEvent(t))}function Ze(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Ur(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Yr="DismissableLayer",ct="dismissableLayer.update",Xr="dismissableLayer.pointerDownOutside",qr="dismissableLayer.focusOutside",zt,On=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tn=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=c.useContext(On),[d,f]=c.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=c.useState({}),g=se(t,k=>f(k)),h=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=h.indexOf(b),E=d?h.indexOf(d):-1,P=u.layersWithOutsidePointerEventsDisabled.size>0,R=E>=x,A=Jr(k=>{const w=k.target,$=[...u.branches].some(_=>_.contains(w));!R||$||(r==null||r(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),O=Qr(k=>{const w=k.target;[...u.branches].some(_=>_.contains(w))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return Ur(k=>{E===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),c.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zt=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Wt(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=zt)}},[d,m,n,u]),c.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Wt())},[d,u]),c.useEffect(()=>{const k=()=>p({});return document.addEventListener(ct,k),()=>document.removeEventListener(ct,k)},[]),v.jsx(kn.div,{...a,ref:g,style:{pointerEvents:P?R?"auto":"none":void 0,...e.style},onFocusCapture:K(e.onFocusCapture,O.onFocusCapture),onBlurCapture:K(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:K(e.onPointerDownCapture,A.onPointerDownCapture)})});Tn.displayName=Yr;var Zr="DismissableLayerBranch",Kr=c.forwardRef((e,t)=>{const n=c.useContext(On),o=c.useRef(null),r=se(t,o);return c.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(kn.div,{...e,ref:r})});Kr.displayName=Zr;function Jr(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const i=l=>{if(l.target&&!o.current){let a=function(){Nn(Xr,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=a,t.addEventListener("click",r.current,{once:!0})):a()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Qr(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),o=c.useRef(!1);return c.useEffect(()=>{const r=i=>{i.target&&!o.current&&Nn(qr,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Wt(){const e=new CustomEvent(ct);document.dispatchEvent(e)}function Nn(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Gr(r,i):r.dispatchEvent(i)}var ae=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},ei=c[" useId ".trim().toString()]||(()=>{}),ti=0;function ni(e){const[t,n]=c.useState(ei());return ae(()=>{n(o=>o??String(ti++))},[e]),t?`radix-${t}`:""}const oi=["top","right","bottom","left"],ce=Math.min,Y=Math.max,Ue=Math.round,We=Math.floor,Q=e=>({x:e,y:e}),ri={left:"right",right:"left",bottom:"top",top:"bottom"},ii={start:"end",end:"start"};function ut(e,t,n){return Y(e,ce(t,n))}function oe(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function Re(e){return e.split("-")[1]}function yt(e){return e==="x"?"y":"x"}function xt(e){return e==="y"?"height":"width"}const si=new Set(["top","bottom"]);function J(e){return si.has(re(e))?"y":"x"}function wt(e){return yt(J(e))}function li(e,t,n){n===void 0&&(n=!1);const o=Re(e),r=wt(e),i=xt(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ye(s)),[s,Ye(s)]}function ai(e){const t=Ye(e);return[dt(e),t,dt(t)]}function dt(e){return e.replace(/start|end/g,t=>ii[t])}const Vt=["left","right"],Bt=["right","left"],ci=["top","bottom"],ui=["bottom","top"];function di(e,t,n){switch(e){case"top":case"bottom":return n?t?Bt:Vt:t?Vt:Bt;case"left":case"right":return t?ci:ui;default:return[]}}function fi(e,t,n,o){const r=Re(e);let i=di(re(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(dt)))),i}function Ye(e){return e.replace(/left|right|bottom|top/g,t=>ri[t])}function pi(e){return{top:0,right:0,bottom:0,left:0,...e}}function $n(e){return typeof e!="number"?pi(e):{top:e,right:e,bottom:e,left:e}}function Xe(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Ht(e,t,n){let{reference:o,floating:r}=e;const i=J(t),s=wt(t),l=xt(s),a=re(t),u=i==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,m=o[l]/2-r[l]/2;let p;switch(a){case"top":p={x:d,y:o.y-r.height};break;case"bottom":p={x:d,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:f};break;case"left":p={x:o.x-r.width,y:f};break;default:p={x:o.x,y:o.y}}switch(Re(t)){case"start":p[s]-=m*(n&&u?-1:1);break;case"end":p[s]+=m*(n&&u?-1:1);break}return p}const mi=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=Ht(u,o,a),m=o,p={},g=0;for(let h=0;h<l.length;h++){const{name:b,fn:x}=l[h],{x:E,y:P,data:R,reset:A}=await x({x:d,y:f,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});d=E??d,f=P??f,p={...p,[b]:{...p[b],...R}},A&&g<=50&&(g++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(u=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):A.rects),{x:d,y:f}=Ht(u,m,a)),h=-1)}return{x:d,y:f,placement:m,strategy:r,middlewareData:p}};async function $e(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:p=0}=oe(t,e),g=$n(p),b=l[m?f==="floating"?"reference":"floating":f],x=Xe(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:a})),E=f==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),R=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},A=Xe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:P,strategy:a}):E);return{top:(x.top-A.top+g.top)/R.y,bottom:(A.bottom-x.bottom+g.bottom)/R.y,left:(x.left-A.left+g.left)/R.x,right:(A.right-x.right+g.right)/R.x}}const gi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=oe(e,t)||{};if(u==null)return{};const f=$n(d),m={x:n,y:o},p=wt(r),g=xt(p),h=await s.getDimensions(u),b=p==="y",x=b?"top":"left",E=b?"bottom":"right",P=b?"clientHeight":"clientWidth",R=i.reference[g]+i.reference[p]-m[p]-i.floating[g],A=m[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=O?O[P]:0;(!k||!await(s.isElement==null?void 0:s.isElement(O)))&&(k=l.floating[P]||i.floating[g]);const w=R/2-A/2,$=k/2-h[g]/2-1,_=ce(f[x],$),V=ce(f[E],$),M=_,D=k-h[g]-V,L=k/2-h[g]/2+w,F=ut(M,L,D),N=!a.arrow&&Re(r)!=null&&L!==F&&i.reference[g]/2-(L<M?_:V)-h[g]/2<0,j=N?L<M?L-M:L-D:0;return{[p]:m[p]+j,data:{[p]:F,centerOffset:L-F-j,...N&&{alignmentOffset:j}},reset:N}}}),hi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...b}=oe(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=re(r),E=J(l),P=re(l)===l,R=await(a.isRTL==null?void 0:a.isRTL(u.floating)),A=m||(P||!h?[Ye(l)]:ai(l)),O=g!=="none";!m&&O&&A.push(...fi(l,h,g,R));const k=[l,...A],w=await $e(t,b),$=[];let _=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&$.push(w[x]),f){const L=li(r,s,R);$.push(w[L[0]],w[L[1]])}if(_=[..._,{placement:r,overflows:$}],!$.every(L=>L<=0)){var V,M;const L=(((V=i.flip)==null?void 0:V.index)||0)+1,F=k[L];if(F&&(!(f==="alignment"?E!==J(F):!1)||_.every(y=>J(y.placement)===E?y.overflows[0]>0:!0)))return{data:{index:L,overflows:_},reset:{placement:F}};let N=(M=_.filter(j=>j.overflows[0]<=0).sort((j,y)=>j.overflows[1]-y.overflows[1])[0])==null?void 0:M.placement;if(!N)switch(p){case"bestFit":{var D;const j=(D=_.filter(y=>{if(O){const z=J(y.placement);return z===E||z==="y"}return!0}).map(y=>[y.placement,y.overflows.filter(z=>z>0).reduce((z,U)=>z+U,0)]).sort((y,z)=>y[1]-z[1])[0])==null?void 0:D[0];j&&(N=j);break}case"initialPlacement":N=l;break}if(r!==N)return{reset:{placement:N}}}return{}}}};function Gt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ut(e){return oi.some(t=>e[t]>=0)}const vi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=oe(e,t);switch(o){case"referenceHidden":{const i=await $e(t,{...r,elementContext:"reference"}),s=Gt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ut(s)}}}case"escaped":{const i=await $e(t,{...r,altBoundary:!0}),s=Gt(i,n.floating);return{data:{escapedOffsets:s,escaped:Ut(s)}}}default:return{}}}}},jn=new Set(["left","top"]);async function bi(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=re(n),l=Re(n),a=J(n)==="y",u=jn.has(s)?-1:1,d=i&&a?-1:1,f=oe(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof g=="number"&&(p=l==="end"?g*-1:g),a?{x:p*d,y:m*u}:{x:m*u,y:p*d}}const yi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:l}=t,a=await bi(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:s}}}}},xi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x,y:E}=b;return{x,y:E}}},...a}=oe(e,t),u={x:n,y:o},d=await $e(t,a),f=J(re(r)),m=yt(f);let p=u[m],g=u[f];if(i){const b=m==="y"?"top":"left",x=m==="y"?"bottom":"right",E=p+d[b],P=p-d[x];p=ut(E,p,P)}if(s){const b=f==="y"?"top":"left",x=f==="y"?"bottom":"right",E=g+d[b],P=g-d[x];g=ut(E,g,P)}const h=l.fn({...t,[m]:p,[f]:g});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:i,[f]:s}}}}}},wi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=oe(e,t),d={x:n,y:o},f=J(r),m=yt(f);let p=d[m],g=d[f];const h=oe(l,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const P=m==="y"?"height":"width",R=i.reference[m]-i.floating[P]+b.mainAxis,A=i.reference[m]+i.reference[P]-b.mainAxis;p<R?p=R:p>A&&(p=A)}if(u){var x,E;const P=m==="y"?"width":"height",R=jn.has(re(r)),A=i.reference[f]-i.floating[P]+(R&&((x=s.offset)==null?void 0:x[f])||0)+(R?0:b.crossAxis),O=i.reference[f]+i.reference[P]+(R?0:((E=s.offset)==null?void 0:E[f])||0)-(R?b.crossAxis:0);g<A?g=A:g>O&&(g=O)}return{[m]:p,[f]:g}}}},Ci=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=oe(e,t),d=await $e(t,u),f=re(r),m=Re(r),p=J(r)==="y",{width:g,height:h}=i.floating;let b,x;f==="top"||f==="bottom"?(b=f,x=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(x=f,b=m==="end"?"top":"bottom");const E=h-d.top-d.bottom,P=g-d.left-d.right,R=ce(h-d[b],E),A=ce(g-d[x],P),O=!t.middlewareData.shift;let k=R,w=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=P),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(k=E),O&&!m){const _=Y(d.left,0),V=Y(d.right,0),M=Y(d.top,0),D=Y(d.bottom,0);p?w=g-2*(_!==0||V!==0?_+V:Y(d.left,d.right)):k=h-2*(M!==0||D!==0?M+D:Y(d.top,d.bottom))}await a({...t,availableWidth:w,availableHeight:k});const $=await s.getDimensions(l.floating);return g!==$.width||h!==$.height?{reset:{rects:!0}}:{}}}};function Ke(){return typeof window<"u"}function Ae(e){return _n(e)?(e.nodeName||"").toLowerCase():"#document"}function X(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function te(e){var t;return(t=(_n(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _n(e){return Ke()?e instanceof Node||e instanceof X(e).Node:!1}function q(e){return Ke()?e instanceof Element||e instanceof X(e).Element:!1}function ee(e){return Ke()?e instanceof HTMLElement||e instanceof X(e).HTMLElement:!1}function Yt(e){return!Ke()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof X(e).ShadowRoot}const Si=new Set(["inline","contents"]);function Le(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Si.has(r)}const Ei=new Set(["table","td","th"]);function Pi(e){return Ei.has(Ae(e))}const Ri=[":popover-open",":modal"];function Je(e){return Ri.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ai=["transform","translate","scale","rotate","perspective"],ki=["transform","translate","scale","rotate","perspective","filter"],Oi=["paint","layout","strict","content"];function Ct(e){const t=St(),n=q(e)?Z(e):e;return Ai.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ki.some(o=>(n.willChange||"").includes(o))||Oi.some(o=>(n.contain||"").includes(o))}function Ti(e){let t=ue(e);for(;ee(t)&&!Ce(t);){if(Ct(t))return t;if(Je(t))return null;t=ue(t)}return null}function St(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ni=new Set(["html","body","#document"]);function Ce(e){return Ni.has(Ae(e))}function Z(e){return X(e).getComputedStyle(e)}function Qe(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ue(e){if(Ae(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yt(e)&&e.host||te(e);return Yt(t)?t.host:t}function Ln(e){const t=ue(e);return Ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:ee(t)&&Le(t)?t:Ln(t)}function je(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Ln(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=X(r);if(i){const l=ft(s);return t.concat(s,s.visualViewport||[],Le(r)?r:[],l&&n?je(l):[])}return t.concat(r,je(r,[],n))}function ft(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dn(e){const t=Z(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ee(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,l=Ue(n)!==i||Ue(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function Et(e){return q(e)?e:e.contextElement}function we(e){const t=Et(e);if(!ee(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Dn(t);let s=(i?Ue(n.width):n.width)/o,l=(i?Ue(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const $i=Q(0);function In(e){const t=X(e);return!St()||!t.visualViewport?$i:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ji(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==X(e)?!1:t}function ve(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Et(e);let s=Q(1);t&&(o?q(o)&&(s=we(o)):s=we(e));const l=ji(i,n,o)?In(i):Q(0);let a=(r.left+l.x)/s.x,u=(r.top+l.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(i){const m=X(i),p=o&&q(o)?X(o):o;let g=m,h=ft(g);for(;h&&o&&p!==g;){const b=we(h),x=h.getBoundingClientRect(),E=Z(h),P=x.left+(h.clientLeft+parseFloat(E.paddingLeft))*b.x,R=x.top+(h.clientTop+parseFloat(E.paddingTop))*b.y;a*=b.x,u*=b.y,d*=b.x,f*=b.y,a+=P,u+=R,g=X(h),h=ft(g)}}return Xe({width:d,height:f,x:a,y:u})}function et(e,t){const n=Qe(e).scrollLeft;return t?t.left+n:ve(te(e)).left+n}function Mn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-et(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function _i(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=te(o),l=t?Je(t.floating):!1;if(o===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Q(1);const d=Q(0),f=ee(o);if((f||!f&&!i)&&((Ae(o)!=="body"||Le(s))&&(a=Qe(o)),ee(o))){const p=ve(o);u=we(o),d.x=p.x+o.clientLeft,d.y=p.y+o.clientTop}const m=s&&!f&&!i?Mn(s,a):Q(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-a.scrollTop*u.y+d.y+m.y}}function Li(e){return Array.from(e.getClientRects())}function Di(e){const t=te(e),n=Qe(e),o=e.ownerDocument.body,r=Y(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=Y(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+et(e);const l=-n.scrollTop;return Z(o).direction==="rtl"&&(s+=Y(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}const Xt=25;function Ii(e,t){const n=X(e),o=te(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,a=0;if(r){i=r.width,s=r.height;const d=St();(!d||d&&t==="fixed")&&(l=r.offsetLeft,a=r.offsetTop)}const u=et(o);if(u<=0){const d=o.ownerDocument,f=d.body,m=getComputedStyle(f),p=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(o.clientWidth-f.clientWidth-p);g<=Xt&&(i-=g)}else u<=Xt&&(i+=u);return{width:i,height:s,x:l,y:a}}const Mi=new Set(["absolute","fixed"]);function Fi(e,t){const n=ve(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=ee(e)?we(e):Q(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=r*i.x,u=o*i.y;return{width:s,height:l,x:a,y:u}}function qt(e,t,n){let o;if(t==="viewport")o=Ii(e,n);else if(t==="document")o=Di(te(e));else if(q(t))o=Fi(t,n);else{const r=In(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Xe(o)}function Fn(e,t){const n=ue(e);return n===t||!q(n)||Ce(n)?!1:Z(n).position==="fixed"||Fn(n,t)}function zi(e,t){const n=t.get(e);if(n)return n;let o=je(e,[],!1).filter(l=>q(l)&&Ae(l)!=="body"),r=null;const i=Z(e).position==="fixed";let s=i?ue(e):e;for(;q(s)&&!Ce(s);){const l=Z(s),a=Ct(s);!a&&l.position==="fixed"&&(r=null),(i?!a&&!r:!a&&l.position==="static"&&!!r&&Mi.has(r.position)||Le(s)&&!a&&Fn(e,s))?o=o.filter(d=>d!==s):r=l,s=ue(s)}return t.set(e,o),o}function Wi(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Je(t)?[]:zi(t,this._c):[].concat(n),o],l=s[0],a=s.reduce((u,d)=>{const f=qt(t,d,r);return u.top=Y(f.top,u.top),u.right=ce(f.right,u.right),u.bottom=ce(f.bottom,u.bottom),u.left=Y(f.left,u.left),u},qt(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Vi(e){const{width:t,height:n}=Dn(e);return{width:t,height:n}}function Bi(e,t,n){const o=ee(t),r=te(t),i=n==="fixed",s=ve(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Q(0);function u(){a.x=et(r)}if(o||!o&&!i)if((Ae(t)!=="body"||Le(r))&&(l=Qe(t)),o){const p=ve(t,!0,i,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}else r&&u();i&&!o&&r&&u();const d=r&&!o&&!i?Mn(r,l):Q(0),f=s.left+l.scrollLeft-a.x-d.x,m=s.top+l.scrollTop-a.y-d.y;return{x:f,y:m,width:s.width,height:s.height}}function st(e){return Z(e).position==="static"}function Zt(e,t){if(!ee(e)||Z(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return te(e)===n&&(n=n.ownerDocument.body),n}function zn(e,t){const n=X(e);if(Je(e))return n;if(!ee(e)){let r=ue(e);for(;r&&!Ce(r);){if(q(r)&&!st(r))return r;r=ue(r)}return n}let o=Zt(e,t);for(;o&&Pi(o)&&st(o);)o=Zt(o,t);return o&&Ce(o)&&st(o)&&!Ct(o)?n:o||Ti(e)||n}const Hi=async function(e){const t=this.getOffsetParent||zn,n=this.getDimensions,o=await n(e.floating);return{reference:Bi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Gi(e){return Z(e).direction==="rtl"}const Ui={convertOffsetParentRelativeRectToViewportRelativeRect:_i,getDocumentElement:te,getClippingRect:Wi,getOffsetParent:zn,getElementRects:Hi,getClientRects:Li,getDimensions:Vi,getScale:we,isElement:q,isRTL:Gi};function Wn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Yi(e,t){let n=null,o;const r=te(e);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:m,height:p}=u;if(l||t(),!m||!p)return;const g=We(f),h=We(r.clientWidth-(d+m)),b=We(r.clientHeight-(f+p)),x=We(d),P={rootMargin:-g+"px "+-h+"px "+-b+"px "+-x+"px",threshold:Y(0,ce(1,a))||1};let R=!0;function A(O){const k=O[0].intersectionRatio;if(k!==a){if(!R)return s();k?s(!1,k):o=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!Wn(u,e.getBoundingClientRect())&&s(),R=!1}try{n=new IntersectionObserver(A,{...P,root:r.ownerDocument})}catch{n=new IntersectionObserver(A,P)}n.observe(e)}return s(!0),i}function Xi(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,u=Et(e),d=r||i?[...u?je(u):[],...je(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const f=u&&l?Yi(u,n):null;let m=-1,p=null;s&&(p=new ResizeObserver(x=>{let[E]=x;E&&E.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var P;(P=p)==null||P.observe(t)})),n()}),u&&!a&&p.observe(u),p.observe(t));let g,h=a?ve(e):null;a&&b();function b(){const x=ve(e);h&&!Wn(h,x)&&n(),h=x,g=requestAnimationFrame(b)}return n(),()=>{var x;d.forEach(E=>{r&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),f==null||f(),(x=p)==null||x.disconnect(),p=null,a&&cancelAnimationFrame(g)}}const qi=yi,Zi=xi,Ki=hi,Ji=Ci,Qi=vi,Kt=gi,es=wi,ts=(e,t,n)=>{const o=new Map,r={platform:Ui,...n},i={...r.platform,_c:o};return mi(e,t,{...r,platform:i})};var ns=typeof document<"u",os=function(){},Be=ns?ie.useLayoutEffect:os;function qe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!qe(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!qe(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Vn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jt(e,t){const n=Vn(e);return Math.round(t*n)/n}function lt(e){const t=c.useRef(e);return Be(()=>{t.current=e}),t}function rs(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=c.useState(o);qe(m,o)||p(o);const[g,h]=c.useState(null),[b,x]=c.useState(null),E=c.useCallback(y=>{y!==O.current&&(O.current=y,h(y))},[]),P=c.useCallback(y=>{y!==k.current&&(k.current=y,x(y))},[]),R=i||g,A=s||b,O=c.useRef(null),k=c.useRef(null),w=c.useRef(d),$=a!=null,_=lt(a),V=lt(r),M=lt(u),D=c.useCallback(()=>{if(!O.current||!k.current)return;const y={placement:t,strategy:n,middleware:m};V.current&&(y.platform=V.current),ts(O.current,k.current,y).then(z=>{const U={...z,isPositioned:M.current!==!1};L.current&&!qe(w.current,U)&&(w.current=U,nn.flushSync(()=>{f(U)}))})},[m,t,n,V,M]);Be(()=>{u===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,f(y=>({...y,isPositioned:!1})))},[u]);const L=c.useRef(!1);Be(()=>(L.current=!0,()=>{L.current=!1}),[]),Be(()=>{if(R&&(O.current=R),A&&(k.current=A),R&&A){if(_.current)return _.current(R,A,D);D()}},[R,A,D,_,$]);const F=c.useMemo(()=>({reference:O,floating:k,setReference:E,setFloating:P}),[E,P]),N=c.useMemo(()=>({reference:R,floating:A}),[R,A]),j=c.useMemo(()=>{const y={position:n,left:0,top:0};if(!N.floating)return y;const z=Jt(N.floating,d.x),U=Jt(N.floating,d.y);return l?{...y,transform:"translate("+z+"px, "+U+"px)",...Vn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:U}},[n,l,N.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:D,refs:F,elements:N,floatingStyles:j}),[d,D,F,N,j])}const is=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Kt({element:o.current,padding:r}).fn(n):{}:o?Kt({element:o,padding:r}).fn(n):{}}}},ss=(e,t)=>({...qi(e),options:[e,t]}),ls=(e,t)=>({...Zi(e),options:[e,t]}),as=(e,t)=>({...es(e),options:[e,t]}),cs=(e,t)=>({...Ki(e),options:[e,t]}),us=(e,t)=>({...Ji(e),options:[e,t]}),ds=(e,t)=>({...Qi(e),options:[e,t]}),fs=(e,t)=>({...is(e),options:[e,t]});function ps(e){const t=ms(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(hs);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function ms(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=bs(r),l=vs(i,r.props);return r.type!==c.Fragment&&(l.ref=o?de(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gs=Symbol("radix.slottable");function hs(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gs}function vs(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function bs(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ys=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xs=ys.reduce((e,t)=>{const n=ps(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),ws="Arrow",Bn=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return v.jsx(xs.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});Bn.displayName=ws;var Cs=Bn;function Ss(e){const t=Es(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(Rs);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Es(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=ks(r),l=As(i,r.props);return r.type!==c.Fragment&&(l.ref=o?de(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ps=Symbol("radix.slottable");function Rs(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ps}function As(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function ks(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Os=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hn=Os.reduce((e,t)=>{const n=Ss(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Gn(e){const[t,n]=c.useState(void 0);return ae(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Pt="Popper",[Un,Yn]=bt(Pt),[Ts,Xn]=Un(Pt),qn=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return v.jsx(Ts,{scope:t,anchor:o,onAnchorChange:r,children:n})};qn.displayName=Pt;var Zn="PopperAnchor",Kn=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Xn(Zn,n),s=c.useRef(null),l=se(t,s),a=c.useRef(null);return c.useEffect(()=>{const u=a.current;a.current=(o==null?void 0:o.current)||s.current,u!==a.current&&i.onAnchorChange(a.current)}),o?null:v.jsx(Hn.div,{...r,ref:l})});Kn.displayName=Zn;var Rt="PopperContent",[Ns,$s]=Un(Rt),Jn=c.forwardRef((e,t)=>{var I,Oe,pe,me,ye,ge;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:g,...h}=e,b=Xn(Rt,n),[x,E]=c.useState(null),P=se(t,Te=>E(Te)),[R,A]=c.useState(null),O=Gn(R),k=(O==null?void 0:O.width)??0,w=(O==null?void 0:O.height)??0,$=o+(i!=="center"?"-"+i:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(u)?u:[u],M=V.length>0,D={padding:_,boundary:V.filter(_s),altBoundary:M},{refs:L,floatingStyles:F,placement:N,isPositioned:j,middlewareData:y}=rs({strategy:"fixed",placement:$,whileElementsMounted:(...Te)=>Xi(...Te,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[ss({mainAxis:r+w,alignmentAxis:s}),a&&ls({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?as():void 0,...D}),a&&cs({...D}),us({...D,apply:({elements:Te,rects:Tt,availableWidth:Eo,availableHeight:Po})=>{const{width:Ro,height:Ao}=Tt.reference,Me=Te.floating.style;Me.setProperty("--radix-popper-available-width",`${Eo}px`),Me.setProperty("--radix-popper-available-height",`${Po}px`),Me.setProperty("--radix-popper-anchor-width",`${Ro}px`),Me.setProperty("--radix-popper-anchor-height",`${Ao}px`)}}),R&&fs({element:R,padding:l}),Ls({arrowWidth:k,arrowHeight:w}),m&&ds({strategy:"referenceHidden",...D})]}),[z,U]=to(N),fe=Ze(g);ae(()=>{j&&(fe==null||fe())},[j,fe]);const ke=(I=y.arrow)==null?void 0:I.x,B=(Oe=y.arrow)==null?void 0:Oe.y,G=((pe=y.arrow)==null?void 0:pe.centerOffset)!==0,[be,Ie]=c.useState();return ae(()=>{x&&Ie(window.getComputedStyle(x).zIndex)},[x]),v.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:j?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:be,"--radix-popper-transform-origin":[(me=y.transformOrigin)==null?void 0:me.x,(ye=y.transformOrigin)==null?void 0:ye.y].join(" "),...((ge=y.hide)==null?void 0:ge.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(Ns,{scope:n,placedSide:z,onArrowChange:A,arrowX:ke,arrowY:B,shouldHideArrow:G,children:v.jsx(Hn.div,{"data-side":z,"data-align":U,...h,ref:P,style:{...h.style,animation:j?void 0:"none"}})})})});Jn.displayName=Rt;var Qn="PopperArrow",js={top:"bottom",right:"left",bottom:"top",left:"right"},eo=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=$s(Qn,o),s=js[i.placedSide];return v.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:v.jsx(Cs,{...r,ref:n,style:{...r.style,display:"block"}})})});eo.displayName=Qn;function _s(e){return e!==null}var Ls=e=>({name:"transformOrigin",options:e,fn(t){var b,x,E;const{placement:n,rects:o,middlewareData:r}=t,s=((b=r.arrow)==null?void 0:b.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,d]=to(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((x=r.arrow)==null?void 0:x.x)??0)+l/2,p=(((E=r.arrow)==null?void 0:E.y)??0)+a/2;let g="",h="";return u==="bottom"?(g=s?f:`${m}px`,h=`${-a}px`):u==="top"?(g=s?f:`${m}px`,h=`${o.floating.height+a}px`):u==="right"?(g=`${-a}px`,h=s?f:`${p}px`):u==="left"&&(g=`${o.floating.width+a}px`,h=s?f:`${p}px`),{data:{x:g,y:h}}}});function to(e){const[t,n="center"]=e.split("-");return[t,n]}var Ds=qn,Is=Kn,Ms=Jn,Fs=eo;function zs(e){const t=Ws(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(Bs);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Ws(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=Gs(r),l=Hs(i,r.props);return r.type!==c.Fragment&&(l.ref=o?de(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vs=Symbol("radix.slottable");function Bs(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vs}function Hs(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Gs(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Us=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ys=Us.reduce((e,t)=>{const n=zs(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),Xs="Portal",no=c.forwardRef((e,t)=>{var l;const{container:n,...o}=e,[r,i]=c.useState(!1);ae(()=>i(!0),[]);const s=n||r&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?en.createPortal(v.jsx(Ys.div,{...o,ref:t}),s):null});no.displayName=Xs;function qs(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var At=e=>{const{present:t,children:n}=e,o=Zs(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),i=se(o.ref,Ks(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:i}):null};At.displayName="Presence";function Zs(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),i=c.useRef("none"),s=e?"mounted":"unmounted",[l,a]=qs(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Ve(o.current);i.current=l==="mounted"?u:"none"},[l]),ae(()=>{const u=o.current,d=r.current;if(d!==e){const m=i.current,p=Ve(u);e?a("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&m!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,a]),ae(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=p=>{const h=Ve(o.current).includes(CSS.escape(p.animationName));if(p.target===t&&h&&(a("ANIMATION_END"),!r.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=p=>{p.target===t&&(i.current=Ve(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function Ve(e){return(e==null?void 0:e.animationName)||"none"}function Ks(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Js(e){const t=Qs(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(tl);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Qs(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=ol(r),l=nl(i,r.props);return r.type!==c.Fragment&&(l.ref=o?de(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oo=Symbol("radix.slottable");function el(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=oo,t}function tl(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===oo}function nl(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function ol(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],il=rl.reduce((e,t)=>{const n=Js(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),sl=c[" useInsertionEffect ".trim().toString()]||ae;function ro({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,s]=ll({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:r;{const d=c.useRef(e!==void 0);c.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,o])}const u=c.useCallback(d=>{var f;if(l){const m=al(d)?d(e):d;m!==e&&((f=s.current)==null||f.call(s,m))}else i(d)},[l,e,i,s]);return[a,u]}function ll({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),i=c.useRef(t);return sl(()=>{i.current=t},[t]),c.useEffect(()=>{var s;r.current!==n&&((s=i.current)==null||s.call(i,n),r.current=n)},[n,r]),[n,o,i]}function al(e){return typeof e=="function"}function cl(e){const t=ul(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(fl);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function ul(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=ml(r),l=pl(i,r.props);return r.type!==c.Fragment&&(l.ref=o?de(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dl=Symbol("radix.slottable");function fl(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dl}function pl(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function ml(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var gl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hl=gl.reduce((e,t)=>{const n=cl(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),vl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),bl="VisuallyHidden",io=c.forwardRef((e,t)=>v.jsx(hl.span,{...e,ref:t,style:{...vl,...e.style}}));io.displayName=bl;var yl=io,[tt]=bt("Tooltip",[Yn]),nt=Yn(),so="TooltipProvider",xl=700,pt="tooltip.open",[wl,kt]=tt(so),lo=e=>{const{__scopeTooltip:t,delayDuration:n=xl,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,s=c.useRef(!0),l=c.useRef(!1),a=c.useRef(0);return c.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),v.jsx(wl,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:c.useCallback(u=>{l.current=u},[]),disableHoverableContent:r,children:i})};lo.displayName=so;var _e="Tooltip",[Cl,De]=tt(_e),ao=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,a=kt(_e,e.__scopeTooltip),u=nt(t),[d,f]=c.useState(null),m=ni(),p=c.useRef(0),g=s??a.disableHoverableContent,h=l??a.delayDuration,b=c.useRef(!1),[x,E]=ro({prop:o,defaultProp:r??!1,onChange:k=>{k?(a.onOpen(),document.dispatchEvent(new CustomEvent(pt))):a.onClose(),i==null||i(k)},caller:_e}),P=c.useMemo(()=>x?b.current?"delayed-open":"instant-open":"closed",[x]),R=c.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b.current=!1,E(!0)},[E]),A=c.useCallback(()=>{window.clearTimeout(p.current),p.current=0,E(!1)},[E]),O=c.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,E(!0),p.current=0},h)},[h,E]);return c.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),v.jsx(Ds,{...u,children:v.jsx(Cl,{scope:t,contentId:m,open:x,stateAttribute:P,trigger:d,onTriggerChange:f,onTriggerEnter:c.useCallback(()=>{a.isOpenDelayedRef.current?O():R()},[a.isOpenDelayedRef,O,R]),onTriggerLeave:c.useCallback(()=>{g?A():(window.clearTimeout(p.current),p.current=0)},[A,g]),onOpen:R,onClose:A,disableHoverableContent:g,children:n})})};ao.displayName=_e;var mt="TooltipTrigger",co=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=De(mt,n),i=kt(mt,n),s=nt(n),l=c.useRef(null),a=se(t,l,r.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),f=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),v.jsx(Is,{asChild:!0,...s,children:v.jsx(il.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:a,onPointerMove:K(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:K(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:K(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:K(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:K(e.onBlur,r.onClose),onClick:K(e.onClick,r.onClose)})})});co.displayName=mt;var Ot="TooltipPortal",[Sl,El]=tt(Ot,{forceMount:void 0}),uo=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=De(Ot,t);return v.jsx(Sl,{scope:t,forceMount:n,children:v.jsx(At,{present:n||i.open,children:v.jsx(no,{asChild:!0,container:r,children:o})})})};uo.displayName=Ot;var Se="TooltipContent",fo=c.forwardRef((e,t)=>{const n=El(Se,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=De(Se,e.__scopeTooltip);return v.jsx(At,{present:o||s.open,children:s.disableHoverableContent?v.jsx(po,{side:r,...i,ref:t}):v.jsx(Pl,{side:r,...i,ref:t})})}),Pl=c.forwardRef((e,t)=>{const n=De(Se,e.__scopeTooltip),o=kt(Se,e.__scopeTooltip),r=c.useRef(null),i=se(t,r),[s,l]=c.useState(null),{trigger:a,onClose:u}=n,d=r.current,{onPointerInTransitChange:f}=o,m=c.useCallback(()=>{l(null),f(!1)},[f]),p=c.useCallback((g,h)=>{const b=g.currentTarget,x={x:g.clientX,y:g.clientY},E=Ol(x,b.getBoundingClientRect()),P=Tl(x,E),R=Nl(h.getBoundingClientRect()),A=jl([...P,...R]);l(A),f(!0)},[f]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(a&&d){const g=b=>p(b,d),h=b=>p(b,a);return a.addEventListener("pointerleave",g),d.addEventListener("pointerleave",h),()=>{a.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",h)}}},[a,d,p,m]),c.useEffect(()=>{if(s){const g=h=>{const b=h.target,x={x:h.clientX,y:h.clientY},E=(a==null?void 0:a.contains(b))||(d==null?void 0:d.contains(b)),P=!$l(x,s);E?m():P&&(m(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[a,d,s,u,m]),v.jsx(po,{...e,ref:i})}),[Rl,Al]=tt(_e,{isInside:!1}),kl=el("TooltipContent"),po=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=De(Se,n),u=nt(n),{onClose:d}=a;return c.useEffect(()=>(document.addEventListener(pt,d),()=>document.removeEventListener(pt,d)),[d]),c.useEffect(()=>{if(a.trigger){const f=m=>{const p=m.target;p!=null&&p.contains(a.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,d]),v.jsx(Tn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:v.jsxs(Ms,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(kl,{children:o}),v.jsx(Rl,{scope:n,isInside:!0,children:v.jsx(yl,{id:a.contentId,role:"tooltip",children:r||o})})]})})});fo.displayName=Se;var mo="TooltipArrow",go=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=nt(n);return Al(mo,n).isInside?null:v.jsx(Fs,{...r,...o,ref:t})});go.displayName=mo;function Ol(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Tl(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Nl(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function $l(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],a=t[s],u=l.x,d=l.y,f=a.x,m=a.y;d>o!=m>o&&n<(f-u)*(o-d)/(m-d)+u&&(r=!r)}return r}function jl(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),_l(t)}function _l(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Ll=lo,Dl=ao,Il=co,Ml=uo,Fl=fo,zl=go;const ho=({delayDuration:e=0,...t})=>v.jsx(Ll,{"data-slot":"tooltip-provider",delayDuration:e,...t}),Wl=({...e})=>v.jsx(ho,{children:v.jsx(Dl,{"data-slot":"tooltip",...e})}),Vl=({...e})=>v.jsx(Il,{"data-slot":"tooltip-trigger",...e}),Bl=({className:e,sideOffset:t=0,children:n,...o})=>v.jsx(Ml,{children:v.jsxs(Fl,{"data-slot":"tooltip-content",sideOffset:t,className:H("volt-ui-bg-white volt-ui-text-gray-default volt-ui-animate-in volt-ui-fade-in-0 volt-ui-zoom-in-95 volt-ui-data-[state=closed]:animate-out volt-ui-data-[state=closed]:fade-out-0 volt-ui-data-[state=closed]:zoom-out-95 volt-ui-data-[side=bottom]:slide-in-from-top-2 volt-ui-data-[side=left]:slide-in-from-right-2 volt-ui-data-[side=right]:slide-in-from-left-2 volt-ui-data-[side=top]:slide-in-from-bottom-2 volt-ui-z-50 volt-ui-w-fit volt-ui-origin-(--radix-tooltip-content-transform-origin) volt-ui-rounded-md volt-ui-p-2 volt-ui-text-xs volt-ui-text-balance",e),...o,children:[n,v.jsx(zl,{className:"volt-ui-bg-white volt-ui-fill-white volt-ui-z-50 volt-ui-size-3 volt-ui-translate-y-[calc(-50%-2px)] volt-ui-rotate-45 volt-ui-rounded-[2px]"})]})});function Hl(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Gl(e){const t=Ul(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(Xl);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Ul(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=Zl(r),l=ql(i,r.props);return r.type!==c.Fragment&&(l.ref=o?de(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yl=Symbol("radix.slottable");function Xl(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yl}function ql(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Zl(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Kl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vo=Kl.reduce((e,t)=>{const n=Gl(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),ot="Switch",[Jl]=bt(ot),[Ql,ea]=Jl(ot),bo=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:o,checked:r,defaultChecked:i,required:s,disabled:l,value:a="on",onCheckedChange:u,form:d,...f}=e,[m,p]=c.useState(null),g=se(t,P=>p(P)),h=c.useRef(!1),b=m?d||!!m.closest("form"):!0,[x,E]=ro({prop:r,defaultProp:i??!1,onChange:u,caller:ot});return v.jsxs(Ql,{scope:n,checked:x,disabled:l,children:[v.jsx(vo.button,{type:"button",role:"switch","aria-checked":x,"aria-required":s,"data-state":Co(x),"data-disabled":l?"":void 0,disabled:l,value:a,...f,ref:g,onClick:K(e.onClick,P=>{E(R=>!R),b&&(h.current=P.isPropagationStopped(),h.current||P.stopPropagation())})}),b&&v.jsx(wo,{control:m,bubbles:!h.current,name:o,value:a,checked:x,required:s,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});bo.displayName=ot;var yo="SwitchThumb",xo=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...o}=e,r=ea(yo,n);return v.jsx(vo.span,{"data-state":Co(r.checked),"data-disabled":r.disabled?"":void 0,...o,ref:t})});xo.displayName=yo;var ta="SwitchBubbleInput",wo=c.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:o=!0,...r},i)=>{const s=c.useRef(null),l=se(s,i),a=Hl(n),u=Gn(t);return c.useEffect(()=>{const d=s.current;if(!d)return;const f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(a!==n&&p){const g=new Event("click",{bubbles:o});p.call(d,n),d.dispatchEvent(g)}},[a,n,o]),v.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:l,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});wo.displayName=ta;function Co(e){return e?"checked":"unchecked"}var na=bo,oa=xo;function ra({className:e,...t}){return v.jsx(na,{"data-slot":"switch",className:H("volt-ui-peer volt-ui-cursor-pointer volt-ui-data-[state=checked]:bg-accent-solid volt-ui-data-[state=unchecked]:bg-gray-a4 volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-focus-visible:outline-accent-a8 volt-ui-inline-flex volt-ui-h-[1.15rem] volt-ui-w-8 volt-ui-shrink-0 volt-ui-items-center volt-ui-rounded-full volt-ui-border volt-ui-border-transparent volt-ui-shadow-xs volt-ui-transition-all volt-ui-disabled:pointer-events-none volt-ui-disabled:opacity-50",e),...t,children:v.jsx(oa,{"data-slot":"switch-thumb",className:H("volt-ui-bg-accent-contrast volt-ui-border volt-ui-data-[state=checked]:border-accent-solid volt-ui-border-gray-a8 volt-ui-dark:data-[state=unchecked]:bg-accent-contrast volt-ui-dark:data-[state=checked]:bg-accent-contrast volt-ui-pointer-events-none volt-ui-block volt-ui-size-4 volt-ui-rounded-full volt-ui-ring-0 volt-ui-transition-transform volt-ui-data-[state=checked]:translate-x-[calc(100%-2px)] volt-ui-data-[state=unchecked]:translate-x-0")})})}var ia="Separator",Qt="horizontal",sa=["horizontal","vertical"],So=c.forwardRef((e,t)=>{const{decorative:n,orientation:o=Qt,...r}=e,i=la(o)?o:Qt,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return v.jsx(wn.div,{"data-orientation":i,...l,...r,ref:t})});So.displayName=ia;function la(e){return sa.includes(e)}var aa=So;const ca=({className:e,orientation:t="horizontal",decorative:n=!0,...o})=>v.jsx(aa,{"data-slot":"separator",decorative:n,orientation:t,className:H("volt-ui-bg-gray-a5 volt-ui-shrink-0 volt-ui-data-[orientation=horizontal]:h-px volt-ui-data-[orientation=horizontal]:w-full volt-ui-data-[orientation=vertical]:h-full volt-ui-data-[orientation=vertical]:w-px",e),...o});exports.Button=xn;exports.Field=Tr;exports.FieldContent=Nr;exports.FieldDescription=jr;exports.FieldError=_r;exports.FieldGroup=Or;exports.FieldGroupAddon=Dr;exports.FieldInput=Pn;exports.FieldInputGroup=Rn;exports.FieldLabel=$r;exports.FieldTextarea=An;exports.Label=Sn;exports.Separator=ca;exports.Switch=ra;exports.Tooltip=Wl;exports.TooltipContent=Bl;exports.TooltipProvider=ho;exports.TooltipTrigger=Vl;exports.clsx=gt;exports.cn=H;exports.useFieldContext=vt;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),ie=require("react"),en=require("react-dom");function tn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=tn(ie),nn=tn(en);function on(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=on(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function rn(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=on(e))&&(o&&(o+=" "),o+=t);return o}const Ro=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},Ao=(e,t)=>({classGroupId:e,validator:t}),sn=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ge="-",$t=[],ko="arbitrary..",Oo=e=>{const t=No(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return To(s);const l=s.split(Ge),a=l[0]===""&&l.length>1?1:0;return ln(l,a,t)},getConflictingClassGroupIds:(s,l)=>{if(l){const a=o[s],u=n[s];return a?u?Ro(u,a):a:u||$t}return n[s]||$t}}},ln=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],i=n.nextPart.get(r);if(i){const u=ln(e,t+1,i);if(u)return u}const s=n.validators;if(s===null)return;const l=t===0?e.join(Ge):e.slice(t).join(Ge),a=s.length;for(let u=0;u<a;u++){const d=s[u];if(d.validator(l))return d.classGroupId}},To=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?ko+o:void 0})(),No=e=>{const{theme:t,classGroups:n}=e;return $o(n,t)},$o=(e,t)=>{const n=sn();for(const o in e){const r=e[o];ht(r,n,o,t)}return n},ht=(e,t,n,o)=>{const r=e.length;for(let i=0;i<r;i++){const s=e[i];jo(s,t,n,o)}},jo=(e,t,n,o)=>{if(typeof e=="string"){_o(e,t,n);return}if(typeof e=="function"){Lo(e,t,n,o);return}Do(e,t,n,o)},_o=(e,t,n)=>{const o=e===""?t:an(t,e);o.classGroupId=n},Lo=(e,t,n,o)=>{if(Io(e)){ht(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Ao(n,e))},Do=(e,t,n,o)=>{const r=Object.entries(e),i=r.length;for(let s=0;s<i;s++){const[l,a]=r[s];ht(a,an(t,l),n,o)}},an=(e,t)=>{let n=e;const o=t.split(Ge),r=o.length;for(let i=0;i<r;i++){const s=o[i];let l=n.nextPart.get(s);l||(l=sn(),n.nextPart.set(s,l)),n=l}return n},Io=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Mo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(i,s)=>{n[i]=s,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=o[i])!==void 0)return r(i,s),s},set(i,s){i in n?n[i]=s:r(i,s)}}},ct="!",jt=":",zo=[],_t=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),Fo=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const i=[];let s=0,l=0,a=0,u;const d=r.length;for(let h=0;h<d;h++){const b=r[h];if(s===0&&l===0){if(b===jt){i.push(r.slice(a,h)),a=h+1;continue}if(b==="/"){u=h;continue}}b==="["?s++:b==="]"?s--:b==="("?l++:b===")"&&l--}const f=i.length===0?r:r.slice(a);let m=f,p=!1;f.endsWith(ct)?(m=f.slice(0,-1),p=!0):f.startsWith(ct)&&(m=f.slice(1),p=!0);const g=u&&u>a?u-a:void 0;return _t(i,p,m,g)};if(t){const r=t+jt,i=o;o=s=>s.startsWith(r)?i(s.slice(r.length)):_t(zo,!1,s,void 0,!0)}if(n){const r=o;o=i=>n({className:i,parseClassName:r})}return o},Vo=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let i=0;i<n.length;i++){const s=n[i],l=s[0]==="[",a=t.has(s);l||a?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},Wo=e=>({cache:Mo(e.cacheSize),parseClassName:Fo(e),sortModifiers:Vo(e),...Oo(e)}),Bo=/\s+/,Ho=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:i}=t,s=[],l=e.trim().split(Bo);let a="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:f,modifiers:m,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:h}=n(d);if(f){a=d+(a.length>0?" "+a:a);continue}let b=!!h,x=o(b?g.substring(0,h):g);if(!x){if(!b){a=d+(a.length>0?" "+a:a);continue}if(x=o(g),!x){a=d+(a.length>0?" "+a:a);continue}b=!1}const E=m.length===0?"":m.length===1?m[0]:i(m).join(":"),P=p?E+ct:E,R=P+x;if(s.indexOf(R)>-1)continue;s.push(R);const A=r(x,b);for(let O=0;O<A.length;++O){const k=A[O];s.push(P+k)}a=d+(a.length>0?" "+a:a)}return a},Go=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=cn(n))&&(r&&(r+=" "),r+=o);return r},cn=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=cn(e[o]))&&(n&&(n+=" "),n+=t);return n},Uo=(e,...t)=>{let n,o,r,i;const s=a=>{const u=t.reduce((d,f)=>f(d),e());return n=Wo(u),o=n.cache.get,r=n.cache.set,i=l,l(a)},l=a=>{const u=o(a);if(u)return u;const d=Ho(a,n);return r(a,d),d};return i=s,(...a)=>i(Go(...a))},Yo=[],V=e=>{const t=n=>n[e]||Yo;return t.isThemeGetter=!0,t},un=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xo=/^\d+\/\d+$/,qo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zo=/\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$/,Ko=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xe=e=>Xo.test(e),T=e=>!!e&&!Number.isNaN(Number(e)),ae=e=>!!e&&Number.isInteger(Number(e)),it=e=>e.endsWith("%")&&T(e.slice(0,-1)),ne=e=>qo.test(e),er=()=>!0,tr=e=>Zo.test(e)&&!Ko.test(e),fn=()=>!1,nr=e=>Jo.test(e),or=e=>Qo.test(e),rr=e=>!C(e)&&!S(e),ir=e=>Ee(e,gn,fn),C=e=>un.test(e),he=e=>Ee(e,hn,tr),st=e=>Ee(e,ur,T),Lt=e=>Ee(e,pn,fn),sr=e=>Ee(e,mn,or),Fe=e=>Ee(e,vn,nr),S=e=>dn.test(e),Ne=e=>Pe(e,hn),lr=e=>Pe(e,dr),Dt=e=>Pe(e,pn),ar=e=>Pe(e,gn),cr=e=>Pe(e,mn),Ve=e=>Pe(e,vn,!0),Ee=(e,t,n)=>{const o=un.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},Pe=(e,t,n=!1)=>{const o=dn.exec(e);return o?o[1]?t(o[1]):n:!1},pn=e=>e==="position"||e==="percentage",mn=e=>e==="image"||e==="url",gn=e=>e==="length"||e==="size"||e==="bg-size",hn=e=>e==="length",ur=e=>e==="number",dr=e=>e==="family-name",vn=e=>e==="shadow",fr=()=>{const e=V("color"),t=V("font"),n=V("text"),o=V("font-weight"),r=V("tracking"),i=V("leading"),s=V("breakpoint"),l=V("container"),a=V("spacing"),u=V("radius"),d=V("shadow"),f=V("inset-shadow"),m=V("text-shadow"),p=V("drop-shadow"),g=V("blur"),h=V("perspective"),b=V("aspect"),x=V("ease"),E=V("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...R(),S,C],O=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],w=()=>[S,C,a],$=()=>[xe,"full","auto",...w()],_=()=>[ae,"none","subgrid",S,C],W=()=>["auto",{span:["full",ae,S,C]},ae,S,C],M=()=>[ae,"auto",S,C],D=()=>["auto","min","max","fr",S,C],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...w()],j=()=>[xe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],y=()=>[e,S,C],F=()=>[...R(),Dt,Lt,{position:[S,C]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],fe=()=>["auto","cover","contain",ar,ir,{size:[S,C]}],ke=()=>[it,Ne,he],H=()=>["","none","full",u,S,C],G=()=>["",T,Ne,he],be=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[T,it,Dt,Lt],Oe=()=>["","none",g,S,C],pe=()=>["none",T,S,C],me=()=>["none",T,S,C],ye=()=>[T,S,C],ge=()=>[xe,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ne],breakpoint:[ne],color:[er],container:[ne],"drop-shadow":[ne],ease:["in","out","in-out"],font:[rr],"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",T],text:[ne],"text-shadow":[ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xe,C,S,b]}],container:["container"],columns:[{columns:[T,C,S,l]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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:A()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[ae,"auto",S,C]}],basis:[{basis:[xe,"full","auto",l,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[T,xe,"auto","initial","none",C]}],grow:[{grow:["",T,S,C]}],shrink:[{shrink:["",T,S,C]}],order:[{order:[ae,"first","last","none",S,C]}],"grid-cols":[{"grid-cols":_()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":_()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[l,"screen",...j()]}],"min-w":[{"min-w":[l,"screen","none",...j()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,Ne,he]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,S,st]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",it,C]}],"font-family":[{font:[lr,C,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,S,C]}],"line-clamp":[{"line-clamp":[T,"none",S,st]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",S,C]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",S,C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[T,"from-font","auto",S,he]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[T,"auto",S,C]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S,C]}],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",S,C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:fe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ae,S,C],radial:["",S,C],conic:[ae,S,C]},cr,sr]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:ke()}],"gradient-via-pos":[{via:ke()}],"gradient-to-pos":[{to:ke()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[T,S,C]}],"outline-w":[{outline:["",T,Ne,he]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",d,Ve,Fe]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",f,Ve,Fe]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[T,he]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",m,Ve,Fe]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[T,S,C]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"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":[T]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[S,C]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[T]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:fe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",S,C]}],filter:[{filter:["","none",S,C]}],blur:[{blur:Oe()}],brightness:[{brightness:[T,S,C]}],contrast:[{contrast:[T,S,C]}],"drop-shadow":[{"drop-shadow":["","none",p,Ve,Fe]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",T,S,C]}],"hue-rotate":[{"hue-rotate":[T,S,C]}],invert:[{invert:["",T,S,C]}],saturate:[{saturate:[T,S,C]}],sepia:[{sepia:["",T,S,C]}],"backdrop-filter":[{"backdrop-filter":["","none",S,C]}],"backdrop-blur":[{"backdrop-blur":Oe()}],"backdrop-brightness":[{"backdrop-brightness":[T,S,C]}],"backdrop-contrast":[{"backdrop-contrast":[T,S,C]}],"backdrop-grayscale":[{"backdrop-grayscale":["",T,S,C]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[T,S,C]}],"backdrop-invert":[{"backdrop-invert":["",T,S,C]}],"backdrop-opacity":[{"backdrop-opacity":[T,S,C]}],"backdrop-saturate":[{"backdrop-saturate":[T,S,C]}],"backdrop-sepia":[{"backdrop-sepia":["",T,S,C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",S,C]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[T,"initial",S,C]}],ease:[{ease:["linear","initial",x,S,C]}],delay:[{delay:[T,S,C]}],animate:[{animate:["none",E,S,C]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,S,C]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[S,C,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"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",S,C]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S,C]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[T,Ne,he,st]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},pr=Uo(fr),B=(...e)=>pr(rn(e));function It(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function se(...e){return t=>{let n=!1;const o=e.map(r=>{const i=It(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():It(e[r],null)}}}}function le(...e){return c.useCallback(se(...e),e)}var mr=Symbol.for("react.lazy"),Ue=c[" use ".trim().toString()];function gr(e){return typeof e=="object"&&e!==null&&"then"in e}function bn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===mr&&"_payload"in e&&gr(e._payload)}function vt(e){const t=vr(e),n=c.forwardRef((o,r)=>{let{children:i,...s}=o;bn(i)&&typeof Ue=="function"&&(i=Ue(i._payload));const l=c.Children.toArray(i),a=l.find(yr);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}var hr=vt("Slot");function vr(e){const t=c.forwardRef((n,o)=>{let{children:r,...i}=n;if(bn(r)&&typeof Ue=="function"&&(r=Ue(r._payload)),c.isValidElement(r)){const s=wr(r),l=xr(i,r.props);return r.type!==c.Fragment&&(l.ref=o?se(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var br=Symbol("radix.slottable");function yr(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===br}function xr(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function wr(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Mt=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zt=rn,Le=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return zt(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,s=Object.keys(r).map(u=>{const d=n==null?void 0:n[u],f=i==null?void 0:i[u];if(d===null)return null;const m=Mt(d)||Mt(f);return r[u][m]}),l=n&&Object.entries(n).reduce((u,d)=>{let[f,m]=d;return m===void 0||(u[f]=m),u},{}),a=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,d)=>{let{class:f,className:m,...p}=d;return Object.entries(p).every(g=>{let[h,b]=g;return Array.isArray(b)?b.includes({...i,...l}[h]):{...i,...l}[h]===b})?[...u,f,m]:u},[]);return zt(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)},Cr=Le("volt-ui-inline-flex volt-ui-items-center volt-ui-justify-center volt-ui-font-normal volt-ui-whitespace-nowrap volt-ui-transition-all volt-ui-cursor-pointer volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-disabled:pointer-events-none volt-ui-disabled:opacity-50 volt-ui-rounded-full volt-ui-shrink-0 volt-ui-[&_svg]:shrink-0 volt-ui-[&_svg]:pointer-events-none",{variants:{variant:{primary:"volt-ui-bg-accent-solid volt-ui-text-accent-contrast volt-ui-hover:bg-accent-solid-hover volt-ui-active:bg-accent-solid-hover volt-ui-focus-visible:outline-accent-a8",secondary:"volt-ui-bg-accent-soft volt-ui-text-accent-light volt-ui-hover:bg-accent-soft-hover volt-ui-focus-visible:outline-accent-a8",tertiary:"volt-ui-bg-transparent volt-ui-text-accent-light volt-ui-hover:bg-accent-soft volt-ui-focus-visible:outline-accent-a8",destructive:"volt-ui-bg-error-a9 volt-ui-text-error-contrast volt-ui-hover:bg-error-solid-hover volt-ui-active:bg-error-solid-hover volt-ui-focus-visible:outline-error-a8"},size:{sm:"volt-ui-px-3 volt-ui-py-1 volt-ui-min-h-6 volt-ui-text-sm volt-ui-gap-[6px] volt-ui-[&_svg]:size-[14px]",base:"volt-ui-px-4 volt-ui-py-1 volt-ui-min-h-9 volt-ui-text-base volt-ui-gap-2 volt-ui-[&_svg]:size-4",large:"volt-ui-px-6 volt-ui-py-2.5 volt-ui-min-h-10 volt-ui-text-lg volt-ui-gap-2 volt-ui-[&_svg]:size-5",icon:"volt-ui-size-10 volt-ui-[&_svg]:size-5 volt-ui-gap-2"}},defaultVariants:{variant:"primary",size:"base"}}),yn=ie.forwardRef(({variant:e,size:t,asChild:n=!1,className:o,...r},i)=>{const s=n?hr:"button";return v.jsx(s,{"data-slot":"button",className:B(Cr({variant:e,size:t,className:o})),ref:i,...r})});yn.displayName="Button";var Sr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Er=Sr.reduce((e,t)=>{const n=vt(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),Pr="Label",xn=c.forwardRef((e,t)=>v.jsx(Er.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));xn.displayName=Pr;var Rr=xn;const Ar=Le("volt-ui-flex volt-ui-items-center volt-ui-gap-2 volt-ui-leading-none volt-ui-font-normal volt-ui-group-data-[disabled=true]:pointer-events-none volt-ui-group-data-[disabled=true]:opacity-50 volt-ui-peer-disabled:cursor-not-allowed volt-ui-peer-disabled:opacity-50",{variants:{variant:{primary:"volt-ui-text-gray-default",destructive:"volt-ui-text-error-a12"},size:{sm:"volt-ui-text-xs",base:"volt-ui-text-sm",large:"volt-ui-text-base"}},defaultVariants:{variant:"primary",size:"base"}}),wn=({variant:e,size:t,className:n,...o})=>v.jsx(Rr,{"data-slot":"label",className:B(Ar({variant:e,size:t,className:n})),...o}),Cn=ie.createContext(null),bt=()=>{const e=ie.useContext(Cn);if(!e)throw new Error("volt-ui-FieldInput volt-ui-must volt-ui-be volt-ui-used volt-ui-within volt-ui-a volt-ui-Field volt-ui-component");return e},kr=({className:e,...t})=>v.jsx("div",{"data-slot":"field-group",className:B("volt-ui-group/field-group volt-ui-@container/field-group volt-ui-flex volt-ui-w-full volt-ui-flex-col volt-ui-gap-2 volt-ui-*:data-[slot=field-group]:gap-2 volt-ui-[&>div[data-slot=field]+[data-slot=field-description]]:pl-3",e),...t}),Or=({className:e,...t})=>v.jsx("fieldset",{"data-slot":"field-set",className:B("volt-ui-flex volt-ui-flex-col volt-ui-gap-6",e),...t}),Tr=({className:e,children:t,onClick:n,...o})=>{const r=c.useRef(null);return v.jsx(Cn.Provider,{value:{inputRef:r},children:v.jsx("div",{role:"group","data-slot":"field",className:B("volt-ui-flex-col volt-ui-*:w-full volt-ui-[&>.sr-only]:w-auto volt-ui-group/field volt-ui-flex volt-ui-w-full volt-ui-py-2 volt-ui-px-3 volt-ui-gap-1 volt-ui-rounded-lg volt-ui-transition-all volt-ui-bg-accent-a3 volt-ui-data-[invalid=true]:bg-error-soft volt-ui-focus-within:outline-2 volt-ui-focus-within:outline-offset-2 volt-ui-[&:not([data-invalid=true]):focus-within]:outline-accent-a8 volt-ui-data-[invalid=true]:focus-within:outline-error-a8","volt-ui-has-[input[data-readonly=true]]:bg-gray-a4 volt-ui-has-[input[disabled]]:bg-gray-a4 volt-ui-has-[input[data-readonly=true]]:focus-within:outline-gray-a8 volt-ui-has-[input[disabled]]:focus-within:outline-gray-a8","volt-ui-has-[textarea[data-readonly=true]]:bg-gray-a4 volt-ui-has-[textarea[disabled]]:bg-gray-a4 volt-ui-has-[textarea[data-readonly=true]]:focus-within:outline-gray-a8 volt-ui-has-[textarea[disabled]]:focus-within:outline-gray-a8",e),onClick:i=>{i.target===i.currentTarget&&r.current&&!r.current.disabled&&r.current.focus(),n==null||n(i)},...o,children:t})})},Nr=({className:e,...t})=>v.jsx("div",{"data-slot":"field-content",className:B("volt-ui-group/field-content volt-ui-flex volt-ui-flex-1 volt-ui-flex-col volt-ui-gap-2 volt-ui-leading-snug",e),...t}),$r=({className:e,...t})=>v.jsx(wn,{"data-slot":"field-label",className:B("volt-ui-group/field-label volt-ui-text-xs volt-ui-peer/field-label volt-ui-flex volt-ui-w-fit volt-ui-gap-2 volt-ui-leading-snug volt-ui-group-data-[disabled=true]/field:opacity-50","volt-ui-has-[>[data-slot=field]]:w-full volt-ui-has-[>[data-slot=field]]:flex-col volt-ui-has-[>[data-slot=field]]:rounded-md volt-ui-has-[>[data-slot=field]]:border volt-ui-*:data-[slot=field]:p-4","volt-ui-has-data-[state=checked]:bg-accent-a3/5 volt-ui-has-data-[state=checked]:border-accent-a3 volt-ui-dark:has-data-[state=checked]:bg-accent-a3/10",e),...t}),jr=({className:e,...t})=>v.jsx("p",{"data-slot":"field-description",className:B("volt-ui-text-gray-default volt-ui-text-xs volt-ui-leading-normal volt-ui-font-normal","volt-ui-last:mt-0 volt-ui-nth-last-2:-mt-1 volt-ui-[[data-variant=legend]+&]:-mt-1.5","volt-ui-[&>a:hover]:text-gray-default volt-ui-[&>a]:underline volt-ui-[&>a]:underline-offset-4",e),...t}),_r=({className:e,children:t,errors:n,...o})=>{const r=ie.useMemo(()=>{var s;if(t)return t;if(!(n!=null&&n.length))return null;const i=[...new Map(n.map(l=>[l==null?void 0:l.message,l])).values()];return(i==null?void 0:i.length)==1?(s=i[0])==null?void 0:s.message:v.jsx("ul",{className:"volt-ui-ml-4 volt-ui-flex volt-ui-list-disc volt-ui-flex-col volt-ui-gap-1",children:i.map((l,a)=>(l==null?void 0:l.message)&&v.jsx("li",{children:l.message},a))})},[t,n]);return r?v.jsx("div",{role:"alert","data-slot":"field-error",className:B("volt-ui-text-error-light volt-ui-text-xs volt-ui-font-normal",e),...o,children:r}):null},Sn=ie.forwardRef(({className:e,...t},n)=>{const{inputRef:o}=bt();return v.jsx("input",{ref:r=>{o.current=r,typeof n=="function"?n(r):n&&(n.current=r)},"data-readonly":t.readOnly,"data-slot":"field-input",className:B("volt-ui-group/field-input volt-ui-w-full volt-ui-h-6 volt-ui-outline-none volt-ui-text-sm volt-ui-text-gray-default volt-ui-focus-visible:outline-none volt-ui-placeholder:text-gray-a8",e),...t})});Sn.displayName="FieldInput";const En=ie.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-slot":"field-input-group",className:B("volt-ui-flex volt-ui-items-center volt-ui-gap-1",e),...t}));En.displayName="FieldInputGroup";const Lr=Le("volt-ui-text-gray-light volt-ui-flex volt-ui-h-auto volt-ui-cursor-text volt-ui-whitespace-nowrap volt-ui-items-center volt-ui-justify-center volt-ui-gap-2 volt-ui-text-sm volt-ui-font-normal volt-ui-select-none volt-ui-group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{start:"volt-ui-order-first",end:"volt-ui-order-last"}},defaultVariants:{align:"start"}}),Dr=({className:e,align:t="start",...n})=>v.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:B(Lr({align:t}),e),onClick:o=>{var r,i;o.target.closest("button")||(i=(r=o.currentTarget.parentElement)==null?void 0:r.querySelector("input"))==null||i.focus()},...n}),Pn=ie.forwardRef(({className:e,resize:t="none",...n},o)=>{const{inputRef:r}=bt();return v.jsx("textarea",{ref:i=>{r.current=i,typeof o=="function"?o(i):o&&(o.current=i)},"data-readonly":n.readOnly,"data-slot":"field-textarea","data-resize":t,className:B("volt-ui-group/field-textarea volt-ui-w-full volt-ui-outline-none volt-ui-text-sm volt-ui-text-gray-default volt-ui-focus-visible:outline-none volt-ui-data-[resize=none]:resize-none volt-ui-data-[resize=vertical]:resize-vertical volt-ui-data-[resize=horizontal]:resize-horizontal volt-ui-placeholder:text-gray-a8",e),...n})});Pn.displayName="FieldTextarea";function K(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function yt(e,t=[]){let n=[];function o(i,s){const l=c.createContext(s),a=n.length;n=[...n,s];const u=f=>{var x;const{scope:m,children:p,...g}=f,h=((x=m==null?void 0:m[e])==null?void 0:x[a])||l,b=c.useMemo(()=>g,Object.values(g));return v.jsx(h.Provider,{value:b,children:p})};u.displayName=i+"Provider";function d(f,m){var h;const p=((h=m==null?void 0:m[e])==null?void 0:h[a])||l,g=c.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const r=()=>{const i=n.map(s=>c.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return r.scopeName=e,[o,Ir(r,...t)]}function Ir(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Mr(e){const t=zr(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(Vr);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function zr(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=Br(r),l=Wr(i,r.props);return r.type!==c.Fragment&&(l.ref=o?se(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fr=Symbol("radix.slottable");function Vr(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fr}function Wr(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Br(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Hr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rn=Hr.reduce((e,t)=>{const n=Mr(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Gr(e,t){e&&nn.flushSync(()=>e.dispatchEvent(t))}function Ke(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Ur(e,t=globalThis==null?void 0:globalThis.document){const n=Ke(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Yr="DismissableLayer",ut="dismissableLayer.update",Xr="dismissableLayer.pointerDownOutside",qr="dismissableLayer.focusOutside",Ft,An=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kn=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=c.useContext(An),[d,f]=c.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=c.useState({}),g=le(t,k=>f(k)),h=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=h.indexOf(b),E=d?h.indexOf(d):-1,P=u.layersWithOutsidePointerEventsDisabled.size>0,R=E>=x,A=Jr(k=>{const w=k.target,$=[...u.branches].some(_=>_.contains(w));!R||$||(r==null||r(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),O=Qr(k=>{const w=k.target;[...u.branches].some(_=>_.contains(w))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return Ur(k=>{E===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),c.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ft=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Vt(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ft)}},[d,m,n,u]),c.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Vt())},[d,u]),c.useEffect(()=>{const k=()=>p({});return document.addEventListener(ut,k),()=>document.removeEventListener(ut,k)},[]),v.jsx(Rn.div,{...a,ref:g,style:{pointerEvents:P?R?"auto":"none":void 0,...e.style},onFocusCapture:K(e.onFocusCapture,O.onFocusCapture),onBlurCapture:K(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:K(e.onPointerDownCapture,A.onPointerDownCapture)})});kn.displayName=Yr;var Zr="DismissableLayerBranch",Kr=c.forwardRef((e,t)=>{const n=c.useContext(An),o=c.useRef(null),r=le(t,o);return c.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(Rn.div,{...e,ref:r})});Kr.displayName=Zr;function Jr(e,t=globalThis==null?void 0:globalThis.document){const n=Ke(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const i=l=>{if(l.target&&!o.current){let a=function(){On(Xr,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=a,t.addEventListener("click",r.current,{once:!0})):a()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Qr(e,t=globalThis==null?void 0:globalThis.document){const n=Ke(e),o=c.useRef(!1);return c.useEffect(()=>{const r=i=>{i.target&&!o.current&&On(qr,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Vt(){const e=new CustomEvent(ut);document.dispatchEvent(e)}function On(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Gr(r,i):r.dispatchEvent(i)}var ce=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},ei=c[" useId ".trim().toString()]||(()=>{}),ti=0;function ni(e){const[t,n]=c.useState(ei());return ce(()=>{n(o=>o??String(ti++))},[e]),t?`radix-${t}`:""}const oi=["top","right","bottom","left"],ue=Math.min,Y=Math.max,Ye=Math.round,We=Math.floor,Q=e=>({x:e,y:e}),ri={left:"right",right:"left",bottom:"top",top:"bottom"},ii={start:"end",end:"start"};function dt(e,t,n){return Y(e,ue(t,n))}function oe(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function Re(e){return e.split("-")[1]}function xt(e){return e==="x"?"y":"x"}function wt(e){return e==="y"?"height":"width"}const si=new Set(["top","bottom"]);function J(e){return si.has(re(e))?"y":"x"}function Ct(e){return xt(J(e))}function li(e,t,n){n===void 0&&(n=!1);const o=Re(e),r=Ct(e),i=wt(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Xe(s)),[s,Xe(s)]}function ai(e){const t=Xe(e);return[ft(e),t,ft(t)]}function ft(e){return e.replace(/start|end/g,t=>ii[t])}const Wt=["left","right"],Bt=["right","left"],ci=["top","bottom"],ui=["bottom","top"];function di(e,t,n){switch(e){case"top":case"bottom":return n?t?Bt:Wt:t?Wt:Bt;case"left":case"right":return t?ci:ui;default:return[]}}function fi(e,t,n,o){const r=Re(e);let i=di(re(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(ft)))),i}function Xe(e){return e.replace(/left|right|bottom|top/g,t=>ri[t])}function pi(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tn(e){return typeof e!="number"?pi(e):{top:e,right:e,bottom:e,left:e}}function qe(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Ht(e,t,n){let{reference:o,floating:r}=e;const i=J(t),s=Ct(t),l=wt(s),a=re(t),u=i==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,m=o[l]/2-r[l]/2;let p;switch(a){case"top":p={x:d,y:o.y-r.height};break;case"bottom":p={x:d,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:f};break;case"left":p={x:o.x-r.width,y:f};break;default:p={x:o.x,y:o.y}}switch(Re(t)){case"start":p[s]-=m*(n&&u?-1:1);break;case"end":p[s]+=m*(n&&u?-1:1);break}return p}const mi=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=Ht(u,o,a),m=o,p={},g=0;for(let h=0;h<l.length;h++){const{name:b,fn:x}=l[h],{x:E,y:P,data:R,reset:A}=await x({x:d,y:f,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});d=E??d,f=P??f,p={...p,[b]:{...p[b],...R}},A&&g<=50&&(g++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(u=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):A.rects),{x:d,y:f}=Ht(u,m,a)),h=-1)}return{x:d,y:f,placement:m,strategy:r,middlewareData:p}};async function $e(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:p=0}=oe(t,e),g=Tn(p),b=l[m?f==="floating"?"reference":"floating":f],x=qe(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:a})),E=f==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),R=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},A=qe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:P,strategy:a}):E);return{top:(x.top-A.top+g.top)/R.y,bottom:(A.bottom-x.bottom+g.bottom)/R.y,left:(x.left-A.left+g.left)/R.x,right:(A.right-x.right+g.right)/R.x}}const gi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=oe(e,t)||{};if(u==null)return{};const f=Tn(d),m={x:n,y:o},p=Ct(r),g=wt(p),h=await s.getDimensions(u),b=p==="y",x=b?"top":"left",E=b?"bottom":"right",P=b?"clientHeight":"clientWidth",R=i.reference[g]+i.reference[p]-m[p]-i.floating[g],A=m[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=O?O[P]:0;(!k||!await(s.isElement==null?void 0:s.isElement(O)))&&(k=l.floating[P]||i.floating[g]);const w=R/2-A/2,$=k/2-h[g]/2-1,_=ue(f[x],$),W=ue(f[E],$),M=_,D=k-h[g]-W,L=k/2-h[g]/2+w,z=dt(M,L,D),N=!a.arrow&&Re(r)!=null&&L!==z&&i.reference[g]/2-(L<M?_:W)-h[g]/2<0,j=N?L<M?L-M:L-D:0;return{[p]:m[p]+j,data:{[p]:z,centerOffset:L-z-j,...N&&{alignmentOffset:j}},reset:N}}}),hi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...b}=oe(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=re(r),E=J(l),P=re(l)===l,R=await(a.isRTL==null?void 0:a.isRTL(u.floating)),A=m||(P||!h?[Xe(l)]:ai(l)),O=g!=="none";!m&&O&&A.push(...fi(l,h,g,R));const k=[l,...A],w=await $e(t,b),$=[];let _=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&$.push(w[x]),f){const L=li(r,s,R);$.push(w[L[0]],w[L[1]])}if(_=[..._,{placement:r,overflows:$}],!$.every(L=>L<=0)){var W,M;const L=(((W=i.flip)==null?void 0:W.index)||0)+1,z=k[L];if(z&&(!(f==="alignment"?E!==J(z):!1)||_.every(y=>J(y.placement)===E?y.overflows[0]>0:!0)))return{data:{index:L,overflows:_},reset:{placement:z}};let N=(M=_.filter(j=>j.overflows[0]<=0).sort((j,y)=>j.overflows[1]-y.overflows[1])[0])==null?void 0:M.placement;if(!N)switch(p){case"bestFit":{var D;const j=(D=_.filter(y=>{if(O){const F=J(y.placement);return F===E||F==="y"}return!0}).map(y=>[y.placement,y.overflows.filter(F=>F>0).reduce((F,U)=>F+U,0)]).sort((y,F)=>y[1]-F[1])[0])==null?void 0:D[0];j&&(N=j);break}case"initialPlacement":N=l;break}if(r!==N)return{reset:{placement:N}}}return{}}}};function Gt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ut(e){return oi.some(t=>e[t]>=0)}const vi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=oe(e,t);switch(o){case"referenceHidden":{const i=await $e(t,{...r,elementContext:"reference"}),s=Gt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ut(s)}}}case"escaped":{const i=await $e(t,{...r,altBoundary:!0}),s=Gt(i,n.floating);return{data:{escapedOffsets:s,escaped:Ut(s)}}}default:return{}}}}},Nn=new Set(["left","top"]);async function bi(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=re(n),l=Re(n),a=J(n)==="y",u=Nn.has(s)?-1:1,d=i&&a?-1:1,f=oe(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof g=="number"&&(p=l==="end"?g*-1:g),a?{x:p*d,y:m*u}:{x:m*u,y:p*d}}const yi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:l}=t,a=await bi(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:s}}}}},xi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x,y:E}=b;return{x,y:E}}},...a}=oe(e,t),u={x:n,y:o},d=await $e(t,a),f=J(re(r)),m=xt(f);let p=u[m],g=u[f];if(i){const b=m==="y"?"top":"left",x=m==="y"?"bottom":"right",E=p+d[b],P=p-d[x];p=dt(E,p,P)}if(s){const b=f==="y"?"top":"left",x=f==="y"?"bottom":"right",E=g+d[b],P=g-d[x];g=dt(E,g,P)}const h=l.fn({...t,[m]:p,[f]:g});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:i,[f]:s}}}}}},wi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=oe(e,t),d={x:n,y:o},f=J(r),m=xt(f);let p=d[m],g=d[f];const h=oe(l,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const P=m==="y"?"height":"width",R=i.reference[m]-i.floating[P]+b.mainAxis,A=i.reference[m]+i.reference[P]-b.mainAxis;p<R?p=R:p>A&&(p=A)}if(u){var x,E;const P=m==="y"?"width":"height",R=Nn.has(re(r)),A=i.reference[f]-i.floating[P]+(R&&((x=s.offset)==null?void 0:x[f])||0)+(R?0:b.crossAxis),O=i.reference[f]+i.reference[P]+(R?0:((E=s.offset)==null?void 0:E[f])||0)-(R?b.crossAxis:0);g<A?g=A:g>O&&(g=O)}return{[m]:p,[f]:g}}}},Ci=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=oe(e,t),d=await $e(t,u),f=re(r),m=Re(r),p=J(r)==="y",{width:g,height:h}=i.floating;let b,x;f==="top"||f==="bottom"?(b=f,x=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(x=f,b=m==="end"?"top":"bottom");const E=h-d.top-d.bottom,P=g-d.left-d.right,R=ue(h-d[b],E),A=ue(g-d[x],P),O=!t.middlewareData.shift;let k=R,w=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=P),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(k=E),O&&!m){const _=Y(d.left,0),W=Y(d.right,0),M=Y(d.top,0),D=Y(d.bottom,0);p?w=g-2*(_!==0||W!==0?_+W:Y(d.left,d.right)):k=h-2*(M!==0||D!==0?M+D:Y(d.top,d.bottom))}await a({...t,availableWidth:w,availableHeight:k});const $=await s.getDimensions(l.floating);return g!==$.width||h!==$.height?{reset:{rects:!0}}:{}}}};function Je(){return typeof window<"u"}function Ae(e){return $n(e)?(e.nodeName||"").toLowerCase():"#document"}function X(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function te(e){var t;return(t=($n(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $n(e){return Je()?e instanceof Node||e instanceof X(e).Node:!1}function q(e){return Je()?e instanceof Element||e instanceof X(e).Element:!1}function ee(e){return Je()?e instanceof HTMLElement||e instanceof X(e).HTMLElement:!1}function Yt(e){return!Je()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof X(e).ShadowRoot}const Si=new Set(["inline","contents"]);function De(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Si.has(r)}const Ei=new Set(["table","td","th"]);function Pi(e){return Ei.has(Ae(e))}const Ri=[":popover-open",":modal"];function Qe(e){return Ri.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ai=["transform","translate","scale","rotate","perspective"],ki=["transform","translate","scale","rotate","perspective","filter"],Oi=["paint","layout","strict","content"];function St(e){const t=Et(),n=q(e)?Z(e):e;return Ai.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ki.some(o=>(n.willChange||"").includes(o))||Oi.some(o=>(n.contain||"").includes(o))}function Ti(e){let t=de(e);for(;ee(t)&&!Ce(t);){if(St(t))return t;if(Qe(t))return null;t=de(t)}return null}function Et(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ni=new Set(["html","body","#document"]);function Ce(e){return Ni.has(Ae(e))}function Z(e){return X(e).getComputedStyle(e)}function et(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function de(e){if(Ae(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yt(e)&&e.host||te(e);return Yt(t)?t.host:t}function jn(e){const t=de(e);return Ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:ee(t)&&De(t)?t:jn(t)}function je(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=jn(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=X(r);if(i){const l=pt(s);return t.concat(s,s.visualViewport||[],De(r)?r:[],l&&n?je(l):[])}return t.concat(r,je(r,[],n))}function pt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _n(e){const t=Z(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ee(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,l=Ye(n)!==i||Ye(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function Pt(e){return q(e)?e:e.contextElement}function we(e){const t=Pt(e);if(!ee(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=_n(t);let s=(i?Ye(n.width):n.width)/o,l=(i?Ye(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const $i=Q(0);function Ln(e){const t=X(e);return!Et()||!t.visualViewport?$i:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ji(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==X(e)?!1:t}function ve(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Pt(e);let s=Q(1);t&&(o?q(o)&&(s=we(o)):s=we(e));const l=ji(i,n,o)?Ln(i):Q(0);let a=(r.left+l.x)/s.x,u=(r.top+l.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(i){const m=X(i),p=o&&q(o)?X(o):o;let g=m,h=pt(g);for(;h&&o&&p!==g;){const b=we(h),x=h.getBoundingClientRect(),E=Z(h),P=x.left+(h.clientLeft+parseFloat(E.paddingLeft))*b.x,R=x.top+(h.clientTop+parseFloat(E.paddingTop))*b.y;a*=b.x,u*=b.y,d*=b.x,f*=b.y,a+=P,u+=R,g=X(h),h=pt(g)}}return qe({width:d,height:f,x:a,y:u})}function tt(e,t){const n=et(e).scrollLeft;return t?t.left+n:ve(te(e)).left+n}function Dn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-tt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function _i(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=te(o),l=t?Qe(t.floating):!1;if(o===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Q(1);const d=Q(0),f=ee(o);if((f||!f&&!i)&&((Ae(o)!=="body"||De(s))&&(a=et(o)),ee(o))){const p=ve(o);u=we(o),d.x=p.x+o.clientLeft,d.y=p.y+o.clientTop}const m=s&&!f&&!i?Dn(s,a):Q(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-a.scrollTop*u.y+d.y+m.y}}function Li(e){return Array.from(e.getClientRects())}function Di(e){const t=te(e),n=et(e),o=e.ownerDocument.body,r=Y(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=Y(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+tt(e);const l=-n.scrollTop;return Z(o).direction==="rtl"&&(s+=Y(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}const Xt=25;function Ii(e,t){const n=X(e),o=te(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,a=0;if(r){i=r.width,s=r.height;const d=Et();(!d||d&&t==="fixed")&&(l=r.offsetLeft,a=r.offsetTop)}const u=tt(o);if(u<=0){const d=o.ownerDocument,f=d.body,m=getComputedStyle(f),p=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(o.clientWidth-f.clientWidth-p);g<=Xt&&(i-=g)}else u<=Xt&&(i+=u);return{width:i,height:s,x:l,y:a}}const Mi=new Set(["absolute","fixed"]);function zi(e,t){const n=ve(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=ee(e)?we(e):Q(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=r*i.x,u=o*i.y;return{width:s,height:l,x:a,y:u}}function qt(e,t,n){let o;if(t==="viewport")o=Ii(e,n);else if(t==="document")o=Di(te(e));else if(q(t))o=zi(t,n);else{const r=Ln(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return qe(o)}function In(e,t){const n=de(e);return n===t||!q(n)||Ce(n)?!1:Z(n).position==="fixed"||In(n,t)}function Fi(e,t){const n=t.get(e);if(n)return n;let o=je(e,[],!1).filter(l=>q(l)&&Ae(l)!=="body"),r=null;const i=Z(e).position==="fixed";let s=i?de(e):e;for(;q(s)&&!Ce(s);){const l=Z(s),a=St(s);!a&&l.position==="fixed"&&(r=null),(i?!a&&!r:!a&&l.position==="static"&&!!r&&Mi.has(r.position)||De(s)&&!a&&In(e,s))?o=o.filter(d=>d!==s):r=l,s=de(s)}return t.set(e,o),o}function Vi(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Qe(t)?[]:Fi(t,this._c):[].concat(n),o],l=s[0],a=s.reduce((u,d)=>{const f=qt(t,d,r);return u.top=Y(f.top,u.top),u.right=ue(f.right,u.right),u.bottom=ue(f.bottom,u.bottom),u.left=Y(f.left,u.left),u},qt(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Wi(e){const{width:t,height:n}=_n(e);return{width:t,height:n}}function Bi(e,t,n){const o=ee(t),r=te(t),i=n==="fixed",s=ve(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Q(0);function u(){a.x=tt(r)}if(o||!o&&!i)if((Ae(t)!=="body"||De(r))&&(l=et(t)),o){const p=ve(t,!0,i,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}else r&&u();i&&!o&&r&&u();const d=r&&!o&&!i?Dn(r,l):Q(0),f=s.left+l.scrollLeft-a.x-d.x,m=s.top+l.scrollTop-a.y-d.y;return{x:f,y:m,width:s.width,height:s.height}}function lt(e){return Z(e).position==="static"}function Zt(e,t){if(!ee(e)||Z(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return te(e)===n&&(n=n.ownerDocument.body),n}function Mn(e,t){const n=X(e);if(Qe(e))return n;if(!ee(e)){let r=de(e);for(;r&&!Ce(r);){if(q(r)&&!lt(r))return r;r=de(r)}return n}let o=Zt(e,t);for(;o&&Pi(o)&<(o);)o=Zt(o,t);return o&&Ce(o)&<(o)&&!St(o)?n:o||Ti(e)||n}const Hi=async function(e){const t=this.getOffsetParent||Mn,n=this.getDimensions,o=await n(e.floating);return{reference:Bi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Gi(e){return Z(e).direction==="rtl"}const Ui={convertOffsetParentRelativeRectToViewportRelativeRect:_i,getDocumentElement:te,getClippingRect:Vi,getOffsetParent:Mn,getElementRects:Hi,getClientRects:Li,getDimensions:Wi,getScale:we,isElement:q,isRTL:Gi};function zn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Yi(e,t){let n=null,o;const r=te(e);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:m,height:p}=u;if(l||t(),!m||!p)return;const g=We(f),h=We(r.clientWidth-(d+m)),b=We(r.clientHeight-(f+p)),x=We(d),P={rootMargin:-g+"px "+-h+"px "+-b+"px "+-x+"px",threshold:Y(0,ue(1,a))||1};let R=!0;function A(O){const k=O[0].intersectionRatio;if(k!==a){if(!R)return s();k?s(!1,k):o=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!zn(u,e.getBoundingClientRect())&&s(),R=!1}try{n=new IntersectionObserver(A,{...P,root:r.ownerDocument})}catch{n=new IntersectionObserver(A,P)}n.observe(e)}return s(!0),i}function Xi(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,u=Pt(e),d=r||i?[...u?je(u):[],...je(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const f=u&&l?Yi(u,n):null;let m=-1,p=null;s&&(p=new ResizeObserver(x=>{let[E]=x;E&&E.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var P;(P=p)==null||P.observe(t)})),n()}),u&&!a&&p.observe(u),p.observe(t));let g,h=a?ve(e):null;a&&b();function b(){const x=ve(e);h&&!zn(h,x)&&n(),h=x,g=requestAnimationFrame(b)}return n(),()=>{var x;d.forEach(E=>{r&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),f==null||f(),(x=p)==null||x.disconnect(),p=null,a&&cancelAnimationFrame(g)}}const qi=yi,Zi=xi,Ki=hi,Ji=Ci,Qi=vi,Kt=gi,es=wi,ts=(e,t,n)=>{const o=new Map,r={platform:Ui,...n},i={...r.platform,_c:o};return mi(e,t,{...r,platform:i})};var ns=typeof document<"u",os=function(){},He=ns?ie.useLayoutEffect:os;function Ze(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Ze(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!Ze(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Fn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jt(e,t){const n=Fn(e);return Math.round(t*n)/n}function at(e){const t=c.useRef(e);return He(()=>{t.current=e}),t}function rs(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=c.useState(o);Ze(m,o)||p(o);const[g,h]=c.useState(null),[b,x]=c.useState(null),E=c.useCallback(y=>{y!==O.current&&(O.current=y,h(y))},[]),P=c.useCallback(y=>{y!==k.current&&(k.current=y,x(y))},[]),R=i||g,A=s||b,O=c.useRef(null),k=c.useRef(null),w=c.useRef(d),$=a!=null,_=at(a),W=at(r),M=at(u),D=c.useCallback(()=>{if(!O.current||!k.current)return;const y={placement:t,strategy:n,middleware:m};W.current&&(y.platform=W.current),ts(O.current,k.current,y).then(F=>{const U={...F,isPositioned:M.current!==!1};L.current&&!Ze(w.current,U)&&(w.current=U,nn.flushSync(()=>{f(U)}))})},[m,t,n,W,M]);He(()=>{u===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,f(y=>({...y,isPositioned:!1})))},[u]);const L=c.useRef(!1);He(()=>(L.current=!0,()=>{L.current=!1}),[]),He(()=>{if(R&&(O.current=R),A&&(k.current=A),R&&A){if(_.current)return _.current(R,A,D);D()}},[R,A,D,_,$]);const z=c.useMemo(()=>({reference:O,floating:k,setReference:E,setFloating:P}),[E,P]),N=c.useMemo(()=>({reference:R,floating:A}),[R,A]),j=c.useMemo(()=>{const y={position:n,left:0,top:0};if(!N.floating)return y;const F=Jt(N.floating,d.x),U=Jt(N.floating,d.y);return l?{...y,transform:"translate("+F+"px, "+U+"px)",...Fn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:U}},[n,l,N.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:D,refs:z,elements:N,floatingStyles:j}),[d,D,z,N,j])}const is=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Kt({element:o.current,padding:r}).fn(n):{}:o?Kt({element:o,padding:r}).fn(n):{}}}},ss=(e,t)=>({...qi(e),options:[e,t]}),ls=(e,t)=>({...Zi(e),options:[e,t]}),as=(e,t)=>({...es(e),options:[e,t]}),cs=(e,t)=>({...Ki(e),options:[e,t]}),us=(e,t)=>({...Ji(e),options:[e,t]}),ds=(e,t)=>({...Qi(e),options:[e,t]}),fs=(e,t)=>({...is(e),options:[e,t]});function ps(e){const t=ms(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(hs);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function ms(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=bs(r),l=vs(i,r.props);return r.type!==c.Fragment&&(l.ref=o?se(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gs=Symbol("radix.slottable");function hs(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gs}function vs(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function bs(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ys=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xs=ys.reduce((e,t)=>{const n=ps(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),ws="Arrow",Vn=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return v.jsx(xs.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vn.displayName=ws;var Cs=Vn;function Ss(e){const t=Es(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(Rs);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Es(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=ks(r),l=As(i,r.props);return r.type!==c.Fragment&&(l.ref=o?se(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ps=Symbol("radix.slottable");function Rs(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ps}function As(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function ks(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Os=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wn=Os.reduce((e,t)=>{const n=Ss(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Bn(e){const[t,n]=c.useState(void 0);return ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Rt="Popper",[Hn,Gn]=yt(Rt),[Ts,Un]=Hn(Rt),Yn=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return v.jsx(Ts,{scope:t,anchor:o,onAnchorChange:r,children:n})};Yn.displayName=Rt;var Xn="PopperAnchor",qn=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Un(Xn,n),s=c.useRef(null),l=le(t,s),a=c.useRef(null);return c.useEffect(()=>{const u=a.current;a.current=(o==null?void 0:o.current)||s.current,u!==a.current&&i.onAnchorChange(a.current)}),o?null:v.jsx(Wn.div,{...r,ref:l})});qn.displayName=Xn;var At="PopperContent",[Ns,$s]=Hn(At),Zn=c.forwardRef((e,t)=>{var I,Oe,pe,me,ye,ge;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:g,...h}=e,b=Un(At,n),[x,E]=c.useState(null),P=le(t,Te=>E(Te)),[R,A]=c.useState(null),O=Bn(R),k=(O==null?void 0:O.width)??0,w=(O==null?void 0:O.height)??0,$=o+(i!=="center"?"-"+i:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},W=Array.isArray(u)?u:[u],M=W.length>0,D={padding:_,boundary:W.filter(_s),altBoundary:M},{refs:L,floatingStyles:z,placement:N,isPositioned:j,middlewareData:y}=rs({strategy:"fixed",placement:$,whileElementsMounted:(...Te)=>Xi(...Te,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[ss({mainAxis:r+w,alignmentAxis:s}),a&&ls({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?as():void 0,...D}),a&&cs({...D}),us({...D,apply:({elements:Te,rects:Nt,availableWidth:Co,availableHeight:So})=>{const{width:Eo,height:Po}=Nt.reference,ze=Te.floating.style;ze.setProperty("--radix-popper-available-width",`${Co}px`),ze.setProperty("--radix-popper-available-height",`${So}px`),ze.setProperty("--radix-popper-anchor-width",`${Eo}px`),ze.setProperty("--radix-popper-anchor-height",`${Po}px`)}}),R&&fs({element:R,padding:l}),Ls({arrowWidth:k,arrowHeight:w}),m&&ds({strategy:"referenceHidden",...D})]}),[F,U]=Qn(N),fe=Ke(g);ce(()=>{j&&(fe==null||fe())},[j,fe]);const ke=(I=y.arrow)==null?void 0:I.x,H=(Oe=y.arrow)==null?void 0:Oe.y,G=((pe=y.arrow)==null?void 0:pe.centerOffset)!==0,[be,Me]=c.useState();return ce(()=>{x&&Me(window.getComputedStyle(x).zIndex)},[x]),v.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:j?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:be,"--radix-popper-transform-origin":[(me=y.transformOrigin)==null?void 0:me.x,(ye=y.transformOrigin)==null?void 0:ye.y].join(" "),...((ge=y.hide)==null?void 0:ge.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(Ns,{scope:n,placedSide:F,onArrowChange:A,arrowX:ke,arrowY:H,shouldHideArrow:G,children:v.jsx(Wn.div,{"data-side":F,"data-align":U,...h,ref:P,style:{...h.style,animation:j?void 0:"none"}})})})});Zn.displayName=At;var Kn="PopperArrow",js={top:"bottom",right:"left",bottom:"top",left:"right"},Jn=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=$s(Kn,o),s=js[i.placedSide];return v.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:v.jsx(Cs,{...r,ref:n,style:{...r.style,display:"block"}})})});Jn.displayName=Kn;function _s(e){return e!==null}var Ls=e=>({name:"transformOrigin",options:e,fn(t){var b,x,E;const{placement:n,rects:o,middlewareData:r}=t,s=((b=r.arrow)==null?void 0:b.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,d]=Qn(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((x=r.arrow)==null?void 0:x.x)??0)+l/2,p=(((E=r.arrow)==null?void 0:E.y)??0)+a/2;let g="",h="";return u==="bottom"?(g=s?f:`${m}px`,h=`${-a}px`):u==="top"?(g=s?f:`${m}px`,h=`${o.floating.height+a}px`):u==="right"?(g=`${-a}px`,h=s?f:`${p}px`):u==="left"&&(g=`${o.floating.width+a}px`,h=s?f:`${p}px`),{data:{x:g,y:h}}}});function Qn(e){const[t,n="center"]=e.split("-");return[t,n]}var Ds=Yn,Is=qn,Ms=Zn,zs=Jn;function Fs(e){const t=Vs(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(Bs);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Vs(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=Gs(r),l=Hs(i,r.props);return r.type!==c.Fragment&&(l.ref=o?se(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ws=Symbol("radix.slottable");function Bs(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ws}function Hs(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Gs(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Us=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ys=Us.reduce((e,t)=>{const n=Fs(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),Xs="Portal",eo=c.forwardRef((e,t)=>{var l;const{container:n,...o}=e,[r,i]=c.useState(!1);ce(()=>i(!0),[]);const s=n||r&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?en.createPortal(v.jsx(Ys.div,{...o,ref:t}),s):null});eo.displayName=Xs;function qs(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var kt=e=>{const{present:t,children:n}=e,o=Zs(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),i=le(o.ref,Ks(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:i}):null};kt.displayName="Presence";function Zs(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),i=c.useRef("none"),s=e?"mounted":"unmounted",[l,a]=qs(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Be(o.current);i.current=l==="mounted"?u:"none"},[l]),ce(()=>{const u=o.current,d=r.current;if(d!==e){const m=i.current,p=Be(u);e?a("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&m!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,a]),ce(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=p=>{const h=Be(o.current).includes(CSS.escape(p.animationName));if(p.target===t&&h&&(a("ANIMATION_END"),!r.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=p=>{p.target===t&&(i.current=Be(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function Be(e){return(e==null?void 0:e.animationName)||"none"}function Ks(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Js(e){const t=Qs(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(tl);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Qs(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=ol(r),l=nl(i,r.props);return r.type!==c.Fragment&&(l.ref=o?se(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var to=Symbol("radix.slottable");function el(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=to,t}function tl(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===to}function nl(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function ol(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],il=rl.reduce((e,t)=>{const n=Js(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),sl=c[" useInsertionEffect ".trim().toString()]||ce;function no({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,s]=ll({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:r;{const d=c.useRef(e!==void 0);c.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,o])}const u=c.useCallback(d=>{var f;if(l){const m=al(d)?d(e):d;m!==e&&((f=s.current)==null||f.call(s,m))}else i(d)},[l,e,i,s]);return[a,u]}function ll({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),i=c.useRef(t);return sl(()=>{i.current=t},[t]),c.useEffect(()=>{var s;r.current!==n&&((s=i.current)==null||s.call(i,n),r.current=n)},[n,r]),[n,o,i]}function al(e){return typeof e=="function"}function cl(e){const t=ul(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(fl);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function ul(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=ml(r),l=pl(i,r.props);return r.type!==c.Fragment&&(l.ref=o?se(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dl=Symbol("radix.slottable");function fl(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dl}function pl(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function ml(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var gl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hl=gl.reduce((e,t)=>{const n=cl(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),vl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),bl="VisuallyHidden",oo=c.forwardRef((e,t)=>v.jsx(hl.span,{...e,ref:t,style:{...vl,...e.style}}));oo.displayName=bl;var yl=oo,[nt]=yt("Tooltip",[Gn]),ot=Gn(),ro="TooltipProvider",xl=700,mt="tooltip.open",[wl,Ot]=nt(ro),io=e=>{const{__scopeTooltip:t,delayDuration:n=xl,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,s=c.useRef(!0),l=c.useRef(!1),a=c.useRef(0);return c.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),v.jsx(wl,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:c.useCallback(u=>{l.current=u},[]),disableHoverableContent:r,children:i})};io.displayName=ro;var _e="Tooltip",[Cl,Ie]=nt(_e),so=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,a=Ot(_e,e.__scopeTooltip),u=ot(t),[d,f]=c.useState(null),m=ni(),p=c.useRef(0),g=s??a.disableHoverableContent,h=l??a.delayDuration,b=c.useRef(!1),[x,E]=no({prop:o,defaultProp:r??!1,onChange:k=>{k?(a.onOpen(),document.dispatchEvent(new CustomEvent(mt))):a.onClose(),i==null||i(k)},caller:_e}),P=c.useMemo(()=>x?b.current?"delayed-open":"instant-open":"closed",[x]),R=c.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b.current=!1,E(!0)},[E]),A=c.useCallback(()=>{window.clearTimeout(p.current),p.current=0,E(!1)},[E]),O=c.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,E(!0),p.current=0},h)},[h,E]);return c.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),v.jsx(Ds,{...u,children:v.jsx(Cl,{scope:t,contentId:m,open:x,stateAttribute:P,trigger:d,onTriggerChange:f,onTriggerEnter:c.useCallback(()=>{a.isOpenDelayedRef.current?O():R()},[a.isOpenDelayedRef,O,R]),onTriggerLeave:c.useCallback(()=>{g?A():(window.clearTimeout(p.current),p.current=0)},[A,g]),onOpen:R,onClose:A,disableHoverableContent:g,children:n})})};so.displayName=_e;var gt="TooltipTrigger",lo=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ie(gt,n),i=Ot(gt,n),s=ot(n),l=c.useRef(null),a=le(t,l,r.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),f=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),v.jsx(Is,{asChild:!0,...s,children:v.jsx(il.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:a,onPointerMove:K(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:K(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:K(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:K(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:K(e.onBlur,r.onClose),onClick:K(e.onClick,r.onClose)})})});lo.displayName=gt;var Tt="TooltipPortal",[Sl,El]=nt(Tt,{forceMount:void 0}),ao=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=Ie(Tt,t);return v.jsx(Sl,{scope:t,forceMount:n,children:v.jsx(kt,{present:n||i.open,children:v.jsx(eo,{asChild:!0,container:r,children:o})})})};ao.displayName=Tt;var Se="TooltipContent",co=c.forwardRef((e,t)=>{const n=El(Se,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=Ie(Se,e.__scopeTooltip);return v.jsx(kt,{present:o||s.open,children:s.disableHoverableContent?v.jsx(uo,{side:r,...i,ref:t}):v.jsx(Pl,{side:r,...i,ref:t})})}),Pl=c.forwardRef((e,t)=>{const n=Ie(Se,e.__scopeTooltip),o=Ot(Se,e.__scopeTooltip),r=c.useRef(null),i=le(t,r),[s,l]=c.useState(null),{trigger:a,onClose:u}=n,d=r.current,{onPointerInTransitChange:f}=o,m=c.useCallback(()=>{l(null),f(!1)},[f]),p=c.useCallback((g,h)=>{const b=g.currentTarget,x={x:g.clientX,y:g.clientY},E=Ol(x,b.getBoundingClientRect()),P=Tl(x,E),R=Nl(h.getBoundingClientRect()),A=jl([...P,...R]);l(A),f(!0)},[f]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(a&&d){const g=b=>p(b,d),h=b=>p(b,a);return a.addEventListener("pointerleave",g),d.addEventListener("pointerleave",h),()=>{a.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",h)}}},[a,d,p,m]),c.useEffect(()=>{if(s){const g=h=>{const b=h.target,x={x:h.clientX,y:h.clientY},E=(a==null?void 0:a.contains(b))||(d==null?void 0:d.contains(b)),P=!$l(x,s);E?m():P&&(m(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[a,d,s,u,m]),v.jsx(uo,{...e,ref:i})}),[Rl,Al]=nt(_e,{isInside:!1}),kl=el("TooltipContent"),uo=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=Ie(Se,n),u=ot(n),{onClose:d}=a;return c.useEffect(()=>(document.addEventListener(mt,d),()=>document.removeEventListener(mt,d)),[d]),c.useEffect(()=>{if(a.trigger){const f=m=>{const p=m.target;p!=null&&p.contains(a.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,d]),v.jsx(kn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:v.jsxs(Ms,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(kl,{children:o}),v.jsx(Rl,{scope:n,isInside:!0,children:v.jsx(yl,{id:a.contentId,role:"tooltip",children:r||o})})]})})});co.displayName=Se;var fo="TooltipArrow",po=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=ot(n);return Al(fo,n).isInside?null:v.jsx(zs,{...r,...o,ref:t})});po.displayName=fo;function Ol(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Tl(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Nl(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function $l(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],a=t[s],u=l.x,d=l.y,f=a.x,m=a.y;d>o!=m>o&&n<(f-u)*(o-d)/(m-d)+u&&(r=!r)}return r}function jl(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),_l(t)}function _l(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Ll=io,Dl=so,Il=lo,Ml=ao,zl=co,Fl=po;const mo=({...e})=>v.jsx(Ll,{"data-slot":"tooltip-provider",...e}),Vl=({...e})=>v.jsx(mo,{children:v.jsx(Dl,{"data-slot":"tooltip",...e})}),Wl=({...e})=>v.jsx(Il,{"data-slot":"tooltip-trigger",...e}),Bl=({className:e,sideOffset:t=4,hideArrow:n=!0,children:o,...r})=>v.jsx(Ml,{children:v.jsxs(zl,{"data-slot":"tooltip-content",sideOffset:t,className:B("volt-ui-bg-gray-12 volt-ui-text-gray-1 volt-ui-animate-in volt-ui-fade-in-0 volt-ui-zoom-in-95 volt-ui-data-[state=closed]:animate-out volt-ui-data-[state=closed]:fade-out-0 volt-ui-data-[state=closed]:zoom-out-95 volt-ui-data-[side=bottom]:slide-in-from-top-2 volt-ui-data-[side=left]:slide-in-from-right-2 volt-ui-data-[side=right]:slide-in-from-left-2 volt-ui-data-[side=top]:slide-in-from-bottom-2 volt-ui-z-50 volt-ui-w-fit volt-ui-origin-(--radix-tooltip-content-transform-origin) volt-ui-rounded-lg volt-ui-p-2 volt-ui-text-xs volt-ui-text-balance",e),...r,children:[o,!n&&v.jsx(Fl,{className:"volt-ui-bg-gray-12 volt-ui-fill-gray-12 volt-ui-z-50 volt-ui-size-3 volt-ui-translate-y-[calc(-50%-2px)] volt-ui-rotate-45 volt-ui-rounded-[2px]"})]})});function Hl(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Gl(e){const t=Ul(e),n=c.forwardRef((o,r)=>{const{children:i,...s}=o,l=c.Children.toArray(i),a=l.find(Xl);if(a){const u=a.props.children,d=l.map(f=>f===a?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Ul(e){const t=c.forwardRef((n,o)=>{const{children:r,...i}=n;if(c.isValidElement(r)){const s=Zl(r),l=ql(i,r.props);return r.type!==c.Fragment&&(l.ref=o?se(o,s):s),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yl=Symbol("radix.slottable");function Xl(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yl}function ql(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{const a=i(...l);return r(...l),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Zl(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Kl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],go=Kl.reduce((e,t)=>{const n=Gl(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),rt="Switch",[Jl]=yt(rt),[Ql,ea]=Jl(rt),ho=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:o,checked:r,defaultChecked:i,required:s,disabled:l,value:a="on",onCheckedChange:u,form:d,...f}=e,[m,p]=c.useState(null),g=le(t,P=>p(P)),h=c.useRef(!1),b=m?d||!!m.closest("form"):!0,[x,E]=no({prop:r,defaultProp:i??!1,onChange:u,caller:rt});return v.jsxs(Ql,{scope:n,checked:x,disabled:l,children:[v.jsx(go.button,{type:"button",role:"switch","aria-checked":x,"aria-required":s,"data-state":xo(x),"data-disabled":l?"":void 0,disabled:l,value:a,...f,ref:g,onClick:K(e.onClick,P=>{E(R=>!R),b&&(h.current=P.isPropagationStopped(),h.current||P.stopPropagation())})}),b&&v.jsx(yo,{control:m,bubbles:!h.current,name:o,value:a,checked:x,required:s,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});ho.displayName=rt;var vo="SwitchThumb",bo=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...o}=e,r=ea(vo,n);return v.jsx(go.span,{"data-state":xo(r.checked),"data-disabled":r.disabled?"":void 0,...o,ref:t})});bo.displayName=vo;var ta="SwitchBubbleInput",yo=c.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:o=!0,...r},i)=>{const s=c.useRef(null),l=le(s,i),a=Hl(n),u=Bn(t);return c.useEffect(()=>{const d=s.current;if(!d)return;const f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(a!==n&&p){const g=new Event("click",{bubbles:o});p.call(d,n),d.dispatchEvent(g)}},[a,n,o]),v.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:l,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});yo.displayName=ta;function xo(e){return e?"checked":"unchecked"}var na=ho,oa=bo;const ra=Le("volt-ui-peer volt-ui-cursor-pointer volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-inline-flex volt-ui-shrink-0 volt-ui-items-center volt-ui-rounded-full volt-ui-border volt-ui-border-transparent volt-ui-shadow-xs volt-ui-transition-all volt-ui-disabled:pointer-events-none volt-ui-disabled:opacity-50",{variants:{variant:{primary:"volt-ui-data-[state=checked]:bg-accent-solid volt-ui-data-[state=unchecked]:bg-gray-a4 volt-ui-focus-visible:outline-accent-a8",destructive:"volt-ui-data-[state=checked]:bg-error-solid volt-ui-data-[state=unchecked]:bg-error-a4 volt-ui-focus-visible:outline-error-a8"},size:{sm:"volt-ui-h-[16px] volt-ui-w-[27px]",base:"volt-ui-h-[19px] volt-ui-w-[33px]",large:"volt-ui-h-[24px] volt-ui-w-[41px]"}},defaultVariants:{variant:"primary",size:"base"}}),ia=Le("volt-ui-pointer-events-none volt-ui-block volt-ui-rounded-full volt-ui-ring-0 volt-ui-transition-transform volt-ui-data-[state=checked]:translate-x-[calc(100%-2px)] volt-ui-data-[state=unchecked]:translate-x-px",{variants:{variant:{primary:"volt-ui-bg-gray-contrast volt-ui-border volt-ui-border-gray-a7 volt-ui-data-[state=checked]:border-accent-a11",destructive:"volt-ui-bg-error-contrast volt-ui-border volt-ui-border-error-a7 volt-ui-data-[state=checked]:border-error-a11"},size:{sm:"volt-ui-w-[13px] volt-ui-h-[13px]",base:"volt-ui-w-4 volt-ui-h-4",large:"volt-ui-w-[20px] volt-ui-h-[20px]"}},defaultVariants:{variant:"primary",size:"base"}});function sa({variant:e,size:t,className:n,...o}){return v.jsx(na,{"data-slot":"switch",className:B(ra({variant:e,size:t,className:n})),...o,children:v.jsx(oa,{"data-slot":"switch-thumb",className:B(ia({variant:e,size:t}))})})}var la=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],aa=la.reduce((e,t)=>{const n=vt(`Primitive.${t}`),o=c.forwardRef((r,i)=>{const{asChild:s,...l}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...l,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),ca="Separator",Qt="horizontal",ua=["horizontal","vertical"],wo=c.forwardRef((e,t)=>{const{decorative:n,orientation:o=Qt,...r}=e,i=da(o)?o:Qt,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return v.jsx(aa.div,{"data-orientation":i,...l,...r,ref:t})});wo.displayName=ca;function da(e){return ua.includes(e)}var fa=wo;const pa=({className:e,orientation:t="horizontal",decorative:n=!0,...o})=>v.jsx(fa,{"data-slot":"separator",decorative:n,orientation:t,className:B("volt-ui-bg-gray-a5 volt-ui-shrink-0 volt-ui-data-[orientation=horizontal]:h-px volt-ui-data-[orientation=horizontal]:w-full volt-ui-data-[orientation=vertical]:h-full volt-ui-data-[orientation=vertical]:w-px",e),...o});exports.Button=yn;exports.Field=Tr;exports.FieldContent=Nr;exports.FieldDescription=jr;exports.FieldError=_r;exports.FieldGroup=kr;exports.FieldGroupAddon=Dr;exports.FieldInput=Sn;exports.FieldInputGroup=En;exports.FieldLabel=$r;exports.FieldSet=Or;exports.FieldTextarea=Pn;exports.Label=wn;exports.Separator=pa;exports.Switch=sa;exports.Tooltip=Vl;exports.TooltipContent=Bl;exports.TooltipProvider=mo;exports.TooltipTrigger=Wl;exports.cn=B;exports.useFieldContext=bt;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import "@/styles/index.css";
|
|
2
2
|
export { cn } from "./lib/utils";
|
|
3
|
-
export { clsx } from "clsx";
|
|
4
3
|
export { Button } from "./components/button/button";
|
|
5
|
-
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, useFieldContext } from "./components/field/field";
|
|
4
|
+
export { Field, FieldSet, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, useFieldContext, } from "./components/field/field";
|
|
6
5
|
export { FieldInput, FieldInputGroup } from "./components/field/field-input";
|
|
7
6
|
export { FieldGroupAddon } from "./components/field/field-addon";
|
|
8
7
|
export { FieldTextarea } from "./components/field/field-textarea";
|
|
9
8
|
export { Label } from "./components/label/label";
|
|
10
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "./components/tooltip/tooltip";
|
|
9
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, } from "./components/tooltip/tooltip";
|
|
11
10
|
export { Switch } from "./components/switch/switch";
|
|
12
11
|
export { Separator } from "./components/separator/seperator";
|