@nicorp/nui 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,14 +1,14 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const se=require("react"),fo=require("react-dom");function po(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=po(se),ft=po(fo);function mo(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=mo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ho(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=mo(e))&&(r&&(r+=" "),r+=t);return r}const Lc=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Fc=(e,t)=>({classGroupId:e,validator:t}),go=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),kt="-",Sr=[],Vc="arbitrary..",Wc=e=>{const t=Hc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Bc(a);const c=a.split(kt),l=c[0]===""&&c.length>1?1:0;return vo(c,l,t)},getConflictingClassGroupIds:(a,c)=>{if(c){const l=r[a],u=n[a];return l?u?Lc(u,l):l:u||Sr}return n[a]||Sr}}},vo=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=vo(e,t+1,s);if(u)return u}const a=n.validators;if(a===null)return;const c=t===0?e.join(kt):e.slice(t).join(kt),l=a.length;for(let u=0;u<l;u++){const f=a[u];if(f.validator(c))return f.classGroupId}},Bc=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Vc+r:void 0})(),Hc=e=>{const{theme:t,classGroups:n}=e;return zc(n,t)},zc=(e,t)=>{const n=go();for(const r in e){const o=e[r];Fn(o,n,r,t)}return n},Fn=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const a=e[s];Uc(a,t,n,r)}},Uc=(e,t,n,r)=>{if(typeof e=="string"){Gc(e,t,n);return}if(typeof e=="function"){Kc(e,t,n,r);return}Yc(e,t,n,r)},Gc=(e,t,n)=>{const r=e===""?t:yo(t,e);r.classGroupId=n},Kc=(e,t,n,r)=>{if(Xc(e)){Fn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Fc(n,e))},Yc=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let a=0;a<s;a++){const[c,l]=o[a];Fn(l,yo(t,c),n,r)}},yo=(e,t)=>{let n=e;const r=t.split(kt),o=r.length;for(let s=0;s<o;s++){const a=r[s];let c=n.nextPart.get(a);c||(c=go(),n.nextPart.set(a,c)),n=c}return n},Xc=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,qc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,a)=>{n[s]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let a=n[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return o(s,a),a},set(s,a){s in n?n[s]=a:o(s,a)}}},Pn="!",Cr=":",Zc=[],Er=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Jc=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,c=0,l=0,u;const f=o.length;for(let m=0;m<f;m++){const y=o[m];if(a===0&&c===0){if(y===Cr){s.push(o.slice(l,m)),l=m+1;continue}if(y==="/"){u=m;continue}}y==="["?a++:y==="]"?a--:y==="("?c++:y===")"&&c--}const d=s.length===0?o:o.slice(l);let h=d,g=!1;d.endsWith(Pn)?(h=d.slice(0,-1),g=!0):d.startsWith(Pn)&&(h=d.slice(1),g=!0);const v=u&&u>l?u-l:void 0;return Er(s,g,h,v)};if(t){const o=t+Cr,s=r;r=a=>a.startsWith(o)?s(a.slice(o.length)):Er(Zc,!1,a,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Qc=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const a=n[s],c=a[0]==="[",l=t.has(a);c||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},el=e=>({cache:qc(e.cacheSize),parseClassName:Jc(e),sortModifiers:Qc(e),...Wc(e)}),tl=/\s+/,nl=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],c=e.trim().split(tl);let l="";for(let u=c.length-1;u>=0;u-=1){const f=c[u],{isExternal:d,modifiers:h,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:m}=n(f);if(d){l=f+(l.length>0?" "+l:l);continue}let y=!!m,x=r(y?v.substring(0,m):v);if(!x){if(!y){l=f+(l.length>0?" "+l:l);continue}if(x=r(v),!x){l=f+(l.length>0?" "+l:l);continue}y=!1}const b=h.length===0?"":h.length===1?h[0]:s(h).join(":"),w=g?b+Pn:b,C=w+x;if(a.indexOf(C)>-1)continue;a.push(C);const _=o(x,y);for(let O=0;O<_.length;++O){const N=_[O];a.push(w+N)}l=f+(l.length>0?" "+l:l)}return l},rl=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=xo(n))&&(o&&(o+=" "),o+=r);return o},xo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=xo(e[r]))&&(n&&(n+=" "),n+=t);return n},ol=(e,...t)=>{let n,r,o,s;const a=l=>{const u=t.reduce((f,d)=>d(f),e());return n=el(u),r=n.cache.get,o=n.cache.set,s=c,c(l)},c=l=>{const u=r(l);if(u)return u;const f=nl(l,n);return o(l,f),f};return s=a,(...l)=>s(rl(...l))},sl=[],re=e=>{const t=n=>n[e]||sl;return t.isThemeGetter=!0,t},bo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,il=/^\d+\/\d+$/,al=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cl=/\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$/,ll=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ul=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=e=>il.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),Ne=e=>!!e&&Number.isInteger(Number(e)),fn=e=>e.endsWith("%")&&G(e.slice(0,-1)),Ee=e=>al.test(e),fl=()=>!0,pl=e=>cl.test(e)&&!ll.test(e),So=()=>!1,ml=e=>ul.test(e),hl=e=>dl.test(e),gl=e=>!I(e)&&!T(e),vl=e=>Ze(e,Ro,So),I=e=>bo.test(e),Le=e=>Ze(e,Po,pl),pn=e=>Ze(e,Sl,G),Rr=e=>Ze(e,Co,So),yl=e=>Ze(e,Eo,hl),wt=e=>Ze(e,_o,ml),T=e=>wo.test(e),rt=e=>Je(e,Po),xl=e=>Je(e,Cl),Pr=e=>Je(e,Co),bl=e=>Je(e,Ro),wl=e=>Je(e,Eo),St=e=>Je(e,_o,!0),Ze=(e,t,n)=>{const r=bo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Je=(e,t,n=!1)=>{const r=wo.exec(e);return r?r[1]?t(r[1]):n:!1},Co=e=>e==="position"||e==="percentage",Eo=e=>e==="image"||e==="url",Ro=e=>e==="length"||e==="size"||e==="bg-size",Po=e=>e==="length",Sl=e=>e==="number",Cl=e=>e==="family-name",_o=e=>e==="shadow",El=()=>{const e=re("color"),t=re("font"),n=re("text"),r=re("font-weight"),o=re("tracking"),s=re("leading"),a=re("breakpoint"),c=re("container"),l=re("spacing"),u=re("radius"),f=re("shadow"),d=re("inset-shadow"),h=re("text-shadow"),g=re("drop-shadow"),v=re("blur"),m=re("perspective"),y=re("aspect"),x=re("ease"),b=re("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...C(),T,I],O=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],P=()=>[T,I,l],j=()=>[ze,"full","auto",...P()],F=()=>[Ne,"none","subgrid",T,I],z=()=>["auto",{span:["full",Ne,T,I]},Ne,T,I],V=()=>[Ne,"auto",T,I],U=()=>["auto","min","max","fr",T,I],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...P()],W=()=>[ze,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],E=()=>[e,T,I],A=()=>[...C(),Pr,Rr,{position:[T,I]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",bl,vl,{size:[T,I]}],D=()=>[fn,rt,Le],$=()=>["","none","full",u,T,I],L=()=>["",G,rt,Le],ne=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[G,fn,Pr,Rr],Y=()=>["","none",v,T,I],ee=()=>["none",G,T,I],X=()=>["none",G,T,I],Z=()=>[G,T,I],Q=()=>[ze,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[fl],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[gl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",G],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ze,I,T,y]}],container:["container"],columns:[{columns:[G,I,T,c]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:_()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{start:j()}],end:[{end:j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[Ne,"auto",T,I]}],basis:[{basis:[ze,"full","auto",c,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,ze,"auto","initial","none",I]}],grow:[{grow:["",G,T,I]}],shrink:[{shrink:["",G,T,I]}],order:[{order:[Ne,"first","last","none",T,I]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[c,"screen",...W()]}],"min-w":[{"min-w":[c,"screen","none",...W()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[a]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",n,rt,Le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,T,pn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fn,I]}],"font-family":[{font:[xl,I,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:[o,T,I]}],"line-clamp":[{"line-clamp":[G,"none",T,pn]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",T,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",T,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",T,Le]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[G,"auto",T,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",T,I]}],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",T,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ne,T,I],radial:["",T,I],conic:[Ne,T,I]},wl,yl]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,T,I]}],"outline-w":[{outline:["",G,rt,Le]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",f,St,wt]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",d,St,wt]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[G,Le]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",h,St,wt]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[G,T,I]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"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":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[T,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",T,I]}],filter:[{filter:["","none",T,I]}],blur:[{blur:Y()}],brightness:[{brightness:[G,T,I]}],contrast:[{contrast:[G,T,I]}],"drop-shadow":[{"drop-shadow":["","none",g,St,wt]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",G,T,I]}],"hue-rotate":[{"hue-rotate":[G,T,I]}],invert:[{invert:["",G,T,I]}],saturate:[{saturate:[G,T,I]}],sepia:[{sepia:["",G,T,I]}],"backdrop-filter":[{"backdrop-filter":["","none",T,I]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[G,T,I]}],"backdrop-contrast":[{"backdrop-contrast":[G,T,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,T,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,T,I]}],"backdrop-invert":[{"backdrop-invert":["",G,T,I]}],"backdrop-opacity":[{"backdrop-opacity":[G,T,I]}],"backdrop-saturate":[{"backdrop-saturate":[G,T,I]}],"backdrop-sepia":[{"backdrop-sepia":["",G,T,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",T,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",T,I]}],ease:[{ease:["linear","initial",x,T,I]}],delay:[{delay:[G,T,I]}],animate:[{animate:["none",b,T,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,T,I]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[T,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Q()}],"translate-x":[{"translate-x":Q()}],"translate-y":[{"translate-y":Q()}],"translate-z":[{"translate-z":Q()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"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",T,I]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",T,I]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[G,rt,Le,pn]}],stroke:[{stroke:["none",...E()]}],"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"]}},Rl=ol(El);function B(...e){return Rl(ho(e))}var Ct={exports:{}},ot={};var _r;function Pl(){if(_r)return ot;_r=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return ot.Fragment=t,ot.jsx=n,ot.jsxs=n,ot}var st={};var Nr;function _l(){return Nr||(Nr=1,process.env.NODE_ENV!=="production"&&(function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===z?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case y:return"Fragment";case b:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case N:return"SuspenseList";case F:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case m:return"Portal";case C:return S.displayName||"Context";case w:return(S._context.displayName||"Context")+".Consumer";case _:var D=S.render;return S=S.displayName,S||(S=D.displayName||D.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case P:return D=S.displayName||null,D!==null?D:e(S.type)||"Memo";case j:D=S._payload,S=S._init;try{return e(S(D))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var D=!1}catch{D=!0}if(D){D=console;var $=D.error,L=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return $.call(D,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",L),t(S)}}function r(S){if(S===y)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===j)return"<...>";try{var D=e(S);return D?"<"+D+">":"<...>"}catch{return"<...>"}}function o(){var S=V.A;return S===null?null:S.getOwner()}function s(){return Error("react-stack-top-frame")}function a(S){if(U.call(S,"key")){var D=Object.getOwnPropertyDescriptor(S,"key").get;if(D&&D.isReactWarning)return!1}return S.key!==void 0}function c(S,D){function $(){k||(k=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",D))}$.isReactWarning=!0,Object.defineProperty(S,"key",{get:$,configurable:!0})}function l(){var S=e(this.type);return W[S]||(W[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function u(S,D,$,L,ne,te){var R=$.ref;return S={$$typeof:v,type:S,key:D,props:$,_owner:L},(R!==void 0?R:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:l}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ne}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:te}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function f(S,D,$,L,ne,te){var R=D.children;if(R!==void 0)if(L)if(H(R)){for(L=0;L<R.length;L++)d(R[L]);Object.freeze&&Object.freeze(R)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(R);if(U.call(D,"key")){R=e(S);var Y=Object.keys(D).filter(function(X){return X!=="key"});L=0<Y.length?"{key: someKey, "+Y.join(": ..., ")+": ...}":"{key: someKey}",J[R+L]||(Y=0<Y.length?"{"+Y.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),Os=require("react-dom");function uc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=uc(w),Hn=uc(Os);function dc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=dc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=dc(e))&&(r&&(r+=" "),r+=t);return r}const yg=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},bg=(e,t)=>({classGroupId:e,validator:t}),pc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ir="-",Ja=[],xg="arbitrary..",wg=e=>{const t=Cg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Sg(a);const i=a.split(Ir),l=i[0]===""&&i.length>1?1:0;return mc(i,l,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const l=r[a],d=n[a];return l?d?yg(d,l):l:d||Ja}return n[a]||Ja}}},mc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const d=mc(e,t+1,s);if(d)return d}const a=n.validators;if(a===null)return;const i=t===0?e.join(Ir):e.slice(t).join(Ir),l=a.length;for(let d=0;d<l;d++){const f=a[d];if(f.validator(i))return f.classGroupId}},Sg=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?xg+r:void 0})(),Cg=e=>{const{theme:t,classGroups:n}=e;return Eg(n,t)},Eg=(e,t)=>{const n=pc();for(const r in e){const o=e[r];As(o,n,r,t)}return n},As=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const a=e[s];Pg(a,t,n,r)}},Pg=(e,t,n,r)=>{if(typeof e=="string"){Rg(e,t,n);return}if(typeof e=="function"){Ng(e,t,n,r);return}_g(e,t,n,r)},Rg=(e,t,n)=>{const r=e===""?t:hc(t,e);r.classGroupId=n},Ng=(e,t,n,r)=>{if(kg(e)){As(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(bg(n,e))},_g=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let a=0;a<s;a++){const[i,l]=o[a];As(l,hc(t,i),n,r)}},hc=(e,t)=>{let n=e;const r=t.split(Ir),o=r.length;for(let s=0;s<o;s++){const a=r[s];let i=n.nextPart.get(a);i||(i=pc(),n.nextPart.set(a,i)),n=i}return n},kg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Mg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,a)=>{n[s]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let a=n[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return o(s,a),a},set(s,a){s in n?n[s]=a:o(s,a)}}},us="!",ei=":",Tg=[],ti=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Dg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,l=0,d;const f=o.length;for(let v=0;v<f;v++){const y=o[v];if(a===0&&i===0){if(y===ei){s.push(o.slice(l,v)),l=v+1;continue}if(y==="/"){d=v;continue}}y==="["?a++:y==="]"?a--:y==="("?i++:y===")"&&i--}const u=s.length===0?o:o.slice(l);let m=u,h=!1;u.endsWith(us)?(m=u.slice(0,-1),h=!0):u.startsWith(us)&&(m=u.slice(1),h=!0);const g=d&&d>l?d-l:void 0;return ti(s,h,m,g)};if(t){const o=t+ei,s=r;r=a=>a.startsWith(o)?s(a.slice(o.length)):ti(Tg,!1,a,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Og=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const a=n[s],i=a[0]==="[",l=t.has(a);i||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},Ag=e=>({cache:Mg(e.cacheSize),parseClassName:Dg(e),sortModifiers:Og(e),...wg(e)}),Ig=/\s+/,jg=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Ig);let l="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:u,modifiers:m,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:v}=n(f);if(u){l=f+(l.length>0?" "+l:l);continue}let y=!!v,b=r(y?g.substring(0,v):g);if(!b){if(!y){l=f+(l.length>0?" "+l:l);continue}if(b=r(g),!b){l=f+(l.length>0?" "+l:l);continue}y=!1}const x=m.length===0?"":m.length===1?m[0]:s(m).join(":"),S=h?x+us:x,C=S+b;if(a.indexOf(C)>-1)continue;a.push(C);const P=o(b,y);for(let E=0;E<P.length;++E){const R=P[E];a.push(S+R)}l=f+(l.length>0?" "+l:l)}return l},$g=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=gc(n))&&(o&&(o+=" "),o+=r);return o},gc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=gc(e[r]))&&(n&&(n+=" "),n+=t);return n},Wg=(e,...t)=>{let n,r,o,s;const a=l=>{const d=t.reduce((f,u)=>u(f),e());return n=Ag(d),r=n.cache.get,o=n.cache.set,s=i,i(l)},i=l=>{const d=r(l);if(d)return d;const f=jg(l,n);return o(l,f),f};return s=a,(...l)=>s($g(...l))},Fg=[],be=e=>{const t=n=>n[e]||Fg;return t.isThemeGetter=!0,t},vc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lg=/^\d+\/\d+$/,Bg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vg=/\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$/,Hg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Yg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kt=e=>Lg.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),Ct=e=>!!e&&Number.isInteger(Number(e)),Vo=e=>e.endsWith("%")&&se(e.slice(0,-1)),dt=e=>Bg.test(e),Gg=()=>!0,Ug=e=>Vg.test(e)&&!Hg.test(e),bc=()=>!1,Kg=e=>Yg.test(e),qg=e=>zg.test(e),Xg=e=>!q(e)&&!X(e),Zg=e=>dn(e,Sc,bc),q=e=>vc.test(e),Wt=e=>dn(e,Cc,Ug),Ho=e=>dn(e,nv,se),ni=e=>dn(e,xc,bc),Qg=e=>dn(e,wc,qg),wr=e=>dn(e,Ec,Kg),X=e=>yc.test(e),En=e=>fn(e,Cc),Jg=e=>fn(e,rv),ri=e=>fn(e,xc),ev=e=>fn(e,Sc),tv=e=>fn(e,wc),Sr=e=>fn(e,Ec,!0),dn=(e,t,n)=>{const r=vc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},fn=(e,t,n=!1)=>{const r=yc.exec(e);return r?r[1]?t(r[1]):n:!1},xc=e=>e==="position"||e==="percentage",wc=e=>e==="image"||e==="url",Sc=e=>e==="length"||e==="size"||e==="bg-size",Cc=e=>e==="length",nv=e=>e==="number",rv=e=>e==="family-name",Ec=e=>e==="shadow",ov=()=>{const e=be("color"),t=be("font"),n=be("text"),r=be("font-weight"),o=be("tracking"),s=be("leading"),a=be("breakpoint"),i=be("container"),l=be("spacing"),d=be("radius"),f=be("shadow"),u=be("inset-shadow"),m=be("text-shadow"),h=be("drop-shadow"),g=be("blur"),v=be("perspective"),y=be("aspect"),b=be("ease"),x=be("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...C(),X,q],E=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],_=()=>[X,q,l],I=()=>[Kt,"full","auto",..._()],F=()=>[Ct,"none","subgrid",X,q],B=()=>["auto",{span:["full",Ct,X,q]},Ct,X,q],z=()=>[Ct,"auto",X,q],U=()=>["auto","min","max","fr",X,q],G=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",..._()],V=()=>[Kt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],D=()=>[e,X,q],$=()=>[...C(),ri,ni,{position:[X,q]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",ev,Zg,{size:[X,q]}],N=()=>[Vo,En,Wt],T=()=>["","none","full",d,X,q],O=()=>["",se,En,Wt],W=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>[se,Vo,ri,ni],H=()=>["","none",g,X,q],te=()=>["none",se,X,q],oe=()=>["none",se,X,q],ae=()=>[se,X,q],ie=()=>[Kt,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dt],breakpoint:[dt],color:[Gg],container:[dt],"drop-shadow":[dt],ease:["in","out","in-out"],font:[Xg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[dt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[dt],shadow:[dt],spacing:["px",se],text:[dt],"text-shadow":[dt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Kt,q,X,y]}],container:["container"],columns:[{columns:[se,q,X,i]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:P()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Ct,"auto",X,q]}],basis:[{basis:[Kt,"full","auto",i,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,Kt,"auto","initial","none",q]}],grow:[{grow:["",se,X,q]}],shrink:[{shrink:["",se,X,q]}],order:[{order:[Ct,"first","last","none",X,q]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[i,"screen",...V()]}],"min-w":[{"min-w":[i,"screen","none",...V()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,En,Wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,X,Ho]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vo,q]}],"font-family":[{font:[Jg,q,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:[o,X,q]}],"line-clamp":[{"line-clamp":[se,"none",X,Ho]}],leading:[{leading:[s,..._()]}],"list-image":[{"list-image":["none",X,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",X,Wt]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[se,"auto",X,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X,q]}],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",X,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ct,X,q],radial:["",X,q],conic:[Ct,X,q]},tv,Qg]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[se,X,q]}],"outline-w":[{outline:["",se,En,Wt]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",f,Sr,wr]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",u,Sr,wr]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[se,Wt]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",m,Sr,wr]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[se,X,q]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"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":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[X,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,q]}],filter:[{filter:["","none",X,q]}],blur:[{blur:H()}],brightness:[{brightness:[se,X,q]}],contrast:[{contrast:[se,X,q]}],"drop-shadow":[{"drop-shadow":["","none",h,Sr,wr]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",se,X,q]}],"hue-rotate":[{"hue-rotate":[se,X,q]}],invert:[{invert:["",se,X,q]}],saturate:[{saturate:[se,X,q]}],sepia:[{sepia:["",se,X,q]}],"backdrop-filter":[{"backdrop-filter":["","none",X,q]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[se,X,q]}],"backdrop-contrast":[{"backdrop-contrast":[se,X,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,X,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,X,q]}],"backdrop-invert":[{"backdrop-invert":["",se,X,q]}],"backdrop-opacity":[{"backdrop-opacity":[se,X,q]}],"backdrop-saturate":[{"backdrop-saturate":[se,X,q]}],"backdrop-sepia":[{"backdrop-sepia":["",se,X,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",X,q]}],ease:[{ease:["linear","initial",b,X,q]}],delay:[{delay:[se,X,q]}],animate:[{animate:["none",x,X,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,X,q]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[X,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"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",X,q]}],"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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",X,q]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[se,En,Wt,Ho]}],stroke:[{stroke:["none",...D()]}],"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"]}},sv=Wg(ov);function A(...e){return sv(fc(e))}var Cr={exports:{}},Pn={};var oi;function av(){if(oi)return Pn;oi=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var i in o)i!=="key"&&(s[i]=o[i])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return Pn.Fragment=t,Pn.jsx=n,Pn.jsxs=n,Pn}var Rn={};var si;function iv(){return si||(si=1,process.env.NODE_ENV!=="production"&&(function(){function e(k){if(k==null)return null;if(typeof k=="function")return k.$$typeof===B?null:k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case y:return"Fragment";case x:return"Profiler";case b:return"StrictMode";case E:return"Suspense";case R:return"SuspenseList";case F:return"Activity"}if(typeof k=="object")switch(typeof k.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case v:return"Portal";case C:return k.displayName||"Context";case S:return(k._context.displayName||"Context")+".Consumer";case P:var N=k.render;return k=k.displayName,k||(k=N.displayName||N.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case _:return N=k.displayName||null,N!==null?N:e(k.type)||"Memo";case I:N=k._payload,k=k._init;try{return e(k(N))}catch{}}return null}function t(k){return""+k}function n(k){try{t(k);var N=!1}catch{N=!0}if(N){N=console;var T=N.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return T.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(k)}}function r(k){if(k===y)return"<>";if(typeof k=="object"&&k!==null&&k.$$typeof===I)return"<...>";try{var N=e(k);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function o(){var k=z.A;return k===null?null:k.getOwner()}function s(){return Error("react-stack-top-frame")}function a(k){if(U.call(k,"key")){var N=Object.getOwnPropertyDescriptor(k,"key").get;if(N&&N.isReactWarning)return!1}return k.key!==void 0}function i(k,N){function T(){j||(j=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",N))}T.isReactWarning=!0,Object.defineProperty(k,"key",{get:T,configurable:!0})}function l(){var k=e(this.type);return V[k]||(V[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function d(k,N,T,O,W,K){var M=T.ref;return k={$$typeof:g,type:k,key:N,props:T,_owner:O},(M!==void 0?M:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:l}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function f(k,N,T,O,W,K){var M=N.children;if(M!==void 0)if(O)if(G(M)){for(O=0;O<M.length;O++)u(M[O]);Object.freeze&&Object.freeze(M)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(M);if(U.call(N,"key")){M=e(k);var H=Object.keys(N).filter(function(oe){return oe!=="key"});O=0<H.length?"{key: someKey, "+H.join(": ..., ")+": ...}":"{key: someKey}",J[M+O]||(H=0<H.length?"{"+H.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,L,R,Y,R),J[R+L]=!0)}if(R=null,$!==void 0&&(n($),R=""+$),a(D)&&(n(D.key),R=""+D.key),"key"in D){$={};for(var ee in D)ee!=="key"&&($[ee]=D[ee])}else $=D;return R&&c($,typeof S=="function"?S.displayName||S.name||"Unknown":S),u(S,R,$,o(),ne,te)}function d(S){h(S)?S._store&&(S._store.validated=1):typeof S=="object"&&S!==null&&S.$$typeof===j&&(S._payload.status==="fulfilled"?h(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function h(S){return typeof S=="object"&&S!==null&&S.$$typeof===v}var g=se,v=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),z=Symbol.for("react.client.reference"),V=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=Object.prototype.hasOwnProperty,H=Array.isArray,K=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(S){return S()}};var k,W={},E=g.react_stack_bottom_frame.bind(g,s)(),A=K(r(s)),J={};st.Fragment=y,st.jsx=function(S,D,$){var L=1e4>V.recentlyCreatedOwnerStacks++;return f(S,D,$,!1,L?Error("react-stack-top-frame"):E,L?K(r(S)):A)},st.jsxs=function(S,D,$){var L=1e4>V.recentlyCreatedOwnerStacks++;return f(S,D,$,!0,L?Error("react-stack-top-frame"):E,L?K(r(S)):A)}})()),st}var Ar;function Nl(){return Ar||(Ar=1,process.env.NODE_ENV==="production"?Ct.exports=Pl():Ct.exports=_l()),Ct.exports}var p=Nl();function Or(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ie(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Or(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Or(e[o],null)}}}}function q(...e){return i.useCallback(ie(...e),e)}var Al=Symbol.for("react.lazy"),Dt=i[" use ".trim().toString()];function Ol(e){return typeof e=="object"&&e!==null&&"then"in e}function No(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Al&&"_payload"in e&&Ol(e._payload)}function Ao(e){const t=Tl(e),n=i.forwardRef((r,o)=>{let{children:s,...a}=r;No(s)&&typeof Dt=="function"&&(s=Dt(s._payload));const c=i.Children.toArray(s),l=c.find(kl);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Il=Ao("Slot");function Tl(e){const t=i.forwardRef((n,r)=>{let{children:o,...s}=n;if(No(o)&&typeof Dt=="function"&&(o=Dt(o._payload)),i.isValidElement(o)){const a=jl(o),c=Dl(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ml=Symbol("radix.slottable");function kl(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ml}function Dl(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function jl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Ir=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Tr=ho,Vn=(e,t)=>n=>{var r;if(t?.variants==null)return Tr(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n?.[u],d=s?.[u];if(f===null)return null;const h=Ir(f)||Ir(d);return o[u][h]}),c=n&&Object.entries(n).reduce((u,f)=>{let[d,h]=f;return h===void 0||(u[d]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:d,className:h,...g}=f;return Object.entries(g).every(v=>{let[m,y]=v;return Array.isArray(y)?y.includes({...s,...c}[m]):{...s,...c}[m]===y})?[...u,d,h]:u},[]);return Tr(e,a,l,n?.class,n?.className)},Oo=Vn("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Io=i.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?Il:"button";return p.jsx(a,{className:B(Oo({variant:t,size:n,className:e})),ref:s,...o})});Io.displayName="Button";const To=i.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:B("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));To.displayName="Input";const Mo=i.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:B("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Mo.displayName="Textarea";var $l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pt=$l.reduce((e,t)=>{const n=Ao(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ll="Label",ko=i.forwardRef((e,t)=>p.jsx(pt.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ko.displayName=Ll;var Do=ko;const Fl=Vn("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),jo=i.forwardRef(({className:e,...t},n)=>p.jsx(Do,{ref:n,className:B(Fl(),e),...t}));jo.displayName=Do.displayName;const $o=Vn("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Vl({className:e,variant:t,...n}){return p.jsx("div",{className:B($o({variant:t}),e),...n})}var Wl="Separator",Mr="horizontal",Bl=["horizontal","vertical"],Lo=i.forwardRef((e,t)=>{const{decorative:n,orientation:r=Mr,...o}=e,s=Hl(r)?r:Mr,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return p.jsx(pt.div,{"data-orientation":s,...c,...o,ref:t})});Lo.displayName=Wl;function Hl(e){return Bl.includes(e)}var Fo=Lo;const Vo=i.forwardRef(({className:e,orientation:t="horizontal",...n},r)=>p.jsx(Fo,{ref:r,decorative:!0,orientation:t,className:B("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Vo.displayName=Fo.displayName;function zl(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a);c.displayName=s+"Context";const l=n.length;n=[...n,a];const u=d=>{const{scope:h,children:g,...v}=d,m=h?.[e]?.[l]||c,y=i.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:y,children:g})};u.displayName=s+"Provider";function f(d,h){const g=h?.[e]?.[l]||c,v=i.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,Ul(o,...t)]}function Ul(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function pe(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>t.current?.(...n),[])}var oe=globalThis?.document?i.useLayoutEffect:()=>{},Et={exports:{}},mn={};var kr;function Gl(){if(kr)return mn;kr=1;var e=se;function t(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function c(d,h){var g=h(),v=r({inst:{value:g,getSnapshot:h}}),m=v[0].inst,y=v[1];return s(function(){m.value=g,m.getSnapshot=h,l(m)&&y({inst:m})},[d,g,h]),o(function(){return l(m)&&y({inst:m}),d(function(){l(m)&&y({inst:m})})},[d]),a(g),g}function l(d){var h=d.getSnapshot;d=d.value;try{var g=h();return!n(d,g)}catch{return!0}}function u(d,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:c;return mn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,mn}var hn={};var Dr;function Kl(){return Dr||(Dr=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}function t(g,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=v();if(!d){var y=v();s(m,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}y=a({inst:{value:m,getSnapshot:v}});var x=y[0].inst,b=y[1];return l(function(){x.value=m,x.getSnapshot=v,n(x)&&b({inst:x})},[g,m,v]),c(function(){return n(x)&&b({inst:x}),g(function(){n(x)&&b({inst:x})})},[g]),u(m),m}function n(g){var v=g.getSnapshot;g=g.value;try{var m=v();return!s(g,m)}catch{return!0}}function r(g,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=se,s=typeof Object.is=="function"?Object.is:e,a=o.useState,c=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,f=!1,d=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;hn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),hn}var jr;function Yl(){return jr||(jr=1,process.env.NODE_ENV==="production"?Et.exports=Gl():Et.exports=Kl()),Et.exports}var Xl=Yl();function ql(){return Xl.useSyncExternalStore(Zl,()=>!0,()=>!1)}function Zl(){return()=>{}}var Wn="Avatar",[Jl]=zl(Wn),[Ql,Wo]=Jl(Wn),Bo=i.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=i.useState("idle");return p.jsx(Ql,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:p.jsx(pt.span,{...r,ref:t})})});Bo.displayName=Wn;var Ho="AvatarImage",zo=i.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,a=Wo(Ho,n),c=eu(r,s),l=pe(u=>{o(u),a.onImageLoadingStatusChange(u)});return oe(()=>{c!=="idle"&&l(c)},[c,l]),c==="loaded"?p.jsx(pt.img,{...s,ref:t,src:r}):null});zo.displayName=Ho;var Uo="AvatarFallback",Go=i.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=Wo(Uo,n),[a,c]=i.useState(r===void 0);return i.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(l)}},[r]),a&&s.imageLoadingStatus!=="loaded"?p.jsx(pt.span,{...o,ref:t}):null});Go.displayName=Uo;function $r(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function eu(e,{referrerPolicy:t,crossOrigin:n}){const r=ql(),o=i.useRef(null),s=r?(o.current||(o.current=new window.Image),o.current):null,[a,c]=i.useState(()=>$r(s,e));return oe(()=>{c($r(s,e))},[s,e]),oe(()=>{const l=d=>()=>{c(d)};if(!s)return;const u=l("loaded"),f=l("error");return s.addEventListener("load",u),s.addEventListener("error",f),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",u),s.removeEventListener("error",f)}},[s,n,t]),a}var Ko=Bo,Yo=zo,Xo=Go;const qo=i.forwardRef(({className:e,...t},n)=>p.jsx(Ko,{ref:n,className:B("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));qo.displayName=Ko.displayName;const Zo=i.forwardRef(({className:e,...t},n)=>p.jsx(Yo,{ref:n,className:B("aspect-square h-full w-full",e),...t}));Zo.displayName=Yo.displayName;const Jo=i.forwardRef(({className:e,...t},n)=>p.jsx(Xo,{ref:n,className:B("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Jo.displayName=Xo.displayName;const Qo=i.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:B("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Qo.displayName="Card";const es=i.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:B("flex flex-col space-y-1.5 p-6",e),...t}));es.displayName="CardHeader";const ts=i.forwardRef(({className:e,...t},n)=>p.jsx("h3",{ref:n,className:B("text-2xl font-semibold leading-none tracking-tight",e),...t}));ts.displayName="CardTitle";const ns=i.forwardRef(({className:e,...t},n)=>p.jsx("p",{ref:n,className:B("text-sm text-muted-foreground",e),...t}));ns.displayName="CardDescription";const rs=i.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:B("p-6 pt-0",e),...t}));rs.displayName="CardContent";const os=i.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:B("flex items-center p-6 pt-0",e),...t}));os.displayName="CardFooter";function tu(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:h,children:g,...v}=d,m=h?.[e]?.[l]||c,y=i.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:y,children:g})};u.displayName=s+"Provider";function f(d,h){const g=h?.[e]?.[l]||c,v=i.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,nu(o,...t)]}function nu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function M(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var ru=i[" useInsertionEffect ".trim().toString()]||oe;function Ie({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=ou({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:o;{const f=i.useRef(e!==void 0);i.useEffect(()=>{const d=f.current;d!==c&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${c?"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.`),f.current=c},[c,r])}const u=i.useCallback(f=>{if(c){const d=su(f)?f(e):f;d!==e&&a.current?.(d)}else s(f)},[c,e,s,a]);return[l,u]}function ou({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return ru(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function su(e){return typeof e=="function"}function Bn(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Hn(e){const[t,n]=i.useState(void 0);return oe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function iu(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var _e=e=>{const{present:t,children:n}=e,r=au(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=q(r.ref,cu(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};_e.displayName="Presence";function au(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,l]=iu(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Rt(r.current);s.current=c==="mounted"?u:"none"},[c]),oe(()=>{const u=r.current,f=o.current;if(f!==e){const h=s.current,g=Rt(u);e?l("MOUNT"):g==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),oe(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,d=g=>{const m=Rt(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(l("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=g=>{g.target===t&&(s.current=Rt(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Rt(e){return e?.animationName||"none"}function cu(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function lu(e){const t=uu(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(fu);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function uu(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=mu(o),c=pu(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var du=Symbol("radix.slottable");function fu(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===du}function pu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function mu(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],zn=hu.reduce((e,t)=>{const n=lu(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),zt="Checkbox",[gu]=tu(zt),[vu,Un]=gu(zt);function yu(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:s,form:a,name:c,onCheckedChange:l,required:u,value:f="on",internal_do_not_use_render:d}=e,[h,g]=Ie({prop:n,defaultProp:o??!1,onChange:l,caller:zt}),[v,m]=i.useState(null),[y,x]=i.useState(null),b=i.useRef(!1),w=v?!!a||!!v.closest("form"):!0,C={checked:h,disabled:s,setChecked:g,control:v,setControl:m,name:c,form:a,value:f,hasConsumerStoppedPropagationRef:b,required:u,defaultChecked:Oe(o)?!1:o,isFormControl:w,bubbleInput:y,setBubbleInput:x};return p.jsx(vu,{scope:t,...C,children:xu(d)?d(C):r})}var ss="CheckboxTrigger",is=i.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:s,value:a,disabled:c,checked:l,required:u,setControl:f,setChecked:d,hasConsumerStoppedPropagationRef:h,isFormControl:g,bubbleInput:v}=Un(ss,e),m=q(o,f),y=i.useRef(l);return i.useEffect(()=>{const x=s?.form;if(x){const b=()=>d(y.current);return x.addEventListener("reset",b),()=>x.removeEventListener("reset",b)}},[s,d]),p.jsx(zn.button,{type:"button",role:"checkbox","aria-checked":Oe(l)?"mixed":l,"aria-required":u,"data-state":ds(l),"data-disabled":c?"":void 0,disabled:c,value:a,...r,ref:m,onKeyDown:M(t,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:M(n,x=>{d(b=>Oe(b)?!0:!b),v&&g&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})})});is.displayName=ss;var Gn=i.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:a,disabled:c,value:l,onCheckedChange:u,form:f,...d}=e;return p.jsx(yu,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:c,required:a,onCheckedChange:u,name:r,form:f,value:l,internal_do_not_use_render:({isFormControl:h})=>p.jsxs(p.Fragment,{children:[p.jsx(is,{...d,ref:t,__scopeCheckbox:n}),h&&p.jsx(us,{__scopeCheckbox:n})]})})});Gn.displayName=zt;var as="CheckboxIndicator",cs=i.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=Un(as,n);return p.jsx(_e,{present:r||Oe(s.checked)||s.checked===!0,children:p.jsx(zn.span,{"data-state":ds(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});cs.displayName=as;var ls="CheckboxBubbleInput",us=i.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:a,required:c,disabled:l,name:u,value:f,form:d,bubbleInput:h,setBubbleInput:g}=Un(ls,e),v=q(n,g),m=Bn(s),y=Hn(r);i.useEffect(()=>{const b=h;if(!b)return;const w=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor(w,"checked").set,O=!o.current;if(m!==s&&_){const N=new Event("click",{bubbles:O});b.indeterminate=Oe(s),_.call(b,Oe(s)?!1:s),b.dispatchEvent(N)}},[h,m,s,o]);const x=i.useRef(Oe(s)?!1:s);return p.jsx(zn.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??x.current,required:c,disabled:l,name:u,value:f,form:d,...t,tabIndex:-1,ref:v,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});us.displayName=ls;function xu(e){return typeof e=="function"}function Oe(e){return e==="indeterminate"}function ds(e){return Oe(e)?"indeterminate":e?"checked":"unchecked"}const bu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Lr=e=>{const t=wu(e);return t.charAt(0).toUpperCase()+t.slice(1)},fs=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Su=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Cu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Eu=se.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...c},l)=>se.createElement("svg",{ref:l,...Cu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:fs("lucide",o),...!s&&!Su(c)&&{"aria-hidden":"true"},...c},[...a.map(([u,f])=>se.createElement(u,f)),...Array.isArray(s)?s:[s]]));const Qe=(e,t)=>{const n=se.forwardRef(({className:r,...o},s)=>se.createElement(Eu,{ref:s,iconNode:t,className:fs(`lucide-${bu(Lr(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Lr(e),n};const Ru=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Kn=Qe("check",Ru);const Pu=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ps=Qe("chevron-down",Pu);const _u=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Nu=Qe("chevron-right",_u);const Au=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ou=Qe("chevron-up",Au);const Iu=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Tu=Qe("circle",Iu);const Mu=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ku=Qe("x",Mu),ms=i.forwardRef(({className:e,...t},n)=>p.jsx(Gn,{ref:n,className:B("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:p.jsx(cs,{className:B("flex items-center justify-center text-current"),children:p.jsx(Kn,{className:"h-4 w-4"})})}));ms.displayName=Gn.displayName;function Du(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:h,children:g,...v}=d,m=h?.[e]?.[l]||c,y=i.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:y,children:g})};u.displayName=s+"Provider";function f(d,h){const g=h?.[e]?.[l]||c,v=i.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,ju(o,...t)]}function ju(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function $u(e){const t=Lu(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Vu);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Lu(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=Bu(o),c=Wu(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fu=Symbol("radix.slottable");function Vu(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fu}function Wu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Bu(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Hu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hs=Hu.reduce((e,t)=>{const n=$u(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ut="Switch",[zu]=Du(Ut),[Uu,Gu]=zu(Ut),gs=i.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:a,disabled:c,value:l="on",onCheckedChange:u,form:f,...d}=e,[h,g]=i.useState(null),v=q(t,w=>g(w)),m=i.useRef(!1),y=h?f||!!h.closest("form"):!0,[x,b]=Ie({prop:o,defaultProp:s??!1,onChange:u,caller:Ut});return p.jsxs(Uu,{scope:n,checked:x,disabled:c,children:[p.jsx(hs.button,{type:"button",role:"switch","aria-checked":x,"aria-required":a,"data-state":bs(x),"data-disabled":c?"":void 0,disabled:c,value:l,...d,ref:v,onClick:M(e.onClick,w=>{b(C=>!C),y&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),y&&p.jsx(xs,{control:h,bubbles:!m.current,name:r,value:l,checked:x,required:a,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})});gs.displayName=Ut;var vs="SwitchThumb",ys=i.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Gu(vs,n);return p.jsx(hs.span,{"data-state":bs(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});ys.displayName=vs;var Ku="SwitchBubbleInput",xs=i.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const a=i.useRef(null),c=q(a,s),l=Bn(n),u=Hn(t);return i.useEffect(()=>{const f=a.current;if(!f)return;const d=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});g.call(f,n),f.dispatchEvent(v)}},[l,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});xs.displayName=Ku;function bs(e){return e?"checked":"unchecked"}var ws=gs,Yu=ys;const Ss=i.forwardRef(({className:e,...t},n)=>p.jsx(ws,{className:B("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:p.jsx(Yu,{className:B("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Ss.displayName=ws.displayName;function Fr(e,[t,n]){return Math.min(n,Math.max(t,e))}function Xu(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:h,children:g,...v}=d,m=h?.[e]?.[l]||c,y=i.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:y,children:g})};u.displayName=s+"Provider";function f(d,h){const g=h?.[e]?.[l]||c,v=i.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,qu(o,...t)]}function qu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Vr(e){const t=Zu(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Qu);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Zu(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=td(o),c=ed(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ju=Symbol("radix.slottable");function Qu(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ju}function ed(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function td(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Yn(e){const t=e+"CollectionProvider",[n,r]=Xu(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:y,children:x}=m,b=se.useRef(null),w=se.useRef(new Map).current;return p.jsx(o,{scope:y,itemMap:w,collectionRef:b,children:x})};a.displayName=t;const c=e+"CollectionSlot",l=Vr(c),u=se.forwardRef((m,y)=>{const{scope:x,children:b}=m,w=s(c,x),C=q(y,w.collectionRef);return p.jsx(l,{ref:C,children:b})});u.displayName=c;const f=e+"CollectionItemSlot",d="data-radix-collection-item",h=Vr(f),g=se.forwardRef((m,y)=>{const{scope:x,children:b,...w}=m,C=se.useRef(null),_=q(y,C),O=s(f,x);return se.useEffect(()=>(O.itemMap.set(C,{ref:C,...w}),()=>{O.itemMap.delete(C)})),p.jsx(h,{[d]:"",ref:_,children:b})});g.displayName=f;function v(m){const y=s(e+"CollectionConsumer",m);return se.useCallback(()=>{const b=y.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((O,N)=>w.indexOf(O.ref.current)-w.indexOf(N.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},v,r]}function nd(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:h,children:g,...v}=d,m=h?.[e]?.[l]||c,y=i.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:y,children:g})};u.displayName=s+"Provider";function f(d,h){const g=h?.[e]?.[l]||c,v=i.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,rd(o,...t)]}function rd(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var od=i.createContext(void 0);function Xn(e){const t=i.useContext(od);return e||t||"ltr"}function sd(e){const t=id(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(cd);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function id(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=ud(o),c=ld(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ad=Symbol("radix.slottable");function cd(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ad}function ld(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ud(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Cs=dd.reduce((e,t)=>{const n=sd(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function fd(e,t){e&&ft.flushSync(()=>e.dispatchEvent(t))}function pd(e,t=globalThis?.document){const n=pe(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var md="DismissableLayer",_n="dismissableLayer.update",hd="dismissableLayer.pointerDownOutside",gd="dismissableLayer.focusOutside",Wr,Es=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gt=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=i.useContext(Es),[f,d]=i.useState(null),h=f?.ownerDocument??globalThis?.document,[,g]=i.useState({}),v=q(t,N=>d(N)),m=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(y),b=f?m.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=x,_=xd(N=>{const P=N.target,j=[...u.branches].some(F=>F.contains(P));!C||j||(o?.(N),a?.(N),N.defaultPrevented||c?.())},h),O=bd(N=>{const P=N.target;[...u.branches].some(F=>F.contains(P))||(s?.(N),a?.(N),N.defaultPrevented||c?.())},h);return pd(N=>{b===u.layers.size-1&&(r?.(N),!N.defaultPrevented&&c&&(N.preventDefault(),c()))},h),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Wr=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Br(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Wr)}},[f,h,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Br())},[f,u]),i.useEffect(()=>{const N=()=>g({});return document.addEventListener(_n,N),()=>document.removeEventListener(_n,N)},[]),p.jsx(Cs.div,{...l,ref:v,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:M(e.onFocusCapture,O.onFocusCapture),onBlurCapture:M(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:M(e.onPointerDownCapture,_.onPointerDownCapture)})});Gt.displayName=md;var vd="DismissableLayerBranch",yd=i.forwardRef((e,t)=>{const n=i.useContext(Es),r=i.useRef(null),o=q(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(Cs.div,{...e,ref:o})});yd.displayName=vd;function xd(e,t=globalThis?.document){const n=pe(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let l=function(){Rs(hd,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function bd(e,t=globalThis?.document){const n=pe(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Rs(gd,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Br(){const e=new CustomEvent(_n);document.dispatchEvent(e)}function Rs(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?fd(o,s):o.dispatchEvent(s)}var gn=0;function qn(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Hr()),document.body.insertAdjacentElement("beforeend",e[1]??Hr()),gn++,()=>{gn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),gn--}},[])}function Hr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function wd(e){const t=Sd(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Ed);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Sd(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=Pd(o),c=Rd(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Cd=Symbol("radix.slottable");function Ed(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Cd}function Rd(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Pd(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nd=_d.reduce((e,t)=>{const n=wd(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),vn="focusScope.autoFocusOnMount",yn="focusScope.autoFocusOnUnmount",zr={bubbles:!1,cancelable:!0},Ad="FocusScope",Kt=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,l]=i.useState(null),u=pe(o),f=pe(s),d=i.useRef(null),h=q(t,m=>l(m)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let m=function(w){if(g.paused||!c)return;const C=w.target;c.contains(C)?d.current=C:Ae(d.current,{select:!0})},y=function(w){if(g.paused||!c)return;const C=w.relatedTarget;C!==null&&(c.contains(C)||Ae(d.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const _ of w)_.removedNodes.length>0&&Ae(c)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const b=new MutationObserver(x);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),b.disconnect()}}},[r,c,g.paused]),i.useEffect(()=>{if(c){Gr.add(g);const m=document.activeElement;if(!c.contains(m)){const x=new CustomEvent(vn,zr);c.addEventListener(vn,u),c.dispatchEvent(x),x.defaultPrevented||(Od(Dd(Ps(c)),{select:!0}),document.activeElement===m&&Ae(c))}return()=>{c.removeEventListener(vn,u),setTimeout(()=>{const x=new CustomEvent(yn,zr);c.addEventListener(yn,f),c.dispatchEvent(x),x.defaultPrevented||Ae(m??document.body,{select:!0}),c.removeEventListener(yn,f),Gr.remove(g)},0)}}},[c,u,f,g]);const v=i.useCallback(m=>{if(!n&&!r||g.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(y&&x){const b=m.currentTarget,[w,C]=Id(b);w&&C?!m.shiftKey&&x===C?(m.preventDefault(),n&&Ae(w,{select:!0})):m.shiftKey&&x===w&&(m.preventDefault(),n&&Ae(C,{select:!0})):x===b&&m.preventDefault()}},[n,r,g.paused]);return p.jsx(Nd.div,{tabIndex:-1,...a,ref:h,onKeyDown:v})});Kt.displayName=Ad;function Od(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ae(r,{select:t}),document.activeElement!==n)return}function Id(e){const t=Ps(e),n=Ur(t,e),r=Ur(t.reverse(),e);return[n,r]}function Ps(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ur(e,t){for(const n of e)if(!Td(n,{upTo:t}))return n}function Td(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Md(e){return e instanceof HTMLInputElement&&"select"in e}function Ae(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Md(e)&&t&&e.select()}}var Gr=kd();function kd(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Kr(e,t),e.unshift(t)},remove(t){e=Kr(e,t),e[0]?.resume()}}}function Kr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Dd(e){return e.filter(t=>t.tagName!=="A")}var jd=i[" useId ".trim().toString()]||(()=>{}),$d=0;function he(e){const[t,n]=i.useState(jd());return oe(()=>{n(r=>r??String($d++))},[e]),t?`radix-${t}`:""}const Ld=["top","right","bottom","left"],Te=Math.min,ce=Math.max,jt=Math.round,Pt=Math.floor,we=e=>({x:e,y:e}),Fd={left:"right",right:"left",bottom:"top",top:"bottom"},Vd={start:"end",end:"start"};function Nn(e,t,n){return ce(e,Te(t,n))}function Re(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function Zn(e){return e==="x"?"y":"x"}function Jn(e){return e==="y"?"height":"width"}const Wd=new Set(["top","bottom"]);function be(e){return Wd.has(Pe(e))?"y":"x"}function Qn(e){return Zn(be(e))}function Bd(e,t,n){n===void 0&&(n=!1);const r=et(e),o=Qn(e),s=Jn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=$t(a)),[a,$t(a)]}function Hd(e){const t=$t(e);return[An(e),t,An(t)]}function An(e){return e.replace(/start|end/g,t=>Vd[t])}const Yr=["left","right"],Xr=["right","left"],zd=["top","bottom"],Ud=["bottom","top"];function Gd(e,t,n){switch(e){case"top":case"bottom":return n?t?Xr:Yr:t?Yr:Xr;case"left":case"right":return t?zd:Ud;default:return[]}}function Kd(e,t,n,r){const o=et(e);let s=Gd(Pe(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(An)))),s}function $t(e){return e.replace(/left|right|bottom|top/g,t=>Fd[t])}function Yd(e){return{top:0,right:0,bottom:0,left:0,...e}}function _s(e){return typeof e!="number"?Yd(e):{top:e,right:e,bottom:e,left:e}}function Lt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function qr(e,t,n){let{reference:r,floating:o}=e;const s=be(t),a=Qn(t),c=Jn(a),l=Pe(t),u=s==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[c]/2-o[c]/2;let g;switch(l){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(et(t)){case"start":g[a]-=h*(n&&u?-1:1);break;case"end":g[a]+=h*(n&&u?-1:1);break}return g}const Xd=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=qr(u,r,l),h=r,g={},v=0;for(let m=0;m<c.length;m++){const{name:y,fn:x}=c[m],{x:b,y:w,data:C,reset:_}=await x({x:f,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:u,platform:a,elements:{reference:e,floating:t}});f=b??f,d=w??d,g={...g,[y]:{...g[y],...C}},_&&v<=50&&(v++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(u=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:f,y:d}=qr(u,h,l)),m=-1)}return{x:f,y:d,placement:h,strategy:o,middlewareData:g}};async function ct(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=Re(t,e),v=_s(g),y=c[h?d==="floating"?"reference":"floating":d],x=Lt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:l})),b=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),C=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},_=Lt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:w,strategy:l}):b);return{top:(x.top-_.top+v.top)/C.y,bottom:(_.bottom-x.bottom+v.bottom)/C.y,left:(x.left-_.left+v.left)/C.x,right:(_.right-x.right+v.right)/C.x}}const qd=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:l}=t,{element:u,padding:f=0}=Re(e,t)||{};if(u==null)return{};const d=_s(f),h={x:n,y:r},g=Qn(o),v=Jn(g),m=await a.getDimensions(u),y=g==="y",x=y?"top":"left",b=y?"bottom":"right",w=y?"clientHeight":"clientWidth",C=s.reference[v]+s.reference[g]-h[g]-s.floating[v],_=h[g]-s.reference[g],O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let N=O?O[w]:0;(!N||!await(a.isElement==null?void 0:a.isElement(O)))&&(N=c.floating[w]||s.floating[v]);const P=C/2-_/2,j=N/2-m[v]/2-1,F=Te(d[x],j),z=Te(d[b],j),V=F,U=N-m[v]-z,H=N/2-m[v]/2+P,K=Nn(V,H,U),k=!l.arrow&&et(o)!=null&&H!==K&&s.reference[v]/2-(H<V?F:z)-m[v]/2<0,W=k?H<V?H-V:H-U:0;return{[g]:h[g]+W,data:{[g]:K,centerOffset:H-K-W,...k&&{alignmentOffset:W}},reset:k}}}),Zd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...y}=Re(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=Pe(o),b=be(c),w=Pe(c)===c,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=h||(w||!m?[$t(c)]:Hd(c)),O=v!=="none";!h&&O&&_.push(...Kd(c,m,v,C));const N=[c,..._],P=await ct(t,y),j=[];let F=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&j.push(P[x]),d){const H=Bd(o,a,C);j.push(P[H[0]],P[H[1]])}if(F=[...F,{placement:o,overflows:j}],!j.every(H=>H<=0)){var z,V;const H=(((z=s.flip)==null?void 0:z.index)||0)+1,K=N[H];if(K&&(!(d==="alignment"?b!==be(K):!1)||F.every(E=>be(E.placement)===b?E.overflows[0]>0:!0)))return{data:{index:H,overflows:F},reset:{placement:K}};let k=(V=F.filter(W=>W.overflows[0]<=0).sort((W,E)=>W.overflows[1]-E.overflows[1])[0])==null?void 0:V.placement;if(!k)switch(g){case"bestFit":{var U;const W=(U=F.filter(E=>{if(O){const A=be(E.placement);return A===b||A==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(A=>A>0).reduce((A,J)=>A+J,0)]).sort((E,A)=>E[1]-A[1])[0])==null?void 0:U[0];W&&(k=W);break}case"initialPlacement":k=c;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function Zr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jr(e){return Ld.some(t=>e[t]>=0)}const Jd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Re(e,t);switch(r){case"referenceHidden":{const s=await ct(t,{...o,elementContext:"reference"}),a=Zr(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Jr(a)}}}case"escaped":{const s=await ct(t,{...o,altBoundary:!0}),a=Zr(s,n.floating);return{data:{escapedOffsets:a,escaped:Jr(a)}}}default:return{}}}}},Ns=new Set(["left","top"]);async function Qd(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Pe(n),c=et(n),l=be(n)==="y",u=Ns.has(a)?-1:1,f=s&&l?-1:1,d=Re(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof v=="number"&&(g=c==="end"?v*-1:v),l?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const ef=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,l=await Qd(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},tf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:y=>{let{x,y:b}=y;return{x,y:b}}},...l}=Re(e,t),u={x:n,y:r},f=await ct(t,l),d=be(Pe(o)),h=Zn(d);let g=u[h],v=u[d];if(s){const y=h==="y"?"top":"left",x=h==="y"?"bottom":"right",b=g+f[y],w=g-f[x];g=Nn(b,g,w)}if(a){const y=d==="y"?"top":"left",x=d==="y"?"bottom":"right",b=v+f[y],w=v-f[x];v=Nn(b,v,w)}const m=c.fn({...t,[h]:g,[d]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:s,[d]:a}}}}}},nf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=Re(e,t),f={x:n,y:r},d=be(o),h=Zn(d);let g=f[h],v=f[d];const m=Re(c,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=h==="y"?"height":"width",C=s.reference[h]-s.floating[w]+y.mainAxis,_=s.reference[h]+s.reference[w]-y.mainAxis;g<C?g=C:g>_&&(g=_)}if(u){var x,b;const w=h==="y"?"width":"height",C=Ns.has(Pe(o)),_=s.reference[d]-s.floating[w]+(C&&((x=a.offset)==null?void 0:x[d])||0)+(C?0:y.crossAxis),O=s.reference[d]+s.reference[w]+(C?0:((b=a.offset)==null?void 0:b[d])||0)-(C?y.crossAxis:0);v<_?v=_:v>O&&(v=O)}return{[h]:g,[d]:v}}}},rf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:l=()=>{},...u}=Re(e,t),f=await ct(t,u),d=Pe(o),h=et(o),g=be(o)==="y",{width:v,height:m}=s.floating;let y,x;d==="top"||d==="bottom"?(y=d,x=h===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(x=d,y=h==="end"?"top":"bottom");const b=m-f.top-f.bottom,w=v-f.left-f.right,C=Te(m-f[y],b),_=Te(v-f[x],w),O=!t.middlewareData.shift;let N=C,P=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=b),O&&!h){const F=ce(f.left,0),z=ce(f.right,0),V=ce(f.top,0),U=ce(f.bottom,0);g?P=v-2*(F!==0||z!==0?F+z:ce(f.left,f.right)):N=m-2*(V!==0||U!==0?V+U:ce(f.top,f.bottom))}await l({...t,availableWidth:P,availableHeight:N});const j=await a.getDimensions(c.floating);return v!==j.width||m!==j.height?{reset:{rects:!0}}:{}}}};function Yt(){return typeof window<"u"}function tt(e){return As(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ce(e){var t;return(t=(As(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function As(e){return Yt()?e instanceof Node||e instanceof le(e).Node:!1}function ge(e){return Yt()?e instanceof Element||e instanceof le(e).Element:!1}function Se(e){return Yt()?e instanceof HTMLElement||e instanceof le(e).HTMLElement:!1}function Qr(e){return!Yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}const of=new Set(["inline","contents"]);function mt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!of.has(o)}const sf=new Set(["table","td","th"]);function af(e){return sf.has(tt(e))}const cf=[":popover-open",":modal"];function Xt(e){return cf.some(t=>{try{return e.matches(t)}catch{return!1}})}const lf=["transform","translate","scale","rotate","perspective"],uf=["transform","translate","scale","rotate","perspective","filter"],df=["paint","layout","strict","content"];function er(e){const t=tr(),n=ge(e)?ve(e):e;return lf.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||uf.some(r=>(n.willChange||"").includes(r))||df.some(r=>(n.contain||"").includes(r))}function ff(e){let t=Me(e);for(;Se(t)&&!qe(t);){if(er(t))return t;if(Xt(t))return null;t=Me(t)}return null}function tr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const pf=new Set(["html","body","#document"]);function qe(e){return pf.has(tt(e))}function ve(e){return le(e).getComputedStyle(e)}function qt(e){return ge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Me(e){if(tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qr(e)&&e.host||Ce(e);return Qr(t)?t.host:t}function Os(e){const t=Me(e);return qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&&mt(t)?t:Os(t)}function lt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Os(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=le(o);if(s){const c=On(a);return t.concat(a,a.visualViewport||[],mt(o)?o:[],c&&n?lt(c):[])}return t.concat(o,lt(o,[],n))}function On(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Is(e){const t=ve(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Se(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=jt(n)!==s||jt(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function nr(e){return ge(e)?e:e.contextElement}function Ye(e){const t=nr(e);if(!Se(t))return we(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Is(t);let a=(s?jt(n.width):n.width)/r,c=(s?jt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const mf=we(0);function Ts(e){const t=le(e);return!tr()||!t.visualViewport?mf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function Fe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=nr(e);let a=we(1);t&&(r?ge(r)&&(a=Ye(r)):a=Ye(e));const c=hf(s,n,r)?Ts(s):we(0);let l=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(s){const h=le(s),g=r&&ge(r)?le(r):r;let v=h,m=On(v);for(;m&&r&&g!==v;){const y=Ye(m),x=m.getBoundingClientRect(),b=ve(m),w=x.left+(m.clientLeft+parseFloat(b.paddingLeft))*y.x,C=x.top+(m.clientTop+parseFloat(b.paddingTop))*y.y;l*=y.x,u*=y.y,f*=y.x,d*=y.y,l+=w,u+=C,v=le(m),m=On(v)}}return Lt({width:f,height:d,x:l,y:u})}function Zt(e,t){const n=qt(e).scrollLeft;return t?t.left+n:Fe(Ce(e)).left+n}function Ms(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Zt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function gf(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Ce(r),c=t?Xt(t.floating):!1;if(r===a||c&&s)return n;let l={scrollLeft:0,scrollTop:0},u=we(1);const f=we(0),d=Se(r);if((d||!d&&!s)&&((tt(r)!=="body"||mt(a))&&(l=qt(r)),Se(r))){const g=Fe(r);u=Ye(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const h=a&&!d&&!s?Ms(a,l):we(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-l.scrollTop*u.y+f.y+h.y}}function vf(e){return Array.from(e.getClientRects())}function yf(e){const t=Ce(e),n=qt(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Zt(e);const c=-n.scrollTop;return ve(r).direction==="rtl"&&(a+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}const eo=25;function xf(e,t){const n=le(e),r=Ce(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){s=o.width,a=o.height;const f=tr();(!f||f&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}const u=Zt(r);if(u<=0){const f=r.ownerDocument,d=f.body,h=getComputedStyle(d),g=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(r.clientWidth-d.clientWidth-g);v<=eo&&(s-=v)}else u<=eo&&(s+=u);return{width:s,height:a,x:c,y:l}}const bf=new Set(["absolute","fixed"]);function wf(e,t){const n=Fe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Se(e)?Ye(e):we(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:a,height:c,x:l,y:u}}function to(e,t,n){let r;if(t==="viewport")r=xf(e,n);else if(t==="document")r=yf(Ce(e));else if(ge(t))r=wf(t,n);else{const o=Ts(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Lt(r)}function ks(e,t){const n=Me(e);return n===t||!ge(n)||qe(n)?!1:ve(n).position==="fixed"||ks(n,t)}function Sf(e,t){const n=t.get(e);if(n)return n;let r=lt(e,[],!1).filter(c=>ge(c)&&tt(c)!=="body"),o=null;const s=ve(e).position==="fixed";let a=s?Me(e):e;for(;ge(a)&&!qe(a);){const c=ve(a),l=er(a);!l&&c.position==="fixed"&&(o=null),(s?!l&&!o:!l&&c.position==="static"&&!!o&&bf.has(o.position)||mt(a)&&!l&&ks(e,a))?r=r.filter(f=>f!==a):o=c,a=Me(a)}return t.set(e,r),r}function Cf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Xt(t)?[]:Sf(t,this._c):[].concat(n),r],c=a[0],l=a.reduce((u,f)=>{const d=to(t,f,o);return u.top=ce(d.top,u.top),u.right=Te(d.right,u.right),u.bottom=Te(d.bottom,u.bottom),u.left=ce(d.left,u.left),u},to(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ef(e){const{width:t,height:n}=Is(e);return{width:t,height:n}}function Rf(e,t,n){const r=Se(t),o=Ce(t),s=n==="fixed",a=Fe(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=we(0);function u(){l.x=Zt(o)}if(r||!r&&!s)if((tt(t)!=="body"||mt(o))&&(c=qt(t)),r){const g=Fe(t,!0,s,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?Ms(o,c):we(0),d=a.left+c.scrollLeft-l.x-f.x,h=a.top+c.scrollTop-l.y-f.y;return{x:d,y:h,width:a.width,height:a.height}}function xn(e){return ve(e).position==="static"}function no(e,t){if(!Se(e)||ve(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ce(e)===n&&(n=n.ownerDocument.body),n}function Ds(e,t){const n=le(e);if(Xt(e))return n;if(!Se(e)){let o=Me(e);for(;o&&!qe(o);){if(ge(o)&&!xn(o))return o;o=Me(o)}return n}let r=no(e,t);for(;r&&af(r)&&xn(r);)r=no(r,t);return r&&qe(r)&&xn(r)&&!er(r)?n:r||ff(e)||n}const Pf=async function(e){const t=this.getOffsetParent||Ds,n=this.getDimensions,r=await n(e.floating);return{reference:Rf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _f(e){return ve(e).direction==="rtl"}const Nf={convertOffsetParentRelativeRectToViewportRelativeRect:gf,getDocumentElement:Ce,getClippingRect:Cf,getOffsetParent:Ds,getElementRects:Pf,getClientRects:vf,getDimensions:Ef,getScale:Ye,isElement:ge,isRTL:_f};function js(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Af(e,t){let n=null,r;const o=Ce(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:f,top:d,width:h,height:g}=u;if(c||t(),!h||!g)return;const v=Pt(d),m=Pt(o.clientWidth-(f+h)),y=Pt(o.clientHeight-(d+g)),x=Pt(f),w={rootMargin:-v+"px "+-m+"px "+-y+"px "+-x+"px",threshold:ce(0,Te(1,l))||1};let C=!0;function _(O){const N=O[0].intersectionRatio;if(N!==l){if(!C)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!js(u,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(_,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,w)}n.observe(e)}return a(!0),s}function Of(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=nr(e),f=o||s?[...u?lt(u):[],...lt(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const d=u&&c?Af(u,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(x=>{let[b]=x;b&&b.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let v,m=l?Fe(e):null;l&&y();function y(){const x=Fe(e);m&&!js(m,x)&&n(),m=x,v=requestAnimationFrame(y)}return n(),()=>{var x;f.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),d?.(),(x=g)==null||x.disconnect(),g=null,l&&cancelAnimationFrame(v)}}const If=ef,Tf=tf,Mf=Zd,kf=rf,Df=Jd,ro=qd,jf=nf,$f=(e,t,n)=>{const r=new Map,o={platform:Nf,...n},s={...o.platform,_c:r};return Xd(e,t,{...o,platform:s})};var Lf=typeof document<"u",Ff=function(){},It=Lf?se.useLayoutEffect:Ff;function Ft(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,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ft(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Ft(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function $s(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function oo(e,t){const n=$s(e);return Math.round(t*n)/n}function bn(e){const t=i.useRef(e);return It(()=>{t.current=e}),t}function Vf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[f,d]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=i.useState(r);Ft(h,r)||g(r);const[v,m]=i.useState(null),[y,x]=i.useState(null),b=i.useCallback(E=>{E!==O.current&&(O.current=E,m(E))},[]),w=i.useCallback(E=>{E!==N.current&&(N.current=E,x(E))},[]),C=s||v,_=a||y,O=i.useRef(null),N=i.useRef(null),P=i.useRef(f),j=l!=null,F=bn(l),z=bn(o),V=bn(u),U=i.useCallback(()=>{if(!O.current||!N.current)return;const E={placement:t,strategy:n,middleware:h};z.current&&(E.platform=z.current),$f(O.current,N.current,E).then(A=>{const J={...A,isPositioned:V.current!==!1};H.current&&!Ft(P.current,J)&&(P.current=J,ft.flushSync(()=>{d(J)}))})},[h,t,n,z,V]);It(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(E=>({...E,isPositioned:!1})))},[u]);const H=i.useRef(!1);It(()=>(H.current=!0,()=>{H.current=!1}),[]),It(()=>{if(C&&(O.current=C),_&&(N.current=_),C&&_){if(F.current)return F.current(C,_,U);U()}},[C,_,U,F,j]);const K=i.useMemo(()=>({reference:O,floating:N,setReference:b,setFloating:w}),[b,w]),k=i.useMemo(()=>({reference:C,floating:_}),[C,_]),W=i.useMemo(()=>{const E={position:n,left:0,top:0};if(!k.floating)return E;const A=oo(k.floating,f.x),J=oo(k.floating,f.y);return c?{...E,transform:"translate("+A+"px, "+J+"px)",...$s(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:J}},[n,c,k.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:U,refs:K,elements:k,floatingStyles:W}),[f,U,K,k,W])}const Wf=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ro({element:r.current,padding:o}).fn(n):{}:r?ro({element:r,padding:o}).fn(n):{}}}},Bf=(e,t)=>({...If(e),options:[e,t]}),Hf=(e,t)=>({...Tf(e),options:[e,t]}),zf=(e,t)=>({...jf(e),options:[e,t]}),Uf=(e,t)=>({...Mf(e),options:[e,t]}),Gf=(e,t)=>({...kf(e),options:[e,t]}),Kf=(e,t)=>({...Df(e),options:[e,t]}),Yf=(e,t)=>({...Wf(e),options:[e,t]});function Xf(e){const t=qf(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Jf);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function qf(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=ep(o),c=Qf(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Zf=Symbol("radix.slottable");function Jf(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zf}function Qf(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ep(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var tp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],np=tp.reduce((e,t)=>{const n=Xf(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),rp="Arrow",Ls=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(np.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ls.displayName=rp;var op=Ls;function sp(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:h,children:g,...v}=d,m=h?.[e]?.[l]||c,y=i.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:y,children:g})};u.displayName=s+"Provider";function f(d,h){const g=h?.[e]?.[l]||c,v=i.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,ip(o,...t)]}function ip(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function ap(e){const t=cp(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(up);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function cp(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=fp(o),c=dp(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lp=Symbol("radix.slottable");function up(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lp}function dp(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function fp(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var pp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fs=pp.reduce((e,t)=>{const n=ap(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),rr="Popper",[Vs,Jt]=sp(rr),[mp,Ws]=Vs(rr),Bs=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return p.jsx(mp,{scope:t,anchor:r,onAnchorChange:o,children:n})};Bs.displayName=rr;var Hs="PopperAnchor",zs=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Ws(Hs,n),a=i.useRef(null),c=q(t,a),l=i.useRef(null);return i.useEffect(()=>{const u=l.current;l.current=r?.current||a.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:p.jsx(Fs.div,{...o,ref:c})});zs.displayName=Hs;var or="PopperContent",[hp,gp]=Vs(or),Us=i.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:v,...m}=e,y=Ws(or,n),[x,b]=i.useState(null),w=q(t,R=>b(R)),[C,_]=i.useState(null),O=Hn(C),N=O?.width??0,P=O?.height??0,j=r+(s!=="center"?"-"+s:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},z=Array.isArray(u)?u:[u],V=z.length>0,U={padding:F,boundary:z.filter(yp),altBoundary:V},{refs:H,floatingStyles:K,placement:k,isPositioned:W,middlewareData:E}=Vf({strategy:"fixed",placement:j,whileElementsMounted:(...R)=>Of(...R,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[Bf({mainAxis:o+P,alignmentAxis:a}),l&&Hf({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?zf():void 0,...U}),l&&Uf({...U}),Gf({...U,apply:({elements:R,rects:Y,availableWidth:ee,availableHeight:X})=>{const{width:Z,height:Q}=Y.reference,de=R.floating.style;de.setProperty("--radix-popper-available-width",`${ee}px`),de.setProperty("--radix-popper-available-height",`${X}px`),de.setProperty("--radix-popper-anchor-width",`${Z}px`),de.setProperty("--radix-popper-anchor-height",`${Q}px`)}}),C&&Yf({element:C,padding:c}),xp({arrowWidth:N,arrowHeight:P}),h&&Kf({strategy:"referenceHidden",...U})]}),[A,J]=Ys(k),S=pe(v);oe(()=>{W&&S?.()},[W,S]);const D=E.arrow?.x,$=E.arrow?.y,L=E.arrow?.centerOffset!==0,[ne,te]=i.useState();return oe(()=>{x&&te(window.getComputedStyle(x).zIndex)},[x]),p.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:W?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[E.transformOrigin?.x,E.transformOrigin?.y].join(" "),...E.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(hp,{scope:n,placedSide:A,onArrowChange:_,arrowX:D,arrowY:$,shouldHideArrow:L,children:p.jsx(Fs.div,{"data-side":A,"data-align":J,...m,ref:w,style:{...m.style,animation:W?void 0:"none"}})})})});Us.displayName=or;var Gs="PopperArrow",vp={top:"bottom",right:"left",bottom:"top",left:"right"},Ks=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=gp(Gs,r),a=vp[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(op,{...o,ref:n,style:{...o.style,display:"block"}})})});Ks.displayName=Gs;function yp(e){return e!==null}var xp=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,c=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,f]=Ys(n),d={start:"0%",center:"50%",end:"100%"}[f],h=(o.arrow?.x??0)+c/2,g=(o.arrow?.y??0)+l/2;let v="",m="";return u==="bottom"?(v=a?d:`${h}px`,m=`${-l}px`):u==="top"?(v=a?d:`${h}px`,m=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,m=a?d:`${g}px`):u==="left"&&(v=`${r.floating.width+l}px`,m=a?d:`${g}px`),{data:{x:v,y:m}}}});function Ys(e){const[t,n="center"]=e.split("-");return[t,n]}var sr=Bs,Xs=zs,qs=Us,Zs=Ks;function bp(e){const t=wp(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Cp);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function wp(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=Rp(o),c=Ep(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sp=Symbol("radix.slottable");function Cp(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sp}function Ep(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Rp(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Pp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_p=Pp.reduce((e,t)=>{const n=bp(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Np="Portal",Qt=i.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=i.useState(!1);oe(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?fo.createPortal(p.jsx(_p.div,{...r,ref:t}),a):null});Qt.displayName=Np;function Js(e){const t=Ap(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Ip);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ap(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=Mp(o),c=Tp(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Op=Symbol("radix.slottable");function Ip(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Op}function Tp(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Mp(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var kp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ue=kp.reduce((e,t)=>{const n=Js(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Dp(e){const t=jp(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Lp);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function jp(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=Vp(o),c=Fp(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $p=Symbol("radix.slottable");function Lp(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$p}function Fp(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Vp(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bp=Wp.reduce((e,t)=>{const n=Dp(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Qs=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"}),Hp="VisuallyHidden",zp=i.forwardRef((e,t)=>p.jsx(Bp.span,{...e,ref:t,style:{...Qs,...e.style}}));zp.displayName=Hp;var Up=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ue=new WeakMap,_t=new WeakMap,Nt={},wn=0,ei=function(e){return e&&(e.host||ei(e.parentNode))},Gp=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ei(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Kp=function(e,t,n,r){var o=Gp(t,Array.isArray(e)?e:[e]);Nt[n]||(Nt[n]=new WeakMap);var s=Nt[n],a=[],c=new Set,l=new Set(o),u=function(d){!d||c.has(d)||(c.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(c.has(h))f(h);else try{var g=h.getAttribute(r),v=g!==null&&g!=="false",m=(Ue.get(h)||0)+1,y=(s.get(h)||0)+1;Ue.set(h,m),s.set(h,y),a.push(h),m===1&&v&&_t.set(h,!0),y===1&&h.setAttribute(n,"true"),v||h.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return f(t),c.clear(),wn++,function(){a.forEach(function(d){var h=Ue.get(d)-1,g=s.get(d)-1;Ue.set(d,h),s.set(d,g),h||(_t.has(d)||d.removeAttribute(r),_t.delete(d)),g||d.removeAttribute(n)}),wn--,wn||(Ue=new WeakMap,Ue=new WeakMap,_t=new WeakMap,Nt={})}},ir=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Up(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Kp(r,o,n,"aria-hidden")):function(){return null}},xe=function(){return xe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},xe.apply(this,arguments)};function ti(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Yp(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Tt="right-scroll-bar-position",Mt="width-before-scroll-bar",Xp="with-scroll-bars-hidden",qp="--removed-body-scroll-bar-size";function Sn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Zp(e,t){var n=se.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Jp=typeof window<"u"?i.useLayoutEffect:i.useEffect,so=new WeakMap;function Qp(e,t){var n=Zp(null,function(r){return e.forEach(function(o){return Sn(o,r)})});return Jp(function(){var r=so.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||Sn(c,null)}),s.forEach(function(c){o.has(c)||Sn(c,a)})}so.set(n,e)},[e]),n}function em(e){return e}function tm(e,t){t===void 0&&(t=em);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var l=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function nm(e){e===void 0&&(e={});var t=tm(null);return t.options=xe({async:!0,ssr:!1},e),t}var ni=function(e){var t=e.sideCar,n=ti(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,xe({},n))};ni.isSideCarExport=!0;function rm(e,t){return e.useMedium(t),ni}var ri=nm(),Cn=function(){},en=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Cn,onWheelCapture:Cn,onTouchMoveCapture:Cn}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,g=e.noRelative,v=e.noIsolation,m=e.inert,y=e.allowPinchZoom,x=e.as,b=x===void 0?"div":x,w=e.gapMode,C=ti(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,O=Qp([n,t]),N=xe(xe({},C),o);return i.createElement(i.Fragment,null,f&&i.createElement(_,{sideCar:ri,removeScrollBar:u,shards:d,noRelative:g,noIsolation:v,inert:m,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:w}),a?i.cloneElement(i.Children.only(c),xe(xe({},N),{ref:O})):i.createElement(b,xe({},N,{className:l,ref:O}),c))});en.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};en.classNames={fullWidth:Mt,zeroRight:Tt};var om=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function sm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=om();return t&&e.setAttribute("nonce",t),e}function im(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function am(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=sm())&&(im(t,n),am(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lm=function(){var e=cm();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},oi=function(){var e=lm(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},um={left:0,top:0,right:0,gap:0},En=function(e){return parseInt(e||"",10)||0},dm=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[En(n),En(r),En(o)]},fm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return um;var t=dm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},pm=oi(),Xe="data-scroll-locked",mm=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
7
- .`.concat(Xp,` {
6
+ <%s key={someKey} {...props} />`,O,M,H,M),J[M+O]=!0)}if(M=null,T!==void 0&&(n(T),M=""+T),a(N)&&(n(N.key),M=""+N.key),"key"in N){T={};for(var te in N)te!=="key"&&(T[te]=N[te])}else T=N;return M&&i(T,typeof k=="function"?k.displayName||k.name||"Unknown":k),d(k,M,T,o(),W,K)}function u(k){m(k)?k._store&&(k._store.validated=1):typeof k=="object"&&k!==null&&k.$$typeof===I&&(k._payload.status==="fulfilled"?m(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function m(k){return typeof k=="object"&&k!==null&&k.$$typeof===g}var h=w,g=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),C=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),B=Symbol.for("react.client.reference"),z=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=Object.prototype.hasOwnProperty,G=Array.isArray,Z=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(k){return k()}};var j,V={},D=h.react_stack_bottom_frame.bind(h,s)(),$=Z(r(s)),J={};Rn.Fragment=y,Rn.jsx=function(k,N,T){var O=1e4>z.recentlyCreatedOwnerStacks++;return f(k,N,T,!1,O?Error("react-stack-top-frame"):D,O?Z(r(k)):$)},Rn.jsxs=function(k,N,T){var O=1e4>z.recentlyCreatedOwnerStacks++;return f(k,N,T,!0,O?Error("react-stack-top-frame"):D,O?Z(r(k)):$)}})()),Rn}var ai;function cv(){return ai||(ai=1,process.env.NODE_ENV==="production"?Cr.exports=av():Cr.exports=iv()),Cr.exports}var p=cv();function ii(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function le(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ii(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ii(e[o],null)}}}}function ee(...e){return c.useCallback(le(...e),e)}var lv=Symbol.for("react.lazy"),jr=c[" use ".trim().toString()];function uv(e){return typeof e=="object"&&e!==null&&"then"in e}function Pc(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===lv&&"_payload"in e&&uv(e._payload)}function Rc(e){const t=dv(e),n=c.forwardRef((r,o)=>{let{children:s,...a}=r;Pc(s)&&typeof jr=="function"&&(s=jr(s._payload));const i=c.Children.toArray(s),l=i.find(pv);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Nc=Rc("Slot");function dv(e){const t=c.forwardRef((n,r)=>{let{children:o,...s}=n;if(Pc(o)&&typeof jr=="function"&&(o=jr(o._payload)),c.isValidElement(o)){const a=hv(o),i=mv(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fv=Symbol("radix.slottable");function pv(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fv}function mv(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function hv(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const ci=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,li=fc,pn=(e,t)=>n=>{var r;if(t?.variants==null)return li(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(d=>{const f=n?.[d],u=s?.[d];if(f===null)return null;const m=ci(f)||ci(u);return o[d][m]}),i=n&&Object.entries(n).reduce((d,f)=>{let[u,m]=f;return m===void 0||(d[u]=m),d},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:u,className:m,...h}=f;return Object.entries(h).every(g=>{let[v,y]=g;return Array.isArray(y)?y.includes({...s,...i}[v]):{...s,...i}[v]===y})?[...d,u,m]:d},[]);return li(e,a,l,n?.class,n?.className)},An=pn("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),_c=c.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?Nc:"button";return p.jsx(a,{className:A(An({variant:t,size:n,className:e})),ref:s,...o})});_c.displayName="Button";const kc=c.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:A("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));kc.displayName="Input";const Mc=c.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:A("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Mc.displayName="Textarea";var gv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Me=gv.reduce((e,t)=>{const n=Rc(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),vv="Label",Tc=c.forwardRef((e,t)=>p.jsx(Me.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Tc.displayName=vv;var Dc=Tc;const yv=pn("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Oc=c.forwardRef(({className:e,...t},n)=>p.jsx(Dc,{ref:n,className:A(yv(),e),...t}));Oc.displayName=Dc.displayName;const Ac=pn("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function bv({className:e,variant:t,...n}){return p.jsx("div",{className:A(Ac({variant:t}),e),...n})}var xv="Separator",ui="horizontal",wv=["horizontal","vertical"],Ic=c.forwardRef((e,t)=>{const{decorative:n,orientation:r=ui,...o}=e,s=Sv(r)?r:ui,i=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return p.jsx(Me.div,{"data-orientation":s,...i,...o,ref:t})});Ic.displayName=xv;function Sv(e){return wv.includes(e)}var jc=Ic;const $c=c.forwardRef(({className:e,orientation:t="horizontal",...n},r)=>p.jsx(jc,{ref:r,decorative:!0,orientation:t,className:A("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));$c.displayName=jc.displayName;function Wc(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a);i.displayName=s+"Context";const l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Cv(o,...t)]}function Cv(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function xe(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}var ge=globalThis?.document?c.useLayoutEffect:()=>{},Er={exports:{}},Yo={};var di;function Ev(){if(di)return Yo;di=1;var e=w;function t(u,m){return u===m&&(u!==0||1/u===1/m)||u!==u&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function i(u,m){var h=m(),g=r({inst:{value:h,getSnapshot:m}}),v=g[0].inst,y=g[1];return s(function(){v.value=h,v.getSnapshot=m,l(v)&&y({inst:v})},[u,h,m]),o(function(){return l(v)&&y({inst:v}),u(function(){l(v)&&y({inst:v})})},[u]),a(h),h}function l(u){var m=u.getSnapshot;u=u.value;try{var h=m();return!n(u,h)}catch{return!0}}function d(u,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:i;return Yo.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Yo}var zo={};var fi;function Pv(){return fi||(fi=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}function t(h,g){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var v=g();if(!u){var y=g();s(v,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}y=a({inst:{value:v,getSnapshot:g}});var b=y[0].inst,x=y[1];return l(function(){b.value=v,b.getSnapshot=g,n(b)&&x({inst:b})},[h,v,g]),i(function(){return n(b)&&x({inst:b}),h(function(){n(b)&&x({inst:b})})},[h]),d(v),v}function n(h){var g=h.getSnapshot;h=h.value;try{var v=g();return!s(h,v)}catch{return!0}}function r(h,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=w,s=typeof Object.is=="function"?Object.is:e,a=o.useState,i=o.useEffect,l=o.useLayoutEffect,d=o.useDebugValue,f=!1,u=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;zo.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),zo}var pi;function Rv(){return pi||(pi=1,process.env.NODE_ENV==="production"?Er.exports=Ev():Er.exports=Pv()),Er.exports}var Nv=Rv();function _v(){return Nv.useSyncExternalStore(kv,()=>!0,()=>!1)}function kv(){return()=>{}}var Is="Avatar",[Mv]=Wc(Is),[Tv,Fc]=Mv(Is),Lc=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=c.useState("idle");return p.jsx(Tv,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:p.jsx(Me.span,{...r,ref:t})})});Lc.displayName=Is;var Bc="AvatarImage",Vc=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,a=Fc(Bc,n),i=Dv(r,s),l=xe(d=>{o(d),a.onImageLoadingStatusChange(d)});return ge(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?p.jsx(Me.img,{...s,ref:t,src:r}):null});Vc.displayName=Bc;var Hc="AvatarFallback",Yc=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=Fc(Hc,n),[a,i]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),a&&s.imageLoadingStatus!=="loaded"?p.jsx(Me.span,{...o,ref:t}):null});Yc.displayName=Hc;function mi(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Dv(e,{referrerPolicy:t,crossOrigin:n}){const r=_v(),o=c.useRef(null),s=r?(o.current||(o.current=new window.Image),o.current):null,[a,i]=c.useState(()=>mi(s,e));return ge(()=>{i(mi(s,e))},[s,e]),ge(()=>{const l=u=>()=>{i(u)};if(!s)return;const d=l("loaded"),f=l("error");return s.addEventListener("load",d),s.addEventListener("error",f),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",d),s.removeEventListener("error",f)}},[s,n,t]),a}var zc=Lc,Gc=Vc,Uc=Yc;const Kc=c.forwardRef(({className:e,...t},n)=>p.jsx(zc,{ref:n,className:A("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Kc.displayName=zc.displayName;const qc=c.forwardRef(({className:e,...t},n)=>p.jsx(Gc,{ref:n,className:A("aspect-square h-full w-full",e),...t}));qc.displayName=Gc.displayName;const Xc=c.forwardRef(({className:e,...t},n)=>p.jsx(Uc,{ref:n,className:A("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Xc.displayName=Uc.displayName;function Ov(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Av(o,...t)]}function Av(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function L(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var Iv=c[" useInsertionEffect ".trim().toString()]||ge;function we({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=jv({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const u=f.current;u!==i&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${i?"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.`),f.current=i},[i,r])}const d=c.useCallback(f=>{if(i){const u=$v(f)?f(e):f;u!==e&&a.current?.(u)}else s(f)},[i,e,s,a]);return[l,d]}function jv({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),s=c.useRef(t);return Iv(()=>{s.current=t},[t]),c.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function $v(e){return typeof e=="function"}function Yn(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 zn(e){const[t,n]=c.useState(void 0);return ge(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const l=s.borderBoxSize,d=Array.isArray(l)?l[0]:l;a=d.inlineSize,i=d.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function Wv(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var Se=e=>{const{present:t,children:n}=e,r=Fv(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),s=ee(r.ref,Lv(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:s}):null};Se.displayName="Presence";function Fv(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),s=c.useRef("none"),a=e?"mounted":"unmounted",[i,l]=Wv(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const d=Pr(r.current);s.current=i==="mounted"?d:"none"},[i]),ge(()=>{const d=r.current,f=o.current;if(f!==e){const m=s.current,h=Pr(d);e?l("MOUNT"):h==="none"||d?.display==="none"?l("UNMOUNT"):l(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ge(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,u=h=>{const v=Pr(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&v&&(l("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},m=h=>{h.target===t&&(s.current=Pr(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:c.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Pr(e){return e?.animationName||"none"}function Lv(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Bv(e){const t=Vv(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(Yv);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Vv(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=Gv(o),i=zv(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hv=Symbol("radix.slottable");function Yv(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Hv}function zv(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Gv(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Uv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],js=Uv.reduce((e,t)=>{const n=Bv(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Xr="Checkbox",[Kv]=Ov(Xr),[qv,$s]=Kv(Xr);function Xv(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:s,form:a,name:i,onCheckedChange:l,required:d,value:f="on",internal_do_not_use_render:u}=e,[m,h]=we({prop:n,defaultProp:o??!1,onChange:l,caller:Xr}),[g,v]=c.useState(null),[y,b]=c.useState(null),x=c.useRef(!1),S=g?!!a||!!g.closest("form"):!0,C={checked:m,disabled:s,setChecked:h,control:g,setControl:v,name:i,form:a,value:f,hasConsumerStoppedPropagationRef:x,required:d,defaultChecked:Rt(o)?!1:o,isFormControl:S,bubbleInput:y,setBubbleInput:b};return p.jsx(qv,{scope:t,...C,children:Zv(u)?u(C):r})}var Zc="CheckboxTrigger",Qc=c.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:s,value:a,disabled:i,checked:l,required:d,setControl:f,setChecked:u,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:g}=$s(Zc,e),v=ee(o,f),y=c.useRef(l);return c.useEffect(()=>{const b=s?.form;if(b){const x=()=>u(y.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[s,u]),p.jsx(js.button,{type:"button",role:"checkbox","aria-checked":Rt(l)?"mixed":l,"aria-required":d,"data-state":rl(l),"data-disabled":i?"":void 0,disabled:i,value:a,...r,ref:v,onKeyDown:L(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:L(n,b=>{u(x=>Rt(x)?!0:!x),g&&h&&(m.current=b.isPropagationStopped(),m.current||b.stopPropagation())})})});Qc.displayName=Zc;var Ws=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:a,disabled:i,value:l,onCheckedChange:d,form:f,...u}=e;return p.jsx(Xv,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:i,required:a,onCheckedChange:d,name:r,form:f,value:l,internal_do_not_use_render:({isFormControl:m})=>p.jsxs(p.Fragment,{children:[p.jsx(Qc,{...u,ref:t,__scopeCheckbox:n}),m&&p.jsx(nl,{__scopeCheckbox:n})]})})});Ws.displayName=Xr;var Jc="CheckboxIndicator",el=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=$s(Jc,n);return p.jsx(Se,{present:r||Rt(s.checked)||s.checked===!0,children:p.jsx(js.span,{"data-state":rl(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});el.displayName=Jc;var tl="CheckboxBubbleInput",nl=c.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:a,required:i,disabled:l,name:d,value:f,form:u,bubbleInput:m,setBubbleInput:h}=$s(tl,e),g=ee(n,h),v=Yn(s),y=zn(r);c.useEffect(()=>{const x=m;if(!x)return;const S=window.HTMLInputElement.prototype,P=Object.getOwnPropertyDescriptor(S,"checked").set,E=!o.current;if(v!==s&&P){const R=new Event("click",{bubbles:E});x.indeterminate=Rt(s),P.call(x,Rt(s)?!1:s),x.dispatchEvent(R)}},[m,v,s,o]);const b=c.useRef(Rt(s)?!1:s);return p.jsx(js.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??b.current,required:i,disabled:l,name:d,value:f,form:u,...t,tabIndex:-1,ref:g,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});nl.displayName=tl;function Zv(e){return typeof e=="function"}function Rt(e){return e==="indeterminate"}function rl(e){return Rt(e)?"indeterminate":e?"checked":"unchecked"}const Qv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Jv=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),hi=e=>{const t=Jv(e);return t.charAt(0).toUpperCase()+t.slice(1)},ol=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),ey=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var ty={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ny=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},l)=>w.createElement("svg",{ref:l,...ty,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ol("lucide",o),...!s&&!ey(i)&&{"aria-hidden":"true"},...i},[...a.map(([d,f])=>w.createElement(d,f)),...Array.isArray(s)?s:[s]]));const gt=(e,t)=>{const n=w.forwardRef(({className:r,...o},s)=>w.createElement(ny,{ref:s,iconNode:t,className:ol(`lucide-${Qv(hi(e))}`,`lucide-${e}`,r),...o}));return n.displayName=hi(e),n};const ry=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Fs=gt("check",ry);const oy=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ls=gt("chevron-down",oy);const sy=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ay=gt("chevron-left",sy);const iy=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Bs=gt("chevron-right",iy);const cy=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ly=gt("chevron-up",cy);const uy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],sl=gt("circle",uy);const dy=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],fy=gt("ellipsis",dy);const py=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],my=gt("search",py);const hy=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],al=gt("x",hy),il=c.forwardRef(({className:e,...t},n)=>p.jsx(Ws,{ref:n,className:A("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:p.jsx(el,{className:A("flex items-center justify-center text-current"),children:p.jsx(Fs,{className:"h-4 w-4"})})}));il.displayName=Ws.displayName;function gy(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,vy(o,...t)]}function vy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function yy(e){const t=by(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(wy);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function by(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=Cy(o),i=Sy(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xy=Symbol("radix.slottable");function wy(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xy}function Sy(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Cy(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ey=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cl=Ey.reduce((e,t)=>{const n=yy(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Zr="Switch",[Py]=gy(Zr),[Ry,Ny]=Py(Zr),ll=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:a,disabled:i,value:l="on",onCheckedChange:d,form:f,...u}=e,[m,h]=c.useState(null),g=ee(t,S=>h(S)),v=c.useRef(!1),y=m?f||!!m.closest("form"):!0,[b,x]=we({prop:o,defaultProp:s??!1,onChange:d,caller:Zr});return p.jsxs(Ry,{scope:n,checked:b,disabled:i,children:[p.jsx(cl.button,{type:"button",role:"switch","aria-checked":b,"aria-required":a,"data-state":pl(b),"data-disabled":i?"":void 0,disabled:i,value:l,...u,ref:g,onClick:L(e.onClick,S=>{x(C=>!C),y&&(v.current=S.isPropagationStopped(),v.current||S.stopPropagation())})}),y&&p.jsx(fl,{control:m,bubbles:!v.current,name:r,value:l,checked:b,required:a,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});ll.displayName=Zr;var ul="SwitchThumb",dl=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Ny(ul,n);return p.jsx(cl.span,{"data-state":pl(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});dl.displayName=ul;var _y="SwitchBubbleInput",fl=c.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const a=c.useRef(null),i=ee(a,s),l=Yn(n),d=zn(t);return c.useEffect(()=>{const f=a.current;if(!f)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(l!==n&&h){const g=new Event("click",{bubbles:r});h.call(f,n),f.dispatchEvent(g)}},[l,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});fl.displayName=_y;function pl(e){return e?"checked":"unchecked"}var ml=ll,ky=dl;const hl=c.forwardRef(({className:e,...t},n)=>p.jsx(ml,{className:A("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:p.jsx(ky,{className:A("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));hl.displayName=ml.displayName;function In(e,[t,n]){return Math.min(n,Math.max(t,e))}function My(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Ty(o,...t)]}function Ty(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function gi(e){const t=Dy(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(Ay);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Dy(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=jy(o),i=Iy(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Oy=Symbol("radix.slottable");function Ay(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Oy}function Iy(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function jy(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Gn(e){const t=e+"CollectionProvider",[n,r]=My(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:y,children:b}=v,x=w.useRef(null),S=w.useRef(new Map).current;return p.jsx(o,{scope:y,itemMap:S,collectionRef:x,children:b})};a.displayName=t;const i=e+"CollectionSlot",l=gi(i),d=w.forwardRef((v,y)=>{const{scope:b,children:x}=v,S=s(i,b),C=ee(y,S.collectionRef);return p.jsx(l,{ref:C,children:x})});d.displayName=i;const f=e+"CollectionItemSlot",u="data-radix-collection-item",m=gi(f),h=w.forwardRef((v,y)=>{const{scope:b,children:x,...S}=v,C=w.useRef(null),P=ee(y,C),E=s(f,b);return w.useEffect(()=>(E.itemMap.set(C,{ref:C,...S}),()=>{E.itemMap.delete(C)})),p.jsx(m,{[u]:"",ref:P,children:x})});h.displayName=f;function g(v){const y=s(e+"CollectionConsumer",v);return w.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(y.itemMap.values()).sort((E,R)=>S.indexOf(E.ref.current)-S.indexOf(R.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:d,ItemSlot:h},g,r]}function $y(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Wy(o,...t)]}function Wy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Fy=c.createContext(void 0);function vt(e){const t=c.useContext(Fy);return e||t||"ltr"}function Ly(e){const t=By(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(Hy);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function By(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=zy(o),i=Yy(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vy=Symbol("radix.slottable");function Hy(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vy}function Yy(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function zy(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Gy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gl=Gy.reduce((e,t)=>{const n=Ly(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Uy(e,t){e&&Hn.flushSync(()=>e.dispatchEvent(t))}function Ky(e,t=globalThis?.document){const n=xe(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var qy="DismissableLayer",ds="dismissableLayer.update",Xy="dismissableLayer.pointerDownOutside",Zy="dismissableLayer.focusOutside",vi,vl=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mn=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...l}=e,d=c.useContext(vl),[f,u]=c.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=c.useState({}),g=ee(t,R=>u(R)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),x=f?v.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,P=eb(R=>{const _=R.target,I=[...d.branches].some(F=>F.contains(_));!C||I||(o?.(R),a?.(R),R.defaultPrevented||i?.())},m),E=tb(R=>{const _=R.target;[...d.branches].some(F=>F.contains(_))||(s?.(R),a?.(R),R.defaultPrevented||i?.())},m);return Ky(R=>{x===d.layers.size-1&&(r?.(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},m),c.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(vi=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),yi(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=vi)}},[f,m,n,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),yi())},[f,d]),c.useEffect(()=>{const R=()=>h({});return document.addEventListener(ds,R),()=>document.removeEventListener(ds,R)},[]),p.jsx(gl.div,{...l,ref:g,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:L(e.onFocusCapture,E.onFocusCapture),onBlurCapture:L(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,P.onPointerDownCapture)})});mn.displayName=qy;var Qy="DismissableLayerBranch",Jy=c.forwardRef((e,t)=>{const n=c.useContext(vl),r=c.useRef(null),o=ee(t,r);return c.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(gl.div,{...e,ref:o})});Jy.displayName=Qy;function eb(e,t=globalThis?.document){const n=xe(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let l=function(){yl(Xy,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tb(e,t=globalThis?.document){const n=xe(e),r=c.useRef(!1);return c.useEffect(()=>{const o=s=>{s.target&&!r.current&&yl(Zy,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function yi(){const e=new CustomEvent(ds);document.dispatchEvent(e)}function yl(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Uy(o,s):o.dispatchEvent(s)}var Go=0;function Qr(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??bi()),document.body.insertAdjacentElement("beforeend",e[1]??bi()),Go++,()=>{Go===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Go--}},[])}function bi(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function nb(e){const t=rb(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(sb);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function rb(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=ib(o),i=ab(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ob=Symbol("radix.slottable");function sb(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ob}function ab(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ib(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var cb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lb=cb.reduce((e,t)=>{const n=nb(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Uo="focusScope.autoFocusOnMount",Ko="focusScope.autoFocusOnUnmount",xi={bubbles:!1,cancelable:!0},ub="FocusScope",Un=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,l]=c.useState(null),d=xe(o),f=xe(s),u=c.useRef(null),m=ee(t,v=>l(v)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let v=function(S){if(h.paused||!i)return;const C=S.target;i.contains(C)?u.current=C:Pt(u.current,{select:!0})},y=function(S){if(h.paused||!i)return;const C=S.relatedTarget;C!==null&&(i.contains(C)||Pt(u.current,{select:!0}))},b=function(S){if(document.activeElement===document.body)for(const P of S)P.removedNodes.length>0&&Pt(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const x=new MutationObserver(b);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),x.disconnect()}}},[r,i,h.paused]),c.useEffect(()=>{if(i){Si.add(h);const v=document.activeElement;if(!i.contains(v)){const b=new CustomEvent(Uo,xi);i.addEventListener(Uo,d),i.dispatchEvent(b),b.defaultPrevented||(db(gb(bl(i)),{select:!0}),document.activeElement===v&&Pt(i))}return()=>{i.removeEventListener(Uo,d),setTimeout(()=>{const b=new CustomEvent(Ko,xi);i.addEventListener(Ko,f),i.dispatchEvent(b),b.defaultPrevented||Pt(v??document.body,{select:!0}),i.removeEventListener(Ko,f),Si.remove(h)},0)}}},[i,d,f,h]);const g=c.useCallback(v=>{if(!n&&!r||h.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(y&&b){const x=v.currentTarget,[S,C]=fb(x);S&&C?!v.shiftKey&&b===C?(v.preventDefault(),n&&Pt(S,{select:!0})):v.shiftKey&&b===S&&(v.preventDefault(),n&&Pt(C,{select:!0})):b===x&&v.preventDefault()}},[n,r,h.paused]);return p.jsx(lb.div,{tabIndex:-1,...a,ref:m,onKeyDown:g})});Un.displayName=ub;function db(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pt(r,{select:t}),document.activeElement!==n)return}function fb(e){const t=bl(e),n=wi(t,e),r=wi(t.reverse(),e);return[n,r]}function bl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function wi(e,t){for(const n of e)if(!pb(n,{upTo:t}))return n}function pb(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mb(e){return e instanceof HTMLInputElement&&"select"in e}function Pt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&mb(e)&&t&&e.select()}}var Si=hb();function hb(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ci(e,t),e.unshift(t)},remove(t){e=Ci(e,t),e[0]?.resume()}}}function Ci(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function gb(e){return e.filter(t=>t.tagName!=="A")}var vb=c[" useId ".trim().toString()]||(()=>{}),yb=0;function me(e){const[t,n]=c.useState(vb());return ge(()=>{n(r=>r??String(yb++))},[e]),t?`radix-${t}`:""}const bb=["top","right","bottom","left"],Nt=Math.min,Ie=Math.max,$r=Math.round,Rr=Math.floor,st=e=>({x:e,y:e}),xb={left:"right",right:"left",bottom:"top",top:"bottom"},wb={start:"end",end:"start"};function fs(e,t,n){return Ie(e,Nt(t,n))}function mt(e,t){return typeof e=="function"?e(t):e}function ht(e){return e.split("-")[0]}function hn(e){return e.split("-")[1]}function Vs(e){return e==="x"?"y":"x"}function Hs(e){return e==="y"?"height":"width"}const Sb=new Set(["top","bottom"]);function rt(e){return Sb.has(ht(e))?"y":"x"}function Ys(e){return Vs(rt(e))}function Cb(e,t,n){n===void 0&&(n=!1);const r=hn(e),o=Ys(e),s=Hs(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Wr(a)),[a,Wr(a)]}function Eb(e){const t=Wr(e);return[ps(e),t,ps(t)]}function ps(e){return e.replace(/start|end/g,t=>wb[t])}const Ei=["left","right"],Pi=["right","left"],Pb=["top","bottom"],Rb=["bottom","top"];function Nb(e,t,n){switch(e){case"top":case"bottom":return n?t?Pi:Ei:t?Ei:Pi;case"left":case"right":return t?Pb:Rb;default:return[]}}function _b(e,t,n,r){const o=hn(e);let s=Nb(ht(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(ps)))),s}function Wr(e){return e.replace(/left|right|bottom|top/g,t=>xb[t])}function kb(e){return{top:0,right:0,bottom:0,left:0,...e}}function xl(e){return typeof e!="number"?kb(e):{top:e,right:e,bottom:e,left:e}}function Fr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ri(e,t,n){let{reference:r,floating:o}=e;const s=rt(t),a=Ys(t),i=Hs(a),l=ht(t),d=s==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let h;switch(l){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-o.width,y:u};break;default:h={x:r.x,y:r.y}}switch(hn(t)){case"start":h[a]-=m*(n&&d?-1:1);break;case"end":h[a]+=m*(n&&d?-1:1);break}return h}const Mb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=Ri(d,r,l),m=r,h={},g=0;for(let v=0;v<i.length;v++){const{name:y,fn:b}=i[v],{x,y:S,data:C,reset:P}=await b({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:d,platform:a,elements:{reference:e,floating:t}});f=x??f,u=S??u,h={...h,[y]:{...h[y],...C}},P&&g<=50&&(g++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(d=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:f,y:u}=Ri(d,m,l)),v=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:h}};async function jn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:h=0}=mt(t,e),g=xl(h),y=i[m?u==="floating"?"reference":"floating":u],b=Fr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:l})),x=u==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),C=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},P=Fr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:S,strategy:l}):x);return{top:(b.top-P.top+g.top)/C.y,bottom:(P.bottom-b.bottom+g.bottom)/C.y,left:(b.left-P.left+g.left)/C.x,right:(P.right-b.right+g.right)/C.x}}const Tb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:d,padding:f=0}=mt(e,t)||{};if(d==null)return{};const u=xl(f),m={x:n,y:r},h=Ys(o),g=Hs(h),v=await a.getDimensions(d),y=h==="y",b=y?"top":"left",x=y?"bottom":"right",S=y?"clientHeight":"clientWidth",C=s.reference[g]+s.reference[h]-m[h]-s.floating[g],P=m[h]-s.reference[h],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let R=E?E[S]:0;(!R||!await(a.isElement==null?void 0:a.isElement(E)))&&(R=i.floating[S]||s.floating[g]);const _=C/2-P/2,I=R/2-v[g]/2-1,F=Nt(u[b],I),B=Nt(u[x],I),z=F,U=R-v[g]-B,G=R/2-v[g]/2+_,Z=fs(z,G,U),j=!l.arrow&&hn(o)!=null&&G!==Z&&s.reference[g]/2-(G<z?F:B)-v[g]/2<0,V=j?G<z?G-z:G-U:0;return{[h]:m[h]+V,data:{[h]:Z,centerOffset:G-Z-V,...j&&{alignmentOffset:V}},reset:j}}}),Db=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...y}=mt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=ht(o),x=rt(i),S=ht(i)===i,C=await(l.isRTL==null?void 0:l.isRTL(d.floating)),P=m||(S||!v?[Wr(i)]:Eb(i)),E=g!=="none";!m&&E&&P.push(..._b(i,v,g,C));const R=[i,...P],_=await jn(t,y),I=[];let F=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&I.push(_[b]),u){const G=Cb(o,a,C);I.push(_[G[0]],_[G[1]])}if(F=[...F,{placement:o,overflows:I}],!I.every(G=>G<=0)){var B,z;const G=(((B=s.flip)==null?void 0:B.index)||0)+1,Z=R[G];if(Z&&(!(u==="alignment"?x!==rt(Z):!1)||F.every(D=>rt(D.placement)===x?D.overflows[0]>0:!0)))return{data:{index:G,overflows:F},reset:{placement:Z}};let j=(z=F.filter(V=>V.overflows[0]<=0).sort((V,D)=>V.overflows[1]-D.overflows[1])[0])==null?void 0:z.placement;if(!j)switch(h){case"bestFit":{var U;const V=(U=F.filter(D=>{if(E){const $=rt(D.placement);return $===x||$==="y"}return!0}).map(D=>[D.placement,D.overflows.filter($=>$>0).reduce(($,J)=>$+J,0)]).sort((D,$)=>D[1]-$[1])[0])==null?void 0:U[0];V&&(j=V);break}case"initialPlacement":j=i;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function Ni(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _i(e){return bb.some(t=>e[t]>=0)}const Ob=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=mt(e,t);switch(r){case"referenceHidden":{const s=await jn(t,{...o,elementContext:"reference"}),a=Ni(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:_i(a)}}}case"escaped":{const s=await jn(t,{...o,altBoundary:!0}),a=Ni(s,n.floating);return{data:{escapedOffsets:a,escaped:_i(a)}}}default:return{}}}}},wl=new Set(["left","top"]);async function Ab(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ht(n),i=hn(n),l=rt(n)==="y",d=wl.has(a)?-1:1,f=s&&l?-1:1,u=mt(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&typeof g=="number"&&(h=i==="end"?g*-1:g),l?{x:h*f,y:m*d}:{x:m*d,y:h*f}}const Ib=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,l=await Ab(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},jb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:y=>{let{x:b,y:x}=y;return{x:b,y:x}}},...l}=mt(e,t),d={x:n,y:r},f=await jn(t,l),u=rt(ht(o)),m=Vs(u);let h=d[m],g=d[u];if(s){const y=m==="y"?"top":"left",b=m==="y"?"bottom":"right",x=h+f[y],S=h-f[b];h=fs(x,h,S)}if(a){const y=u==="y"?"top":"left",b=u==="y"?"bottom":"right",x=g+f[y],S=g-f[b];g=fs(x,g,S)}const v=i.fn({...t,[m]:h,[u]:g});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:s,[u]:a}}}}}},$b=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:d=!0}=mt(e,t),f={x:n,y:r},u=rt(o),m=Vs(u);let h=f[m],g=f[u];const v=mt(i,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const S=m==="y"?"height":"width",C=s.reference[m]-s.floating[S]+y.mainAxis,P=s.reference[m]+s.reference[S]-y.mainAxis;h<C?h=C:h>P&&(h=P)}if(d){var b,x;const S=m==="y"?"width":"height",C=wl.has(ht(o)),P=s.reference[u]-s.floating[S]+(C&&((b=a.offset)==null?void 0:b[u])||0)+(C?0:y.crossAxis),E=s.reference[u]+s.reference[S]+(C?0:((x=a.offset)==null?void 0:x[u])||0)-(C?y.crossAxis:0);g<P?g=P:g>E&&(g=E)}return{[m]:h,[u]:g}}}},Wb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...d}=mt(e,t),f=await jn(t,d),u=ht(o),m=hn(o),h=rt(o)==="y",{width:g,height:v}=s.floating;let y,b;u==="top"||u==="bottom"?(y=u,b=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(b=u,y=m==="end"?"top":"bottom");const x=v-f.top-f.bottom,S=g-f.left-f.right,C=Nt(v-f[y],x),P=Nt(g-f[b],S),E=!t.middlewareData.shift;let R=C,_=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=x),E&&!m){const F=Ie(f.left,0),B=Ie(f.right,0),z=Ie(f.top,0),U=Ie(f.bottom,0);h?_=g-2*(F!==0||B!==0?F+B:Ie(f.left,f.right)):R=v-2*(z!==0||U!==0?z+U:Ie(f.top,f.bottom))}await l({...t,availableWidth:_,availableHeight:R});const I=await a.getDimensions(i.floating);return g!==I.width||v!==I.height?{reset:{rects:!0}}:{}}}};function Jr(){return typeof window<"u"}function gn(e){return Sl(e)?(e.nodeName||"").toLowerCase():"#document"}function je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function it(e){var t;return(t=(Sl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Sl(e){return Jr()?e instanceof Node||e instanceof je(e).Node:!1}function Xe(e){return Jr()?e instanceof Element||e instanceof je(e).Element:!1}function at(e){return Jr()?e instanceof HTMLElement||e instanceof je(e).HTMLElement:!1}function ki(e){return!Jr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof je(e).ShadowRoot}const Fb=new Set(["inline","contents"]);function Kn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ze(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Fb.has(o)}const Lb=new Set(["table","td","th"]);function Bb(e){return Lb.has(gn(e))}const Vb=[":popover-open",":modal"];function eo(e){return Vb.some(t=>{try{return e.matches(t)}catch{return!1}})}const Hb=["transform","translate","scale","rotate","perspective"],Yb=["transform","translate","scale","rotate","perspective","filter"],zb=["paint","layout","strict","content"];function zs(e){const t=Gs(),n=Xe(e)?Ze(e):e;return Hb.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Yb.some(r=>(n.willChange||"").includes(r))||zb.some(r=>(n.contain||"").includes(r))}function Gb(e){let t=_t(e);for(;at(t)&&!sn(t);){if(zs(t))return t;if(eo(t))return null;t=_t(t)}return null}function Gs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ub=new Set(["html","body","#document"]);function sn(e){return Ub.has(gn(e))}function Ze(e){return je(e).getComputedStyle(e)}function to(e){return Xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _t(e){if(gn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ki(e)&&e.host||it(e);return ki(t)?t.host:t}function Cl(e){const t=_t(e);return sn(t)?e.ownerDocument?e.ownerDocument.body:e.body:at(t)&&Kn(t)?t:Cl(t)}function $n(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Cl(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=je(o);if(s){const i=ms(a);return t.concat(a,a.visualViewport||[],Kn(o)?o:[],i&&n?$n(i):[])}return t.concat(o,$n(o,[],n))}function ms(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function El(e){const t=Ze(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=at(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=$r(n)!==s||$r(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Us(e){return Xe(e)?e:e.contextElement}function rn(e){const t=Us(e);if(!at(t))return st(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=El(t);let a=(s?$r(n.width):n.width)/r,i=(s?$r(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Kb=st(0);function Pl(e){const t=je(e);return!Gs()||!t.visualViewport?Kb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==je(e)?!1:t}function Bt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Us(e);let a=st(1);t&&(r?Xe(r)&&(a=rn(r)):a=rn(e));const i=qb(s,n,r)?Pl(s):st(0);let l=(o.left+i.x)/a.x,d=(o.top+i.y)/a.y,f=o.width/a.x,u=o.height/a.y;if(s){const m=je(s),h=r&&Xe(r)?je(r):r;let g=m,v=ms(g);for(;v&&r&&h!==g;){const y=rn(v),b=v.getBoundingClientRect(),x=Ze(v),S=b.left+(v.clientLeft+parseFloat(x.paddingLeft))*y.x,C=b.top+(v.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,d*=y.y,f*=y.x,u*=y.y,l+=S,d+=C,g=je(v),v=ms(g)}}return Fr({width:f,height:u,x:l,y:d})}function no(e,t){const n=to(e).scrollLeft;return t?t.left+n:Bt(it(e)).left+n}function Rl(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-no(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Xb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=it(r),i=t?eo(t.floating):!1;if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},d=st(1);const f=st(0),u=at(r);if((u||!u&&!s)&&((gn(r)!=="body"||Kn(a))&&(l=to(r)),at(r))){const h=Bt(r);d=rn(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const m=a&&!u&&!s?Rl(a,l):st(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-l.scrollTop*d.y+f.y+m.y}}function Zb(e){return Array.from(e.getClientRects())}function Qb(e){const t=it(e),n=to(e),r=e.ownerDocument.body,o=Ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+no(e);const i=-n.scrollTop;return Ze(r).direction==="rtl"&&(a+=Ie(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const Mi=25;function Jb(e,t){const n=je(e),r=it(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const f=Gs();(!f||f&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const d=no(r);if(d<=0){const f=r.ownerDocument,u=f.body,m=getComputedStyle(u),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-u.clientWidth-h);g<=Mi&&(s-=g)}else d<=Mi&&(s+=d);return{width:s,height:a,x:i,y:l}}const ex=new Set(["absolute","fixed"]);function tx(e,t){const n=Bt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=at(e)?rn(e):st(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,l=o*s.x,d=r*s.y;return{width:a,height:i,x:l,y:d}}function Ti(e,t,n){let r;if(t==="viewport")r=Jb(e,n);else if(t==="document")r=Qb(it(e));else if(Xe(t))r=tx(t,n);else{const o=Pl(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Fr(r)}function Nl(e,t){const n=_t(e);return n===t||!Xe(n)||sn(n)?!1:Ze(n).position==="fixed"||Nl(n,t)}function nx(e,t){const n=t.get(e);if(n)return n;let r=$n(e,[],!1).filter(i=>Xe(i)&&gn(i)!=="body"),o=null;const s=Ze(e).position==="fixed";let a=s?_t(e):e;for(;Xe(a)&&!sn(a);){const i=Ze(a),l=zs(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&ex.has(o.position)||Kn(a)&&!l&&Nl(e,a))?r=r.filter(f=>f!==a):o=i,a=_t(a)}return t.set(e,r),r}function rx(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?eo(t)?[]:nx(t,this._c):[].concat(n),r],i=a[0],l=a.reduce((d,f)=>{const u=Ti(t,f,o);return d.top=Ie(u.top,d.top),d.right=Nt(u.right,d.right),d.bottom=Nt(u.bottom,d.bottom),d.left=Ie(u.left,d.left),d},Ti(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ox(e){const{width:t,height:n}=El(e);return{width:t,height:n}}function sx(e,t,n){const r=at(t),o=it(t),s=n==="fixed",a=Bt(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=st(0);function d(){l.x=no(o)}if(r||!r&&!s)if((gn(t)!=="body"||Kn(o))&&(i=to(t)),r){const h=Bt(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?Rl(o,i):st(0),u=a.left+i.scrollLeft-l.x-f.x,m=a.top+i.scrollTop-l.y-f.y;return{x:u,y:m,width:a.width,height:a.height}}function qo(e){return Ze(e).position==="static"}function Di(e,t){if(!at(e)||Ze(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return it(e)===n&&(n=n.ownerDocument.body),n}function _l(e,t){const n=je(e);if(eo(e))return n;if(!at(e)){let o=_t(e);for(;o&&!sn(o);){if(Xe(o)&&!qo(o))return o;o=_t(o)}return n}let r=Di(e,t);for(;r&&Bb(r)&&qo(r);)r=Di(r,t);return r&&sn(r)&&qo(r)&&!zs(r)?n:r||Gb(e)||n}const ax=async function(e){const t=this.getOffsetParent||_l,n=this.getDimensions,r=await n(e.floating);return{reference:sx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ix(e){return Ze(e).direction==="rtl"}const cx={convertOffsetParentRelativeRectToViewportRelativeRect:Xb,getDocumentElement:it,getClippingRect:rx,getOffsetParent:_l,getElementRects:ax,getClientRects:Zb,getDimensions:ox,getScale:rn,isElement:Xe,isRTL:ix};function kl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lx(e,t){let n=null,r;const o=it(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:f,top:u,width:m,height:h}=d;if(i||t(),!m||!h)return;const g=Rr(u),v=Rr(o.clientWidth-(f+m)),y=Rr(o.clientHeight-(u+h)),b=Rr(f),S={rootMargin:-g+"px "+-v+"px "+-y+"px "+-b+"px",threshold:Ie(0,Nt(1,l))||1};let C=!0;function P(E){const R=E[0].intersectionRatio;if(R!==l){if(!C)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!kl(d,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(P,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,S)}n.observe(e)}return a(!0),s}function ux(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=Us(e),f=o||s?[...d?$n(d):[],...$n(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const u=d&&i?lx(d,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(b=>{let[x]=b;x&&x.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),d&&!l&&h.observe(d),h.observe(t));let g,v=l?Bt(e):null;l&&y();function y(){const b=Bt(e);v&&!kl(v,b)&&n(),v=b,g=requestAnimationFrame(y)}return n(),()=>{var b;f.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),u?.(),(b=h)==null||b.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const dx=Ib,fx=jb,px=Db,mx=Wb,hx=Ob,Oi=Tb,gx=$b,vx=(e,t,n)=>{const r=new Map,o={platform:cx,...n},s={...o.platform,_c:r};return Mb(e,t,{...o,platform:s})};var yx=typeof document<"u",bx=function(){},Dr=yx?w.useLayoutEffect:bx;function Lr(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,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Lr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ml(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ai(e,t){const n=Ml(e);return Math.round(t*n)/n}function Xo(e){const t=c.useRef(e);return Dr(()=>{t.current=e}),t}function xx(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:d}=e,[f,u]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=c.useState(r);Lr(m,r)||h(r);const[g,v]=c.useState(null),[y,b]=c.useState(null),x=c.useCallback(D=>{D!==E.current&&(E.current=D,v(D))},[]),S=c.useCallback(D=>{D!==R.current&&(R.current=D,b(D))},[]),C=s||g,P=a||y,E=c.useRef(null),R=c.useRef(null),_=c.useRef(f),I=l!=null,F=Xo(l),B=Xo(o),z=Xo(d),U=c.useCallback(()=>{if(!E.current||!R.current)return;const D={placement:t,strategy:n,middleware:m};B.current&&(D.platform=B.current),vx(E.current,R.current,D).then($=>{const J={...$,isPositioned:z.current!==!1};G.current&&!Lr(_.current,J)&&(_.current=J,Hn.flushSync(()=>{u(J)}))})},[m,t,n,B,z]);Dr(()=>{d===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,u(D=>({...D,isPositioned:!1})))},[d]);const G=c.useRef(!1);Dr(()=>(G.current=!0,()=>{G.current=!1}),[]),Dr(()=>{if(C&&(E.current=C),P&&(R.current=P),C&&P){if(F.current)return F.current(C,P,U);U()}},[C,P,U,F,I]);const Z=c.useMemo(()=>({reference:E,floating:R,setReference:x,setFloating:S}),[x,S]),j=c.useMemo(()=>({reference:C,floating:P}),[C,P]),V=c.useMemo(()=>{const D={position:n,left:0,top:0};if(!j.floating)return D;const $=Ai(j.floating,f.x),J=Ai(j.floating,f.y);return i?{...D,transform:"translate("+$+"px, "+J+"px)",...Ml(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:J}},[n,i,j.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:U,refs:Z,elements:j,floatingStyles:V}),[f,U,Z,j,V])}const wx=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Oi({element:r.current,padding:o}).fn(n):{}:r?Oi({element:r,padding:o}).fn(n):{}}}},Sx=(e,t)=>({...dx(e),options:[e,t]}),Cx=(e,t)=>({...fx(e),options:[e,t]}),Ex=(e,t)=>({...gx(e),options:[e,t]}),Px=(e,t)=>({...px(e),options:[e,t]}),Rx=(e,t)=>({...mx(e),options:[e,t]}),Nx=(e,t)=>({...hx(e),options:[e,t]}),_x=(e,t)=>({...wx(e),options:[e,t]});function kx(e){const t=Mx(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(Dx);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Mx(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=Ax(o),i=Ox(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Tx=Symbol("radix.slottable");function Dx(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tx}function Ox(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ax(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ix=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jx=Ix.reduce((e,t)=>{const n=kx(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),$x="Arrow",Tl=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(jx.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Tl.displayName=$x;var Wx=Tl;function Fx(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Lx(o,...t)]}function Lx(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Bx(e){const t=Vx(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(Yx);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Vx(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=Gx(o),i=zx(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hx=Symbol("radix.slottable");function Yx(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Hx}function zx(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Gx(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ux=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Dl=Ux.reduce((e,t)=>{const n=Bx(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ks="Popper",[Ol,Mt]=Fx(Ks),[Kx,Al]=Ol(Ks),Il=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return p.jsx(Kx,{scope:t,anchor:r,onAnchorChange:o,children:n})};Il.displayName=Ks;var jl="PopperAnchor",$l=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Al(jl,n),a=c.useRef(null),i=ee(t,a),l=c.useRef(null);return c.useEffect(()=>{const d=l.current;l.current=r?.current||a.current,d!==l.current&&s.onAnchorChange(l.current)}),r?null:p.jsx(Dl.div,{...o,ref:i})});$l.displayName=jl;var qs="PopperContent",[qx,Xx]=Ol(qs),Wl=c.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:g,...v}=e,y=Al(qs,n),[b,x]=c.useState(null),S=ee(t,M=>x(M)),[C,P]=c.useState(null),E=zn(C),R=E?.width??0,_=E?.height??0,I=r+(s!=="center"?"-"+s:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},B=Array.isArray(d)?d:[d],z=B.length>0,U={padding:F,boundary:B.filter(Qx),altBoundary:z},{refs:G,floatingStyles:Z,placement:j,isPositioned:V,middlewareData:D}=xx({strategy:"fixed",placement:I,whileElementsMounted:(...M)=>ux(...M,{animationFrame:h==="always"}),elements:{reference:y.anchor},middleware:[Sx({mainAxis:o+_,alignmentAxis:a}),l&&Cx({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Ex():void 0,...U}),l&&Px({...U}),Rx({...U,apply:({elements:M,rects:H,availableWidth:te,availableHeight:oe})=>{const{width:ae,height:ie}=H.reference,Ee=M.floating.style;Ee.setProperty("--radix-popper-available-width",`${te}px`),Ee.setProperty("--radix-popper-available-height",`${oe}px`),Ee.setProperty("--radix-popper-anchor-width",`${ae}px`),Ee.setProperty("--radix-popper-anchor-height",`${ie}px`)}}),C&&_x({element:C,padding:i}),Jx({arrowWidth:R,arrowHeight:_}),m&&Nx({strategy:"referenceHidden",...U})]}),[$,J]=Bl(j),k=xe(g);ge(()=>{V&&k?.()},[V,k]);const N=D.arrow?.x,T=D.arrow?.y,O=D.arrow?.centerOffset!==0,[W,K]=c.useState();return ge(()=>{b&&K(window.getComputedStyle(b).zIndex)},[b]),p.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:V?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(qx,{scope:n,placedSide:$,onArrowChange:P,arrowX:N,arrowY:T,shouldHideArrow:O,children:p.jsx(Dl.div,{"data-side":$,"data-align":J,...v,ref:S,style:{...v.style,animation:V?void 0:"none"}})})})});Wl.displayName=qs;var Fl="PopperArrow",Zx={top:"bottom",right:"left",bottom:"top",left:"right"},Ll=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Xx(Fl,r),a=Zx[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(Wx,{...o,ref:n,style:{...o.style,display:"block"}})})});Ll.displayName=Fl;function Qx(e){return e!==null}var Jx=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[d,f]=Bl(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(o.arrow?.x??0)+i/2,h=(o.arrow?.y??0)+l/2;let g="",v="";return d==="bottom"?(g=a?u:`${m}px`,v=`${-l}px`):d==="top"?(g=a?u:`${m}px`,v=`${r.floating.height+l}px`):d==="right"?(g=`${-l}px`,v=a?u:`${h}px`):d==="left"&&(g=`${r.floating.width+l}px`,v=a?u:`${h}px`),{data:{x:g,y:v}}}});function Bl(e){const[t,n="center"]=e.split("-");return[t,n]}var qn=Il,Xn=$l,ro=Wl,oo=Ll;function ew(e){const t=tw(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(rw);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function tw(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=sw(o),i=ow(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var nw=Symbol("radix.slottable");function rw(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nw}function ow(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function sw(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var aw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],iw=aw.reduce((e,t)=>{const n=ew(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),cw="Portal",Zn=c.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=c.useState(!1);ge(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?Os.createPortal(p.jsx(iw.div,{...r,ref:t}),a):null});Zn.displayName=cw;function Vl(e){const t=lw(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(dw);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function lw(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=pw(o),i=fw(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uw=Symbol("radix.slottable");function dw(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uw}function fw(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function pw(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=mw.reduce((e,t)=>{const n=Vl(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function hw(e){const t=gw(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(yw);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function gw(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=xw(o),i=bw(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vw=Symbol("radix.slottable");function yw(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vw}function bw(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function xw(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ww=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Sw=ww.reduce((e,t)=>{const n=hw(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Hl=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"}),Cw="VisuallyHidden",Yl=c.forwardRef((e,t)=>p.jsx(Sw.span,{...e,ref:t,style:{...Hl,...e.style}}));Yl.displayName=Cw;var Ew=Yl,Pw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qt=new WeakMap,Nr=new WeakMap,_r={},Zo=0,zl=function(e){return e&&(e.host||zl(e.parentNode))},Rw=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=zl(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Nw=function(e,t,n,r){var o=Rw(t,Array.isArray(e)?e:[e]);_r[n]||(_r[n]=new WeakMap);var s=_r[n],a=[],i=new Set,l=new Set(o),d=function(u){!u||i.has(u)||(i.add(u),d(u.parentNode))};o.forEach(d);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(m){if(i.has(m))f(m);else try{var h=m.getAttribute(r),g=h!==null&&h!=="false",v=(qt.get(m)||0)+1,y=(s.get(m)||0)+1;qt.set(m,v),s.set(m,y),a.push(m),v===1&&g&&Nr.set(m,!0),y===1&&m.setAttribute(n,"true"),g||m.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",m,b)}})};return f(t),i.clear(),Zo++,function(){a.forEach(function(u){var m=qt.get(u)-1,h=s.get(u)-1;qt.set(u,m),s.set(u,h),m||(Nr.has(u)||u.removeAttribute(r),Nr.delete(u)),h||u.removeAttribute(n)}),Zo--,Zo||(qt=new WeakMap,qt=new WeakMap,Nr=new WeakMap,_r={})}},so=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Pw(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Nw(r,o,n,"aria-hidden")):function(){return null}},nt=function(){return nt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},nt.apply(this,arguments)};function Gl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function _w(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Or="right-scroll-bar-position",Ar="width-before-scroll-bar",kw="with-scroll-bars-hidden",Mw="--removed-body-scroll-bar-size";function Qo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Tw(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Dw=typeof window<"u"?c.useLayoutEffect:c.useEffect,Ii=new WeakMap;function Ow(e,t){var n=Tw(null,function(r){return e.forEach(function(o){return Qo(o,r)})});return Dw(function(){var r=Ii.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||Qo(i,null)}),s.forEach(function(i){o.has(i)||Qo(i,a)})}Ii.set(n,e)},[e]),n}function Aw(e){return e}function Iw(e,t){t===void 0&&(t=Aw);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var l=function(){var f=a;a=[],f.forEach(s)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return o}function jw(e){e===void 0&&(e={});var t=Iw(null);return t.options=nt({async:!0,ssr:!1},e),t}var Ul=function(e){var t=e.sideCar,n=Gl(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,nt({},n))};Ul.isSideCarExport=!0;function $w(e,t){return e.useMedium(t),Ul}var Kl=jw(),Jo=function(){},ao=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Jo,onWheelCapture:Jo,onTouchMoveCapture:Jo}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,u=e.shards,m=e.sideCar,h=e.noRelative,g=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,S=e.gapMode,C=Gl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=m,E=Ow([n,t]),R=nt(nt({},C),o);return c.createElement(c.Fragment,null,f&&c.createElement(P,{sideCar:Kl,removeScrollBar:d,shards:u,noRelative:h,noIsolation:g,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:S}),a?c.cloneElement(c.Children.only(i),nt(nt({},R),{ref:E})):c.createElement(x,nt({},R,{className:l,ref:E}),i))});ao.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ao.classNames={fullWidth:Ar,zeroRight:Or};var Ww=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Fw(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ww();return t&&e.setAttribute("nonce",t),e}function Lw(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Bw(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Vw=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Fw())&&(Lw(t,n),Bw(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hw=function(){var e=Vw();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ql=function(){var e=Hw(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Yw={left:0,top:0,right:0,gap:0},es=function(e){return parseInt(e||"",10)||0},zw=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[es(n),es(r),es(o)]},Gw=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Yw;var t=zw(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Uw=ql(),on="data-scroll-locked",Kw=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
7
+ .`.concat(kw,` {
8
8
  overflow: hidden `).concat(r,`;
9
- padding-right: `).concat(c,"px ").concat(r,`;
9
+ padding-right: `).concat(i,"px ").concat(r,`;
10
10
  }
11
- body[`).concat(Xe,`] {
11
+ body[`).concat(on,`] {
12
12
  overflow: hidden `).concat(r,`;
13
13
  overscroll-behavior: contain;
14
14
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
@@ -17,35 +17,40 @@ React keys must be passed directly to JSX without using spread:
17
17
  padding-right: `).concat(a,`px;
18
18
  margin-left:0;
19
19
  margin-top:0;
20
- margin-right: `).concat(c,"px ").concat(r,`;
21
- `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
20
+ margin-right: `).concat(i,"px ").concat(r,`;
21
+ `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
22
22
  }
23
23
 
24
- .`).concat(Tt,` {
25
- right: `).concat(c,"px ").concat(r,`;
24
+ .`).concat(Or,` {
25
+ right: `).concat(i,"px ").concat(r,`;
26
26
  }
27
27
 
28
- .`).concat(Mt,` {
29
- margin-right: `).concat(c,"px ").concat(r,`;
28
+ .`).concat(Ar,` {
29
+ margin-right: `).concat(i,"px ").concat(r,`;
30
30
  }
31
31
 
32
- .`).concat(Tt," .").concat(Tt,` {
32
+ .`).concat(Or," .").concat(Or,` {
33
33
  right: 0 `).concat(r,`;
34
34
  }
35
35
 
36
- .`).concat(Mt," .").concat(Mt,` {
36
+ .`).concat(Ar," .").concat(Ar,` {
37
37
  margin-right: 0 `).concat(r,`;
38
38
  }
39
39
 
40
- body[`).concat(Xe,`] {
41
- `).concat(qp,": ").concat(c,`px;
40
+ body[`).concat(on,`] {
41
+ `).concat(Mw,": ").concat(i,`px;
42
42
  }
43
- `)},io=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},hm=function(){i.useEffect(function(){return document.body.setAttribute(Xe,(io()+1).toString()),function(){var e=io()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},gm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;hm();var s=i.useMemo(function(){return fm(o)},[o]);return i.createElement(pm,{styles:mm(s,!t,o,n?"":"!important")})},In=!1;if(typeof window<"u")try{var At=Object.defineProperty({},"passive",{get:function(){return In=!0,!0}});window.addEventListener("test",At,At),window.removeEventListener("test",At,At)}catch{In=!1}var Ge=In?{passive:!1}:!1,vm=function(e){return e.tagName==="TEXTAREA"},si=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vm(e)&&n[t]==="visible")},ym=function(e){return si(e,"overflowY")},xm=function(e){return si(e,"overflowX")},ao=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ii(e,r);if(o){var s=ai(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},bm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},wm=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ii=function(e,t){return e==="v"?ym(t):xm(t)},ai=function(e,t){return e==="v"?bm(t):wm(t)},Sm=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cm=function(e,t,n,r,o){var s=Sm(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,l=t.contains(c),u=!1,f=a>0,d=0,h=0;do{if(!c)break;var g=ai(e,c),v=g[0],m=g[1],y=g[2],x=m-y-s*v;(v||x)&&ii(e,c)&&(d+=x,h+=v);var b=c.parentNode;c=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(f&&Math.abs(d)<1||!f&&Math.abs(h)<1)&&(u=!0),u},Ot=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},co=function(e){return[e.deltaX,e.deltaY]},lo=function(e){return e&&"current"in e?e.current:e},Em=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Rm=function(e){return`
43
+ `)},ji=function(){var e=parseInt(document.body.getAttribute(on)||"0",10);return isFinite(e)?e:0},qw=function(){c.useEffect(function(){return document.body.setAttribute(on,(ji()+1).toString()),function(){var e=ji()-1;e<=0?document.body.removeAttribute(on):document.body.setAttribute(on,e.toString())}},[])},Xw=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;qw();var s=c.useMemo(function(){return Gw(o)},[o]);return c.createElement(Uw,{styles:Kw(s,!t,o,n?"":"!important")})},hs=!1;if(typeof window<"u")try{var kr=Object.defineProperty({},"passive",{get:function(){return hs=!0,!0}});window.addEventListener("test",kr,kr),window.removeEventListener("test",kr,kr)}catch{hs=!1}var Xt=hs?{passive:!1}:!1,Zw=function(e){return e.tagName==="TEXTAREA"},Xl=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Zw(e)&&n[t]==="visible")},Qw=function(e){return Xl(e,"overflowY")},Jw=function(e){return Xl(e,"overflowX")},$i=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Zl(e,r);if(o){var s=Ql(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eS=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},tS=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Zl=function(e,t){return e==="v"?Qw(t):Jw(t)},Ql=function(e,t){return e==="v"?eS(t):tS(t)},nS=function(e,t){return e==="h"&&t==="rtl"?-1:1},rS=function(e,t,n,r,o){var s=nS(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,l=t.contains(i),d=!1,f=a>0,u=0,m=0;do{if(!i)break;var h=Ql(e,i),g=h[0],v=h[1],y=h[2],b=v-y-s*g;(g||b)&&Zl(e,i)&&(u+=b,m+=g);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(f&&Math.abs(u)<1||!f&&Math.abs(m)<1)&&(d=!0),d},Mr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Wi=function(e){return[e.deltaX,e.deltaY]},Fi=function(e){return e&&"current"in e?e.current:e},oS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sS=function(e){return`
44
44
  .block-interactivity-`.concat(e,` {pointer-events: none;}
45
45
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
46
- `)},Pm=0,Ke=[];function _m(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Pm++)[0],s=i.useState(oi)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Yp([e.lockRef.current],(e.shards||[]).map(lo),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var x=Ot(m),b=n.current,w="deltaX"in m?m.deltaX:b[0]-x[0],C="deltaY"in m?m.deltaY:b[1]-x[1],_,O=m.target,N=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&N==="h"&&O.type==="range")return!1;var P=window.getSelection(),j=P&&P.anchorNode,F=j?j===O||j.contains(O):!1;if(F)return!1;var z=ao(N,O);if(!z)return!0;if(z?_=N:(_=N==="v"?"h":"v",z=ao(N,O)),!z)return!1;if(!r.current&&"changedTouches"in m&&(w||C)&&(r.current=_),!_)return!0;var V=r.current||_;return Cm(V,y,m,V==="h"?w:C)},[]),l=i.useCallback(function(m){var y=m;if(!(!Ke.length||Ke[Ke.length-1]!==s)){var x="deltaY"in y?co(y):Ot(y),b=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&Em(_.delta,x)})[0];if(b&&b.should){y.cancelable&&y.preventDefault();return}if(!b){var w=(a.current.shards||[]).map(lo).filter(Boolean).filter(function(_){return _.contains(y.target)}),C=w.length>0?c(y,w[0]):!a.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),u=i.useCallback(function(m,y,x,b){var w={name:m,delta:y,target:x,should:b,shadowParent:Nm(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),f=i.useCallback(function(m){n.current=Ot(m),r.current=void 0},[]),d=i.useCallback(function(m){u(m.type,co(m),m.target,c(m,e.lockRef.current))},[]),h=i.useCallback(function(m){u(m.type,Ot(m),m.target,c(m,e.lockRef.current))},[]);i.useEffect(function(){return Ke.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ge),document.addEventListener("touchmove",l,Ge),document.addEventListener("touchstart",f,Ge),function(){Ke=Ke.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,Ge),document.removeEventListener("touchmove",l,Ge),document.removeEventListener("touchstart",f,Ge)}},[]);var g=e.removeScrollBar,v=e.inert;return i.createElement(i.Fragment,null,v?i.createElement(s,{styles:Rm(o)}):null,g?i.createElement(gm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Nm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Am=rm(ri,_m);var tn=i.forwardRef(function(e,t){return i.createElement(en,xe({},e,{ref:t,sideCar:Am}))});tn.classNames=en.classNames;var Om=[" ","Enter","ArrowUp","ArrowDown"],Im=[" ","Enter"],Ve="Select",[nn,rn,Tm]=Yn(Ve),[nt]=nd(Ve,[Tm,Jt]),on=Jt(),[Mm,ke]=nt(Ve),[km,Dm]=nt(Ve),ci=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:c,onValueChange:l,dir:u,name:f,autoComplete:d,disabled:h,required:g,form:v}=e,m=on(t),[y,x]=i.useState(null),[b,w]=i.useState(null),[C,_]=i.useState(!1),O=Xn(u),[N,P]=Ie({prop:r,defaultProp:o??!1,onChange:s,caller:Ve}),[j,F]=Ie({prop:a,defaultProp:c,onChange:l,caller:Ve}),z=i.useRef(null),V=y?v||!!y.closest("form"):!0,[U,H]=i.useState(new Set),K=Array.from(U).map(k=>k.props.value).join(";");return p.jsx(sr,{...m,children:p.jsxs(Mm,{required:g,scope:t,trigger:y,onTriggerChange:x,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:_,contentId:he(),value:j,onValueChange:F,open:N,onOpenChange:P,dir:O,triggerPointerDownPosRef:z,disabled:h,children:[p.jsx(nn.Provider,{scope:t,children:p.jsx(km,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(k=>{H(W=>new Set(W).add(k))},[]),onNativeOptionRemove:i.useCallback(k=>{H(W=>{const E=new Set(W);return E.delete(k),E})},[]),children:n})}),V?p.jsxs(Mi,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:d,value:j,onChange:k=>F(k.target.value),disabled:h,form:v,children:[j===void 0?p.jsx("option",{value:""}):null,Array.from(U)]},K):null]})})};ci.displayName=Ve;var li="SelectTrigger",ui=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=on(n),a=ke(li,n),c=a.disabled||r,l=q(t,a.onTriggerChange),u=rn(n),f=i.useRef("touch"),[d,h,g]=Di(m=>{const y=u().filter(w=>!w.disabled),x=y.find(w=>w.value===a.value),b=ji(y,m,x);b!==void 0&&a.onValueChange(b.value)}),v=m=>{c||(a.onOpenChange(!0),g()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return p.jsx(Xs,{asChild:!0,...s,children:p.jsx(ue.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":ki(a.value)?"":void 0,...o,ref:l,onClick:M(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&v(m)}),onPointerDown:M(o.onPointerDown,m=>{f.current=m.pointerType;const y=m.target;y.hasPointerCapture(m.pointerId)&&y.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:M(o.onKeyDown,m=>{const y=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&h(m.key),!(y&&m.key===" ")&&Om.includes(m.key)&&(v(),m.preventDefault())})})})});ui.displayName=li;var di="SelectValue",fi=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,l=ke(di,n),{onValueNodeHasChildrenChange:u}=l,f=s!==void 0,d=q(t,l.onValueNodeChange);return oe(()=>{u(f)},[u,f]),p.jsx(ue.span,{...c,ref:d,style:{pointerEvents:"none"},children:ki(l.value)?p.jsx(p.Fragment,{children:a}):s})});fi.displayName=di;var jm="SelectIcon",pi=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(ue.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});pi.displayName=jm;var $m="SelectPortal",mi=e=>p.jsx(Qt,{asChild:!0,...e});mi.displayName=$m;var We="SelectContent",hi=i.forwardRef((e,t)=>{const n=ke(We,e.__scopeSelect),[r,o]=i.useState();if(oe(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?ft.createPortal(p.jsx(gi,{scope:e.__scopeSelect,children:p.jsx(nn.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(vi,{...e,ref:t})});hi.displayName=We;var me=10,[gi,De]=nt(We),Lm="SelectContentImpl",Fm=Js("SelectContent.RemoveScroll"),vi=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:v,hideWhenDetached:m,avoidCollisions:y,...x}=e,b=ke(We,n),[w,C]=i.useState(null),[_,O]=i.useState(null),N=q(t,R=>C(R)),[P,j]=i.useState(null),[F,z]=i.useState(null),V=rn(n),[U,H]=i.useState(!1),K=i.useRef(!1);i.useEffect(()=>{if(w)return ir(w)},[w]),qn();const k=i.useCallback(R=>{const[Y,...ee]=V().map(Q=>Q.ref.current),[X]=ee.slice(-1),Z=document.activeElement;for(const Q of R)if(Q===Z||(Q?.scrollIntoView({block:"nearest"}),Q===Y&&_&&(_.scrollTop=0),Q===X&&_&&(_.scrollTop=_.scrollHeight),Q?.focus(),document.activeElement!==Z))return},[V,_]),W=i.useCallback(()=>k([P,w]),[k,P,w]);i.useEffect(()=>{U&&W()},[U,W]);const{onOpenChange:E,triggerPointerDownPosRef:A}=b;i.useEffect(()=>{if(w){let R={x:0,y:0};const Y=X=>{R={x:Math.abs(Math.round(X.pageX)-(A.current?.x??0)),y:Math.abs(Math.round(X.pageY)-(A.current?.y??0))}},ee=X=>{R.x<=10&&R.y<=10?X.preventDefault():w.contains(X.target)||E(!1),document.removeEventListener("pointermove",Y),A.current=null};return A.current!==null&&(document.addEventListener("pointermove",Y),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Y),document.removeEventListener("pointerup",ee,{capture:!0})}}},[w,E,A]),i.useEffect(()=>{const R=()=>E(!1);return window.addEventListener("blur",R),window.addEventListener("resize",R),()=>{window.removeEventListener("blur",R),window.removeEventListener("resize",R)}},[E]);const[J,S]=Di(R=>{const Y=V().filter(Z=>!Z.disabled),ee=Y.find(Z=>Z.ref.current===document.activeElement),X=ji(Y,R,ee);X&&setTimeout(()=>X.ref.current.focus())}),D=i.useCallback((R,Y,ee)=>{const X=!K.current&&!ee;(b.value!==void 0&&b.value===Y||X)&&(j(R),X&&(K.current=!0))},[b.value]),$=i.useCallback(()=>w?.focus(),[w]),L=i.useCallback((R,Y,ee)=>{const X=!K.current&&!ee;(b.value!==void 0&&b.value===Y||X)&&z(R)},[b.value]),ne=r==="popper"?Tn:yi,te=ne===Tn?{side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:v,hideWhenDetached:m,avoidCollisions:y}:{};return p.jsx(gi,{scope:n,content:w,viewport:_,onViewportChange:O,itemRefCallback:D,selectedItem:P,onItemLeave:$,itemTextRefCallback:L,focusSelectedItem:W,selectedItemText:F,position:r,isPositioned:U,searchRef:J,children:p.jsx(tn,{as:Fm,allowPinchZoom:!0,children:p.jsx(Kt,{asChild:!0,trapped:b.open,onMountAutoFocus:R=>{R.preventDefault()},onUnmountAutoFocus:M(o,R=>{b.trigger?.focus({preventScroll:!0}),R.preventDefault()}),children:p.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:R=>R.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:p.jsx(ne,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:R=>R.preventDefault(),...x,...te,onPlaced:()=>H(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:M(x.onKeyDown,R=>{const Y=R.ctrlKey||R.altKey||R.metaKey;if(R.key==="Tab"&&R.preventDefault(),!Y&&R.key.length===1&&S(R.key),["ArrowUp","ArrowDown","Home","End"].includes(R.key)){let X=V().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);if(["ArrowUp","End"].includes(R.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(R.key)){const Z=R.target,Q=X.indexOf(Z);X=X.slice(Q+1)}setTimeout(()=>k(X)),R.preventDefault()}})})})})})})});vi.displayName=Lm;var Vm="SelectItemAlignedPosition",yi=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=ke(We,n),a=De(We,n),[c,l]=i.useState(null),[u,f]=i.useState(null),d=q(t,N=>f(N)),h=rn(n),g=i.useRef(!1),v=i.useRef(!0),{viewport:m,selectedItem:y,selectedItemText:x,focusSelectedItem:b}=a,w=i.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&m&&y&&x){const N=s.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),j=s.valueNode.getBoundingClientRect(),F=x.getBoundingClientRect();if(s.dir!=="rtl"){const Z=F.left-P.left,Q=j.left-Z,de=N.left-Q,$e=N.width+de,ln=Math.max($e,P.width),un=window.innerWidth-me,dn=Fr(Q,[me,Math.max(me,un-ln)]);c.style.minWidth=$e+"px",c.style.left=dn+"px"}else{const Z=P.right-F.right,Q=window.innerWidth-j.right-Z,de=window.innerWidth-N.right-Q,$e=N.width+de,ln=Math.max($e,P.width),un=window.innerWidth-me,dn=Fr(Q,[me,Math.max(me,un-ln)]);c.style.minWidth=$e+"px",c.style.right=dn+"px"}const z=h(),V=window.innerHeight-me*2,U=m.scrollHeight,H=window.getComputedStyle(u),K=parseInt(H.borderTopWidth,10),k=parseInt(H.paddingTop,10),W=parseInt(H.borderBottomWidth,10),E=parseInt(H.paddingBottom,10),A=K+k+U+E+W,J=Math.min(y.offsetHeight*5,A),S=window.getComputedStyle(m),D=parseInt(S.paddingTop,10),$=parseInt(S.paddingBottom,10),L=N.top+N.height/2-me,ne=V-L,te=y.offsetHeight/2,R=y.offsetTop+te,Y=K+k+R,ee=A-Y;if(Y<=L){const Z=z.length>0&&y===z[z.length-1].ref.current;c.style.bottom="0px";const Q=u.clientHeight-m.offsetTop-m.offsetHeight,de=Math.max(ne,te+(Z?$:0)+Q+W),$e=Y+de;c.style.height=$e+"px"}else{const Z=z.length>0&&y===z[0].ref.current;c.style.top="0px";const de=Math.max(L,K+m.offsetTop+(Z?D:0)+te)+ee;c.style.height=de+"px",m.scrollTop=Y-L+m.offsetTop}c.style.margin=`${me}px 0`,c.style.minHeight=J+"px",c.style.maxHeight=V+"px",r?.(),requestAnimationFrame(()=>g.current=!0)}},[h,s.trigger,s.valueNode,c,u,m,y,x,s.dir,r]);oe(()=>w(),[w]);const[C,_]=i.useState();oe(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const O=i.useCallback(N=>{N&&v.current===!0&&(w(),b?.(),v.current=!1)},[w,b]);return p.jsx(Bm,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:O,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:p.jsx(ue.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});yi.displayName=Vm;var Wm="SelectPopperPosition",Tn=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=me,...s}=e,a=on(n);return p.jsx(qs,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Tn.displayName=Wm;var[Bm,ar]=nt(We,{}),Mn="SelectViewport",xi=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=De(Mn,n),a=ar(Mn,n),c=q(t,s.onViewportChange),l=i.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(nn.Slot,{scope:n,children:p.jsx(ue.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:M(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=a;if(h?.current&&d){const g=Math.abs(l.current-f.scrollTop);if(g>0){const v=window.innerHeight-me*2,m=parseFloat(d.style.minHeight),y=parseFloat(d.style.height),x=Math.max(m,y);if(x<v){const b=x+g,w=Math.min(v,b),C=b-w;d.style.height=w+"px",d.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,d.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});xi.displayName=Mn;var bi="SelectGroup",[Hm,zm]=nt(bi),wi=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=he();return p.jsx(Hm,{scope:n,id:o,children:p.jsx(ue.div,{role:"group","aria-labelledby":o,...r,ref:t})})});wi.displayName=bi;var Si="SelectLabel",Ci=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=zm(Si,n);return p.jsx(ue.div,{id:o.id,...r,ref:t})});Ci.displayName=Si;var Vt="SelectItem",[Um,Ei]=nt(Vt),Ri=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,c=ke(Vt,n),l=De(Vt,n),u=c.value===r,[f,d]=i.useState(s??""),[h,g]=i.useState(!1),v=q(t,b=>l.itemRefCallback?.(b,r,o)),m=he(),y=i.useRef("touch"),x=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(Um,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:i.useCallback(b=>{d(w=>w||(b?.textContent??"").trim())},[]),children:p.jsx(nn.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:p.jsx(ue.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:v,onFocus:M(a.onFocus,()=>g(!0)),onBlur:M(a.onBlur,()=>g(!1)),onClick:M(a.onClick,()=>{y.current!=="mouse"&&x()}),onPointerUp:M(a.onPointerUp,()=>{y.current==="mouse"&&x()}),onPointerDown:M(a.onPointerDown,b=>{y.current=b.pointerType}),onPointerMove:M(a.onPointerMove,b=>{y.current=b.pointerType,o?l.onItemLeave?.():y.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:M(a.onPointerLeave,b=>{b.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:M(a.onKeyDown,b=>{l.searchRef?.current!==""&&b.key===" "||(Im.includes(b.key)&&x(),b.key===" "&&b.preventDefault())})})})})});Ri.displayName=Vt;var it="SelectItemText",Pi=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=ke(it,n),c=De(it,n),l=Ei(it,n),u=Dm(it,n),[f,d]=i.useState(null),h=q(t,x=>d(x),l.onItemTextChange,x=>c.itemTextRefCallback?.(x,l.value,l.disabled)),g=f?.textContent,v=i.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:y}=u;return oe(()=>(m(v),()=>y(v)),[m,y,v]),p.jsxs(p.Fragment,{children:[p.jsx(ue.span,{id:l.textId,...s,ref:h}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ft.createPortal(s.children,a.valueNode):null]})});Pi.displayName=it;var _i="SelectItemIndicator",Ni=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ei(_i,n).isSelected?p.jsx(ue.span,{"aria-hidden":!0,...r,ref:t}):null});Ni.displayName=_i;var kn="SelectScrollUpButton",Ai=i.forwardRef((e,t)=>{const n=De(kn,e.__scopeSelect),r=ar(kn,e.__scopeSelect),[o,s]=i.useState(!1),a=q(t,r.onScrollButtonChange);return oe(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?p.jsx(Ii,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});Ai.displayName=kn;var Dn="SelectScrollDownButton",Oi=i.forwardRef((e,t)=>{const n=De(Dn,e.__scopeSelect),r=ar(Dn,e.__scopeSelect),[o,s]=i.useState(!1),a=q(t,r.onScrollButtonChange);return oe(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<u;s(f)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?p.jsx(Ii,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});Oi.displayName=Dn;var Ii=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=De("SelectScrollButton",n),a=i.useRef(null),c=rn(n),l=i.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),oe(()=>{c().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),p.jsx(ue.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:M(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:M(o.onPointerMove,()=>{s.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:M(o.onPointerLeave,()=>{l()})})}),Gm="SelectSeparator",Ti=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(ue.div,{"aria-hidden":!0,...r,ref:t})});Ti.displayName=Gm;var jn="SelectArrow",Km=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=on(n),s=ke(jn,n),a=De(jn,n);return s.open&&a.position==="popper"?p.jsx(Zs,{...o,...r,ref:t}):null});Km.displayName=jn;var Ym="SelectBubbleInput",Mi=i.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=i.useRef(null),s=q(r,o),a=Bn(t);return i.useEffect(()=>{const c=o.current;if(!c)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&f){const d=new Event("change",{bubbles:!0});f.call(c,t),c.dispatchEvent(d)}},[a,t]),p.jsx(ue.select,{...n,style:{...Qs,...n.style},ref:s,defaultValue:t})});Mi.displayName=Ym;function ki(e){return e===""||e===void 0}function Di(e){const t=pe(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(a=>{const c=n.current+a;t(c),(function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(c)},[t]),s=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function ji(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Xm(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Xm(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var qm=ci,$i=ui,Zm=fi,Jm=pi,Qm=mi,Li=hi,eh=xi,th=wi,Fi=Ci,Vi=Ri,nh=Pi,rh=Ni,Wi=Ai,Bi=Oi,Hi=Ti;const oh=qm,sh=th,ih=Zm,zi=i.forwardRef(({className:e,children:t,...n},r)=>p.jsxs($i,{ref:r,className:B("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,p.jsx(Jm,{asChild:!0,children:p.jsx(ps,{className:"h-4 w-4 opacity-50"})})]}));zi.displayName=$i.displayName;const cr=i.forwardRef(({className:e,...t},n)=>p.jsx(Wi,{ref:n,className:B("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(Ou,{className:"h-4 w-4"})}));cr.displayName=Wi.displayName;const lr=i.forwardRef(({className:e,...t},n)=>p.jsx(Bi,{ref:n,className:B("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(ps,{className:"h-4 w-4"})}));lr.displayName=Bi.displayName;const Ui=i.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>p.jsx(Qm,{children:p.jsxs(Li,{ref:o,className:B("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[p.jsx(cr,{}),p.jsx(eh,{className:B("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),p.jsx(lr,{})]})}));Ui.displayName=Li.displayName;const Gi=i.forwardRef(({className:e,...t},n)=>p.jsx(Fi,{ref:n,className:B("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Gi.displayName=Fi.displayName;const Ki=i.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Vi,{ref:r,className:B("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(rh,{children:p.jsx(Kn,{className:"h-4 w-4"})})}),p.jsx(nh,{children:t})]}));Ki.displayName=Vi.displayName;const Yi=i.forwardRef(({className:e,...t},n)=>p.jsx(Hi,{ref:n,className:B("-mx-1 my-1 h-px bg-muted",e),...t}));Yi.displayName=Hi.displayName;function ah(e,t){const n=i.createContext(t),r=s=>{const{children:a,...c}=s,l=i.useMemo(()=>c,Object.values(c));return p.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ch(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:h,children:g,...v}=d,m=h?.[e]?.[l]||c,y=i.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:y,children:g})};u.displayName=s+"Provider";function f(d,h){const g=h?.[e]?.[l]||c,v=i.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,lh(o,...t)]}function lh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Xi(e){const t=uh(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(fh);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function uh(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=mh(o),c=ph(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dh=Symbol("radix.slottable");function fh(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dh}function ph(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function mh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ht=hh.reduce((e,t)=>{const n=Xi(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),sn="Dialog",[qi]=ch(sn),[gh,ye]=qi(sn),Zi=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=i.useRef(null),l=i.useRef(null),[u,f]=Ie({prop:r,defaultProp:o??!1,onChange:s,caller:sn});return p.jsx(gh,{scope:t,triggerRef:c,contentRef:l,contentId:he(),titleId:he(),descriptionId:he(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(d=>!d),[f]),modal:a,children:n})};Zi.displayName=sn;var Ji="DialogTrigger",Qi=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(Ji,n),s=q(t,o.triggerRef);return p.jsx(ht.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":fr(o.open),...r,ref:s,onClick:M(e.onClick,o.onOpenToggle)})});Qi.displayName=Ji;var ur="DialogPortal",[vh,ea]=qi(ur,{forceMount:void 0}),ta=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=ye(ur,t);return p.jsx(vh,{scope:t,forceMount:n,children:i.Children.map(r,a=>p.jsx(_e,{present:n||s.open,children:p.jsx(Qt,{asChild:!0,container:o,children:a})}))})};ta.displayName=ur;var Wt="DialogOverlay",na=i.forwardRef((e,t)=>{const n=ea(Wt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ye(Wt,e.__scopeDialog);return s.modal?p.jsx(_e,{present:r||s.open,children:p.jsx(xh,{...o,ref:t})}):null});na.displayName=Wt;var yh=Xi("DialogOverlay.RemoveScroll"),xh=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(Wt,n);return p.jsx(tn,{as:yh,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(ht.div,{"data-state":fr(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Be="DialogContent",ra=i.forwardRef((e,t)=>{const n=ea(Be,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ye(Be,e.__scopeDialog);return p.jsx(_e,{present:r||s.open,children:s.modal?p.jsx(bh,{...o,ref:t}):p.jsx(wh,{...o,ref:t})})});ra.displayName=Be;var bh=i.forwardRef((e,t)=>{const n=ye(Be,e.__scopeDialog),r=i.useRef(null),o=q(t,n.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return ir(s)},[]),p.jsx(oa,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:M(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:M(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:M(e.onFocusOutside,s=>s.preventDefault())})}),wh=i.forwardRef((e,t)=>{const n=ye(Be,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return p.jsx(oa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),oa=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=ye(Be,n),l=i.useRef(null),u=q(t,l);return qn(),p.jsxs(p.Fragment,{children:[p.jsx(Kt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(Gt,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":fr(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(Sh,{titleId:c.titleId}),p.jsx(Eh,{contentRef:l,descriptionId:c.descriptionId})]})]})}),dr="DialogTitle",sa=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(dr,n);return p.jsx(ht.h2,{id:o.titleId,...r,ref:t})});sa.displayName=dr;var ia="DialogDescription",aa=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(ia,n);return p.jsx(ht.p,{id:o.descriptionId,...r,ref:t})});aa.displayName=ia;var ca="DialogClose",la=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(ca,n);return p.jsx(ht.button,{type:"button",...r,ref:t,onClick:M(e.onClick,()=>o.onOpenChange(!1))})});la.displayName=ca;function fr(e){return e?"open":"closed"}var ua="DialogTitleWarning",[Mv,da]=ah(ua,{contentName:Be,titleName:dr,docsSlug:"dialog"}),Sh=({titleId:e})=>{const t=da(ua),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
46
+ `)},aS=0,Zt=[];function iS(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(aS++)[0],s=c.useState(ql)[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=_w([e.lockRef.current],(e.shards||[]).map(Fi),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!a.current.allowPinchZoom;var b=Mr(v),x=n.current,S="deltaX"in v?v.deltaX:x[0]-b[0],C="deltaY"in v?v.deltaY:x[1]-b[1],P,E=v.target,R=Math.abs(S)>Math.abs(C)?"h":"v";if("touches"in v&&R==="h"&&E.type==="range")return!1;var _=window.getSelection(),I=_&&_.anchorNode,F=I?I===E||I.contains(E):!1;if(F)return!1;var B=$i(R,E);if(!B)return!0;if(B?P=R:(P=R==="v"?"h":"v",B=$i(R,E)),!B)return!1;if(!r.current&&"changedTouches"in v&&(S||C)&&(r.current=P),!P)return!0;var z=r.current||P;return rS(z,y,v,z==="h"?S:C)},[]),l=c.useCallback(function(v){var y=v;if(!(!Zt.length||Zt[Zt.length-1]!==s)){var b="deltaY"in y?Wi(y):Mr(y),x=t.current.filter(function(P){return P.name===y.type&&(P.target===y.target||y.target===P.shadowParent)&&oS(P.delta,b)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var S=(a.current.shards||[]).map(Fi).filter(Boolean).filter(function(P){return P.contains(y.target)}),C=S.length>0?i(y,S[0]):!a.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),d=c.useCallback(function(v,y,b,x){var S={name:v,delta:y,target:b,should:x,shadowParent:cS(b)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(C){return C!==S})},1)},[]),f=c.useCallback(function(v){n.current=Mr(v),r.current=void 0},[]),u=c.useCallback(function(v){d(v.type,Wi(v),v.target,i(v,e.lockRef.current))},[]),m=c.useCallback(function(v){d(v.type,Mr(v),v.target,i(v,e.lockRef.current))},[]);c.useEffect(function(){return Zt.push(s),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Xt),document.addEventListener("touchmove",l,Xt),document.addEventListener("touchstart",f,Xt),function(){Zt=Zt.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,Xt),document.removeEventListener("touchmove",l,Xt),document.removeEventListener("touchstart",f,Xt)}},[]);var h=e.removeScrollBar,g=e.inert;return c.createElement(c.Fragment,null,g?c.createElement(s,{styles:sS(o)}):null,h?c.createElement(Xw,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cS(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lS=$w(Kl,iS);var Qn=c.forwardRef(function(e,t){return c.createElement(ao,nt({},e,{ref:t,sideCar:lS}))});Qn.classNames=ao.classNames;var uS=[" ","Enter","ArrowUp","ArrowDown"],dS=[" ","Enter"],Vt="Select",[io,co,fS]=Gn(Vt),[vn]=$y(Vt,[fS,Mt]),lo=Mt(),[pS,Tt]=vn(Vt),[mS,hS]=vn(Vt),Jl=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:i,onValueChange:l,dir:d,name:f,autoComplete:u,disabled:m,required:h,form:g}=e,v=lo(t),[y,b]=c.useState(null),[x,S]=c.useState(null),[C,P]=c.useState(!1),E=vt(d),[R,_]=we({prop:r,defaultProp:o??!1,onChange:s,caller:Vt}),[I,F]=we({prop:a,defaultProp:i,onChange:l,caller:Vt}),B=c.useRef(null),z=y?g||!!y.closest("form"):!0,[U,G]=c.useState(new Set),Z=Array.from(U).map(j=>j.props.value).join(";");return p.jsx(qn,{...v,children:p.jsxs(pS,{required:h,scope:t,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:P,contentId:me(),value:I,onValueChange:F,open:R,onOpenChange:_,dir:E,triggerPointerDownPosRef:B,disabled:m,children:[p.jsx(io.Provider,{scope:t,children:p.jsx(mS,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(j=>{G(V=>new Set(V).add(j))},[]),onNativeOptionRemove:c.useCallback(j=>{G(V=>{const D=new Set(V);return D.delete(j),D})},[]),children:n})}),z?p.jsxs(Eu,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:u,value:I,onChange:j=>F(j.target.value),disabled:m,form:g,children:[I===void 0?p.jsx("option",{value:""}):null,Array.from(U)]},Z):null]})})};Jl.displayName=Vt;var eu="SelectTrigger",tu=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=lo(n),a=Tt(eu,n),i=a.disabled||r,l=ee(t,a.onTriggerChange),d=co(n),f=c.useRef("touch"),[u,m,h]=Ru(v=>{const y=d().filter(S=>!S.disabled),b=y.find(S=>S.value===a.value),x=Nu(y,v,b);x!==void 0&&a.onValueChange(x.value)}),g=v=>{i||(a.onOpenChange(!0),h()),v&&(a.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return p.jsx(Xn,{asChild:!0,...s,children:p.jsx(We.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Pu(a.value)?"":void 0,...o,ref:l,onClick:L(o.onClick,v=>{v.currentTarget.focus(),f.current!=="mouse"&&g(v)}),onPointerDown:L(o.onPointerDown,v=>{f.current=v.pointerType;const y=v.target;y.hasPointerCapture(v.pointerId)&&y.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(g(v),v.preventDefault())}),onKeyDown:L(o.onKeyDown,v=>{const y=u.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&m(v.key),!(y&&v.key===" ")&&uS.includes(v.key)&&(g(),v.preventDefault())})})})});tu.displayName=eu;var nu="SelectValue",ru=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...i}=e,l=Tt(nu,n),{onValueNodeHasChildrenChange:d}=l,f=s!==void 0,u=ee(t,l.onValueNodeChange);return ge(()=>{d(f)},[d,f]),p.jsx(We.span,{...i,ref:u,style:{pointerEvents:"none"},children:Pu(l.value)?p.jsx(p.Fragment,{children:a}):s})});ru.displayName=nu;var gS="SelectIcon",ou=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(We.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ou.displayName=gS;var vS="SelectPortal",su=e=>p.jsx(Zn,{asChild:!0,...e});su.displayName=vS;var Ht="SelectContent",au=c.forwardRef((e,t)=>{const n=Tt(Ht,e.__scopeSelect),[r,o]=c.useState();if(ge(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Hn.createPortal(p.jsx(iu,{scope:e.__scopeSelect,children:p.jsx(io.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(cu,{...e,ref:t})});au.displayName=Ht;var Ke=10,[iu,Dt]=vn(Ht),yS="SelectContentImpl",bS=Vl("SelectContent.RemoveScroll"),cu=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:y,...b}=e,x=Tt(Ht,n),[S,C]=c.useState(null),[P,E]=c.useState(null),R=ee(t,M=>C(M)),[_,I]=c.useState(null),[F,B]=c.useState(null),z=co(n),[U,G]=c.useState(!1),Z=c.useRef(!1);c.useEffect(()=>{if(S)return so(S)},[S]),Qr();const j=c.useCallback(M=>{const[H,...te]=z().map(ie=>ie.ref.current),[oe]=te.slice(-1),ae=document.activeElement;for(const ie of M)if(ie===ae||(ie?.scrollIntoView({block:"nearest"}),ie===H&&P&&(P.scrollTop=0),ie===oe&&P&&(P.scrollTop=P.scrollHeight),ie?.focus(),document.activeElement!==ae))return},[z,P]),V=c.useCallback(()=>j([_,S]),[j,_,S]);c.useEffect(()=>{U&&V()},[U,V]);const{onOpenChange:D,triggerPointerDownPosRef:$}=x;c.useEffect(()=>{if(S){let M={x:0,y:0};const H=oe=>{M={x:Math.abs(Math.round(oe.pageX)-($.current?.x??0)),y:Math.abs(Math.round(oe.pageY)-($.current?.y??0))}},te=oe=>{M.x<=10&&M.y<=10?oe.preventDefault():S.contains(oe.target)||D(!1),document.removeEventListener("pointermove",H),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",te,{capture:!0})}}},[S,D,$]),c.useEffect(()=>{const M=()=>D(!1);return window.addEventListener("blur",M),window.addEventListener("resize",M),()=>{window.removeEventListener("blur",M),window.removeEventListener("resize",M)}},[D]);const[J,k]=Ru(M=>{const H=z().filter(ae=>!ae.disabled),te=H.find(ae=>ae.ref.current===document.activeElement),oe=Nu(H,M,te);oe&&setTimeout(()=>oe.ref.current.focus())}),N=c.useCallback((M,H,te)=>{const oe=!Z.current&&!te;(x.value!==void 0&&x.value===H||oe)&&(I(M),oe&&(Z.current=!0))},[x.value]),T=c.useCallback(()=>S?.focus(),[S]),O=c.useCallback((M,H,te)=>{const oe=!Z.current&&!te;(x.value!==void 0&&x.value===H||oe)&&B(M)},[x.value]),W=r==="popper"?gs:lu,K=W===gs?{side:i,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:y}:{};return p.jsx(iu,{scope:n,content:S,viewport:P,onViewportChange:E,itemRefCallback:N,selectedItem:_,onItemLeave:T,itemTextRefCallback:O,focusSelectedItem:V,selectedItemText:F,position:r,isPositioned:U,searchRef:J,children:p.jsx(Qn,{as:bS,allowPinchZoom:!0,children:p.jsx(Un,{asChild:!0,trapped:x.open,onMountAutoFocus:M=>{M.preventDefault()},onUnmountAutoFocus:L(o,M=>{x.trigger?.focus({preventScroll:!0}),M.preventDefault()}),children:p.jsx(mn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:p.jsx(W,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:M=>M.preventDefault(),...b,...K,onPlaced:()=>G(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:L(b.onKeyDown,M=>{const H=M.ctrlKey||M.altKey||M.metaKey;if(M.key==="Tab"&&M.preventDefault(),!H&&M.key.length===1&&k(M.key),["ArrowUp","ArrowDown","Home","End"].includes(M.key)){let oe=z().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);if(["ArrowUp","End"].includes(M.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(M.key)){const ae=M.target,ie=oe.indexOf(ae);oe=oe.slice(ie+1)}setTimeout(()=>j(oe)),M.preventDefault()}})})})})})})});cu.displayName=yS;var xS="SelectItemAlignedPosition",lu=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Tt(Ht,n),a=Dt(Ht,n),[i,l]=c.useState(null),[d,f]=c.useState(null),u=ee(t,R=>f(R)),m=co(n),h=c.useRef(!1),g=c.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=a,S=c.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&d&&v&&y&&b){const R=s.trigger.getBoundingClientRect(),_=d.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),F=b.getBoundingClientRect();if(s.dir!=="rtl"){const ae=F.left-_.left,ie=I.left-ae,Ee=R.left-ie,Oe=R.width+Ee,yt=Math.max(Oe,_.width),bt=window.innerWidth-Ke,He=In(ie,[Ke,Math.max(Ke,bt-yt)]);i.style.minWidth=Oe+"px",i.style.left=He+"px"}else{const ae=_.right-F.right,ie=window.innerWidth-I.right-ae,Ee=window.innerWidth-R.right-ie,Oe=R.width+Ee,yt=Math.max(Oe,_.width),bt=window.innerWidth-Ke,He=In(ie,[Ke,Math.max(Ke,bt-yt)]);i.style.minWidth=Oe+"px",i.style.right=He+"px"}const B=m(),z=window.innerHeight-Ke*2,U=v.scrollHeight,G=window.getComputedStyle(d),Z=parseInt(G.borderTopWidth,10),j=parseInt(G.paddingTop,10),V=parseInt(G.borderBottomWidth,10),D=parseInt(G.paddingBottom,10),$=Z+j+U+D+V,J=Math.min(y.offsetHeight*5,$),k=window.getComputedStyle(v),N=parseInt(k.paddingTop,10),T=parseInt(k.paddingBottom,10),O=R.top+R.height/2-Ke,W=z-O,K=y.offsetHeight/2,M=y.offsetTop+K,H=Z+j+M,te=$-H;if(H<=O){const ae=B.length>0&&y===B[B.length-1].ref.current;i.style.bottom="0px";const ie=d.clientHeight-v.offsetTop-v.offsetHeight,Ee=Math.max(W,K+(ae?T:0)+ie+V),Oe=H+Ee;i.style.height=Oe+"px"}else{const ae=B.length>0&&y===B[0].ref.current;i.style.top="0px";const Ee=Math.max(O,Z+v.offsetTop+(ae?N:0)+K)+te;i.style.height=Ee+"px",v.scrollTop=H-O+v.offsetTop}i.style.margin=`${Ke}px 0`,i.style.minHeight=J+"px",i.style.maxHeight=z+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[m,s.trigger,s.valueNode,i,d,v,y,b,s.dir,r]);ge(()=>S(),[S]);const[C,P]=c.useState();ge(()=>{d&&P(window.getComputedStyle(d).zIndex)},[d]);const E=c.useCallback(R=>{R&&g.current===!0&&(S(),x?.(),g.current=!1)},[S,x]);return p.jsx(SS,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:E,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:p.jsx(We.div,{...o,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});lu.displayName=xS;var wS="SelectPopperPosition",gs=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ke,...s}=e,a=lo(n);return p.jsx(ro,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});gs.displayName=wS;var[SS,Xs]=vn(Ht,{}),vs="SelectViewport",uu=c.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Dt(vs,n),a=Xs(vs,n),i=ee(t,s.onViewportChange),l=c.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(io.Slot,{scope:n,children:p.jsx(We.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:L(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:m}=a;if(m?.current&&u){const h=Math.abs(l.current-f.scrollTop);if(h>0){const g=window.innerHeight-Ke*2,v=parseFloat(u.style.minHeight),y=parseFloat(u.style.height),b=Math.max(v,y);if(b<g){const x=b+h,S=Math.min(g,x),C=x-S;u.style.height=S+"px",u.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,u.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});uu.displayName=vs;var du="SelectGroup",[CS,ES]=vn(du),fu=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=me();return p.jsx(CS,{scope:n,id:o,children:p.jsx(We.div,{role:"group","aria-labelledby":o,...r,ref:t})})});fu.displayName=du;var pu="SelectLabel",mu=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ES(pu,n);return p.jsx(We.div,{id:o.id,...r,ref:t})});mu.displayName=pu;var Br="SelectItem",[PS,hu]=vn(Br),gu=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,i=Tt(Br,n),l=Dt(Br,n),d=i.value===r,[f,u]=c.useState(s??""),[m,h]=c.useState(!1),g=ee(t,x=>l.itemRefCallback?.(x,r,o)),v=me(),y=c.useRef("touch"),b=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(PS,{scope:n,value:r,disabled:o,textId:v,isSelected:d,onItemTextChange:c.useCallback(x=>{u(S=>S||(x?.textContent??"").trim())},[]),children:p.jsx(io.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:p.jsx(We.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:g,onFocus:L(a.onFocus,()=>h(!0)),onBlur:L(a.onBlur,()=>h(!1)),onClick:L(a.onClick,()=>{y.current!=="mouse"&&b()}),onPointerUp:L(a.onPointerUp,()=>{y.current==="mouse"&&b()}),onPointerDown:L(a.onPointerDown,x=>{y.current=x.pointerType}),onPointerMove:L(a.onPointerMove,x=>{y.current=x.pointerType,o?l.onItemLeave?.():y.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:L(a.onPointerLeave,x=>{x.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:L(a.onKeyDown,x=>{l.searchRef?.current!==""&&x.key===" "||(dS.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});gu.displayName=Br;var Mn="SelectItemText",vu=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Tt(Mn,n),i=Dt(Mn,n),l=hu(Mn,n),d=hS(Mn,n),[f,u]=c.useState(null),m=ee(t,b=>u(b),l.onItemTextChange,b=>i.itemTextRefCallback?.(b,l.value,l.disabled)),h=f?.textContent,g=c.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=d;return ge(()=>(v(g),()=>y(g)),[v,y,g]),p.jsxs(p.Fragment,{children:[p.jsx(We.span,{id:l.textId,...s,ref:m}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Hn.createPortal(s.children,a.valueNode):null]})});vu.displayName=Mn;var yu="SelectItemIndicator",bu=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return hu(yu,n).isSelected?p.jsx(We.span,{"aria-hidden":!0,...r,ref:t}):null});bu.displayName=yu;var ys="SelectScrollUpButton",xu=c.forwardRef((e,t)=>{const n=Dt(ys,e.__scopeSelect),r=Xs(ys,e.__scopeSelect),[o,s]=c.useState(!1),a=ee(t,r.onScrollButtonChange);return ge(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=l.scrollTop>0;s(d)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(Su,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});xu.displayName=ys;var bs="SelectScrollDownButton",wu=c.forwardRef((e,t)=>{const n=Dt(bs,e.__scopeSelect),r=Xs(bs,e.__scopeSelect),[o,s]=c.useState(!1),a=ee(t,r.onScrollButtonChange);return ge(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<d;s(f)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(Su,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});wu.displayName=bs;var Su=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Dt("SelectScrollButton",n),a=c.useRef(null),i=co(n),l=c.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return c.useEffect(()=>()=>l(),[l]),ge(()=>{i().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[i]),p.jsx(We.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:L(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:L(o.onPointerMove,()=>{s.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:L(o.onPointerLeave,()=>{l()})})}),RS="SelectSeparator",Cu=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(We.div,{"aria-hidden":!0,...r,ref:t})});Cu.displayName=RS;var xs="SelectArrow",NS=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=lo(n),s=Tt(xs,n),a=Dt(xs,n);return s.open&&a.position==="popper"?p.jsx(oo,{...o,...r,ref:t}):null});NS.displayName=xs;var _S="SelectBubbleInput",Eu=c.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=c.useRef(null),s=ee(r,o),a=Yn(t);return c.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&f){const u=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(u)}},[a,t]),p.jsx(We.select,{...n,style:{...Hl,...n.style},ref:s,defaultValue:t})});Eu.displayName=_S;function Pu(e){return e===""||e===void 0}function Ru(e){const t=xe(e),n=c.useRef(""),r=c.useRef(0),o=c.useCallback(a=>{const i=n.current+a;t(i),(function l(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(i)},[t]),s=c.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Nu(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=kS(e,Math.max(s,0));o.length===1&&(a=a.filter(d=>d!==n));const l=a.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function kS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var MS=Jl,_u=tu,TS=ru,DS=ou,OS=su,ku=au,AS=uu,IS=fu,Mu=mu,Tu=gu,jS=vu,$S=bu,Du=xu,Ou=wu,Au=Cu;const WS=MS,FS=IS,LS=TS,Iu=c.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(_u,{ref:r,className:A("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,p.jsx(DS,{asChild:!0,children:p.jsx(Ls,{className:"h-4 w-4 opacity-50"})})]}));Iu.displayName=_u.displayName;const Zs=c.forwardRef(({className:e,...t},n)=>p.jsx(Du,{ref:n,className:A("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(ly,{className:"h-4 w-4"})}));Zs.displayName=Du.displayName;const Qs=c.forwardRef(({className:e,...t},n)=>p.jsx(Ou,{ref:n,className:A("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(Ls,{className:"h-4 w-4"})}));Qs.displayName=Ou.displayName;const ju=c.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>p.jsx(OS,{children:p.jsxs(ku,{ref:o,className:A("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[p.jsx(Zs,{}),p.jsx(AS,{className:A("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),p.jsx(Qs,{})]})}));ju.displayName=ku.displayName;const $u=c.forwardRef(({className:e,...t},n)=>p.jsx(Mu,{ref:n,className:A("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));$u.displayName=Mu.displayName;const Wu=c.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Tu,{ref:r,className:A("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx($S,{children:p.jsx(Fs,{className:"h-4 w-4"})})}),p.jsx(jS,{children:t})]}));Wu.displayName=Tu.displayName;const Fu=c.forwardRef(({className:e,...t},n)=>p.jsx(Au,{ref:n,className:A("-mx-1 my-1 h-px bg-muted",e),...t}));Fu.displayName=Au.displayName;function Lu(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,BS(o,...t)]}function BS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function VS(e){const t=HS(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(zS);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function HS(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=US(o),i=GS(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var YS=Symbol("radix.slottable");function zS(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===YS}function GS(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function US(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var KS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],uo=KS.reduce((e,t)=>{const n=VS(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function qS(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,XS(o,...t)]}function XS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function ZS(e){const t=QS(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(eC);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function QS(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=nC(o),i=tC(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var JS=Symbol("radix.slottable");function eC(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===JS}function tC(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function nC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bu=rC.reduce((e,t)=>{const n=ZS(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ts="rovingFocusGroup.onEntryFocus",oC={bubbles:!1,cancelable:!0},Jn="RovingFocusGroup",[ws,Vu,sC]=Gn(Jn),[aC,Ot]=qS(Jn,[sC]),[iC,cC]=aC(Jn),Hu=c.forwardRef((e,t)=>p.jsx(ws.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(ws.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(lC,{...e,ref:t})})}));Hu.displayName=Jn;var lC=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...u}=e,m=c.useRef(null),h=ee(t,m),g=vt(s),[v,y]=we({prop:a,defaultProp:i??null,onChange:l,caller:Jn}),[b,x]=c.useState(!1),S=xe(d),C=Vu(n),P=c.useRef(!1),[E,R]=c.useState(0);return c.useEffect(()=>{const _=m.current;if(_)return _.addEventListener(ts,S),()=>_.removeEventListener(ts,S)},[S]),p.jsx(iC,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:v,onItemFocus:c.useCallback(_=>y(_),[y]),onItemShiftTab:c.useCallback(()=>x(!0),[]),onFocusableItemAdd:c.useCallback(()=>R(_=>_+1),[]),onFocusableItemRemove:c.useCallback(()=>R(_=>_-1),[]),children:p.jsx(Bu.div,{tabIndex:b||E===0?-1:0,"data-orientation":r,...u,ref:h,style:{outline:"none",...e.style},onMouseDown:L(e.onMouseDown,()=>{P.current=!0}),onFocus:L(e.onFocus,_=>{const I=!P.current;if(_.target===_.currentTarget&&I&&!b){const F=new CustomEvent(ts,oC);if(_.currentTarget.dispatchEvent(F),!F.defaultPrevented){const B=C().filter(j=>j.focusable),z=B.find(j=>j.active),U=B.find(j=>j.id===v),Z=[z,U,...B].filter(Boolean).map(j=>j.ref.current);Gu(Z,f)}}P.current=!1}),onBlur:L(e.onBlur,()=>x(!1))})})}),Yu="RovingFocusGroupItem",zu=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...i}=e,l=me(),d=s||l,f=cC(Yu,n),u=f.currentTabStopId===d,m=Vu(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:v}=f;return c.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),p.jsx(ws.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:p.jsx(Bu.span,{tabIndex:u?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:L(e.onMouseDown,y=>{r?f.onItemFocus(d):y.preventDefault()}),onFocus:L(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:L(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){f.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const b=fC(y,f.orientation,f.dir);if(b!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let S=m().filter(C=>C.focusable).map(C=>C.ref.current);if(b==="last")S.reverse();else if(b==="prev"||b==="next"){b==="prev"&&S.reverse();const C=S.indexOf(y.currentTarget);S=f.loop?pC(S,C+1):S.slice(C+1)}setTimeout(()=>Gu(S))}}),children:typeof a=="function"?a({isCurrentTabStop:u,hasTabStop:v!=null}):a})})});zu.displayName=Yu;var uC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dC(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fC(e,t,n){const r=dC(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return uC[r]}function Gu(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function pC(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var fo=Hu,po=zu,Js="Radio",[mC,Uu]=Lu(Js),[hC,gC]=mC(Js),Ku=c.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:s,disabled:a,value:i="on",onCheck:l,form:d,...f}=e,[u,m]=c.useState(null),h=ee(t,y=>m(y)),g=c.useRef(!1),v=u?d||!!u.closest("form"):!0;return p.jsxs(hC,{scope:n,checked:o,disabled:a,children:[p.jsx(uo.button,{type:"button",role:"radio","aria-checked":o,"data-state":Qu(o),"data-disabled":a?"":void 0,disabled:a,value:i,...f,ref:h,onClick:L(e.onClick,y=>{o||l?.(),v&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})}),v&&p.jsx(Zu,{control:u,bubbles:!g.current,name:r,value:i,checked:o,required:s,disabled:a,form:d,style:{transform:"translateX(-100%)"}})]})});Ku.displayName=Js;var qu="RadioIndicator",Xu=c.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,s=gC(qu,n);return p.jsx(Se,{present:r||s.checked,children:p.jsx(uo.span,{"data-state":Qu(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t})})});Xu.displayName=qu;var vC="RadioBubbleInput",Zu=c.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const a=c.useRef(null),i=ee(a,s),l=Yn(n),d=zn(t);return c.useEffect(()=>{const f=a.current;if(!f)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(l!==n&&h){const g=new Event("click",{bubbles:r});h.call(f,n),f.dispatchEvent(g)}},[l,n,r]),p.jsx(uo.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Zu.displayName=vC;function Qu(e){return e?"checked":"unchecked"}var yC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],mo="RadioGroup",[bC]=Lu(mo,[Ot,Uu]),Ju=Ot(),ed=Uu(),[xC,wC]=bC(mo),td=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:s,required:a=!1,disabled:i=!1,orientation:l,dir:d,loop:f=!0,onValueChange:u,...m}=e,h=Ju(n),g=vt(d),[v,y]=we({prop:s,defaultProp:o??null,onChange:u,caller:mo});return p.jsx(xC,{scope:n,name:r,required:a,disabled:i,value:v,onValueChange:y,children:p.jsx(fo,{asChild:!0,...h,orientation:l,dir:g,loop:f,children:p.jsx(uo.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":i?"":void 0,dir:g,...m,ref:t})})})});td.displayName=mo;var nd="RadioGroupItem",rd=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,s=wC(nd,n),a=s.disabled||r,i=Ju(n),l=ed(n),d=c.useRef(null),f=ee(t,d),u=s.value===o.value,m=c.useRef(!1);return c.useEffect(()=>{const h=v=>{yC.includes(v.key)&&(m.current=!0)},g=()=>m.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",g)}},[]),p.jsx(po,{asChild:!0,...i,focusable:!a,active:u,children:p.jsx(Ku,{disabled:a,required:s.required,checked:u,...l,...o,name:s.name,ref:f,onCheck:()=>s.onValueChange(o.value),onKeyDown:L(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:L(o.onFocus,()=>{m.current&&d.current?.click()})})})});rd.displayName=nd;var SC="RadioGroupIndicator",od=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=ed(n);return p.jsx(Xu,{...o,...r,ref:t})});od.displayName=SC;var sd=td,ad=rd,CC=od;const id=c.forwardRef(({className:e,...t},n)=>p.jsx(sd,{className:A("grid gap-2",e),...t,ref:n}));id.displayName=sd.displayName;const cd=c.forwardRef(({className:e,...t},n)=>p.jsx(ad,{ref:n,className:A("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:p.jsx(CC,{className:"flex items-center justify-center",children:p.jsx(sl,{className:"h-2.5 w-2.5 fill-current text-current"})})}));cd.displayName=ad.displayName;function EC(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,PC(o,...t)]}function PC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function RC(e){const t=NC(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(kC);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function NC(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=TC(o),i=MC(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _C=Symbol("radix.slottable");function kC(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_C}function MC(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function TC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var DC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],er=DC.reduce((e,t)=>{const n=RC(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ld=["PageUp","PageDown"],ud=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dd={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},yn="Slider",[Ss,OC,AC]=Gn(yn),[fd]=EC(yn,[AC]),[IC,ho]=fd(yn),pd=c.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:a="horizontal",disabled:i=!1,minStepsBetweenThumbs:l=0,defaultValue:d=[r],value:f,onValueChange:u=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:g,...v}=e,y=c.useRef(new Set),b=c.useRef(0),S=a==="horizontal"?jC:$C,[C=[],P]=we({prop:f,defaultProp:d,onChange:B=>{[...y.current][b.current]?.focus(),u(B)}}),E=c.useRef(C);function R(B){const z=VC(C,B);F(B,z)}function _(B){F(B,b.current)}function I(){const B=E.current[b.current];C[b.current]!==B&&m(C)}function F(B,z,{commit:U}={commit:!1}){const G=GC(s),Z=UC(Math.round((B-r)/s)*s+r,G),j=In(Z,[r,o]);P((V=[])=>{const D=LC(V,j,z);if(zC(D,l*s)){b.current=D.indexOf(j);const $=String(D)!==String(V);return $&&U&&m(D),$?D:V}else return V})}return p.jsx(IC,{scope:e.__scopeSlider,name:n,disabled:i,min:r,max:o,valueIndexToChangeRef:b,thumbs:y.current,values:C,orientation:a,form:g,children:p.jsx(Ss.Provider,{scope:e.__scopeSlider,children:p.jsx(Ss.Slot,{scope:e.__scopeSlider,children:p.jsx(S,{"aria-disabled":i,"data-disabled":i?"":void 0,...v,ref:t,onPointerDown:L(v.onPointerDown,()=>{i||(E.current=C)}),min:r,max:o,inverted:h,onSlideStart:i?void 0:R,onSlideMove:i?void 0:_,onSlideEnd:i?void 0:I,onHomeKeyDown:()=>!i&&F(r,0,{commit:!0}),onEndKeyDown:()=>!i&&F(o,C.length-1,{commit:!0}),onStepKeyDown:({event:B,direction:z})=>{if(!i){const Z=ld.includes(B.key)||B.shiftKey&&ud.includes(B.key)?10:1,j=b.current,V=C[j],D=s*Z*z;F(V+D,j,{commit:!0})}}})})})})});pd.displayName=yn;var[md,hd]=fd(yn,{startEdge:"left",endEdge:"right",size:"width",direction:1}),jC=c.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:a,onSlideMove:i,onSlideEnd:l,onStepKeyDown:d,...f}=e,[u,m]=c.useState(null),h=ee(t,S=>m(S)),g=c.useRef(void 0),v=vt(o),y=v==="ltr",b=y&&!s||!y&&s;function x(S){const C=g.current||u.getBoundingClientRect(),P=[0,C.width],R=ea(P,b?[n,r]:[r,n]);return g.current=C,R(S-C.left)}return p.jsx(md,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:p.jsx(gd,{dir:v,"data-orientation":"horizontal",...f,ref:h,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:S=>{const C=x(S.clientX);a?.(C)},onSlideMove:S=>{const C=x(S.clientX);i?.(C)},onSlideEnd:()=>{g.current=void 0,l?.()},onStepKeyDown:S=>{const P=dd[b?"from-left":"from-right"].includes(S.key);d?.({event:S,direction:P?-1:1})}})})}),$C=c.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:a,onSlideEnd:i,onStepKeyDown:l,...d}=e,f=c.useRef(null),u=ee(t,f),m=c.useRef(void 0),h=!o;function g(v){const y=m.current||f.current.getBoundingClientRect(),b=[0,y.height],S=ea(b,h?[r,n]:[n,r]);return m.current=y,S(v-y.top)}return p.jsx(md,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:p.jsx(gd,{"data-orientation":"vertical",...d,ref:u,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const y=g(v.clientY);s?.(y)},onSlideMove:v=>{const y=g(v.clientY);a?.(y)},onSlideEnd:()=>{m.current=void 0,i?.()},onStepKeyDown:v=>{const b=dd[h?"from-bottom":"from-top"].includes(v.key);l?.({event:v,direction:b?-1:1})}})})}),gd=c.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:a,onEndKeyDown:i,onStepKeyDown:l,...d}=e,f=ho(yn,n);return p.jsx(er.span,{...d,ref:t,onKeyDown:L(e.onKeyDown,u=>{u.key==="Home"?(a(u),u.preventDefault()):u.key==="End"?(i(u),u.preventDefault()):ld.concat(ud).includes(u.key)&&(l(u),u.preventDefault())}),onPointerDown:L(e.onPointerDown,u=>{const m=u.target;m.setPointerCapture(u.pointerId),u.preventDefault(),f.thumbs.has(m)?m.focus():r(u)}),onPointerMove:L(e.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&o(u)}),onPointerUp:L(e.onPointerUp,u=>{const m=u.target;m.hasPointerCapture(u.pointerId)&&(m.releasePointerCapture(u.pointerId),s(u))})})}),vd="SliderTrack",yd=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=ho(vd,n);return p.jsx(er.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});yd.displayName=vd;var Cs="SliderRange",bd=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=ho(Cs,n),s=hd(Cs,n),a=c.useRef(null),i=ee(t,a),l=o.values.length,d=o.values.map(m=>Sd(m,o.min,o.max)),f=l>1?Math.min(...d):0,u=100-Math.max(...d);return p.jsx(er.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:i,style:{...e.style,[s.startEdge]:f+"%",[s.endEdge]:u+"%"}})});bd.displayName=Cs;var Es="SliderThumb",xd=c.forwardRef((e,t)=>{const n=OC(e.__scopeSlider),[r,o]=c.useState(null),s=ee(t,i=>o(i)),a=c.useMemo(()=>r?n().findIndex(i=>i.ref.current===r):-1,[n,r]);return p.jsx(WC,{...e,ref:s,index:a})}),WC=c.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,a=ho(Es,n),i=hd(Es,n),[l,d]=c.useState(null),f=ee(t,x=>d(x)),u=l?a.form||!!l.closest("form"):!0,m=zn(l),h=a.values[r],g=h===void 0?0:Sd(h,a.min,a.max),v=BC(r,a.values.length),y=m?.[i.size],b=y?HC(y,g,i.direction):0;return c.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[i.startEdge]:`calc(${g}% + ${b}px)`},children:[p.jsx(Ss.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(er.span,{role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":a.min,"aria-valuenow":h,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...s,ref:f,style:h===void 0?{display:"none"}:e.style,onFocus:L(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})})}),u&&p.jsx(wd,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:h},r)]})});xd.displayName=Es;var FC="RadioBubbleInput",wd=c.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=c.useRef(null),s=ee(o,r),a=Yn(t);return c.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&f){const u=new Event("input",{bubbles:!0});f.call(i,t),i.dispatchEvent(u)}},[a,t]),p.jsx(er.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});wd.displayName=FC;function LC(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function Sd(e,t,n){const s=100/(n-t)*(e-t);return In(s,[0,100])}function BC(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function VC(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function HC(e,t,n){const r=e/2,s=ea([0,50],[0,r]);return(r-s(t)*n)*n}function YC(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function zC(e,t){if(t>0){const n=YC(e);return Math.min(...n)>=t}return!0}function ea(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function GC(e){return(String(e).split(".")[1]||"").length}function UC(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Cd=pd,KC=yd,qC=bd,XC=xd;const Ed=c.forwardRef(({className:e,...t},n)=>p.jsxs(Cd,{ref:n,className:A("relative flex w-full touch-none select-none items-center",e),...t,children:[p.jsx(KC,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:p.jsx(qC,{className:"absolute h-full bg-primary"})}),p.jsx(XC,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Ed.displayName=Cd.displayName;function ZC(e){const t=QC(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(e0);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function QC(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=n0(o),i=t0(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var JC=Symbol("radix.slottable");function e0(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===JC}function t0(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function n0(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var r0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],o0=r0.reduce((e,t)=>{const n=ZC(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Pd="Toggle",ta=c.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...s}=e,[a,i]=we({prop:n,onChange:o,defaultProp:r??!1,caller:Pd});return p.jsx(o0.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:L(e.onClick,()=>{e.disabled||i(!a)})})});ta.displayName=Pd;var Rd=ta;const na=pn("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),Nd=c.forwardRef(({className:e,variant:t,size:n,...r},o)=>p.jsx(Rd,{ref:o,className:A(na({variant:t,size:n,className:e})),...r}));Nd.displayName=Rd.displayName;function s0(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,a0(o,...t)]}function a0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function i0(e){const t=c0(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(u0);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function c0(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=f0(o),i=d0(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var l0=Symbol("radix.slottable");function u0(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===l0}function d0(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function f0(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var p0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Li=p0.reduce((e,t)=>{const n=i0(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),At="ToggleGroup",[_d]=s0(At,[Ot]),kd=Ot(),ra=w.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return p.jsx(m0,{...o,ref:t})}if(n==="multiple"){const o=r;return p.jsx(h0,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${At}\``)});ra.displayName=At;var[Md,Td]=_d(At),m0=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...s}=e,[a,i]=we({prop:n,defaultProp:r??"",onChange:o,caller:At});return p.jsx(Md,{scope:e.__scopeToggleGroup,type:"single",value:w.useMemo(()=>a?[a]:[],[a]),onItemActivate:i,onItemDeactivate:w.useCallback(()=>i(""),[i]),children:p.jsx(Dd,{...s,ref:t})})}),h0=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...s}=e,[a,i]=we({prop:n,defaultProp:r??[],onChange:o,caller:At}),l=w.useCallback(f=>i((u=[])=>[...u,f]),[i]),d=w.useCallback(f=>i((u=[])=>u.filter(m=>m!==f)),[i]);return p.jsx(Md,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:l,onItemDeactivate:d,children:p.jsx(Dd,{...s,ref:t})})});ra.displayName=At;var[g0,v0]=_d(At),Dd=w.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:s,dir:a,loop:i=!0,...l}=e,d=kd(n),f=vt(a),u={role:"group",dir:f,...l};return p.jsx(g0,{scope:n,rovingFocus:o,disabled:r,children:o?p.jsx(fo,{asChild:!0,...d,orientation:s,dir:f,loop:i,children:p.jsx(Li.div,{...u,ref:t})}):p.jsx(Li.div,{...u,ref:t})})}),Vr="ToggleGroupItem",Od=w.forwardRef((e,t)=>{const n=Td(Vr,e.__scopeToggleGroup),r=v0(Vr,e.__scopeToggleGroup),o=kd(e.__scopeToggleGroup),s=n.value.includes(e.value),a=r.disabled||e.disabled,i={...e,pressed:s,disabled:a},l=w.useRef(null);return r.rovingFocus?p.jsx(po,{asChild:!0,...o,focusable:!a,active:s,ref:l,children:p.jsx(Bi,{...i,ref:t})}):p.jsx(Bi,{...i,ref:t})});Od.displayName=Vr;var Bi=w.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,s=Td(Vr,n),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i=s.type==="single"?a:void 0;return p.jsx(ta,{...i,...o,ref:t,onPressedChange:l=>{l?s.onItemActivate(r):s.onItemDeactivate(r)}})}),Ad=ra,Id=Od;const jd=c.forwardRef(({className:e,variant:t,size:n,children:r,...o},s)=>p.jsx(Ad,{ref:s,className:A("flex items-center justify-center gap-1",e),...o,children:p.jsx($d.Provider,{value:{variant:t,size:n},children:r})}));jd.displayName=Ad.displayName;const $d=c.createContext({size:"default",variant:"default"}),Wd=c.forwardRef(({className:e,children:t,variant:n,size:r,...o},s)=>{const a=c.useContext($d);return p.jsx(Id,{ref:s,className:A(na({variant:a.variant||n,size:a.size||r}),e),...o,children:t})});Wd.displayName=Id.displayName;function y0(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const b0={},Tn={};function Lt(e,t){try{const r=(b0[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in Tn?Tn[r]:Vi(r,r.split(":"))}catch{if(e in Tn)return Tn[e];const n=e?.match(x0);return n?Vi(e,n.slice(1)):NaN}}const x0=/([+-]\d\d):?(\d\d)?/;function Vi(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return Tn[e]=n*60+r>0?n*60+r+o:n*60-r-o}class ot extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Lt(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Fd(this),Ps(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new ot(...n,t):new ot(Date.now(),t)}withTimeZone(t){return new ot(+this,t)}getTimezoneOffset(){const t=-Lt(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Ps(this),+this}[Symbol.for("constructDateFrom")](t){return new ot(+new Date(t),this.timeZone)}}const Hi=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Hi.test(e))return;const t=e.replace(Hi,"$1UTC");ot.prototype[t]&&(e.startsWith("get")?ot.prototype[e]=function(){return this.internal[t]()}:(ot.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),w0(this),+this},ot.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Ps(this),+this}))});function Ps(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Lt(e.timeZone,e)*60))}function w0(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Fd(e)}function Fd(e){const t=Lt(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),s=-new Date(+r).getTimezoneOffset(),a=o-s,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const d=new Date(+e);d.setUTCSeconds(0);const f=o>0?d.getSeconds():(d.getSeconds()-60)%60,u=Math.round(-(Lt(e.timeZone,e)*60))%60;(u||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+f));const m=Lt(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),v=-new Date(+e).getTimezoneOffset()-h,y=h!==n,b=v-l;if(y&&b){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b);const x=Lt(e.timeZone,e),S=x>0?Math.floor(x):Math.ceil(x),C=h-S;C&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+C),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+C))}}class Re extends ot{static tz(t,...n){return n.length?new Re(...n,t):new Re(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${y0(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new Re(+this,t)}[Symbol.for("constructDateFrom")](t){return new Re(+new Date(t),this.timeZone)}}const Ld=6048e5,S0=864e5,Yi=Symbol.for("constructDateFrom");function ye(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Yi in e?e[Yi](t):e instanceof Date?new e.constructor(t):new Date(t)}function fe(e,t){return ye(t||e,e)}function Bd(e,t,n){const r=fe(e,n?.in);return isNaN(t)?ye(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Vd(e,t,n){const r=fe(e,n?.in);if(isNaN(t))return ye(e,NaN);if(!t)return r;const o=r.getDate(),s=ye(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const a=s.getDate();return o>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),o),r)}let C0={};function tr(){return C0}function an(e,t){const n=tr(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=fe(e,t?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Wn(e,t){return an(e,{...t,weekStartsOn:1})}function Hd(e,t){const n=fe(e,t?.in),r=n.getFullYear(),o=ye(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Wn(o),a=ye(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const i=Wn(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function zi(e){const t=fe(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function bn(e,...t){const n=ye.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Fn(e,t){const n=fe(e,t?.in);return n.setHours(0,0,0,0),n}function oa(e,t,n){const[r,o]=bn(n?.in,e,t),s=Fn(r),a=Fn(o),i=+s-zi(s),l=+a-zi(a);return Math.round((i-l)/S0)}function E0(e,t){const n=Hd(e,t),r=ye(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Wn(r)}function P0(e,t,n){return Bd(e,t*7,n)}function R0(e,t,n){return Vd(e,t*12,n)}function N0(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ye.bind(null,o));const s=fe(o,r);(!n||n<s||isNaN(+s))&&(n=s)}),ye(r,n||NaN)}function _0(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ye.bind(null,o));const s=fe(o,r);(!n||n>s||isNaN(+s))&&(n=s)}),ye(r,n||NaN)}function k0(e,t,n){const[r,o]=bn(n?.in,e,t);return+Fn(r)==+Fn(o)}function Yd(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function M0(e){return!(!Yd(e)&&typeof e!="number"||isNaN(+fe(e)))}function zd(e,t,n){const[r,o]=bn(n?.in,e,t),s=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return s*12+a}function T0(e,t){const n=fe(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Gd(e,t){const[n,r]=bn(e,t.start,t.end);return{start:n,end:r}}function D0(e,t){const{start:n,end:r}=Gd(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let i=1;const l=[];for(;+a<=s;)l.push(ye(n,a)),a.setMonth(a.getMonth()+i);return o?l.reverse():l}function O0(e,t){const n=fe(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function A0(e,t){const n=fe(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Ud(e,t){const n=fe(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function I0(e,t){const{start:n,end:r}=Gd(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let i=1;const l=[];for(;+a<=s;)l.push(ye(n,a)),a.setFullYear(a.getFullYear()+i);return o?l.reverse():l}function Kd(e,t){const n=tr(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=fe(e,t?.in),s=o.getDay(),a=(s<r?-7:0)+6-(s-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function j0(e,t){return Kd(e,{...t,weekStartsOn:1})}const $0={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},W0=(e,t,n)=>{let r;const o=$0[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ns(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const F0={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},L0={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},B0={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},V0={date:ns({formats:F0,defaultWidth:"full"}),time:ns({formats:L0,defaultWidth:"full"}),dateTime:ns({formats:B0,defaultWidth:"full"})},H0={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Y0=(e,t,n,r)=>H0[e];function Nn(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):a;o=e.formattingValues[i]||e.formattingValues[a]}else{const a=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const z0={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},G0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},U0={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},K0={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},q0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},X0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Z0=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Q0={ordinalNumber:Z0,era:Nn({values:z0,defaultWidth:"wide"}),quarter:Nn({values:G0,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Nn({values:U0,defaultWidth:"wide"}),day:Nn({values:K0,defaultWidth:"wide"}),dayPeriod:Nn({values:q0,defaultWidth:"wide",formattingValues:X0,defaultFormattingWidth:"wide"})};function _n(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?eE(i,u=>u.test(a)):J0(i,u=>u.test(a));let d;d=e.valueCallback?e.valueCallback(l):l,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(a.length);return{value:d,rest:f}}}function J0(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function eE(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function tE(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const i=t.slice(o.length);return{value:a,rest:i}}}const nE=/^(\d+)(th|st|nd|rd)?/i,rE=/\d+/i,oE={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},sE={any:[/^b/i,/^(a|c)/i]},aE={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},iE={any:[/1/i,/2/i,/3/i,/4/i]},cE={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},lE={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},uE={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},dE={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},fE={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},pE={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},mE={ordinalNumber:tE({matchPattern:nE,parsePattern:rE,valueCallback:e=>parseInt(e,10)}),era:_n({matchPatterns:oE,defaultMatchWidth:"wide",parsePatterns:sE,defaultParseWidth:"any"}),quarter:_n({matchPatterns:aE,defaultMatchWidth:"wide",parsePatterns:iE,defaultParseWidth:"any",valueCallback:e=>e+1}),month:_n({matchPatterns:cE,defaultMatchWidth:"wide",parsePatterns:lE,defaultParseWidth:"any"}),day:_n({matchPatterns:uE,defaultMatchWidth:"wide",parsePatterns:dE,defaultParseWidth:"any"}),dayPeriod:_n({matchPatterns:fE,defaultMatchWidth:"any",parsePatterns:pE,defaultParseWidth:"any"})},en={code:"en-US",formatDistance:W0,formatLong:V0,formatRelative:Y0,localize:Q0,match:mE,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hE(e,t){const n=fe(e,t?.in);return oa(n,Ud(n))+1}function sa(e,t){const n=fe(e,t?.in),r=+Wn(n)-+E0(n);return Math.round(r/Ld)+1}function qd(e,t){const n=fe(e,t?.in),r=n.getFullYear(),o=tr(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=ye(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const i=an(a,t),l=ye(t?.in||e,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const d=an(l,t);return+n>=+i?r+1:+n>=+d?r:r-1}function gE(e,t){const n=tr(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=qd(e,t),s=ye(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),an(s,t)}function aa(e,t){const n=fe(e,t?.in),r=+an(n,t)-+gE(n,t);return Math.round(r/Ld)+1}function de(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Et={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return de(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):de(n+1,2)},d(e,t){return de(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return de(e.getHours()%12||12,t.length)},H(e,t){return de(e.getHours(),t.length)},m(e,t){return de(e.getMinutes(),t.length)},s(e,t){return de(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return de(o,t.length)}},Qt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Gi={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Et.y(e,t)},Y:function(e,t,n,r){const o=qd(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return de(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):de(s,t.length)},R:function(e,t){const n=Hd(e);return de(n,t.length)},u:function(e,t){const n=e.getFullYear();return de(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return de(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return de(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Et.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return de(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=aa(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):de(o,t.length)},I:function(e,t,n){const r=sa(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):de(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Et.d(e,t)},D:function(e,t,n){const r=hE(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):de(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return de(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return de(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return de(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Qt.noon:r===0?o=Qt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Qt.evening:r>=12?o=Qt.afternoon:r>=4?o=Qt.morning:o=Qt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Et.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Et.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Et.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Et.s(e,t)},S:function(e,t){return Et.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ki(r);case"XXXX":case"XX":return Ft(r);default:return Ft(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ki(r);case"xxxx":case"xx":return Ft(r);default:return Ft(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ui(r,":");default:return"GMT"+Ft(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ui(r,":");default:return"GMT"+Ft(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return de(r,t.length)},T:function(e,t,n){return de(+e,t.length)}};function Ui(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+de(s,2)}function Ki(e,t){return e%60===0?(e>0?"-":"+")+de(Math.abs(e)/60,2):Ft(e,t)}function Ft(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=de(Math.trunc(r/60),2),s=de(r%60,2);return n+o+t+s}const qi=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Xd=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},vE=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return qi(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",qi(r,t)).replace("{{time}}",Xd(o,t))},yE={p:Xd,P:vE},bE=/^D+$/,xE=/^Y+$/,wE=["D","DD","YY","YYYY"];function SE(e){return bE.test(e)}function CE(e){return xE.test(e)}function EE(e,t,n){const r=PE(e,t,n);if(console.warn(r),wE.includes(e))throw new RangeError(r)}function PE(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const RE=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,NE=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_E=/^'([^]*?)'?$/,kE=/''/g,ME=/[a-zA-Z]/;function Dn(e,t,n){const r=tr(),o=n?.locale??r.locale??en,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=fe(e,n?.in);if(!M0(i))throw new RangeError("Invalid time value");let l=t.match(NE).map(f=>{const u=f[0];if(u==="p"||u==="P"){const m=yE[u];return m(f,o.formatLong)}return f}).join("").match(RE).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const u=f[0];if(u==="'")return{isToken:!1,value:TE(f)};if(Gi[u])return{isToken:!0,value:f};if(u.match(ME))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const d={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return l.map(f=>{if(!f.isToken)return f.value;const u=f.value;(!n?.useAdditionalWeekYearTokens&&CE(u)||!n?.useAdditionalDayOfYearTokens&&SE(u))&&EE(u,t,String(e));const m=Gi[u[0]];return m(i,u,o.localize,d)}).join("")}function TE(e){const t=e.match(_E);return t?t[1].replace(kE,"'"):e}function DE(e,t){const n=fe(e,t?.in),r=n.getFullYear(),o=n.getMonth(),s=ye(n,0);return s.setFullYear(r,o+1,0),s.setHours(0,0,0,0),s.getDate()}function OE(e,t){return fe(e,t?.in).getMonth()}function AE(e,t){return fe(e,t?.in).getFullYear()}function IE(e,t){return+fe(e)>+fe(t)}function jE(e,t){return+fe(e)<+fe(t)}function $E(e,t,n){const[r,o]=bn(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function WE(e,t,n){const[r,o]=bn(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function FE(e,t,n){const r=fe(e,n?.in),o=r.getFullYear(),s=r.getDate(),a=ye(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const i=DE(a);return r.setMonth(t,Math.min(s,i)),r}function LE(e,t,n){const r=fe(e,n?.in);return isNaN(+r)?ye(e,NaN):(r.setFullYear(t),r)}const Xi=5,BE=4;function VE(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),s=t.addDays(o,Xi*7-1);return t.getMonth(e)===t.getMonth(s)?Xi:BE}function Zd(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function HE(e,t){const n=Zd(e,t),r=VE(e,t);return t.addDays(n,r*7-1)}const Qd={...en,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>Dn(a,i,{locale:en,...n});let s=o(e,"PPPP");return t.today&&(s=`Today, ${s}`),t.selected&&(s=`${s}, selected`),s},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>Dn(o,s,{locale:en,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>Dn(a,i,{locale:en,...n});let s=o(e,"PPPP");return t?.today&&(s=`Today, ${s}`),s},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>Dn(o,s,{locale:en,...t}),r(e,"cccc")}}};class $e{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Re.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,s)=>this.overrides?.newDate?this.overrides.newDate(r,o,s):this.options.timeZone?new Re(r,o,s,this.options.timeZone):new Date(r,o,s),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):Bd(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):Vd(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):P0(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):R0(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):oa(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):zd(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):D0(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):I0(r),s=new Set(o.map(i=>this.getYear(i)));if(s.size===o.length)return o;const a=[];return s.forEach(i=>{a.push(new Date(i,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):HE(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):j0(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):T0(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Kd(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):A0(r),this.format=(r,o,s)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):Dn(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):sa(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):OE(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):AE(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):aa(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):IE(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):jE(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):Yd(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):k0(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):$E(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):WE(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):N0(r),this.min=r=>this.overrides?.min?this.overrides.min(r):_0(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):FE(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):LE(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Zd(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):Fn(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):Wn(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):O0(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):an(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Ud(r),this.options={locale:Qd,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&$e.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,s=n?.code;if(s&&$e.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}$e.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const ct=new $e;class Jd{constructor(t,n,r=ct){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class YE{constructor(t,n){this.date=t,this.weeks=n}}class zE{constructor(t,n){this.days=n,this.weekNumber=t}}function GE(e){return w.createElement("button",{...e})}function UE(e){return w.createElement("span",{...e})}function KE(e){const{size:t=24,orientation:n="left",className:r}=e;return w.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&w.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&w.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&w.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&w.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function qE(e){const{day:t,modifiers:n,...r}=e;return w.createElement("td",{...r})}function XE(e){const{day:t,modifiers:n,...r}=e,o=w.useRef(null);return w.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),w.createElement("button",{ref:o,...r})}var Q;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Q||(Q={}));var pe;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(pe||(pe={}));var qe;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(qe||(qe={}));var Ae;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Ae||(Ae={}));function ZE(e){const{options:t,className:n,components:r,classNames:o,...s}=e,a=[o[Q.Dropdown],n].join(" "),i=t?.find(({value:l})=>l===s.value);return w.createElement("span",{"data-disabled":s.disabled,className:o[Q.DropdownRoot]},w.createElement(r.Select,{className:a,...s},t?.map(({value:l,label:d,disabled:f})=>w.createElement(r.Option,{key:l,value:l,disabled:f},d))),w.createElement("span",{className:o[Q.CaptionLabel],"aria-hidden":!0},i?.label,w.createElement(r.Chevron,{orientation:"down",size:18,className:o[Q.Chevron]})))}function QE(e){return w.createElement("div",{...e})}function JE(e){return w.createElement("div",{...e})}function eP(e){const{calendarMonth:t,displayIndex:n,...r}=e;return w.createElement("div",{...r},e.children)}function tP(e){const{calendarMonth:t,displayIndex:n,...r}=e;return w.createElement("div",{...r})}function nP(e){return w.createElement("table",{...e})}function rP(e){return w.createElement("div",{...e})}const ef=w.createContext(void 0);function nr(){const e=w.useContext(ef);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function oP(e){const{components:t}=nr();return w.createElement(t.Dropdown,{...e})}function sP(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...s}=e,{components:a,classNames:i,labels:{labelPrevious:l,labelNext:d}}=nr(),f=w.useCallback(m=>{o&&n?.(m)},[o,n]),u=w.useCallback(m=>{r&&t?.(m)},[r,t]);return w.createElement("nav",{...s},w.createElement(a.PreviousMonthButton,{type:"button",className:i[Q.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:u},w.createElement(a.Chevron,{disabled:r?void 0:!0,className:i[Q.Chevron],orientation:"left"})),w.createElement(a.NextMonthButton,{type:"button",className:i[Q.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":d(o),onClick:f},w.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[Q.Chevron]})))}function aP(e){const{components:t}=nr();return w.createElement(t.Button,{...e})}function iP(e){return w.createElement("option",{...e})}function cP(e){const{components:t}=nr();return w.createElement(t.Button,{...e})}function lP(e){const{rootRef:t,...n}=e;return w.createElement("div",{...n,ref:t})}function uP(e){return w.createElement("select",{...e})}function dP(e){const{week:t,...n}=e;return w.createElement("tr",{...n})}function fP(e){return w.createElement("th",{...e})}function pP(e){return w.createElement("thead",{"aria-hidden":!0},w.createElement("tr",{...e}))}function mP(e){const{week:t,...n}=e;return w.createElement("th",{...n})}function hP(e){return w.createElement("th",{...e})}function gP(e){return w.createElement("tbody",{...e})}function vP(e){const{components:t}=nr();return w.createElement(t.Dropdown,{...e})}const yP=Object.freeze(Object.defineProperty({__proto__:null,Button:GE,CaptionLabel:UE,Chevron:KE,Day:qE,DayButton:XE,Dropdown:ZE,DropdownNav:QE,Footer:JE,Month:eP,MonthCaption:tP,MonthGrid:nP,Months:rP,MonthsDropdown:oP,Nav:sP,NextMonthButton:aP,Option:iP,PreviousMonthButton:cP,Root:lP,Select:uP,Week:dP,WeekNumber:mP,WeekNumberHeader:hP,Weekday:fP,Weekdays:pP,Weeks:gP,YearsDropdown:vP},Symbol.toStringTag,{value:"Module"}));function ft(e,t,n=!1,r=ct){let{from:o,to:s}=e;const{differenceInCalendarDays:a,isSameDay:i}=r;return o&&s?(a(s,o)<0&&([o,s]=[s,o]),a(t,o)>=(n?1:0)&&a(s,t)>=(n?1:0)):!n&&s?i(s,t):!n&&o?i(o,t):!1}function ia(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function go(e){return!!(e&&typeof e=="object"&&"from"in e)}function ca(e){return!!(e&&typeof e=="object"&&"after"in e)}function la(e){return!!(e&&typeof e=="object"&&"before"in e)}function tf(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function nf(e,t){return Array.isArray(e)&&e.every(t.isDate)}function pt(e,t,n=ct){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:s,isAfter:a}=n;return r.some(i=>{if(typeof i=="boolean")return i;if(n.isDate(i))return o(e,i);if(nf(i,n))return i.some(l=>o(e,l));if(go(i))return ft(i,e,!1,n);if(tf(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(ia(i)){const l=s(i.before,e),d=s(i.after,e),f=l>0,u=d<0;return a(i.before,i.after)?u&&f:f||u}return ca(i)?s(e,i.after)>0:la(i)?s(i.before,e)>0:typeof i=="function"?i(e):!1})}function bP(e,t,n,r,o){const{disabled:s,hidden:a,modifiers:i,showOutsideDays:l,broadcastCalendar:d,today:f=o.today()}=t,{isSameDay:u,isSameMonth:m,startOfMonth:h,isBefore:g,endOfMonth:v,isAfter:y}=o,b=n&&h(n),x=r&&v(r),S={[pe.focused]:[],[pe.outside]:[],[pe.disabled]:[],[pe.hidden]:[],[pe.today]:[]},C={};for(const P of e){const{date:E,displayMonth:R}=P,_=!!(R&&!m(E,R)),I=!!(b&&g(E,b)),F=!!(x&&y(E,x)),B=!!(s&&pt(E,s,o)),z=!!(a&&pt(E,a,o))||I||F||!d&&!l&&_||d&&l===!1&&_,U=u(E,f);_&&S.outside.push(P),B&&S.disabled.push(P),z&&S.hidden.push(P),U&&S.today.push(P),i&&Object.keys(i).forEach(G=>{const Z=i?.[G];Z&&pt(E,Z,o)&&(C[G]?C[G].push(P):C[G]=[P])})}return P=>{const E={[pe.focused]:!1,[pe.disabled]:!1,[pe.hidden]:!1,[pe.outside]:!1,[pe.today]:!1},R={};for(const _ in S){const I=S[_];E[_]=I.some(F=>F===P)}for(const _ in C)R[_]=C[_].some(I=>I===P);return{...E,...R}}}function xP(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[s])=>(n[s]?o.push(n[s]):t[pe[s]]?o.push(t[pe[s]]):t[qe[s]]&&o.push(t[qe[s]]),o),[t[Q.Day]])}function wP(e){return{...yP,...e}}function SP(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function CP(){const e={};for(const t in Q)e[Q[t]]=`rdp-${Q[t]}`;for(const t in pe)e[pe[t]]=`rdp-${pe[t]}`;for(const t in qe)e[qe[t]]=`rdp-${qe[t]}`;for(const t in Ae)e[Ae[t]]=`rdp-${Ae[t]}`;return e}function rf(e,t,n){return(n??new $e(t)).formatMonthYear(e)}const EP=rf;function PP(e,t,n){return(n??new $e(t)).format(e,"d")}function RP(e,t=ct){return t.format(e,"LLLL")}function NP(e,t,n){return(n??new $e(t)).format(e,"cccccc")}function _P(e,t=ct){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function kP(){return""}function of(e,t=ct){return t.format(e,"yyyy")}const MP=of,TP=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:rf,formatDay:PP,formatMonthCaption:EP,formatMonthDropdown:RP,formatWeekNumber:_P,formatWeekNumberHeader:kP,formatWeekdayName:NP,formatYearCaption:MP,formatYearDropdown:of},Symbol.toStringTag,{value:"Module"}));function DP(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...TP,...e}}function ua(e,t,n,r){let o=(r??new $e(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const OP=ua;function da(e,t,n){return(n??new $e(t)).formatMonthYear(e)}const AP=da;function sf(e,t,n,r){let o=(r??new $e(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function af(e){return"Choose the Month"}function cf(){return""}const IP="Go to the Next Month";function lf(e,t){return IP}function uf(e){return"Go to the Previous Month"}function df(e,t,n){return(n??new $e(t)).format(e,"cccc")}function ff(e,t){return`Week ${e}`}function pf(e){return"Week Number"}function mf(e){return"Choose the Year"}const jP=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:AP,labelDay:OP,labelDayButton:ua,labelGrid:da,labelGridcell:sf,labelMonthDropdown:af,labelNav:cf,labelNext:lf,labelPrevious:uf,labelWeekNumber:ff,labelWeekNumberHeader:pf,labelWeekday:df,labelYearDropdown:mf},Symbol.toStringTag,{value:"Module"})),Ue=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function $P(e,t){const n=t.locale?.labels??{};return{...jP,...e??{},labelDayButton:Ue(ua,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Ue(af,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Ue(lf,e?.labelNext,n.labelNext),labelPrevious:Ue(uf,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Ue(ff,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Ue(mf,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Ue(da,e?.labelGrid,n.labelGrid),labelGridcell:Ue(sf,e?.labelGridcell,n.labelGridcell),labelNav:Ue(cf,e?.labelNav,n.labelNav),labelWeekNumberHeader:Ue(pf,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Ue(df,e?.labelWeekday,n.labelWeekday)}}function WP(e,t,n,r,o){const{startOfMonth:s,startOfYear:a,endOfYear:i,eachMonthOfInterval:l,getMonth:d}=o;return l({start:a(e),end:i(e)}).map(m=>{const h=r.formatMonthDropdown(m,o),g=d(m),v=t&&m<s(t)||n&&m>s(n)||!1;return{value:g,label:h,disabled:v}})}function FP(e,t={},n={}){let r={...t?.[Q.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function LP(e,t,n,r){const o=r??e.today(),s=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let i=0;i<7;i++){const l=e.addDays(s,i);a.push(l)}return a}function BP(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:s,endOfYear:a,eachYearOfInterval:i,getYear:l}=r,d=s(e),f=a(t),u=i({start:d,end:f});return o&&u.reverse(),u.map(m=>{const h=n.formatYearDropdown(m,r);return{value:l(m),label:h,disabled:!1}})}function VP(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,s=i=>{const l=typeof i=="number"||typeof i=="string"?new Date(i):i;return new Re(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,e)},a=i=>{const l=s(i);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>s(Re.tz(e)),newDate:(i,l,d)=>new Re(i,l,d,12,0,0,e),startOfDay:i=>s(i),startOfWeek:(i,l)=>{const d=s(i),f=l?.weekStartsOn??o,u=(d.getDay()-f+7)%7;return d.setDate(d.getDate()-u),d},startOfISOWeek:i=>{const l=s(i),d=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-d),l},startOfMonth:i=>{const l=s(i);return l.setDate(1),l},startOfYear:i=>{const l=s(i);return l.setMonth(0,1),l},endOfWeek:(i,l)=>{const d=s(i),m=(((l?.weekStartsOn??o)+6)%7-d.getDay()+7)%7;return d.setDate(d.getDate()+m),d},endOfISOWeek:i=>{const l=s(i),d=(7-l.getDay())%7;return l.setDate(l.getDate()+d),l},endOfMonth:i=>{const l=s(i);return l.setMonth(l.getMonth()+1,0),l},endOfYear:i=>{const l=s(i);return l.setMonth(11,31),l},eachMonthOfInterval:i=>{const l=s(i.start),d=s(i.end),f=[],u=new Re(l.getFullYear(),l.getMonth(),1,12,0,0,e),m=d.getFullYear()*12+d.getMonth();for(;u.getFullYear()*12+u.getMonth()<=m;)f.push(new Re(u,e)),u.setMonth(u.getMonth()+1,1);return f},addDays:(i,l)=>{const d=s(i);return d.setDate(d.getDate()+l),d},addWeeks:(i,l)=>{const d=s(i);return d.setDate(d.getDate()+l*7),d},addMonths:(i,l)=>{const d=s(i);return d.setMonth(d.getMonth()+l),d},addYears:(i,l)=>{const d=s(i);return d.setFullYear(d.getFullYear()+l),d},eachYearOfInterval:i=>{const l=s(i.start),d=s(i.end),f=[],u=new Re(l.getFullYear(),0,1,12,0,0,e);for(;u.getFullYear()<=d.getFullYear();)f.push(new Re(u,e)),u.setFullYear(u.getFullYear()+1,0,1);return f},getWeek:(i,l)=>{const d=a(i);return aa(d,{weekStartsOn:l?.weekStartsOn??o,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:i=>{const l=a(i);return sa(l)},differenceInCalendarDays:(i,l)=>{const d=a(i),f=a(l);return oa(d,f)},differenceInCalendarMonths:(i,l)=>{const d=a(i),f=a(l);return zd(d,f)}}}const rr=e=>e instanceof HTMLElement?e:null,rs=e=>[...e.querySelectorAll("[data-animated-month]")??[]],HP=e=>rr(e.querySelector("[data-animated-month]")),os=e=>rr(e.querySelector("[data-animated-caption]")),ss=e=>rr(e.querySelector("[data-animated-weeks]")),YP=e=>rr(e.querySelector("[data-animated-nav]")),zP=e=>rr(e.querySelector("[data-animated-weekdays]"));function GP(e,t,{classNames:n,months:r,focused:o,dateLib:s}){const a=w.useRef(null),i=w.useRef(r),l=w.useRef(!1);w.useLayoutEffect(()=>{const d=i.current;if(i.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||d.length===0||r.length!==d.length)return;const f=s.isSameMonth(r[0].date,d[0].date),u=s.isAfter(r[0].date,d[0].date),m=u?n[Ae.caption_after_enter]:n[Ae.caption_before_enter],h=u?n[Ae.weeks_after_enter]:n[Ae.weeks_before_enter],g=a.current,v=e.current.cloneNode(!0);if(v instanceof HTMLElement?(rs(v).forEach(S=>{if(!(S instanceof HTMLElement))return;const C=HP(S);C&&S.contains(C)&&S.removeChild(C);const P=os(S);P&&P.classList.remove(m);const E=ss(S);E&&E.classList.remove(h)}),a.current=v):a.current=null,l.current||f||o)return;const y=g instanceof HTMLElement?rs(g):[],b=rs(e.current);if(b?.every(x=>x instanceof HTMLElement)&&y&&y.every(x=>x instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const x=YP(e.current);x&&(x.style.zIndex="1"),b.forEach((S,C)=>{const P=y[C];if(!P)return;S.style.position="relative",S.style.overflow="hidden";const E=os(S);E&&E.classList.add(m);const R=ss(S);R&&R.classList.add(h);const _=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),x&&(x.style.zIndex=""),E&&E.classList.remove(m),R&&R.classList.remove(h),S.style.position="",S.style.overflow="",S.contains(P)&&S.removeChild(P)};P.style.pointerEvents="none",P.style.position="absolute",P.style.overflow="hidden",P.setAttribute("aria-hidden","true");const I=zP(P);I&&(I.style.opacity="0");const F=os(P);F&&(F.classList.add(u?n[Ae.caption_before_exit]:n[Ae.caption_after_exit]),F.addEventListener("animationend",_));const B=ss(P);B&&B.classList.add(u?n[Ae.weeks_before_exit]:n[Ae.weeks_after_exit]),S.insertBefore(P,S.firstChild)})}})}function UP(e,t,n,r){const o=e[0],s=e[e.length-1],{ISOWeek:a,fixedWeeks:i,broadcastCalendar:l}=n??{},{addDays:d,differenceInCalendarDays:f,differenceInCalendarMonths:u,endOfBroadcastWeek:m,endOfISOWeek:h,endOfMonth:g,endOfWeek:v,isAfter:y,startOfBroadcastWeek:b,startOfISOWeek:x,startOfWeek:S}=r,C=l?b(o,r):a?x(o):S(o),P=l?m(s):a?h(g(s)):v(g(s)),E=t&&(l?m(t):a?h(t):v(t)),R=E&&y(P,E)?E:P,_=f(R,C),I=u(s,o)+1,F=[];for(let U=0;U<=_;U++){const G=d(C,U);F.push(G)}const z=(l?35:42)*I;if(i&&F.length<z){const U=z-F.length;for(let G=0;G<U;G++){const Z=d(F[F.length-1],1);F.push(Z)}}return F}function KP(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((s,a)=>s.concat(a.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function qP(e,t,n,r){const{numberOfMonths:o=1}=n,s=[];for(let a=0;a<o;a++){const i=r.addMonths(e,a);if(t&&i>t)break;s.push(i)}return s}function Zi(e,t,n,r){const{month:o,defaultMonth:s,today:a=r.today(),numberOfMonths:i=1}=e;let l=o||s||a;const{differenceInCalendarMonths:d,addMonths:f,startOfMonth:u}=r;if(n&&d(n,l)<i-1){const m=-1*(i-1);l=f(n,m)}return t&&d(l,t)<0&&(l=t),u(l)}function XP(e,t,n,r){const{addDays:o,endOfBroadcastWeek:s,endOfISOWeek:a,endOfMonth:i,endOfWeek:l,getISOWeek:d,getWeek:f,startOfBroadcastWeek:u,startOfISOWeek:m,startOfWeek:h}=r,g=e.reduce((v,y)=>{const b=n.broadcastCalendar?u(y,r):n.ISOWeek?m(y):h(y),x=n.broadcastCalendar?s(y):n.ISOWeek?a(i(y)):l(i(y)),S=t.filter(R=>R>=b&&R<=x),C=n.broadcastCalendar?35:42;if(n.fixedWeeks&&S.length<C){const R=t.filter(_=>{const I=C-S.length;return _>x&&_<=o(x,I)});S.push(...R)}const P=S.reduce((R,_)=>{const I=n.ISOWeek?d(_):f(_),F=R.find(z=>z.weekNumber===I),B=new Jd(_,y,r);return F?F.days.push(B):R.push(new zE(I,[B])),R},[]),E=new YE(y,P);return v.push(E),v},[]);return n.reverseMonths?g.reverse():g}function ZP(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:s,startOfMonth:a,endOfMonth:i,addYears:l,endOfYear:d,newDate:f,today:u}=t,{fromYear:m,toYear:h,fromMonth:g,toMonth:v}=e;!n&&g&&(n=g),!n&&m&&(n=t.newDate(m,0,1)),!r&&v&&(r=v),!r&&h&&(r=f(h,11,31));const y=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):m?n=f(m,0,1):!n&&y&&(n=o(l(e.today??u(),-100))),r?r=i(r):h?r=f(h,11,31):!r&&y&&(r=d(e.today??u())),[n&&s(n),r&&s(r)]}function QP(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s=1}=n,{startOfMonth:a,addMonths:i,differenceInCalendarMonths:l}=r,d=o?s:1,f=a(e);if(!t)return i(f,d);if(!(l(t,e)<s))return i(f,d)}function JP(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s}=n,{startOfMonth:a,addMonths:i,differenceInCalendarMonths:l}=r,d=o?s??1:1,f=a(e);if(!t)return i(f,-d);if(!(l(f,t)<=0))return i(f,-d)}function eR(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function vo(e,t){const[n,r]=w.useState(e);return[t===void 0?n:t,r]}function tR(e,t){const[n,r]=ZP(e,t),{startOfMonth:o,endOfMonth:s}=t,a=Zi(e,n,r,t),[i,l]=vo(a,e.month?a:void 0);w.useEffect(()=>{const C=Zi(e,n,r,t);l(C)},[e.timeZone]);const{months:d,weeks:f,days:u,previousMonth:m,nextMonth:h}=w.useMemo(()=>{const C=qP(i,r,{numberOfMonths:e.numberOfMonths},t),P=UP(C,e.endMonth?s(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),E=XP(C,P,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),R=eR(E),_=KP(E),I=JP(i,n,e,t),F=QP(i,r,e,t);return{months:E,weeks:R,days:_,previousMonth:I,nextMonth:F}},[t,i.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:g,onMonthChange:v}=e,y=C=>f.some(P=>P.days.some(E=>E.isEqualTo(C))),b=C=>{if(g)return;let P=o(C);n&&P<o(n)&&(P=o(n)),r&&P>o(r)&&(P=o(r)),l(P),v?.(P)};return{months:d,weeks:f,days:u,navStart:n,navEnd:r,previousMonth:m,nextMonth:h,goToMonth:b,goToDay:C=>{y(C)||b(C.date)}}}var tt;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(tt||(tt={}));function Qi(e){return!e[pe.disabled]&&!e[pe.hidden]&&!e[pe.outside]}function nR(e,t,n,r){let o,s=-1;for(const a of e){const i=t(a);Qi(i)&&(i[pe.focused]&&s<tt.FocusedModifier?(o=a,s=tt.FocusedModifier):r?.isEqualTo(a)&&s<tt.LastFocused?(o=a,s=tt.LastFocused):n(a.date)&&s<tt.Selected?(o=a,s=tt.Selected):i[pe.today]&&s<tt.Today&&(o=a,s=tt.Today))}return o||(o=e.find(a=>Qi(t(a)))),o}function rR(e,t,n,r,o,s,a){const{ISOWeek:i,broadcastCalendar:l}=s,{addDays:d,addMonths:f,addWeeks:u,addYears:m,endOfBroadcastWeek:h,endOfISOWeek:g,endOfWeek:v,max:y,min:b,startOfBroadcastWeek:x,startOfISOWeek:S,startOfWeek:C}=a;let E={day:d,week:u,month:f,year:m,startOfWeek:R=>l?x(R,a):i?S(R):C(R),endOfWeek:R=>l?h(R):i?g(R):v(R)}[e](n,t==="after"?1:-1);return t==="before"&&r?E=y([r,E]):t==="after"&&o&&(E=b([o,E])),E}function hf(e,t,n,r,o,s,a,i=0){if(i>365)return;const l=rR(e,t,n.date,r,o,s,a),d=!!(s.disabled&&pt(l,s.disabled,a)),f=!!(s.hidden&&pt(l,s.hidden,a)),u=l,m=new Jd(l,u,a);return!d&&!f?m:hf(e,t,m,r,o,s,a,i+1)}function oR(e,t,n,r,o){const{autoFocus:s}=e,[a,i]=w.useState(),l=nR(t.days,n,r||(()=>!1),a),[d,f]=w.useState(s?l:void 0);return{isFocusTarget:v=>!!l?.isEqualTo(v),setFocused:f,focused:d,blur:()=>{i(d),f(void 0)},moveFocus:(v,y)=>{if(!d)return;const b=hf(v,y,d,t.navStart,t.navEnd,e,o);b&&(e.disableNavigation&&!t.days.some(S=>S.isEqualTo(b))||(t.goToDay(b),f(b)))}}}function sR(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=vo(n,o?n:void 0),i=o?n:s,{isSameDay:l}=t,d=h=>i?.some(g=>l(g,h))??!1,{min:f,max:u}=e;return{selected:i,select:(h,g,v)=>{let y=[...i??[]];if(d(h)){if(i?.length===f||r&&i?.length===1)return;y=i?.filter(b=>!l(b,h))}else i?.length===u?y=[h]:y=[...y,h];return o||a(y),o?.(y,h,g,v),y},isSelected:d}}function aR(e,t,n=0,r=0,o=!1,s=ct){const{from:a,to:i}=t||{},{isSameDay:l,isAfter:d,isBefore:f}=s;let u;if(!a&&!i)u={from:e,to:n>0?void 0:e};else if(a&&!i)l(a,e)?n===0?u={from:a,to:e}:o?u={from:a,to:void 0}:u=void 0:f(e,a)?u={from:e,to:a}:u={from:a,to:e};else if(a&&i)if(l(a,e)&&l(i,e))o?u={from:a,to:i}:u=void 0;else if(l(a,e))u={from:a,to:n>0?void 0:e};else if(l(i,e))u={from:e,to:n>0?void 0:e};else if(f(e,a))u={from:e,to:i};else if(d(e,a))u={from:a,to:e};else if(d(e,i))u={from:a,to:e};else throw new Error("Invalid range");if(u?.from&&u?.to){const m=s.differenceInCalendarDays(u.to,u.from);r>0&&m>r?u={from:e,to:void 0}:n>1&&m<n&&(u={from:e,to:void 0})}return u}function iR(e,t,n=ct){const r=Array.isArray(t)?t:[t];let o=e.from;const s=n.differenceInCalendarDays(e.to,e.from),a=Math.min(s,6);for(let i=0;i<=a;i++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function Ji(e,t,n=ct){return ft(e,t.from,!1,n)||ft(e,t.to,!1,n)||ft(t,e.from,!1,n)||ft(t,e.to,!1,n)}function cR(e,t,n=ct){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?ft(e,i,!1,n):nf(i,n)?i.some(l=>ft(e,l,!1,n)):go(i)?i.from&&i.to?Ji(e,{from:i.from,to:i.to},n):!1:tf(i)?iR(e,i.dayOfWeek,n):ia(i)?n.isAfter(i.before,i.after)?Ji(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):pt(e.from,i,n)||pt(e.to,i,n):ca(i)||la(i)?pt(e.from,i,n)||pt(e.to,i,n):!1))return!0;const a=r.filter(i=>typeof i=="function");if(a.length){let i=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let d=0;d<=l;d++){if(a.some(f=>f(i)))return!0;i=n.addDays(i,1)}}return!1}function lR(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:s,onSelect:a}=e,[i,l]=vo(o,a?o:void 0),d=a?o:i;return{selected:d,select:(m,h,g)=>{const{min:v,max:y}=e,b=m?aR(m,d,v,y,s,t):void 0;return r&&n&&b?.from&&b.to&&cR({from:b.from,to:b.to},n,t)&&(b.from=m,b.to=void 0),a||l(b),a?.(b,m,h,g),b},isSelected:m=>d&&ft(d,m,!1,t)}}function uR(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=vo(n,o?n:void 0),i=o?n:s,{isSameDay:l}=t;return{selected:i,select:(u,m,h)=>{let g=u;return!r&&i&&i&&l(u,i)&&(g=void 0),o||a(g),o?.(g,u,m,h),g},isSelected:u=>i?l(i,u):!1}}function dR(e,t){const n=uR(e,t),r=sR(e,t),o=lR(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function Le(e,t){return e instanceof Re&&e.timeZone===t?e:new Re(e,t)}function Jt(e,t,n){return Le(e,t)}function ec(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Jt(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?Jt(r,t):r):go(e)?{...e,from:e.from?Le(e.from,t):e.from,to:e.to?Le(e.to,t):e.to}:ia(e)?{before:Jt(e.before,t),after:Jt(e.after,t)}:ca(e)?{after:Jt(e.after,t)}:la(e)?{before:Jt(e.before,t)}:e}function as(e,t,n){return e&&(Array.isArray(e)?e.map(r=>ec(r,t)):ec(e,t))}function fR(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Le(t.today,n)),t.month&&(t.month=Le(t.month,n)),t.defaultMonth&&(t.defaultMonth=Le(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Le(t.startMonth,n)),t.endMonth&&(t.endMonth=Le(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=Le(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(ne=>Le(ne,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Le(t.selected.from,n):t.selected.from,to:t.selected.to?Le(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=as(t.disabled,n)),t.hidden!==void 0&&(t.hidden=as(t.hidden,n)),t.modifiers)){const ne={};Object.keys(t.modifiers).forEach(ue=>{ne[ue]=as(t.modifiers?.[ue],n)}),t.modifiers=ne}const{components:r,formatters:o,labels:s,dateLib:a,locale:i,classNames:l}=w.useMemo(()=>{const ne={...Qd,...t.locale},ue=t.broadcastCalendar?1:t.weekStartsOn,re=t.noonSafe&&t.timeZone?VP(t.timeZone,{weekStartsOn:ue,locale:ne}):void 0,ce=t.dateLib&&re?{...re,...t.dateLib}:t.dateLib??re,Pe=new $e({locale:ne,weekStartsOn:ue,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},ce);return{dateLib:Pe,components:wP(t.components),formatters:DP(t.formatters),labels:$P(t.labels,Pe.options),locale:ne,classNames:{...CP(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:d,mode:f,navLayout:u,numberOfMonths:m=1,onDayBlur:h,onDayClick:g,onDayFocus:v,onDayKeyDown:y,onDayMouseEnter:b,onDayMouseLeave:x,onNextClick:S,onPrevClick:C,showWeekNumber:P,styles:E}=t,{formatCaption:R,formatDay:_,formatMonthDropdown:I,formatWeekNumber:F,formatWeekNumberHeader:B,formatWeekdayName:z,formatYearDropdown:U}=o,G=tR(t,a),{days:Z,months:j,navStart:V,navEnd:D,previousMonth:$,nextMonth:J,goToMonth:k}=G,N=bP(Z,t,V,D,a),{isSelected:T,select:O,selected:W}=dR(t,a)??{},{blur:K,focused:M,isFocusTarget:H,moveFocus:te,setFocused:oe}=oR(t,G,N,T??(()=>!1),a),{labelDayButton:ae,labelGridcell:ie,labelGrid:Ee,labelMonthDropdown:Oe,labelNav:yt,labelPrevious:bt,labelNext:He,labelWeekday:mr,labelWeekNumber:Ye,labelWeekNumberHeader:$o,labelYearDropdown:Wo}=s,_e=w.useMemo(()=>LP(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),ut=f!==void 0||g!==void 0,xn=w.useCallback(()=>{$&&(k($),C?.($))},[$,k,C]),wn=w.useCallback(()=>{J&&(k(J),S?.(J))},[k,J,S]),Ut=w.useCallback((ne,ue)=>re=>{re.preventDefault(),re.stopPropagation(),oe(ne),!ue.disabled&&(O?.(ne.date,ue,re),g?.(ne.date,ue,re))},[O,g,oe]),Fo=w.useCallback((ne,ue)=>re=>{oe(ne),v?.(ne.date,ue,re)},[v,oe]),hr=w.useCallback((ne,ue)=>re=>{K(),h?.(ne.date,ue,re)},[K,h]),Sn=w.useCallback((ne,ue)=>re=>{const ce={ArrowLeft:[re.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[re.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[re.shiftKey?"year":"week","after"],ArrowUp:[re.shiftKey?"year":"week","before"],PageUp:[re.shiftKey?"year":"month","before"],PageDown:[re.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(ce[re.key]){re.preventDefault(),re.stopPropagation();const[Pe,Y]=ce[re.key];te(Pe,Y)}y?.(ne.date,ue,re)},[te,y,t.dir]),xt=w.useCallback((ne,ue)=>re=>{b?.(ne.date,ue,re)},[b]),gr=w.useCallback((ne,ue)=>re=>{x?.(ne.date,ue,re)},[x]),wt=w.useCallback(ne=>ue=>{const re=Number(ue.target.value),ce=a.setMonth(a.startOfMonth(ne),re);k(ce)},[a,k]),Lo=w.useCallback(ne=>ue=>{const re=Number(ue.target.value),ce=a.setYear(a.startOfMonth(ne),re);k(ce)},[a,k]),{className:Bo,style:vr}=w.useMemo(()=>({className:[l[Q.Root],t.className].filter(Boolean).join(" "),style:{...E?.[Q.Root],...t.style}}),[l,t.className,t.style,E]),yr=SP(t),br=w.useRef(null);GP(br,!!t.animate,{classNames:l,months:j,focused:M,dateLib:a});const Cn={dayPickerProps:t,selected:W,select:O,isSelected:T,months:j,nextMonth:J,previousMonth:$,goToMonth:k,getModifiers:N,components:r,classNames:l,styles:E,labels:s,formatters:o};return w.createElement(ef.Provider,{value:Cn},w.createElement(r.Root,{rootRef:t.animate?br:void 0,className:Bo,style:vr,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...yr},w.createElement(r.Months,{className:l[Q.Months],style:E?.[Q.Months]},!t.hideNavigation&&!u&&w.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[Q.Nav],style:E?.[Q.Nav],"aria-label":yt(),onPreviousClick:xn,onNextClick:wn,previousMonth:$,nextMonth:J}),j.map((ne,ue)=>w.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[Q.Month],style:E?.[Q.Month],key:ue,displayIndex:ue,calendarMonth:ne},u==="around"&&!t.hideNavigation&&ue===0&&w.createElement(r.PreviousMonthButton,{type:"button",className:l[Q.PreviousMonthButton],tabIndex:$?void 0:-1,"aria-disabled":$?void 0:!0,"aria-label":bt($),onClick:xn,"data-animated-button":t.animate?"true":void 0},w.createElement(r.Chevron,{disabled:$?void 0:!0,className:l[Q.Chevron],orientation:t.dir==="rtl"?"right":"left"})),w.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[Q.MonthCaption],style:E?.[Q.MonthCaption],calendarMonth:ne,displayIndex:ue},d?.startsWith("dropdown")?w.createElement(r.DropdownNav,{className:l[Q.Dropdowns],style:E?.[Q.Dropdowns]},(()=>{const re=d==="dropdown"||d==="dropdown-months"?w.createElement(r.MonthsDropdown,{key:"month",className:l[Q.MonthsDropdown],"aria-label":Oe(),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:wt(ne.date),options:WP(ne.date,V,D,o,a),style:E?.[Q.Dropdown],value:a.getMonth(ne.date)}):w.createElement("span",{key:"month"},I(ne.date,a)),ce=d==="dropdown"||d==="dropdown-years"?w.createElement(r.YearsDropdown,{key:"year",className:l[Q.YearsDropdown],"aria-label":Wo(a.options),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Lo(ne.date),options:BP(V,D,o,a,!!t.reverseYears),style:E?.[Q.Dropdown],value:a.getYear(ne.date)}):w.createElement("span",{key:"year"},U(ne.date,a));return a.getMonthYearOrder()==="year-first"?[ce,re]:[re,ce]})(),w.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},R(ne.date,a.options,a))):w.createElement(r.CaptionLabel,{className:l[Q.CaptionLabel],role:"status","aria-live":"polite"},R(ne.date,a.options,a))),u==="around"&&!t.hideNavigation&&ue===m-1&&w.createElement(r.NextMonthButton,{type:"button",className:l[Q.NextMonthButton],tabIndex:J?void 0:-1,"aria-disabled":J?void 0:!0,"aria-label":He(J),onClick:wn,"data-animated-button":t.animate?"true":void 0},w.createElement(r.Chevron,{disabled:J?void 0:!0,className:l[Q.Chevron],orientation:t.dir==="rtl"?"left":"right"})),ue===m-1&&u==="after"&&!t.hideNavigation&&w.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[Q.Nav],style:E?.[Q.Nav],"aria-label":yt(),onPreviousClick:xn,onNextClick:wn,previousMonth:$,nextMonth:J}),w.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":f==="multiple"||f==="range","aria-label":Ee(ne.date,a.options,a)||void 0,className:l[Q.MonthGrid],style:E?.[Q.MonthGrid]},!t.hideWeekdays&&w.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[Q.Weekdays],style:E?.[Q.Weekdays]},P&&w.createElement(r.WeekNumberHeader,{"aria-label":$o(a.options),className:l[Q.WeekNumberHeader],style:E?.[Q.WeekNumberHeader],scope:"col"},B()),_e.map(re=>w.createElement(r.Weekday,{"aria-label":mr(re,a.options,a),className:l[Q.Weekday],key:String(re),style:E?.[Q.Weekday],scope:"col"},z(re,a.options,a)))),w.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[Q.Weeks],style:E?.[Q.Weeks]},ne.weeks.map(re=>w.createElement(r.Week,{className:l[Q.Week],key:re.weekNumber,style:E?.[Q.Week],week:re},P&&w.createElement(r.WeekNumber,{week:re,style:E?.[Q.WeekNumber],"aria-label":Ye(re.weekNumber,{locale:i}),className:l[Q.WeekNumber],scope:"row",role:"rowheader"},F(re.weekNumber,a)),re.days.map(ce=>{const{date:Pe}=ce,Y=N(ce);if(Y[pe.focused]=!Y.hidden&&!!M?.isEqualTo(ce),Y[qe.selected]=T?.(Pe)||Y.selected,go(W)){const{from:St,to:he}=W;Y[qe.range_start]=!!(St&&he&&a.isSameDay(Pe,St)),Y[qe.range_end]=!!(St&&he&&a.isSameDay(Pe,he)),Y[qe.range_middle]=ft(W,Pe,!0,a)}const ve=FP(Y,E,t.modifiersStyles),Ce=xP(Y,l,t.modifiersClassNames),ke=!ut&&!Y.hidden?ie(Pe,Y,a.options,a):void 0;return w.createElement(r.Day,{key:`${ce.isoDate}_${ce.displayMonthId}`,day:ce,modifiers:Y,className:Ce.join(" "),style:ve,role:"gridcell","aria-selected":Y.selected||void 0,"aria-label":ke,"data-day":ce.isoDate,"data-month":ce.outside?ce.dateMonthId:void 0,"data-selected":Y.selected||void 0,"data-disabled":Y.disabled||void 0,"data-hidden":Y.hidden||void 0,"data-outside":ce.outside||void 0,"data-focused":Y.focused||void 0,"data-today":Y.today||void 0},!Y.hidden&&ut?w.createElement(r.DayButton,{className:l[Q.DayButton],style:E?.[Q.DayButton],type:"button",day:ce,modifiers:Y,disabled:!Y.focused&&Y.disabled||void 0,"aria-disabled":Y.focused&&Y.disabled||void 0,tabIndex:H(ce)?0:-1,"aria-label":ae(Pe,Y,a.options,a),onClick:Ut(ce,Y),onBlur:hr(ce,Y),onFocus:Fo(ce,Y),onKeyDown:Sn(ce,Y),onMouseEnter:xt(ce,Y),onMouseLeave:gr(ce,Y)},_(Pe,a.options,a)):!Y.hidden&&_(ce.date,a.options,a))})))))))),t.footer&&w.createElement(r.Footer,{className:l[Q.Footer],style:E?.[Q.Footer],role:"status","aria-live":"polite"},t.footer)))}function gf({className:e,classNames:t,showOutsideDays:n=!0,...r}){return p.jsx(fR,{showOutsideDays:n,className:A("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:A(An({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:A(An({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...r})}gf.displayName="Calendar";const vf=c.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:A("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));vf.displayName="Card";const yf=c.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:A("flex flex-col space-y-1.5 p-6",e),...t}));yf.displayName="CardHeader";const bf=c.forwardRef(({className:e,...t},n)=>p.jsx("h3",{ref:n,className:A("text-2xl font-semibold leading-none tracking-tight",e),...t}));bf.displayName="CardTitle";const xf=c.forwardRef(({className:e,...t},n)=>p.jsx("p",{ref:n,className:A("text-sm text-muted-foreground",e),...t}));xf.displayName="CardDescription";const wf=c.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:A("p-6 pt-0",e),...t}));wf.displayName="CardContent";const Sf=c.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:A("flex items-center p-6 pt-0",e),...t}));Sf.displayName="CardFooter";const Cf=c.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:"relative w-full overflow-auto",children:p.jsx("table",{ref:n,className:A("w-full caption-bottom text-sm",e),...t})}));Cf.displayName="Table";const Ef=c.forwardRef(({className:e,...t},n)=>p.jsx("thead",{ref:n,className:A("[&_tr]:border-b",e),...t}));Ef.displayName="TableHeader";const Pf=c.forwardRef(({className:e,...t},n)=>p.jsx("tbody",{ref:n,className:A("[&_tr:last-child]:border-0",e),...t}));Pf.displayName="TableBody";const Rf=c.forwardRef(({className:e,...t},n)=>p.jsx("tfoot",{ref:n,className:A("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Rf.displayName="TableFooter";const Nf=c.forwardRef(({className:e,...t},n)=>p.jsx("tr",{ref:n,className:A("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Nf.displayName="TableRow";const _f=c.forwardRef(({className:e,...t},n)=>p.jsx("th",{ref:n,className:A("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));_f.displayName="TableHead";const kf=c.forwardRef(({className:e,...t},n)=>p.jsx("td",{ref:n,className:A("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));kf.displayName="TableCell";const Mf=c.forwardRef(({className:e,...t},n)=>p.jsx("caption",{ref:n,className:A("mt-4 text-sm text-muted-foreground",e),...t}));Mf.displayName="TableCaption";function pR(e){const t=mR(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(gR);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function mR(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=yR(o),i=vR(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hR=Symbol("radix.slottable");function gR(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hR}function vR(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function yR(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],or=bR.reduce((e,t)=>{const n=pR(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function xR(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,wR(o,...t)]}function wR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function SR(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var fa="ScrollArea",[Tf]=xR(fa),[CR,Ve]=Tf(fa),Df=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:s=600,...a}=e,[i,l]=c.useState(null),[d,f]=c.useState(null),[u,m]=c.useState(null),[h,g]=c.useState(null),[v,y]=c.useState(null),[b,x]=c.useState(0),[S,C]=c.useState(0),[P,E]=c.useState(!1),[R,_]=c.useState(!1),I=ee(t,B=>l(B)),F=vt(o);return p.jsx(CR,{scope:n,type:r,dir:F,scrollHideDelay:s,scrollArea:i,viewport:d,onViewportChange:f,content:u,onContentChange:m,scrollbarX:h,onScrollbarXChange:g,scrollbarXEnabled:P,onScrollbarXEnabledChange:E,scrollbarY:v,onScrollbarYChange:y,scrollbarYEnabled:R,onScrollbarYEnabledChange:_,onCornerWidthChange:x,onCornerHeightChange:C,children:p.jsx(or.div,{dir:F,...a,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});Df.displayName=fa;var Of="ScrollAreaViewport",Af=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...s}=e,a=Ve(Of,n),i=c.useRef(null),l=ee(t,i,a.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(or.div,{"data-radix-scroll-area-viewport":"",...s,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:p.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Af.displayName=Of;var lt="ScrollAreaScrollbar",pa=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ve(lt,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:a}=o,i=e.orientation==="horizontal";return c.useEffect(()=>(i?s(!0):a(!0),()=>{i?s(!1):a(!1)}),[i,s,a]),o.type==="hover"?p.jsx(ER,{...r,ref:t,forceMount:n}):o.type==="scroll"?p.jsx(PR,{...r,ref:t,forceMount:n}):o.type==="auto"?p.jsx(If,{...r,ref:t,forceMount:n}):o.type==="always"?p.jsx(ma,{...r,ref:t}):null});pa.displayName=lt;var ER=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ve(lt,e.__scopeScrollArea),[s,a]=c.useState(!1);return c.useEffect(()=>{const i=o.scrollArea;let l=0;if(i){const d=()=>{window.clearTimeout(l),a(!0)},f=()=>{l=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",d),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",d),i.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(Se,{present:n||s,children:p.jsx(If,{"data-state":s?"visible":"hidden",...r,ref:t})})}),PR=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ve(lt,e.__scopeScrollArea),s=e.orientation==="horizontal",a=bo(()=>l("SCROLL_END"),100),[i,l]=SR("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return c.useEffect(()=>{if(i==="idle"){const d=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[i,o.scrollHideDelay,l]),c.useEffect(()=>{const d=o.viewport,f=s?"scrollLeft":"scrollTop";if(d){let u=d[f];const m=()=>{const h=d[f];u!==h&&(l("SCROLL"),a()),u=h};return d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[o.viewport,s,l,a]),p.jsx(Se,{present:n||i!=="hidden",children:p.jsx(ma,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:L(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:L(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),If=c.forwardRef((e,t)=>{const n=Ve(lt,e.__scopeScrollArea),{forceMount:r,...o}=e,[s,a]=c.useState(!1),i=e.orientation==="horizontal",l=bo(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;a(i?d:f)}},10);return cn(n.viewport,l),cn(n.content,l),p.jsx(Se,{present:r||s,children:p.jsx(ma,{"data-state":s?"visible":"hidden",...o,ref:t})})}),ma=c.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Ve(lt,e.__scopeScrollArea),s=c.useRef(null),a=c.useRef(0),[i,l]=c.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Lf(i.viewport,i.content),f={...r,sizes:i,onSizesChange:l,hasThumb:d>0&&d<1,onThumbChange:m=>s.current=m,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:m=>a.current=m};function u(m,h){return TR(m,a.current,i,h)}return n==="horizontal"?p.jsx(RR,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const m=o.viewport.scrollLeft,h=tc(m,i,o.dir);s.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=u(m,o.dir))}}):n==="vertical"?p.jsx(NR,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const m=o.viewport.scrollTop,h=tc(m,i);s.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=u(m))}}):null}),RR=c.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Ve(lt,e.__scopeScrollArea),[a,i]=c.useState(),l=c.useRef(null),d=ee(t,l,s.onScrollbarXChange);return c.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),p.jsx($f,{"data-orientation":"horizontal",...o,ref:d,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":yo(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,u)=>{if(s.viewport){const m=s.viewport.scrollLeft+f.deltaX;e.onWheelScroll(m),Vf(m,u)&&f.preventDefault()}},onResize:()=>{l.current&&s.viewport&&a&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Yr(a.paddingLeft),paddingEnd:Yr(a.paddingRight)}})}})}),NR=c.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Ve(lt,e.__scopeScrollArea),[a,i]=c.useState(),l=c.useRef(null),d=ee(t,l,s.onScrollbarYChange);return c.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),p.jsx($f,{"data-orientation":"vertical",...o,ref:d,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":yo(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,u)=>{if(s.viewport){const m=s.viewport.scrollTop+f.deltaY;e.onWheelScroll(m),Vf(m,u)&&f.preventDefault()}},onResize:()=>{l.current&&s.viewport&&a&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Yr(a.paddingTop),paddingEnd:Yr(a.paddingBottom)}})}})}),[_R,jf]=Tf(lt),$f=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:s,onThumbPointerUp:a,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:d,onWheelScroll:f,onResize:u,...m}=e,h=Ve(lt,n),[g,v]=c.useState(null),y=ee(t,I=>v(I)),b=c.useRef(null),x=c.useRef(""),S=h.viewport,C=r.content-r.viewport,P=xe(f),E=xe(l),R=bo(u,10);function _(I){if(b.current){const F=I.clientX-b.current.left,B=I.clientY-b.current.top;d({x:F,y:B})}}return c.useEffect(()=>{const I=F=>{const B=F.target;g?.contains(B)&&P(F,C)};return document.addEventListener("wheel",I,{passive:!1}),()=>document.removeEventListener("wheel",I,{passive:!1})},[S,g,C,P]),c.useEffect(E,[r,E]),cn(g,R),cn(h.content,R),p.jsx(_R,{scope:n,scrollbar:g,hasThumb:o,onThumbChange:xe(s),onThumbPointerUp:xe(a),onThumbPositionChange:E,onThumbPointerDown:xe(i),children:p.jsx(or.div,{...m,ref:y,style:{position:"absolute",...m.style},onPointerDown:L(e.onPointerDown,I=>{I.button===0&&(I.target.setPointerCapture(I.pointerId),b.current=g.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),_(I))}),onPointerMove:L(e.onPointerMove,_),onPointerUp:L(e.onPointerUp,I=>{const F=I.target;F.hasPointerCapture(I.pointerId)&&F.releasePointerCapture(I.pointerId),document.body.style.webkitUserSelect=x.current,h.viewport&&(h.viewport.style.scrollBehavior=""),b.current=null})})})}),Hr="ScrollAreaThumb",Wf=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=jf(Hr,e.__scopeScrollArea);return p.jsx(Se,{present:n||o.hasThumb,children:p.jsx(kR,{ref:t,...r})})}),kR=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,s=Ve(Hr,n),a=jf(Hr,n),{onThumbPositionChange:i}=a,l=ee(t,u=>a.onThumbChange(u)),d=c.useRef(void 0),f=bo(()=>{d.current&&(d.current(),d.current=void 0)},100);return c.useEffect(()=>{const u=s.viewport;if(u){const m=()=>{if(f(),!d.current){const h=DR(u,i);d.current=h,i()}};return i(),u.addEventListener("scroll",m),()=>u.removeEventListener("scroll",m)}},[s.viewport,f,i]),p.jsx(or.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:L(e.onPointerDownCapture,u=>{const h=u.target.getBoundingClientRect(),g=u.clientX-h.left,v=u.clientY-h.top;a.onThumbPointerDown({x:g,y:v})}),onPointerUp:L(e.onPointerUp,a.onThumbPointerUp)})});Wf.displayName=Hr;var ha="ScrollAreaCorner",Ff=c.forwardRef((e,t)=>{const n=Ve(ha,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?p.jsx(MR,{...e,ref:t}):null});Ff.displayName=ha;var MR=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Ve(ha,n),[s,a]=c.useState(0),[i,l]=c.useState(0),d=!!(s&&i);return cn(o.scrollbarX,()=>{const f=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(f),l(f)}),cn(o.scrollbarY,()=>{const f=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(f),a(f)}),d?p.jsx(or.div,{...r,ref:t,style:{width:s,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Yr(e){return e?parseInt(e,10):0}function Lf(e,t){const n=e/t;return isNaN(n)?0:n}function yo(e){const t=Lf(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function TR(e,t,n,r="ltr"){const o=yo(n),s=o/2,a=t||s,i=o-a,l=n.scrollbar.paddingStart+a,d=n.scrollbar.size-n.scrollbar.paddingEnd-i,f=n.content-n.viewport,u=r==="ltr"?[0,f]:[f*-1,0];return Bf([l,d],u)(e)}function tc(e,t,n="ltr"){const r=yo(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,a=t.content-t.viewport,i=s-r,l=n==="ltr"?[0,a]:[a*-1,0],d=In(e,l);return Bf([0,a],[0,i])(d)}function Bf(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Vf(e,t){return e>0&&e<t}var DR=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){const s={left:e.scrollLeft,top:e.scrollTop},a=n.left!==s.left,i=n.top!==s.top;(a||i)&&t(),n=s,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function bo(e,t){const n=xe(e),r=c.useRef(0);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),c.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function cn(e,t){const n=xe(t);ge(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var Hf=Df,OR=Af,AR=Ff;const Yf=c.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Hf,{ref:r,className:A("relative overflow-hidden",e),...n,children:[p.jsx(OR,{className:"h-full w-full rounded-[inherit]",children:t}),p.jsx(ga,{}),p.jsx(AR,{})]}));Yf.displayName=Hf.displayName;const ga=c.forwardRef(({className:e,orientation:t="vertical",...n},r)=>p.jsx(pa,{ref:r,orientation:t,className:A("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:p.jsx(Wf,{className:"relative flex-1 rounded-full bg-border"})}));ga.displayName=pa.displayName;function IR(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,jR(o,...t)]}function jR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function $R(e){const t=WR(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(LR);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function WR(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=VR(o),i=BR(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var FR=Symbol("radix.slottable");function LR(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===FR}function BR(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function VR(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.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"],xo=HR.reduce((e,t)=>{const n=$R(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),wo="Tabs",[YR]=IR(wo,[Ot]),zf=Ot(),[zR,va]=YR(wo),Gf=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:a="horizontal",dir:i,activationMode:l="automatic",...d}=e,f=vt(i),[u,m]=we({prop:r,onChange:o,defaultProp:s??"",caller:wo});return p.jsx(zR,{scope:n,baseId:me(),value:u,onValueChange:m,orientation:a,dir:f,activationMode:l,children:p.jsx(xo.div,{dir:f,"data-orientation":a,...d,ref:t})})});Gf.displayName=wo;var Uf="TabsList",Kf=c.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=va(Uf,n),a=zf(n);return p.jsx(fo,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:r,children:p.jsx(xo.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});Kf.displayName=Uf;var qf="TabsTrigger",Xf=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,a=va(qf,n),i=zf(n),l=Jf(a.baseId,r),d=ep(a.baseId,r),f=r===a.value;return p.jsx(po,{asChild:!0,...i,focusable:!o,active:f,children:p.jsx(xo.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...s,ref:t,onMouseDown:L(e.onMouseDown,u=>{!o&&u.button===0&&u.ctrlKey===!1?a.onValueChange(r):u.preventDefault()}),onKeyDown:L(e.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&a.onValueChange(r)}),onFocus:L(e.onFocus,()=>{const u=a.activationMode!=="manual";!f&&!o&&u&&a.onValueChange(r)})})})});Xf.displayName=qf;var Zf="TabsContent",Qf=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...a}=e,i=va(Zf,n),l=Jf(i.baseId,r),d=ep(i.baseId,r),f=r===i.value,u=c.useRef(f);return c.useEffect(()=>{const m=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(m)},[]),p.jsx(Se,{present:o||f,children:({present:m})=>p.jsx(xo.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!m,id:d,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0},children:m&&s})})});Qf.displayName=Zf;function Jf(e,t){return`${e}-trigger-${t}`}function ep(e,t){return`${e}-content-${t}`}var GR=Gf,tp=Kf,np=Xf,rp=Qf;const UR=GR,op=c.forwardRef(({className:e,...t},n)=>p.jsx(tp,{ref:n,className:A("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));op.displayName=tp.displayName;const sp=c.forwardRef(({className:e,...t},n)=>p.jsx(np,{ref:n,className:A("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));sp.displayName=np.displayName;const ap=c.forwardRef(({className:e,...t},n)=>p.jsx(rp,{ref:n,className:A("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ap.displayName=rp.displayName;function KR(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,qR(o,...t)]}function qR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function XR(e){const t=ZR(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(JR);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ZR(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=tN(o),i=eN(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var QR=Symbol("radix.slottable");function JR(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===QR}function eN(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function tN(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ip=nN.reduce((e,t)=>{const n=XR(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function rN(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,oN(o,...t)]}function oN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function sN(e){const t=aN(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(cN);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function aN(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=uN(o),i=lN(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var iN=Symbol("radix.slottable");function cN(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===iN}function lN(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function uN(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ya=dN.reduce((e,t)=>{const n=sN(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),So="Collapsible",[fN,cp]=rN(So),[pN,ba]=fN(So),lp=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:s,onOpenChange:a,...i}=e,[l,d]=we({prop:r,defaultProp:o??!1,onChange:a,caller:So});return p.jsx(pN,{scope:n,disabled:s,contentId:me(),open:l,onOpenToggle:c.useCallback(()=>d(f=>!f),[d]),children:p.jsx(ya.div,{"data-state":wa(l),"data-disabled":s?"":void 0,...i,ref:t})})});lp.displayName=So;var up="CollapsibleTrigger",dp=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=ba(up,n);return p.jsx(ya.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":wa(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:L(e.onClick,o.onOpenToggle)})});dp.displayName=up;var xa="CollapsibleContent",fp=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ba(xa,e.__scopeCollapsible);return p.jsx(Se,{present:n||o.open,children:({present:s})=>p.jsx(mN,{...r,ref:t,present:s})})});fp.displayName=xa;var mN=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...s}=e,a=ba(xa,n),[i,l]=c.useState(r),d=c.useRef(null),f=ee(t,d),u=c.useRef(0),m=u.current,h=c.useRef(0),g=h.current,v=a.open||i,y=c.useRef(v),b=c.useRef(void 0);return c.useEffect(()=>{const x=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(x)},[]),ge(()=>{const x=d.current;if(x){b.current=b.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const S=x.getBoundingClientRect();u.current=S.height,h.current=S.width,y.current||(x.style.transitionDuration=b.current.transitionDuration,x.style.animationName=b.current.animationName),l(r)}},[a.open,r]),p.jsx(ya.div,{"data-state":wa(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...s,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:v&&o})});function wa(e){return e?"open":"closed"}var hN=lp,gN=dp,vN=fp,Qe="Accordion",yN=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Sa,bN,xN]=Gn(Qe),[Co]=KR(Qe,[xN,cp]),Ca=cp(),pp=w.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,s=r;return p.jsx(Sa.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p.jsx(EN,{...s,ref:t}):p.jsx(CN,{...o,ref:t})})});pp.displayName=Qe;var[mp,wN]=Co(Qe),[hp,SN]=Co(Qe,{collapsible:!1}),CN=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:s=!1,...a}=e,[i,l]=we({prop:n,defaultProp:r??"",onChange:o,caller:Qe});return p.jsx(mp,{scope:e.__scopeAccordion,value:w.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:w.useCallback(()=>s&&l(""),[s,l]),children:p.jsx(hp,{scope:e.__scopeAccordion,collapsible:s,children:p.jsx(gp,{...a,ref:t})})})}),EN=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...s}=e,[a,i]=we({prop:n,defaultProp:r??[],onChange:o,caller:Qe}),l=w.useCallback(f=>i((u=[])=>[...u,f]),[i]),d=w.useCallback(f=>i((u=[])=>u.filter(m=>m!==f)),[i]);return p.jsx(mp,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:d,children:p.jsx(hp,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx(gp,{...s,ref:t})})})}),[PN,Eo]=Co(Qe),gp=w.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:s="vertical",...a}=e,i=w.useRef(null),l=ee(i,t),d=bN(n),u=vt(o)==="ltr",m=L(e.onKeyDown,h=>{if(!yN.includes(h.key))return;const g=h.target,v=d().filter(_=>!_.ref.current?.disabled),y=v.findIndex(_=>_.ref.current===g),b=v.length;if(y===-1)return;h.preventDefault();let x=y;const S=0,C=b-1,P=()=>{x=y+1,x>C&&(x=S)},E=()=>{x=y-1,x<S&&(x=C)};switch(h.key){case"Home":x=S;break;case"End":x=C;break;case"ArrowRight":s==="horizontal"&&(u?P():E());break;case"ArrowDown":s==="vertical"&&P();break;case"ArrowLeft":s==="horizontal"&&(u?E():P());break;case"ArrowUp":s==="vertical"&&E();break}const R=x%b;v[R].ref.current?.focus()});return p.jsx(PN,{scope:n,disabled:r,direction:o,orientation:s,children:p.jsx(Sa.Slot,{scope:n,children:p.jsx(ip.div,{...a,"data-orientation":s,ref:l,onKeyDown:r?void 0:m})})})}),zr="AccordionItem",[RN,Ea]=Co(zr),vp=w.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,s=Eo(zr,n),a=wN(zr,n),i=Ca(n),l=me(),d=r&&a.value.includes(r)||!1,f=s.disabled||e.disabled;return p.jsx(RN,{scope:n,open:d,disabled:f,triggerId:l,children:p.jsx(hN,{"data-orientation":s.orientation,"data-state":Cp(d),...i,...o,ref:t,disabled:f,open:d,onOpenChange:u=>{u?a.onItemOpen(r):a.onItemClose(r)}})})});vp.displayName=zr;var yp="AccordionHeader",bp=w.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Eo(Qe,n),s=Ea(yp,n);return p.jsx(ip.h3,{"data-orientation":o.orientation,"data-state":Cp(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});bp.displayName=yp;var Rs="AccordionTrigger",xp=w.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Eo(Qe,n),s=Ea(Rs,n),a=SN(Rs,n),i=Ca(n);return p.jsx(Sa.ItemSlot,{scope:n,children:p.jsx(gN,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...i,...r,ref:t})})});xp.displayName=Rs;var wp="AccordionContent",Sp=w.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Eo(Qe,n),s=Ea(wp,n),a=Ca(n);return p.jsx(vN,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Sp.displayName=wp;function Cp(e){return e?"open":"closed"}var NN=pp,_N=vp,kN=bp,Ep=xp,Pp=Sp;const MN=NN,Rp=c.forwardRef(({className:e,...t},n)=>p.jsx(_N,{ref:n,className:A("border-b",e),...t}));Rp.displayName="AccordionItem";const Np=c.forwardRef(({className:e,children:t,...n},r)=>p.jsx(kN,{className:"flex",children:p.jsxs(Ep,{ref:r,className:A("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,p.jsx(Ls,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Np.displayName=Ep.displayName;const _p=c.forwardRef(({className:e,children:t,...n},r)=>p.jsx(Pp,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:p.jsx("div",{className:A("pb-4 pt-0",e),children:t})}));_p.displayName=Pp.displayName;function TN(e,t){const n=c.createContext(t),r=s=>{const{children:a,...i}=s,l=c.useMemo(()=>i,Object.values(i));return p.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(s){const a=c.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function DN(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,ON(o,...t)]}function ON(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function kp(e){const t=AN(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(jN);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function AN(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=WN(o),i=$N(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var IN=Symbol("radix.slottable");function jN(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===IN}function $N(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function WN(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var FN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sr=FN.reduce((e,t)=>{const n=kp(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Po="Dialog",[Mp]=DN(Po),[LN,Je]=Mp(Po),Tp=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=c.useRef(null),l=c.useRef(null),[d,f]=we({prop:r,defaultProp:o??!1,onChange:s,caller:Po});return p.jsx(LN,{scope:t,triggerRef:i,contentRef:l,contentId:me(),titleId:me(),descriptionId:me(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(u=>!u),[f]),modal:a,children:n})};Tp.displayName=Po;var Dp="DialogTrigger",Op=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Je(Dp,n),s=ee(t,o.triggerRef);return p.jsx(sr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Na(o.open),...r,ref:s,onClick:L(e.onClick,o.onOpenToggle)})});Op.displayName=Dp;var Pa="DialogPortal",[BN,Ap]=Mp(Pa,{forceMount:void 0}),Ip=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Je(Pa,t);return p.jsx(BN,{scope:t,forceMount:n,children:c.Children.map(r,a=>p.jsx(Se,{present:n||s.open,children:p.jsx(Zn,{asChild:!0,container:o,children:a})}))})};Ip.displayName=Pa;var Gr="DialogOverlay",jp=c.forwardRef((e,t)=>{const n=Ap(Gr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Je(Gr,e.__scopeDialog);return s.modal?p.jsx(Se,{present:r||s.open,children:p.jsx(HN,{...o,ref:t})}):null});jp.displayName=Gr;var VN=kp("DialogOverlay.RemoveScroll"),HN=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Je(Gr,n);return p.jsx(Qn,{as:VN,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(sr.div,{"data-state":Na(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Yt="DialogContent",$p=c.forwardRef((e,t)=>{const n=Ap(Yt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Je(Yt,e.__scopeDialog);return p.jsx(Se,{present:r||s.open,children:s.modal?p.jsx(YN,{...o,ref:t}):p.jsx(zN,{...o,ref:t})})});$p.displayName=Yt;var YN=c.forwardRef((e,t)=>{const n=Je(Yt,e.__scopeDialog),r=c.useRef(null),o=ee(t,n.contentRef,r);return c.useEffect(()=>{const s=r.current;if(s)return so(s)},[]),p.jsx(Wp,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault())})}),zN=c.forwardRef((e,t)=>{const n=Je(Yt,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return p.jsx(Wp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Wp=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=Je(Yt,n),l=c.useRef(null),d=ee(t,l);return Qr(),p.jsxs(p.Fragment,{children:[p.jsx(Un,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(mn,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Na(i.open),...a,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(GN,{titleId:i.titleId}),p.jsx(KN,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Ra="DialogTitle",Fp=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Je(Ra,n);return p.jsx(sr.h2,{id:o.titleId,...r,ref:t})});Fp.displayName=Ra;var Lp="DialogDescription",Bp=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Je(Lp,n);return p.jsx(sr.p,{id:o.descriptionId,...r,ref:t})});Bp.displayName=Lp;var Vp="DialogClose",Hp=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Je(Vp,n);return p.jsx(sr.button,{type:"button",...r,ref:t,onClick:L(e.onClick,()=>o.onOpenChange(!1))})});Hp.displayName=Vp;function Na(e){return e?"open":"closed"}var Yp="DialogTitleWarning",[HT,zp]=TN(Yp,{contentName:Yt,titleName:Ra,docsSlug:"dialog"}),GN=({titleId:e})=>{const t=zp(Yp),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
47
47
 
48
48
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
49
49
 
50
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ch="DialogDescriptionWarning",Eh=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${da(Ch).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Rh=Zi,Ph=Qi,_h=ta,fa=na,pa=ra,ma=sa,ha=aa,ga=la;const Nh=Rh,Ah=Ph,va=_h,Oh=ga,pr=i.forwardRef(({className:e,...t},n)=>p.jsx(fa,{ref:n,className:B("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));pr.displayName=fa.displayName;const ya=i.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(va,{children:[p.jsx(pr,{}),p.jsxs(pa,{ref:r,className:B("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,p.jsxs(ga,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[p.jsx(ku,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ya.displayName=pa.displayName;const xa=({className:e,...t})=>p.jsx("div",{className:B("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});xa.displayName="DialogHeader";const ba=({className:e,...t})=>p.jsx("div",{className:B("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ba.displayName="DialogFooter";const wa=i.forwardRef(({className:e,...t},n)=>p.jsx(ma,{ref:n,className:B("text-lg font-semibold leading-none tracking-tight",e),...t}));wa.displayName=ma.displayName;const Sa=i.forwardRef(({className:e,...t},n)=>p.jsx(ha,{ref:n,className:B("text-sm text-muted-foreground",e),...t}));Sa.displayName=ha.displayName;function Ih(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:h,children:g,...v}=d,m=h?.[e]?.[l]||c,y=i.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:y,children:g})};u.displayName=s+"Provider";function f(d,h){const g=h?.[e]?.[l]||c,v=i.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,Th(o,...t)]}function Th(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Mh(e){const t=kh(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(jh);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function kh(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=Lh(o),c=$h(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Dh=Symbol("radix.slottable");function jh(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Dh}function $h(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Lh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Fh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Vh=Fh.reduce((e,t)=>{const n=Mh(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Wh(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:h,children:g,...v}=d,m=h?.[e]?.[l]||c,y=i.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:y,children:g})};u.displayName=s+"Provider";function f(d,h){const g=h?.[e]?.[l]||c,v=i.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,Bh(o,...t)]}function Bh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ca(e){const t=Hh(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Uh);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Hh(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=Kh(o),c=Gh(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zh=Symbol("radix.slottable");function Uh(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zh}function Gh(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Kh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Yh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gt=Yh.reduce((e,t)=>{const n=Ca(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Xh(e,t){e&&ft.flushSync(()=>e.dispatchEvent(t))}function qh(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:h,children:g,...v}=d,m=h?.[e]?.[l]||c,y=i.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:y,children:g})};u.displayName=s+"Provider";function f(d,h){const g=h?.[e]?.[l]||c,v=i.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,Zh(o,...t)]}function Zh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Jh(e){const t=Qh(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(tg);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Qh(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=rg(o),c=ng(s,o.props);return o.type!==i.Fragment&&(c.ref=r?ie(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var eg=Symbol("radix.slottable");function tg(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===eg}function ng(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function rg(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var og=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ea=og.reduce((e,t)=>{const n=Jh(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Rn="rovingFocusGroup.onEntryFocus",sg={bubbles:!1,cancelable:!0},vt="RovingFocusGroup",[$n,Ra,ig]=Yn(vt),[ag,Pa]=qh(vt,[ig]),[cg,lg]=ag(vt),_a=i.forwardRef((e,t)=>p.jsx($n.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx($n.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(ug,{...e,ref:t})})}));_a.displayName=vt;var ug=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...d}=e,h=i.useRef(null),g=q(t,h),v=Xn(s),[m,y]=Ie({prop:a,defaultProp:c??null,onChange:l,caller:vt}),[x,b]=i.useState(!1),w=pe(u),C=Ra(n),_=i.useRef(!1),[O,N]=i.useState(0);return i.useEffect(()=>{const P=h.current;if(P)return P.addEventListener(Rn,w),()=>P.removeEventListener(Rn,w)},[w]),p.jsx(cg,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:m,onItemFocus:i.useCallback(P=>y(P),[y]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>N(P=>P+1),[]),onFocusableItemRemove:i.useCallback(()=>N(P=>P-1),[]),children:p.jsx(Ea.div,{tabIndex:x||O===0?-1:0,"data-orientation":r,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:M(e.onMouseDown,()=>{_.current=!0}),onFocus:M(e.onFocus,P=>{const j=!_.current;if(P.target===P.currentTarget&&j&&!x){const F=new CustomEvent(Rn,sg);if(P.currentTarget.dispatchEvent(F),!F.defaultPrevented){const z=C().filter(k=>k.focusable),V=z.find(k=>k.active),U=z.find(k=>k.id===m),K=[V,U,...z].filter(Boolean).map(k=>k.ref.current);Oa(K,f)}}_.current=!1}),onBlur:M(e.onBlur,()=>b(!1))})})}),Na="RovingFocusGroupItem",Aa=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...c}=e,l=he(),u=s||l,f=lg(Na,n),d=f.currentTabStopId===u,h=Ra(n),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:m}=f;return i.useEffect(()=>{if(r)return g(),()=>v()},[r,g,v]),p.jsx($n.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:p.jsx(Ea.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:M(e.onMouseDown,y=>{r?f.onItemFocus(u):y.preventDefault()}),onFocus:M(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:M(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){f.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const x=pg(y,f.orientation,f.dir);if(x!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let w=h().filter(C=>C.focusable).map(C=>C.ref.current);if(x==="last")w.reverse();else if(x==="prev"||x==="next"){x==="prev"&&w.reverse();const C=w.indexOf(y.currentTarget);w=f.loop?mg(w,C+1):w.slice(C+1)}setTimeout(()=>Oa(w))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:m!=null}):a})})});Aa.displayName=Na;var dg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fg(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pg(e,t,n){const r=fg(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return dg[r]}function Oa(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function mg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var hg=_a,gg=Aa,Ln=["Enter"," "],vg=["ArrowDown","PageUp","Home"],Ia=["ArrowUp","PageDown","End"],yg=[...vg,...Ia],xg={ltr:[...Ln,"ArrowRight"],rtl:[...Ln,"ArrowLeft"]},bg={ltr:["ArrowLeft"],rtl:["ArrowRight"]},yt="Menu",[ut,wg,Sg]=Yn(yt),[He,Ta]=Wh(yt,[Sg,Jt,Pa]),xt=Jt(),Ma=Pa(),[ka,je]=He(yt),[Cg,bt]=He(yt),Da=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,c=xt(t),[l,u]=i.useState(null),f=i.useRef(!1),d=pe(s),h=Xn(o);return i.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),p.jsx(sr,{...c,children:p.jsx(ka,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u,children:p.jsx(Cg,{scope:t,onClose:i.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:h,modal:a,children:r})})})};Da.displayName=yt;var Eg="MenuAnchor",mr=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=xt(n);return p.jsx(Xs,{...o,...r,ref:t})});mr.displayName=Eg;var hr="MenuPortal",[Rg,ja]=He(hr,{forceMount:void 0}),$a=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=je(hr,t);return p.jsx(Rg,{scope:t,forceMount:n,children:p.jsx(_e,{present:n||s.open,children:p.jsx(Qt,{asChild:!0,container:o,children:r})})})};$a.displayName=hr;var fe="MenuContent",[Pg,gr]=He(fe),La=i.forwardRef((e,t)=>{const n=ja(fe,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=je(fe,e.__scopeMenu),a=bt(fe,e.__scopeMenu);return p.jsx(ut.Provider,{scope:e.__scopeMenu,children:p.jsx(_e,{present:r||s.open,children:p.jsx(ut.Slot,{scope:e.__scopeMenu,children:a.modal?p.jsx(_g,{...o,ref:t}):p.jsx(Ng,{...o,ref:t})})})})}),_g=i.forwardRef((e,t)=>{const n=je(fe,e.__scopeMenu),r=i.useRef(null),o=q(t,r);return i.useEffect(()=>{const s=r.current;if(s)return ir(s)},[]),p.jsx(vr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:M(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ng=i.forwardRef((e,t)=>{const n=je(fe,e.__scopeMenu);return p.jsx(vr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Ag=Ca("MenuContent.ScrollLock"),vr=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:g,disableOutsideScroll:v,...m}=e,y=je(fe,n),x=bt(fe,n),b=xt(n),w=Ma(n),C=wg(n),[_,O]=i.useState(null),N=i.useRef(null),P=q(t,N,y.onContentChange),j=i.useRef(0),F=i.useRef(""),z=i.useRef(0),V=i.useRef(null),U=i.useRef("right"),H=i.useRef(0),K=v?tn:i.Fragment,k=v?{as:Ag,allowPinchZoom:!0}:void 0,W=A=>{const J=F.current+A,S=C().filter(R=>!R.disabled),D=document.activeElement,$=S.find(R=>R.ref.current===D)?.textValue,L=S.map(R=>R.textValue),ne=Wg(L,J,$),te=S.find(R=>R.textValue===ne)?.ref.current;(function R(Y){F.current=Y,window.clearTimeout(j.current),Y!==""&&(j.current=window.setTimeout(()=>R(""),1e3))})(J),te&&setTimeout(()=>te.focus())};i.useEffect(()=>()=>window.clearTimeout(j.current),[]),qn();const E=i.useCallback(A=>U.current===V.current?.side&&Hg(A,V.current?.area),[]);return p.jsx(Pg,{scope:n,searchRef:F,onItemEnter:i.useCallback(A=>{E(A)&&A.preventDefault()},[E]),onItemLeave:i.useCallback(A=>{E(A)||(N.current?.focus(),O(null))},[E]),onTriggerLeave:i.useCallback(A=>{E(A)&&A.preventDefault()},[E]),pointerGraceTimerRef:z,onPointerGraceIntentChange:i.useCallback(A=>{V.current=A},[]),children:p.jsx(K,{...k,children:p.jsx(Kt,{asChild:!0,trapped:o,onMountAutoFocus:M(s,A=>{A.preventDefault(),N.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:p.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:g,children:p.jsx(hg,{asChild:!0,...w,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:O,onEntryFocus:M(l,A=>{x.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(qs,{role:"menu","aria-orientation":"vertical","data-state":tc(y.open),"data-radix-menu-content":"",dir:x.dir,...b,...m,ref:P,style:{outline:"none",...m.style},onKeyDown:M(m.onKeyDown,A=>{const S=A.target.closest("[data-radix-menu-content]")===A.currentTarget,D=A.ctrlKey||A.altKey||A.metaKey,$=A.key.length===1;S&&(A.key==="Tab"&&A.preventDefault(),!D&&$&&W(A.key));const L=N.current;if(A.target!==L||!yg.includes(A.key))return;A.preventDefault();const te=C().filter(R=>!R.disabled).map(R=>R.ref.current);Ia.includes(A.key)&&te.reverse(),Fg(te)}),onBlur:M(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(j.current),F.current="")}),onPointerMove:M(e.onPointerMove,dt(A=>{const J=A.target,S=H.current!==A.clientX;if(A.currentTarget.contains(J)&&S){const D=A.clientX>H.current?"right":"left";U.current=D,H.current=A.clientX}}))})})})})})})});La.displayName=fe;var Og="MenuGroup",yr=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(gt.div,{role:"group",...r,ref:t})});yr.displayName=Og;var Ig="MenuLabel",Fa=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(gt.div,{...r,ref:t})});Fa.displayName=Ig;var Bt="MenuItem",uo="menu.itemSelect",an=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=i.useRef(null),a=bt(Bt,e.__scopeMenu),c=gr(Bt,e.__scopeMenu),l=q(t,s),u=i.useRef(!1),f=()=>{const d=s.current;if(!n&&d){const h=new CustomEvent(uo,{bubbles:!0,cancelable:!0});d.addEventListener(uo,g=>r?.(g),{once:!0}),Xh(d,h),h.defaultPrevented?u.current=!1:a.onClose()}};return p.jsx(Va,{...o,ref:l,disabled:n,onClick:M(e.onClick,f),onPointerDown:d=>{e.onPointerDown?.(d),u.current=!0},onPointerUp:M(e.onPointerUp,d=>{u.current||d.currentTarget?.click()}),onKeyDown:M(e.onKeyDown,d=>{const h=c.searchRef.current!=="";n||h&&d.key===" "||Ln.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});an.displayName=Bt;var Va=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=gr(Bt,n),c=Ma(n),l=i.useRef(null),u=q(t,l),[f,d]=i.useState(!1),[h,g]=i.useState("");return i.useEffect(()=>{const v=l.current;v&&g((v.textContent??"").trim())},[s.children]),p.jsx(ut.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:p.jsx(gg,{asChild:!0,...c,focusable:!r,children:p.jsx(gt.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:u,onPointerMove:M(e.onPointerMove,dt(v=>{r?a.onItemLeave(v):(a.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:M(e.onPointerLeave,dt(v=>a.onItemLeave(v))),onFocus:M(e.onFocus,()=>d(!0)),onBlur:M(e.onBlur,()=>d(!1))})})})}),Tg="MenuCheckboxItem",Wa=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Ga,{scope:e.__scopeMenu,checked:n,children:p.jsx(an,{role:"menuitemcheckbox","aria-checked":Ht(n)?"mixed":n,...o,ref:t,"data-state":wr(n),onSelect:M(o.onSelect,()=>r?.(Ht(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Wa.displayName=Tg;var Ba="MenuRadioGroup",[Mg,kg]=He(Ba,{value:void 0,onValueChange:()=>{}}),Ha=i.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=pe(r);return p.jsx(Mg,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(yr,{...o,ref:t})})});Ha.displayName=Ba;var za="MenuRadioItem",Ua=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=kg(za,e.__scopeMenu),s=n===o.value;return p.jsx(Ga,{scope:e.__scopeMenu,checked:s,children:p.jsx(an,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":wr(s),onSelect:M(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ua.displayName=za;var xr="MenuItemIndicator",[Ga,Dg]=He(xr,{checked:!1}),Ka=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Dg(xr,n);return p.jsx(_e,{present:r||Ht(s.checked)||s.checked===!0,children:p.jsx(gt.span,{...o,ref:t,"data-state":wr(s.checked)})})});Ka.displayName=xr;var jg="MenuSeparator",Ya=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(gt.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Ya.displayName=jg;var $g="MenuArrow",Xa=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=xt(n);return p.jsx(Zs,{...o,...r,ref:t})});Xa.displayName=$g;var br="MenuSub",[Lg,qa]=He(br),Za=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=je(br,t),a=xt(t),[c,l]=i.useState(null),[u,f]=i.useState(null),d=pe(o);return i.useEffect(()=>(s.open===!1&&d(!1),()=>d(!1)),[s.open,d]),p.jsx(sr,{...a,children:p.jsx(ka,{scope:t,open:r,onOpenChange:d,content:u,onContentChange:f,children:p.jsx(Lg,{scope:t,contentId:he(),triggerId:he(),trigger:c,onTriggerChange:l,children:n})})})};Za.displayName=br;var at="MenuSubTrigger",Ja=i.forwardRef((e,t)=>{const n=je(at,e.__scopeMenu),r=bt(at,e.__scopeMenu),o=qa(at,e.__scopeMenu),s=gr(at,e.__scopeMenu),a=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=s,u={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const d=c.current;return()=>{window.clearTimeout(d),l(null)}},[c,l]),p.jsx(mr,{asChild:!0,...u,children:p.jsx(Va,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":tc(n.open),...e,ref:ie(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:M(e.onPointerMove,dt(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:M(e.onPointerLeave,dt(d=>{f();const h=n.content?.getBoundingClientRect();if(h){const g=n.content?.dataset.side,v=g==="right",m=v?-5:5,y=h[v?"left":"right"],x=h[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:y,y:h.top},{x,y:h.top},{x,y:h.bottom},{x:y,y:h.bottom}],side:g}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:M(e.onKeyDown,d=>{const h=s.searchRef.current!=="";e.disabled||h&&d.key===" "||xg[r.dir].includes(d.key)&&(n.onOpenChange(!0),n.content?.focus(),d.preventDefault())})})})});Ja.displayName=at;var Qa="MenuSubContent",ec=i.forwardRef((e,t)=>{const n=ja(fe,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=je(fe,e.__scopeMenu),a=bt(fe,e.__scopeMenu),c=qa(Qa,e.__scopeMenu),l=i.useRef(null),u=q(t,l);return p.jsx(ut.Provider,{scope:e.__scopeMenu,children:p.jsx(_e,{present:r||s.open,children:p.jsx(ut.Slot,{scope:e.__scopeMenu,children:p.jsx(vr,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{a.isUsingKeyboardRef.current&&l.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:M(e.onFocusOutside,f=>{f.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:M(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:M(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),h=bg[a.dir].includes(f.key);d&&h&&(s.onOpenChange(!1),c.trigger?.focus(),f.preventDefault())})})})})})});ec.displayName=Qa;function tc(e){return e?"open":"closed"}function Ht(e){return e==="indeterminate"}function wr(e){return Ht(e)?"indeterminate":e?"checked":"unchecked"}function Fg(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Vg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Wg(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Vg(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Bg(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],l=t[a],u=c.x,f=c.y,d=l.x,h=l.y;f>r!=h>r&&n<(d-u)*(r-f)/(h-f)+u&&(o=!o)}return o}function Hg(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Bg(n,t)}function dt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var zg=Da,Ug=mr,Gg=$a,Kg=La,Yg=yr,Xg=Fa,qg=an,Zg=Wa,Jg=Ha,Qg=Ua,ev=Ka,tv=Ya,nv=Xa,rv=Za,ov=Ja,sv=ec,cn="DropdownMenu",[iv]=Ih(cn,[Ta]),ae=Ta(),[av,nc]=iv(cn),rc=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:c=!0}=e,l=ae(t),u=i.useRef(null),[f,d]=Ie({prop:o,defaultProp:s??!1,onChange:a,caller:cn});return p.jsx(av,{scope:t,triggerId:he(),triggerRef:u,contentId:he(),open:f,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(h=>!h),[d]),modal:c,children:p.jsx(zg,{...l,open:f,onOpenChange:d,dir:r,modal:c,children:n})})};rc.displayName=cn;var oc="DropdownMenuTrigger",sc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=nc(oc,n),a=ae(n);return p.jsx(Ug,{asChild:!0,...a,children:p.jsx(Vh.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:ie(t,s.triggerRef),onPointerDown:M(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:M(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});sc.displayName=oc;var cv="DropdownMenuPortal",ic=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ae(t);return p.jsx(Gg,{...r,...n})};ic.displayName=cv;var ac="DropdownMenuContent",cc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nc(ac,n),s=ae(n),a=i.useRef(!1);return p.jsx(Kg,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:M(e.onCloseAutoFocus,c=>{a.current||o.triggerRef.current?.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:M(e.onInteractOutside,c=>{const l=c.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!o.modal||f)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});cc.displayName=ac;var lv="DropdownMenuGroup",lc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ae(n);return p.jsx(Yg,{...o,...r,ref:t})});lc.displayName=lv;var uv="DropdownMenuLabel",uc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ae(n);return p.jsx(Xg,{...o,...r,ref:t})});uc.displayName=uv;var dv="DropdownMenuItem",dc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ae(n);return p.jsx(qg,{...o,...r,ref:t})});dc.displayName=dv;var fv="DropdownMenuCheckboxItem",fc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ae(n);return p.jsx(Zg,{...o,...r,ref:t})});fc.displayName=fv;var pv="DropdownMenuRadioGroup",pc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ae(n);return p.jsx(Jg,{...o,...r,ref:t})});pc.displayName=pv;var mv="DropdownMenuRadioItem",mc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ae(n);return p.jsx(Qg,{...o,...r,ref:t})});mc.displayName=mv;var hv="DropdownMenuItemIndicator",hc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ae(n);return p.jsx(ev,{...o,...r,ref:t})});hc.displayName=hv;var gv="DropdownMenuSeparator",gc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ae(n);return p.jsx(tv,{...o,...r,ref:t})});gc.displayName=gv;var vv="DropdownMenuArrow",yv=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ae(n);return p.jsx(nv,{...o,...r,ref:t})});yv.displayName=vv;var xv=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,a=ae(t),[c,l]=Ie({prop:r,defaultProp:s??!1,onChange:o,caller:"DropdownMenuSub"});return p.jsx(rv,{...a,open:c,onOpenChange:l,children:n})},bv="DropdownMenuSubTrigger",vc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ae(n);return p.jsx(ov,{...o,...r,ref:t})});vc.displayName=bv;var wv="DropdownMenuSubContent",yc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ae(n);return p.jsx(sv,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});yc.displayName=wv;var Sv=rc,Cv=sc,xc=ic,bc=cc,Ev=lc,wc=uc,Sc=dc,Cc=fc,Rv=pc,Ec=mc,Rc=hc,Pc=gc,Pv=xv,_c=vc,Nc=yc;const _v=Sv,Nv=Cv,Av=Ev,Ov=xc,Iv=Pv,Tv=Rv,Ac=i.forwardRef(({className:e,inset:t,children:n,...r},o)=>p.jsxs(_c,{ref:o,className:B("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,p.jsx(Nu,{className:"ml-auto h-4 w-4"})]}));Ac.displayName=_c.displayName;const Oc=i.forwardRef(({className:e,...t},n)=>p.jsx(Nc,{ref:n,className:B("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Oc.displayName=Nc.displayName;const Ic=i.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(xc,{children:p.jsx(bc,{ref:r,sideOffset:t,className:B("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ic.displayName=bc.displayName;const Tc=i.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(Sc,{ref:r,className:B("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Tc.displayName=Sc.displayName;const Mc=i.forwardRef(({className:e,children:t,checked:n,...r},o)=>p.jsxs(Cc,{ref:o,className:B("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(Rc,{children:p.jsx(Kn,{className:"h-4 w-4"})})}),t]}));Mc.displayName=Cc.displayName;const kc=i.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Ec,{ref:r,className:B("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(Rc,{children:p.jsx(Tu,{className:"h-2 w-2 fill-current"})})}),t]}));kc.displayName=Ec.displayName;const Dc=i.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(wc,{ref:r,className:B("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Dc.displayName=wc.displayName;const jc=i.forwardRef(({className:e,...t},n)=>p.jsx(Pc,{ref:n,className:B("-mx-1 my-1 h-px bg-muted",e),...t}));jc.displayName=Pc.displayName;const $c=({className:e,...t})=>p.jsx("span",{className:B("ml-auto text-xs tracking-widest opacity-60",e),...t});$c.displayName="DropdownMenuShortcut";exports.Avatar=qo;exports.AvatarFallback=Jo;exports.AvatarImage=Zo;exports.Badge=Vl;exports.Button=Io;exports.Card=Qo;exports.CardContent=rs;exports.CardDescription=ns;exports.CardFooter=os;exports.CardHeader=es;exports.CardTitle=ts;exports.Checkbox=ms;exports.Dialog=Nh;exports.DialogClose=Oh;exports.DialogContent=ya;exports.DialogDescription=Sa;exports.DialogFooter=ba;exports.DialogHeader=xa;exports.DialogOverlay=pr;exports.DialogPortal=va;exports.DialogTitle=wa;exports.DialogTrigger=Ah;exports.DropdownMenu=_v;exports.DropdownMenuCheckboxItem=Mc;exports.DropdownMenuContent=Ic;exports.DropdownMenuGroup=Av;exports.DropdownMenuItem=Tc;exports.DropdownMenuLabel=Dc;exports.DropdownMenuPortal=Ov;exports.DropdownMenuRadioGroup=Tv;exports.DropdownMenuRadioItem=kc;exports.DropdownMenuSeparator=jc;exports.DropdownMenuShortcut=$c;exports.DropdownMenuSub=Iv;exports.DropdownMenuSubContent=Oc;exports.DropdownMenuSubTrigger=Ac;exports.DropdownMenuTrigger=Nv;exports.Input=To;exports.Label=jo;exports.Select=oh;exports.SelectContent=Ui;exports.SelectGroup=sh;exports.SelectItem=Ki;exports.SelectLabel=Gi;exports.SelectScrollDownButton=lr;exports.SelectScrollUpButton=cr;exports.SelectSeparator=Yi;exports.SelectTrigger=zi;exports.SelectValue=ih;exports.Separator=Vo;exports.Switch=Ss;exports.Textarea=Mo;exports.badgeVariants=$o;exports.buttonVariants=Oo;exports.cn=B;
50
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},UN="DialogDescriptionWarning",KN=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zp(UN).contentName}}.`;return c.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},_a=Tp,Gp=Op,ka=Ip,ar=jp,ir=$p,Ro=Fp,No=Bp,_o=Hp;const Up=_a,qN=Gp,Kp=ka,XN=_o,Ma=c.forwardRef(({className:e,...t},n)=>p.jsx(ar,{ref:n,className:A("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ma.displayName=ar.displayName;const Ta=c.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Kp,{children:[p.jsx(Ma,{}),p.jsxs(ir,{ref:r,className:A("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,p.jsxs(_o,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[p.jsx(al,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ta.displayName=ir.displayName;const qp=({className:e,...t})=>p.jsx("div",{className:A("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});qp.displayName="DialogHeader";const Xp=({className:e,...t})=>p.jsx("div",{className:A("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Xp.displayName="DialogFooter";const Zp=c.forwardRef(({className:e,...t},n)=>p.jsx(Ro,{ref:n,className:A("text-lg font-semibold leading-none tracking-tight",e),...t}));Zp.displayName=Ro.displayName;const Qp=c.forwardRef(({className:e,...t},n)=>p.jsx(No,{ref:n,className:A("text-sm text-muted-foreground",e),...t}));Qp.displayName=No.displayName;const Jp=_a,em=Gp,tm=_o,nm=ka,Da=c.forwardRef(({className:e,...t},n)=>p.jsx(ar,{className:A("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Da.displayName=ar.displayName;const ZN=pn("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Oa=c.forwardRef(({side:e="right",className:t,children:n,...r},o)=>p.jsxs(nm,{children:[p.jsx(Da,{}),p.jsxs(ir,{ref:o,className:A(ZN({side:e}),t),...r,children:[n,p.jsxs(_o,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[p.jsx(al,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Oa.displayName=ir.displayName;const Aa=({className:e,...t})=>p.jsx("div",{className:A("flex flex-col space-y-2 text-center sm:text-left",e),...t});Aa.displayName="SheetHeader";const Ia=({className:e,...t})=>p.jsx("div",{className:A("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ia.displayName="SheetFooter";const ja=c.forwardRef(({className:e,...t},n)=>p.jsx(Ro,{ref:n,className:A("text-lg font-semibold text-foreground",e),...t}));ja.displayName=Ro.displayName;const $a=c.forwardRef(({className:e,...t},n)=>p.jsx(No,{ref:n,className:A("text-sm text-muted-foreground",e),...t}));$a.displayName=No.displayName;function QN(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,JN(o,...t)]}function JN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function rm(e){const t=e_(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(n_);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function e_(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=o_(o),i=r_(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var t_=Symbol("radix.slottable");function n_(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===t_}function r_(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function o_(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var s_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],om=s_.reduce((e,t)=>{const n=rm(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ko="Popover",[sm]=QN(ko,[Mt]),cr=Mt(),[a_,It]=sm(ko),am=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=cr(t),l=c.useRef(null),[d,f]=c.useState(!1),[u,m]=we({prop:r,defaultProp:o??!1,onChange:s,caller:ko});return p.jsx(qn,{...i,children:p.jsx(a_,{scope:t,contentId:me(),triggerRef:l,open:u,onOpenChange:m,onOpenToggle:c.useCallback(()=>m(h=>!h),[m]),hasCustomAnchor:d,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:a,children:n})})};am.displayName=ko;var im="PopoverAnchor",i_=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=It(im,n),s=cr(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return c.useEffect(()=>(a(),()=>i()),[a,i]),p.jsx(Xn,{...s,...r,ref:t})});i_.displayName=im;var cm="PopoverTrigger",lm=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=It(cm,n),s=cr(n),a=ee(t,o.triggerRef),i=p.jsx(om.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":mm(o.open),...r,ref:a,onClick:L(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:p.jsx(Xn,{asChild:!0,...s,children:i})});lm.displayName=cm;var Wa="PopoverPortal",[c_,l_]=sm(Wa,{forceMount:void 0}),um=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=It(Wa,t);return p.jsx(c_,{scope:t,forceMount:n,children:p.jsx(Se,{present:n||s.open,children:p.jsx(Zn,{asChild:!0,container:o,children:r})})})};um.displayName=Wa;var ln="PopoverContent",dm=c.forwardRef((e,t)=>{const n=l_(ln,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=It(ln,e.__scopePopover);return p.jsx(Se,{present:r||s.open,children:s.modal?p.jsx(d_,{...o,ref:t}):p.jsx(f_,{...o,ref:t})})});dm.displayName=ln;var u_=rm("PopoverContent.RemoveScroll"),d_=c.forwardRef((e,t)=>{const n=It(ln,e.__scopePopover),r=c.useRef(null),o=ee(t,r),s=c.useRef(!1);return c.useEffect(()=>{const a=r.current;if(a)return so(a)},[]),p.jsx(Qn,{as:u_,allowPinchZoom:!0,children:p.jsx(fm,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,a=>{a.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,d=i.button===2||l;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:L(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),f_=c.forwardRef((e,t)=>{const n=It(ln,e.__scopePopover),r=c.useRef(!1),o=c.useRef(!1);return p.jsx(fm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),fm=c.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:f,...u}=e,m=It(ln,n),h=cr(n);return Qr(),p.jsx(Un,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(mn,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),children:p.jsx(ro,{"data-state":mm(m.open),role:"dialog",id:m.contentId,...h,...u,ref:t,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),pm="PopoverClose",p_=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=It(pm,n);return p.jsx(om.button,{type:"button",...r,ref:t,onClick:L(e.onClick,()=>o.onOpenChange(!1))})});p_.displayName=pm;var m_="PopoverArrow",h_=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=cr(n);return p.jsx(oo,{...o,...r,ref:t})});h_.displayName=m_;function mm(e){return e?"open":"closed"}var g_=am,v_=lm,y_=um,hm=dm;const b_=g_,x_=v_,gm=c.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>p.jsx(y_,{children:p.jsx(hm,{ref:o,align:t,sideOffset:n,className:A("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));gm.displayName=hm.displayName;function w_(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,S_(o,...t)]}function S_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function C_(e){const t=E_(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(R_);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function E_(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=__(o),i=N_(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P_=Symbol("radix.slottable");function R_(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P_}function N_(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function __(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var k_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],M_=k_.reduce((e,t)=>{const n=C_(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function T_(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,D_(o,...t)]}function D_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function vm(e){const t=O_(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(I_);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function O_(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=$_(o),i=j_(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var A_=Symbol("radix.slottable");function I_(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===A_}function j_(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function $_(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var W_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lr=W_.reduce((e,t)=>{const n=vm(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function F_(e,t){e&&Hn.flushSync(()=>e.dispatchEvent(t))}var Ns=["Enter"," "],L_=["ArrowDown","PageUp","Home"],ym=["ArrowUp","PageDown","End"],B_=[...L_,...ym],V_={ltr:[...Ns,"ArrowRight"],rtl:[...Ns,"ArrowLeft"]},H_={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ur="Menu",[Ln,Y_,z_]=Gn(ur),[Gt,bm]=T_(ur,[z_,Mt,Ot]),dr=Mt(),xm=Ot(),[wm,jt]=Gt(ur),[G_,fr]=Gt(ur),Sm=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,i=dr(t),[l,d]=c.useState(null),f=c.useRef(!1),u=xe(s),m=vt(o);return c.useEffect(()=>{const h=()=>{f.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>f.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),p.jsx(qn,{...i,children:p.jsx(wm,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:d,children:p.jsx(G_,{scope:t,onClose:c.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:m,modal:a,children:r})})})};Sm.displayName=ur;var U_="MenuAnchor",Fa=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=dr(n);return p.jsx(Xn,{...o,...r,ref:t})});Fa.displayName=U_;var La="MenuPortal",[K_,Cm]=Gt(La,{forceMount:void 0}),Em=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=jt(La,t);return p.jsx(K_,{scope:t,forceMount:n,children:p.jsx(Se,{present:n||s.open,children:p.jsx(Zn,{asChild:!0,container:o,children:r})})})};Em.displayName=La;var Be="MenuContent",[q_,Ba]=Gt(Be),Pm=c.forwardRef((e,t)=>{const n=Cm(Be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=jt(Be,e.__scopeMenu),a=fr(Be,e.__scopeMenu);return p.jsx(Ln.Provider,{scope:e.__scopeMenu,children:p.jsx(Se,{present:r||s.open,children:p.jsx(Ln.Slot,{scope:e.__scopeMenu,children:a.modal?p.jsx(X_,{...o,ref:t}):p.jsx(Z_,{...o,ref:t})})})})}),X_=c.forwardRef((e,t)=>{const n=jt(Be,e.__scopeMenu),r=c.useRef(null),o=ee(t,r);return c.useEffect(()=>{const s=r.current;if(s)return so(s)},[]),p.jsx(Va,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Z_=c.forwardRef((e,t)=>{const n=jt(Be,e.__scopeMenu);return p.jsx(Va,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Q_=vm("MenuContent.ScrollLock"),Va=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,...v}=e,y=jt(Be,n),b=fr(Be,n),x=dr(n),S=xm(n),C=Y_(n),[P,E]=c.useState(null),R=c.useRef(null),_=ee(t,R,y.onContentChange),I=c.useRef(0),F=c.useRef(""),B=c.useRef(0),z=c.useRef(null),U=c.useRef("right"),G=c.useRef(0),Z=g?Qn:c.Fragment,j=g?{as:Q_,allowPinchZoom:!0}:void 0,V=$=>{const J=F.current+$,k=C().filter(M=>!M.disabled),N=document.activeElement,T=k.find(M=>M.ref.current===N)?.textValue,O=k.map(M=>M.textValue),W=uk(O,J,T),K=k.find(M=>M.textValue===W)?.ref.current;(function M(H){F.current=H,window.clearTimeout(I.current),H!==""&&(I.current=window.setTimeout(()=>M(""),1e3))})(J),K&&setTimeout(()=>K.focus())};c.useEffect(()=>()=>window.clearTimeout(I.current),[]),Qr();const D=c.useCallback($=>U.current===z.current?.side&&fk($,z.current?.area),[]);return p.jsx(q_,{scope:n,searchRef:F,onItemEnter:c.useCallback($=>{D($)&&$.preventDefault()},[D]),onItemLeave:c.useCallback($=>{D($)||(R.current?.focus(),E(null))},[D]),onTriggerLeave:c.useCallback($=>{D($)&&$.preventDefault()},[D]),pointerGraceTimerRef:B,onPointerGraceIntentChange:c.useCallback($=>{z.current=$},[]),children:p.jsx(Z,{...j,children:p.jsx(Un,{asChild:!0,trapped:o,onMountAutoFocus:L(s,$=>{$.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:p.jsx(mn,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:h,children:p.jsx(fo,{asChild:!0,...S,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:E,onEntryFocus:L(l,$=>{b.isUsingKeyboardRef.current||$.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(ro,{role:"menu","aria-orientation":"vertical","data-state":Vm(y.open),"data-radix-menu-content":"",dir:b.dir,...x,...v,ref:_,style:{outline:"none",...v.style},onKeyDown:L(v.onKeyDown,$=>{const k=$.target.closest("[data-radix-menu-content]")===$.currentTarget,N=$.ctrlKey||$.altKey||$.metaKey,T=$.key.length===1;k&&($.key==="Tab"&&$.preventDefault(),!N&&T&&V($.key));const O=R.current;if($.target!==O||!B_.includes($.key))return;$.preventDefault();const K=C().filter(M=>!M.disabled).map(M=>M.ref.current);ym.includes($.key)&&K.reverse(),ck(K)}),onBlur:L(e.onBlur,$=>{$.currentTarget.contains($.target)||(window.clearTimeout(I.current),F.current="")}),onPointerMove:L(e.onPointerMove,Bn($=>{const J=$.target,k=G.current!==$.clientX;if($.currentTarget.contains(J)&&k){const N=$.clientX>G.current?"right":"left";U.current=N,G.current=$.clientX}}))})})})})})})});Pm.displayName=Be;var J_="MenuGroup",Ha=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(lr.div,{role:"group",...r,ref:t})});Ha.displayName=J_;var ek="MenuLabel",Rm=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(lr.div,{...r,ref:t})});Rm.displayName=ek;var Ur="MenuItem",nc="menu.itemSelect",Mo=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=c.useRef(null),a=fr(Ur,e.__scopeMenu),i=Ba(Ur,e.__scopeMenu),l=ee(t,s),d=c.useRef(!1),f=()=>{const u=s.current;if(!n&&u){const m=new CustomEvent(nc,{bubbles:!0,cancelable:!0});u.addEventListener(nc,h=>r?.(h),{once:!0}),F_(u,m),m.defaultPrevented?d.current=!1:a.onClose()}};return p.jsx(Nm,{...o,ref:l,disabled:n,onClick:L(e.onClick,f),onPointerDown:u=>{e.onPointerDown?.(u),d.current=!0},onPointerUp:L(e.onPointerUp,u=>{d.current||u.currentTarget?.click()}),onKeyDown:L(e.onKeyDown,u=>{const m=i.searchRef.current!=="";n||m&&u.key===" "||Ns.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Mo.displayName=Ur;var Nm=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=Ba(Ur,n),i=xm(n),l=c.useRef(null),d=ee(t,l),[f,u]=c.useState(!1),[m,h]=c.useState("");return c.useEffect(()=>{const g=l.current;g&&h((g.textContent??"").trim())},[s.children]),p.jsx(Ln.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:p.jsx(po,{asChild:!0,...i,focusable:!r,children:p.jsx(lr.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:d,onPointerMove:L(e.onPointerMove,Bn(g=>{r?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,Bn(g=>a.onItemLeave(g))),onFocus:L(e.onFocus,()=>u(!0)),onBlur:L(e.onBlur,()=>u(!1))})})})}),tk="MenuCheckboxItem",_m=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Om,{scope:e.__scopeMenu,checked:n,children:p.jsx(Mo,{role:"menuitemcheckbox","aria-checked":Kr(n)?"mixed":n,...o,ref:t,"data-state":Ga(n),onSelect:L(o.onSelect,()=>r?.(Kr(n)?!0:!n),{checkForDefaultPrevented:!1})})})});_m.displayName=tk;var km="MenuRadioGroup",[nk,rk]=Gt(km,{value:void 0,onValueChange:()=>{}}),Mm=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=xe(r);return p.jsx(nk,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Ha,{...o,ref:t})})});Mm.displayName=km;var Tm="MenuRadioItem",Dm=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=rk(Tm,e.__scopeMenu),s=n===o.value;return p.jsx(Om,{scope:e.__scopeMenu,checked:s,children:p.jsx(Mo,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Ga(s),onSelect:L(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Dm.displayName=Tm;var Ya="MenuItemIndicator",[Om,ok]=Gt(Ya,{checked:!1}),Am=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=ok(Ya,n);return p.jsx(Se,{present:r||Kr(s.checked)||s.checked===!0,children:p.jsx(lr.span,{...o,ref:t,"data-state":Ga(s.checked)})})});Am.displayName=Ya;var sk="MenuSeparator",Im=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(lr.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Im.displayName=sk;var ak="MenuArrow",jm=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=dr(n);return p.jsx(oo,{...o,...r,ref:t})});jm.displayName=ak;var za="MenuSub",[ik,$m]=Gt(za),Wm=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=jt(za,t),a=dr(t),[i,l]=c.useState(null),[d,f]=c.useState(null),u=xe(o);return c.useEffect(()=>(s.open===!1&&u(!1),()=>u(!1)),[s.open,u]),p.jsx(qn,{...a,children:p.jsx(wm,{scope:t,open:r,onOpenChange:u,content:d,onContentChange:f,children:p.jsx(ik,{scope:t,contentId:me(),triggerId:me(),trigger:i,onTriggerChange:l,children:n})})})};Wm.displayName=za;var On="MenuSubTrigger",Fm=c.forwardRef((e,t)=>{const n=jt(On,e.__scopeMenu),r=fr(On,e.__scopeMenu),o=$m(On,e.__scopeMenu),s=Ba(On,e.__scopeMenu),a=c.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=s,d={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),l(null)}},[i,l]),p.jsx(Fa,{asChild:!0,...d,children:p.jsx(Nm,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Vm(n.open),...e,ref:le(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:L(e.onPointerMove,Bn(u=>{s.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:L(e.onPointerLeave,Bn(u=>{f();const m=n.content?.getBoundingClientRect();if(m){const h=n.content?.dataset.side,g=h==="right",v=g?-5:5,y=m[g?"left":"right"],b=m[g?"right":"left"];s.onPointerGraceIntentChange({area:[{x:u.clientX+v,y:u.clientY},{x:y,y:m.top},{x:b,y:m.top},{x:b,y:m.bottom},{x:y,y:m.bottom}],side:h}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(u),u.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:L(e.onKeyDown,u=>{const m=s.searchRef.current!=="";e.disabled||m&&u.key===" "||V_[r.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});Fm.displayName=On;var Lm="MenuSubContent",Bm=c.forwardRef((e,t)=>{const n=Cm(Be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=jt(Be,e.__scopeMenu),a=fr(Be,e.__scopeMenu),i=$m(Lm,e.__scopeMenu),l=c.useRef(null),d=ee(t,l);return p.jsx(Ln.Provider,{scope:e.__scopeMenu,children:p.jsx(Se,{present:r||s.open,children:p.jsx(Ln.Slot,{scope:e.__scopeMenu,children:p.jsx(Va,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:d,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{a.isUsingKeyboardRef.current&&l.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:L(e.onFocusOutside,f=>{f.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:L(e.onKeyDown,f=>{const u=f.currentTarget.contains(f.target),m=H_[a.dir].includes(f.key);u&&m&&(s.onOpenChange(!1),i.trigger?.focus(),f.preventDefault())})})})})})});Bm.displayName=Lm;function Vm(e){return e?"open":"closed"}function Kr(e){return e==="indeterminate"}function Ga(e){return Kr(e)?"indeterminate":e?"checked":"unchecked"}function ck(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function lk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function uk(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=lk(e,Math.max(s,0));o.length===1&&(a=a.filter(d=>d!==n));const l=a.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function dk(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],l=t[a],d=i.x,f=i.y,u=l.x,m=l.y;f>r!=m>r&&n<(u-d)*(r-f)/(m-f)+d&&(o=!o)}return o}function fk(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return dk(n,t)}function Bn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var pk=Sm,mk=Fa,hk=Em,gk=Pm,vk=Ha,yk=Rm,bk=Mo,xk=_m,wk=Mm,Sk=Dm,Ck=Am,Ek=Im,Pk=jm,Rk=Wm,Nk=Fm,_k=Bm,To="DropdownMenu",[kk]=w_(To,[bm]),Ne=bm(),[Mk,Hm]=kk(To),Ym=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:i=!0}=e,l=Ne(t),d=c.useRef(null),[f,u]=we({prop:o,defaultProp:s??!1,onChange:a,caller:To});return p.jsx(Mk,{scope:t,triggerId:me(),triggerRef:d,contentId:me(),open:f,onOpenChange:u,onOpenToggle:c.useCallback(()=>u(m=>!m),[u]),modal:i,children:p.jsx(pk,{...l,open:f,onOpenChange:u,dir:r,modal:i,children:n})})};Ym.displayName=To;var zm="DropdownMenuTrigger",Gm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Hm(zm,n),a=Ne(n);return p.jsx(mk,{asChild:!0,...a,children:p.jsx(M_.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:le(t,s.triggerRef),onPointerDown:L(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:L(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Gm.displayName=zm;var Tk="DropdownMenuPortal",Um=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ne(t);return p.jsx(hk,{...r,...n})};Um.displayName=Tk;var Km="DropdownMenuContent",qm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hm(Km,n),s=Ne(n),a=c.useRef(!1);return p.jsx(gk,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,i=>{a.current||o.triggerRef.current?.focus(),a.current=!1,i.preventDefault()}),onInteractOutside:L(e.onInteractOutside,i=>{const l=i.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,f=l.button===2||d;(!o.modal||f)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qm.displayName=Km;var Dk="DropdownMenuGroup",Xm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return p.jsx(vk,{...o,...r,ref:t})});Xm.displayName=Dk;var Ok="DropdownMenuLabel",Zm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return p.jsx(yk,{...o,...r,ref:t})});Zm.displayName=Ok;var Ak="DropdownMenuItem",Qm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return p.jsx(bk,{...o,...r,ref:t})});Qm.displayName=Ak;var Ik="DropdownMenuCheckboxItem",Jm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return p.jsx(xk,{...o,...r,ref:t})});Jm.displayName=Ik;var jk="DropdownMenuRadioGroup",eh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return p.jsx(wk,{...o,...r,ref:t})});eh.displayName=jk;var $k="DropdownMenuRadioItem",th=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return p.jsx(Sk,{...o,...r,ref:t})});th.displayName=$k;var Wk="DropdownMenuItemIndicator",nh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return p.jsx(Ck,{...o,...r,ref:t})});nh.displayName=Wk;var Fk="DropdownMenuSeparator",rh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return p.jsx(Ek,{...o,...r,ref:t})});rh.displayName=Fk;var Lk="DropdownMenuArrow",Bk=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return p.jsx(Pk,{...o,...r,ref:t})});Bk.displayName=Lk;var Vk=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,a=Ne(t),[i,l]=we({prop:r,defaultProp:s??!1,onChange:o,caller:"DropdownMenuSub"});return p.jsx(Rk,{...a,open:i,onOpenChange:l,children:n})},Hk="DropdownMenuSubTrigger",oh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return p.jsx(Nk,{...o,...r,ref:t})});oh.displayName=Hk;var Yk="DropdownMenuSubContent",sh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return p.jsx(_k,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});sh.displayName=Yk;var zk=Ym,Gk=Gm,ah=Um,ih=qm,Uk=Xm,ch=Zm,lh=Qm,uh=Jm,Kk=eh,dh=th,fh=nh,ph=rh,qk=Vk,mh=oh,hh=sh;const Xk=zk,Zk=Gk,Qk=Uk,Jk=ah,eM=qk,tM=Kk,gh=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>p.jsxs(mh,{ref:o,className:A("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,p.jsx(Bs,{className:"ml-auto h-4 w-4"})]}));gh.displayName=mh.displayName;const vh=c.forwardRef(({className:e,...t},n)=>p.jsx(hh,{ref:n,className:A("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));vh.displayName=hh.displayName;const yh=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(ah,{children:p.jsx(ih,{ref:r,sideOffset:t,className:A("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));yh.displayName=ih.displayName;const bh=c.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(lh,{ref:r,className:A("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));bh.displayName=lh.displayName;const xh=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>p.jsxs(uh,{ref:o,className:A("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(fh,{children:p.jsx(Fs,{className:"h-4 w-4"})})}),t]}));xh.displayName=uh.displayName;const wh=c.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(dh,{ref:r,className:A("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(fh,{children:p.jsx(sl,{className:"h-2 w-2 fill-current"})})}),t]}));wh.displayName=dh.displayName;const Sh=c.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(ch,{ref:r,className:A("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Sh.displayName=ch.displayName;const Ch=c.forwardRef(({className:e,...t},n)=>p.jsx(ph,{ref:n,className:A("-mx-1 my-1 h-px bg-muted",e),...t}));Ch.displayName=ph.displayName;const Eh=({className:e,...t})=>p.jsx("span",{className:A("ml-auto text-xs tracking-widest opacity-60",e),...t});Eh.displayName="DropdownMenuShortcut";function nM(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),l=n.length;n=[...n,a];const d=u=>{const{scope:m,children:h,...g}=u,v=m?.[e]?.[l]||i,y=c.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:y,children:h})};d.displayName=s+"Provider";function f(u,m){const h=m?.[e]?.[l]||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,rM(o,...t)]}function rM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function oM(e){const t=sM(e),n=c.forwardRef((r,o)=>{const{children:s,...a}=r,i=c.Children.toArray(s),l=i.find(iM);if(l){const d=l.props.children,f=i.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function sM(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const a=lM(o),i=cM(s,o.props);return o.type!==c.Fragment&&(i.ref=r?le(r,a):a),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ph=Symbol("radix.slottable");function aM(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ph,t}function iM(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ph}function cM(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function lM(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var uM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dM=uM.reduce((e,t)=>{const n=oM(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),[Do]=nM("Tooltip",[Mt]),Oo=Mt(),Rh="TooltipProvider",fM=700,_s="tooltip.open",[pM,Ua]=Do(Rh),Nh=e=>{const{__scopeTooltip:t,delayDuration:n=fM,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=c.useRef(!0),i=c.useRef(!1),l=c.useRef(0);return c.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),p.jsx(pM,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:c.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:s})};Nh.displayName=Rh;var Vn="Tooltip",[mM,Ao]=Do(Vn),_h=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,l=Ua(Vn,e.__scopeTooltip),d=Oo(t),[f,u]=c.useState(null),m=me(),h=c.useRef(0),g=a??l.disableHoverableContent,v=i??l.delayDuration,y=c.useRef(!1),[b,x]=we({prop:r,defaultProp:o??!1,onChange:R=>{R?(l.onOpen(),document.dispatchEvent(new CustomEvent(_s))):l.onClose(),s?.(R)},caller:Vn}),S=c.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),C=c.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,x(!0)},[x]),P=c.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),E=c.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,x(!0),h.current=0},v)},[v,x]);return c.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p.jsx(qn,{...d,children:p.jsx(mM,{scope:t,contentId:m,open:b,stateAttribute:S,trigger:f,onTriggerChange:u,onTriggerEnter:c.useCallback(()=>{l.isOpenDelayedRef.current?E():C()},[l.isOpenDelayedRef,E,C]),onTriggerLeave:c.useCallback(()=>{g?P():(window.clearTimeout(h.current),h.current=0)},[P,g]),onOpen:C,onClose:P,disableHoverableContent:g,children:n})})};_h.displayName=Vn;var ks="TooltipTrigger",kh=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ao(ks,n),s=Ua(ks,n),a=Oo(n),i=c.useRef(null),l=ee(t,i,o.onTriggerChange),d=c.useRef(!1),f=c.useRef(!1),u=c.useCallback(()=>d.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),p.jsx(Xn,{asChild:!0,...a,children:p.jsx(dM.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:L(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:L(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:L(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:L(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:L(e.onBlur,o.onClose),onClick:L(e.onClick,o.onClose)})})});kh.displayName=ks;var hM="TooltipPortal",[YT,gM]=Do(hM,{forceMount:void 0}),un="TooltipContent",Mh=c.forwardRef((e,t)=>{const n=gM(un,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=Ao(un,e.__scopeTooltip);return p.jsx(Se,{present:r||a.open,children:a.disableHoverableContent?p.jsx(Th,{side:o,...s,ref:t}):p.jsx(vM,{side:o,...s,ref:t})})}),vM=c.forwardRef((e,t)=>{const n=Ao(un,e.__scopeTooltip),r=Ua(un,e.__scopeTooltip),o=c.useRef(null),s=ee(t,o),[a,i]=c.useState(null),{trigger:l,onClose:d}=n,f=o.current,{onPointerInTransitChange:u}=r,m=c.useCallback(()=>{i(null),u(!1)},[u]),h=c.useCallback((g,v)=>{const y=g.currentTarget,b={x:g.clientX,y:g.clientY},x=SM(b,y.getBoundingClientRect()),S=CM(b,x),C=EM(v.getBoundingClientRect()),P=RM([...S,...C]);i(P),u(!0)},[u]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(l&&f){const g=y=>h(y,f),v=y=>h(y,l);return l.addEventListener("pointerleave",g),f.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",g),f.removeEventListener("pointerleave",v)}}},[l,f,h,m]),c.useEffect(()=>{if(a){const g=v=>{const y=v.target,b={x:v.clientX,y:v.clientY},x=l?.contains(y)||f?.contains(y),S=!PM(b,a);x?m():S&&(m(),d())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,f,a,d,m]),p.jsx(Th,{...e,ref:s})}),[yM,bM]=Do(Vn,{isInside:!1}),xM=aM("TooltipContent"),Th=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=Ao(un,n),d=Oo(n),{onClose:f}=l;return c.useEffect(()=>(document.addEventListener(_s,f),()=>document.removeEventListener(_s,f)),[f]),c.useEffect(()=>{if(l.trigger){const u=m=>{m.target?.contains(l.trigger)&&f()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,f]),p.jsx(mn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:u=>u.preventDefault(),onDismiss:f,children:p.jsxs(ro,{"data-state":l.stateAttribute,...d,...i,ref:t,style:{...i.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:[p.jsx(xM,{children:r}),p.jsx(yM,{scope:n,isInside:!0,children:p.jsx(Ew,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Mh.displayName=un;var Dh="TooltipArrow",wM=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Oo(n);return bM(Dh,n).isInside?null:p.jsx(oo,{...o,...r,ref:t})});wM.displayName=Dh;function SM(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function CM(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function EM(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function PM(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],l=t[a],d=i.x,f=i.y,u=l.x,m=l.y;f>r!=m>r&&n<(u-d)*(r-f)/(m-f)+d&&(o=!o)}return o}function RM(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),NM(t)}function NM(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}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 _M=Nh,kM=_h,MM=kh,Oh=Mh;const TM=_M,DM=kM,OM=MM,Ah=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(Oh,{ref:r,sideOffset:t,className:A("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Ah.displayName=Oh.displayName;var rc=1,AM=.9,IM=.8,jM=.17,is=.1,cs=.999,$M=.9999,WM=.99,FM=/[\\\/_+.#"@\[\(\{&]/,LM=/[\\\/_+.#"@\[\(\{&]/g,BM=/[\s-]/,Ih=/[\s-]/g;function Ms(e,t,n,r,o,s,a){if(s===t.length)return o===e.length?rc:WM;var i=`${o},${s}`;if(a[i]!==void 0)return a[i];for(var l=r.charAt(s),d=n.indexOf(l,o),f=0,u,m,h,g;d>=0;)u=Ms(e,t,n,r,d+1,s+1,a),u>f&&(d===o?u*=rc:FM.test(e.charAt(d-1))?(u*=IM,h=e.slice(o,d-1).match(LM),h&&o>0&&(u*=Math.pow(cs,h.length))):BM.test(e.charAt(d-1))?(u*=AM,g=e.slice(o,d-1).match(Ih),g&&o>0&&(u*=Math.pow(cs,g.length))):(u*=jM,o>0&&(u*=Math.pow(cs,d-o))),e.charAt(d)!==t.charAt(s)&&(u*=$M)),(u<is&&n.charAt(d-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(d-1)!==r.charAt(s))&&(m=Ms(e,t,n,r,d+1,s+2,a),m*is>u&&(u=m*is)),u>f&&(f=u),d=n.indexOf(l,d+1);return a[i]=f,f}function oc(e){return e.toLowerCase().replace(Ih," ")}function VM(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Ms(e,t,oc(e),oc(t),0,0,{})}var kn='[cmdk-group=""]',ls='[cmdk-group-items=""]',HM='[cmdk-group-heading=""]',jh='[cmdk-item=""]',sc=`${jh}:not([aria-disabled="true"])`,Ts="cmdk-item-select",tn="data-value",YM=(e,t,n)=>VM(e,t,n),$h=c.createContext(void 0),pr=()=>c.useContext($h),Wh=c.createContext(void 0),Ka=()=>c.useContext(Wh),Fh=c.createContext(void 0),Lh=c.forwardRef((e,t)=>{let n=nn(()=>{var N,T;return{search:"",value:(T=(N=e.value)!=null?N:e.defaultValue)!=null?T:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=nn(()=>new Set),o=nn(()=>new Map),s=nn(()=>new Map),a=nn(()=>new Set),i=Bh(e),{label:l,children:d,value:f,onValueChange:u,filter:m,shouldFilter:h,loop:g,disablePointerSelection:v=!1,vimBindings:y=!0,...b}=e,x=me(),S=me(),C=me(),P=c.useRef(null),E=tT();zt(()=>{if(f!==void 0){let N=f.trim();n.current.value=N,R.emit()}},[f]),zt(()=>{E(6,U)},[]);let R=c.useMemo(()=>({subscribe:N=>(a.current.add(N),()=>a.current.delete(N)),snapshot:()=>n.current,setState:(N,T,O)=>{var W,K,M,H;if(!Object.is(n.current[N],T)){if(n.current[N]=T,N==="search")z(),F(),E(1,B);else if(N==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let te=document.getElementById(C);te?te.focus():(W=document.getElementById(x))==null||W.focus()}if(E(7,()=>{var te;n.current.selectedItemId=(te=G())==null?void 0:te.id,R.emit()}),O||E(5,U),((K=i.current)==null?void 0:K.value)!==void 0){let te=T??"";(H=(M=i.current).onValueChange)==null||H.call(M,te);return}}R.emit()}},emit:()=>{a.current.forEach(N=>N())}}),[]),_=c.useMemo(()=>({value:(N,T,O)=>{var W;T!==((W=s.current.get(N))==null?void 0:W.value)&&(s.current.set(N,{value:T,keywords:O}),n.current.filtered.items.set(N,I(T,O)),E(2,()=>{F(),R.emit()}))},item:(N,T)=>(r.current.add(N),T&&(o.current.has(T)?o.current.get(T).add(N):o.current.set(T,new Set([N]))),E(3,()=>{z(),F(),n.current.value||B(),R.emit()}),()=>{s.current.delete(N),r.current.delete(N),n.current.filtered.items.delete(N);let O=G();E(4,()=>{z(),O?.getAttribute("id")===N&&B(),R.emit()})}),group:N=>(o.current.has(N)||o.current.set(N,new Set),()=>{s.current.delete(N),o.current.delete(N)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:x,inputId:C,labelId:S,listInnerRef:P}),[]);function I(N,T){var O,W;let K=(W=(O=i.current)==null?void 0:O.filter)!=null?W:YM;return N?K(N,n.current.search,T):0}function F(){if(!n.current.search||i.current.shouldFilter===!1)return;let N=n.current.filtered.items,T=[];n.current.filtered.groups.forEach(W=>{let K=o.current.get(W),M=0;K.forEach(H=>{let te=N.get(H);M=Math.max(te,M)}),T.push([W,M])});let O=P.current;Z().sort((W,K)=>{var M,H;let te=W.getAttribute("id"),oe=K.getAttribute("id");return((M=N.get(oe))!=null?M:0)-((H=N.get(te))!=null?H:0)}).forEach(W=>{let K=W.closest(ls);K?K.appendChild(W.parentElement===K?W:W.closest(`${ls} > *`)):O.appendChild(W.parentElement===O?W:W.closest(`${ls} > *`))}),T.sort((W,K)=>K[1]-W[1]).forEach(W=>{var K;let M=(K=P.current)==null?void 0:K.querySelector(`${kn}[${tn}="${encodeURIComponent(W[0])}"]`);M?.parentElement.appendChild(M)})}function B(){let N=Z().find(O=>O.getAttribute("aria-disabled")!=="true"),T=N?.getAttribute(tn);R.setState("value",T||void 0)}function z(){var N,T,O,W;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let K=0;for(let M of r.current){let H=(T=(N=s.current.get(M))==null?void 0:N.value)!=null?T:"",te=(W=(O=s.current.get(M))==null?void 0:O.keywords)!=null?W:[],oe=I(H,te);n.current.filtered.items.set(M,oe),oe>0&&K++}for(let[M,H]of o.current)for(let te of H)if(n.current.filtered.items.get(te)>0){n.current.filtered.groups.add(M);break}n.current.filtered.count=K}function U(){var N,T,O;let W=G();W&&(((N=W.parentElement)==null?void 0:N.firstChild)===W&&((O=(T=W.closest(kn))==null?void 0:T.querySelector(HM))==null||O.scrollIntoView({block:"nearest"})),W.scrollIntoView({block:"nearest"}))}function G(){var N;return(N=P.current)==null?void 0:N.querySelector(`${jh}[aria-selected="true"]`)}function Z(){var N;return Array.from(((N=P.current)==null?void 0:N.querySelectorAll(sc))||[])}function j(N){let T=Z()[N];T&&R.setState("value",T.getAttribute(tn))}function V(N){var T;let O=G(),W=Z(),K=W.findIndex(H=>H===O),M=W[K+N];(T=i.current)!=null&&T.loop&&(M=K+N<0?W[W.length-1]:K+N===W.length?W[0]:W[K+N]),M&&R.setState("value",M.getAttribute(tn))}function D(N){let T=G(),O=T?.closest(kn),W;for(;O&&!W;)O=N>0?JM(O,kn):eT(O,kn),W=O?.querySelector(sc);W?R.setState("value",W.getAttribute(tn)):V(N)}let $=()=>j(Z().length-1),J=N=>{N.preventDefault(),N.metaKey?$():N.altKey?D(1):V(1)},k=N=>{N.preventDefault(),N.metaKey?j(0):N.altKey?D(-1):V(-1)};return c.createElement(Me.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:N=>{var T;(T=b.onKeyDown)==null||T.call(b,N);let O=N.nativeEvent.isComposing||N.keyCode===229;if(!(N.defaultPrevented||O))switch(N.key){case"n":case"j":{y&&N.ctrlKey&&J(N);break}case"ArrowDown":{J(N);break}case"p":case"k":{y&&N.ctrlKey&&k(N);break}case"ArrowUp":{k(N);break}case"Home":{N.preventDefault(),j(0);break}case"End":{N.preventDefault(),$();break}case"Enter":{N.preventDefault();let W=G();if(W){let K=new Event(Ts);W.dispatchEvent(K)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:rT},l),Io(e,N=>c.createElement(Wh.Provider,{value:R},c.createElement($h.Provider,{value:_},N))))}),zM=c.forwardRef((e,t)=>{var n,r;let o=me(),s=c.useRef(null),a=c.useContext(Fh),i=pr(),l=Bh(e),d=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:a?.forceMount;zt(()=>{if(!d)return i.item(o,a?.id)},[d]);let f=Vh(o,s,[e.value,e.children,s],e.keywords),u=Ka(),m=kt(E=>E.value&&E.value===f.current),h=kt(E=>d||i.filter()===!1?!0:E.search?E.filtered.items.get(o)>0:!0);c.useEffect(()=>{let E=s.current;if(!(!E||e.disabled))return E.addEventListener(Ts,g),()=>E.removeEventListener(Ts,g)},[h,e.onSelect,e.disabled]);function g(){var E,R;v(),(R=(E=l.current).onSelect)==null||R.call(E,f.current)}function v(){u.setState("value",f.current,!0)}if(!h)return null;let{disabled:y,value:b,onSelect:x,forceMount:S,keywords:C,...P}=e;return c.createElement(Me.div,{ref:le(s,t),...P,id:o,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!m,"data-disabled":!!y,"data-selected":!!m,onPointerMove:y||i.getDisablePointerSelection()?void 0:v,onClick:y?void 0:g},e.children)}),GM=c.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,a=me(),i=c.useRef(null),l=c.useRef(null),d=me(),f=pr(),u=kt(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(a):!0);zt(()=>f.group(a),[]),Vh(a,i,[e.value,e.heading,l]);let m=c.useMemo(()=>({id:a,forceMount:o}),[o]);return c.createElement(Me.div,{ref:le(i,t),...s,"cmdk-group":"",role:"presentation",hidden:u?void 0:!0},n&&c.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),Io(e,h=>c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},c.createElement(Fh.Provider,{value:m},h))))}),UM=c.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=c.useRef(null),s=kt(a=>!a.search);return!n&&!s?null:c.createElement(Me.div,{ref:le(o,t),...r,"cmdk-separator":"",role:"separator"})}),KM=c.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=Ka(),a=kt(d=>d.search),i=kt(d=>d.selectedItemId),l=pr();return c.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),c.createElement(Me.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:o?e.value:a,onChange:d=>{o||s.setState("search",d.target.value),n?.(d.target.value)}})}),qM=c.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=c.useRef(null),a=c.useRef(null),i=kt(d=>d.selectedItemId),l=pr();return c.useEffect(()=>{if(a.current&&s.current){let d=a.current,f=s.current,u,m=new ResizeObserver(()=>{u=requestAnimationFrame(()=>{let h=d.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return m.observe(d),()=>{cancelAnimationFrame(u),m.unobserve(d)}}},[]),c.createElement(Me.div,{ref:le(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:l.listId},Io(e,d=>c.createElement("div",{ref:le(a,l.listInnerRef),"cmdk-list-sizer":""},d)))}),XM=c.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:a,...i}=e;return c.createElement(_a,{open:n,onOpenChange:r},c.createElement(ka,{container:a},c.createElement(ar,{"cmdk-overlay":"",className:o}),c.createElement(ir,{"aria-label":e.label,"cmdk-dialog":"",className:s},c.createElement(Lh,{ref:t,...i}))))}),ZM=c.forwardRef((e,t)=>kt(n=>n.filtered.count===0)?c.createElement(Me.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),QM=c.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return c.createElement(Me.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Io(e,a=>c.createElement("div",{"aria-hidden":!0},a)))}),De=Object.assign(Lh,{List:qM,Item:zM,Input:KM,Group:GM,Separator:UM,Dialog:XM,Empty:ZM,Loading:QM});function JM(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function eT(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Bh(e){let t=c.useRef(e);return zt(()=>{t.current=e}),t}var zt=typeof window>"u"?c.useEffect:c.useLayoutEffect;function nn(e){let t=c.useRef();return t.current===void 0&&(t.current=e()),t}function kt(e){let t=Ka(),n=()=>e(t.snapshot());return c.useSyncExternalStore(t.subscribe,n,n)}function Vh(e,t,n,r=[]){let o=c.useRef(),s=pr();return zt(()=>{var a;let i=(()=>{var d;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),l=r.map(d=>d.trim());s.value(e,i,l),(a=t.current)==null||a.setAttribute(tn,i),o.current=i}),o}var tT=()=>{let[e,t]=c.useState(),n=nn(()=>new Map);return zt(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function nT(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Io({asChild:e,children:t},n){return e&&c.isValidElement(t)?c.cloneElement(nT(t),{ref:t.ref},n(t.props.children)):n(t)}var rT={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const qa=c.forwardRef(({className:e,...t},n)=>p.jsx(De,{ref:n,className:A("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));qa.displayName=De.displayName;const oT=({children:e,...t})=>p.jsx(Up,{...t,children:p.jsx(Ta,{className:"overflow-hidden p-0 shadow-lg",children:p.jsx(qa,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Hh=c.forwardRef(({className:e,...t},n)=>p.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[p.jsx(my,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),p.jsx(De.Input,{ref:n,className:A("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Hh.displayName=De.Input.displayName;const Yh=c.forwardRef(({className:e,...t},n)=>p.jsx(De.List,{ref:n,className:A("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Yh.displayName=De.List.displayName;const zh=c.forwardRef((e,t)=>p.jsx(De.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));zh.displayName=De.Empty.displayName;const Gh=c.forwardRef(({className:e,...t},n)=>p.jsx(De.Group,{ref:n,className:A("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Gh.displayName=De.Group.displayName;const Uh=c.forwardRef(({className:e,...t},n)=>p.jsx(De.Separator,{ref:n,className:A("-mx-1 h-px bg-border",e),...t}));Uh.displayName=De.Separator.displayName;const Kh=c.forwardRef(({className:e,...t},n)=>p.jsx(De.Item,{ref:n,className:A("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected='true']:text-accent-foreground data-[disabled=true]:opacity-50",e),...t}));Kh.displayName=De.Item.displayName;const qh=({className:e,...t})=>p.jsx("span",{className:A("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});qh.displayName="CommandShortcut";const sT=pn("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Xh=c.forwardRef(({className:e,variant:t,...n},r)=>p.jsx("div",{ref:r,role:"alert",className:A(sT({variant:t}),e),...n}));Xh.displayName="Alert";const Zh=c.forwardRef(({className:e,...t},n)=>p.jsx("h5",{ref:n,className:A("mb-1 font-medium leading-none tracking-tight",e),...t}));Zh.displayName="AlertTitle";const Qh=c.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:A("text-sm [&_p]:leading-relaxed",e),...t}));Qh.displayName="AlertDescription";var Xa="Progress",Za=100,[aT]=Wc(Xa),[iT,cT]=aT(Xa),Jh=c.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:s=lT,...a}=e;(o||o===0)&&!ac(o)&&console.error(uT(`${o}`,"Progress"));const i=ac(o)?o:Za;r!==null&&!ic(r,i)&&console.error(dT(`${r}`,"Progress"));const l=ic(r,i)?r:null,d=qr(l)?s(l,i):void 0;return p.jsx(iT,{scope:n,value:l,max:i,children:p.jsx(Me.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":qr(l)?l:void 0,"aria-valuetext":d,role:"progressbar","data-state":ng(l,i),"data-value":l??void 0,"data-max":i,...a,ref:t})})});Jh.displayName=Xa;var eg="ProgressIndicator",tg=c.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=cT(eg,n);return p.jsx(Me.div,{"data-state":ng(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});tg.displayName=eg;function lT(e,t){return`${Math.round(e/t*100)}%`}function ng(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function qr(e){return typeof e=="number"}function ac(e){return qr(e)&&!isNaN(e)&&e>0}function ic(e,t){return qr(e)&&!isNaN(e)&&e<=t&&e>=0}function uT(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Za}\`.`}function dT(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
51
+ - a positive number
52
+ - less than the value passed to \`max\` (or ${Za} if no \`max\` prop is set)
53
+ - \`null\` or \`undefined\` if the progress is indeterminate.
54
+
55
+ Defaulting to \`null\`.`}var rg=Jh,fT=tg;const og=c.forwardRef(({className:e,value:t,...n},r)=>p.jsx(rg,{ref:r,className:A("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:p.jsx(fT,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));og.displayName=rg.displayName;function pT({className:e,...t}){return p.jsx("div",{className:A("animate-pulse rounded-md bg-muted",e),...t})}function mT(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const hT=e=>{switch(e){case"success":return yT;case"info":return xT;case"warning":return bT;case"error":return wT;default:return null}},gT=Array(12).fill(0),vT=({visible:e,className:t})=>w.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},w.createElement("div",{className:"sonner-spinner"},gT.map((n,r)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),yT=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),bT=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),xT=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),wT=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ST=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},w.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),CT=()=>{const[e,t]=w.useState(document.hidden);return w.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Ds=1;class ET{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Ds++,a=this.toasts.find(l=>l.id===s),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),a?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:i,title:r}):l):this.addToast({title:r,...o,dismissible:i,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,a;const i=o.then(async d=>{if(a=["resolve",d],w.isValidElement(d))s=!1,this.create({id:r,type:"default",message:d});else if(RT(d)&&!d.ok){s=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,m=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,g=typeof u=="object"&&!w.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:m,...g})}else if(d instanceof Error){s=!1;const u=typeof n.error=="function"?await n.error(d):n.error,m=typeof n.description=="function"?await n.description(d):n.description,g=typeof u=="object"&&!w.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:m,...g})}else if(n.success!==void 0){s=!1;const u=typeof n.success=="function"?await n.success(d):n.success,m=typeof n.description=="function"?await n.description(d):n.description,g=typeof u=="object"&&!w.isValidElement(u)?u:{message:u};this.create({id:r,type:"success",description:m,...g})}}).catch(async d=>{if(a=["reject",d],n.error!==void 0){s=!1;const f=typeof n.error=="function"?await n.error(d):n.error,u=typeof n.description=="function"?await n.description(d):n.description,h=typeof f=="object"&&!w.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:u,...h})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((d,f)=>i.then(()=>a[0]==="reject"?f(a[1]):d(a[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||Ds++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Te=new ET,PT=(e,t)=>{const n=t?.id||Ds++;return Te.addToast({title:e,...t,id:n}),n},RT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",NT=PT,_T=()=>Te.toasts,kT=()=>Te.getActiveToasts();Object.assign(NT,{success:Te.success,info:Te.info,warning:Te.warning,error:Te.error,custom:Te.custom,message:Te.message,promise:Te.promise,dismiss:Te.dismiss,loading:Te.loading},{getHistory:_T,getToasts:kT});mT("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Tr(e){return e.label!==void 0}const MT=3,TT="24px",DT="16px",cc=4e3,OT=356,AT=14,IT=45,jT=200;function et(...e){return e.filter(Boolean).join(" ")}function $T(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const WT=e=>{var t,n,r,o,s,a,i,l,d;const{invert:f,toast:u,unstyled:m,interacting:h,setHeights:g,visibleToasts:v,heights:y,index:b,toasts:x,expanded:S,removeToast:C,defaultRichColors:P,closeButton:E,style:R,cancelButtonStyle:_,actionButtonStyle:I,className:F="",descriptionClassName:B="",duration:z,position:U,gap:G,expandByDefault:Z,classNames:j,icons:V,closeButtonAriaLabel:D="Close toast"}=e,[$,J]=w.useState(null),[k,N]=w.useState(null),[T,O]=w.useState(!1),[W,K]=w.useState(!1),[M,H]=w.useState(!1),[te,oe]=w.useState(!1),[ae,ie]=w.useState(!1),[Ee,Oe]=w.useState(0),[yt,bt]=w.useState(0),He=w.useRef(u.duration||z||cc),mr=w.useRef(null),Ye=w.useRef(null),$o=b===0,Wo=b+1<=v,_e=u.type,ut=u.dismissible!==!1,xn=u.className||"",wn=u.descriptionClassName||"",Ut=w.useMemo(()=>y.findIndex(Y=>Y.toastId===u.id)||0,[y,u.id]),Fo=w.useMemo(()=>{var Y;return(Y=u.closeButton)!=null?Y:E},[u.closeButton,E]),hr=w.useMemo(()=>u.duration||z||cc,[u.duration,z]),Sn=w.useRef(0),xt=w.useRef(0),gr=w.useRef(0),wt=w.useRef(null),[Lo,Bo]=U.split("-"),vr=w.useMemo(()=>y.reduce((Y,ve,Ce)=>Ce>=Ut?Y:Y+ve.height,0),[y,Ut]),yr=CT(),br=u.invert||f,Cn=_e==="loading";xt.current=w.useMemo(()=>Ut*G+vr,[Ut,vr]),w.useEffect(()=>{He.current=hr},[hr]),w.useEffect(()=>{O(!0)},[]),w.useEffect(()=>{const Y=Ye.current;if(Y){const ve=Y.getBoundingClientRect().height;return bt(ve),g(Ce=>[{toastId:u.id,height:ve,position:u.position},...Ce]),()=>g(Ce=>Ce.filter(ke=>ke.toastId!==u.id))}},[g,u.id]),w.useLayoutEffect(()=>{if(!T)return;const Y=Ye.current,ve=Y.style.height;Y.style.height="auto";const Ce=Y.getBoundingClientRect().height;Y.style.height=ve,bt(Ce),g(ke=>ke.find(he=>he.toastId===u.id)?ke.map(he=>he.toastId===u.id?{...he,height:Ce}:he):[{toastId:u.id,height:Ce,position:u.position},...ke])},[T,u.title,u.description,g,u.id,u.jsx,u.action,u.cancel]);const ne=w.useCallback(()=>{K(!0),Oe(xt.current),g(Y=>Y.filter(ve=>ve.toastId!==u.id)),setTimeout(()=>{C(u)},jT)},[u,C,g,xt]);w.useEffect(()=>{if(u.promise&&_e==="loading"||u.duration===1/0||u.type==="loading")return;let Y;return S||h||yr?(()=>{if(gr.current<Sn.current){const ke=new Date().getTime()-Sn.current;He.current=He.current-ke}gr.current=new Date().getTime()})():He.current!==1/0&&(Sn.current=new Date().getTime(),Y=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),ne()},He.current)),()=>clearTimeout(Y)},[S,h,u,_e,yr,ne]),w.useEffect(()=>{u.delete&&(ne(),u.onDismiss==null||u.onDismiss.call(u,u))},[ne,u.delete]);function ue(){var Y;if(V?.loading){var ve;return w.createElement("div",{className:et(j?.loader,u==null||(ve=u.classNames)==null?void 0:ve.loader,"sonner-loader"),"data-visible":_e==="loading"},V.loading)}return w.createElement(vT,{className:et(j?.loader,u==null||(Y=u.classNames)==null?void 0:Y.loader),visible:_e==="loading"})}const re=u.icon||V?.[_e]||hT(_e);var ce,Pe;return w.createElement("li",{tabIndex:0,ref:Ye,className:et(F,xn,j?.toast,u==null||(t=u.classNames)==null?void 0:t.toast,j?.default,j?.[_e],u==null||(n=u.classNames)==null?void 0:n[_e]),"data-sonner-toast":"","data-rich-colors":(ce=u.richColors)!=null?ce:P,"data-styled":!(u.jsx||u.unstyled||m),"data-mounted":T,"data-promise":!!u.promise,"data-swiped":ae,"data-removed":W,"data-visible":Wo,"data-y-position":Lo,"data-x-position":Bo,"data-index":b,"data-front":$o,"data-swiping":M,"data-dismissible":ut,"data-type":_e,"data-invert":br,"data-swipe-out":te,"data-swipe-direction":k,"data-expanded":!!(S||Z&&T),"data-testid":u.testId,style:{"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":`${W?Ee:xt.current}px`,"--initial-height":Z?"auto":`${yt}px`,...R,...u.style},onDragEnd:()=>{H(!1),J(null),wt.current=null},onPointerDown:Y=>{Y.button!==2&&(Cn||!ut||(mr.current=new Date,Oe(xt.current),Y.target.setPointerCapture(Y.pointerId),Y.target.tagName!=="BUTTON"&&(H(!0),wt.current={x:Y.clientX,y:Y.clientY})))},onPointerUp:()=>{var Y,ve,Ce;if(te||!ut)return;wt.current=null;const ke=Number(((Y=Ye.current)==null?void 0:Y.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),St=Number(((ve=Ye.current)==null?void 0:ve.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),he=new Date().getTime()-((Ce=mr.current)==null?void 0:Ce.getTime()),Fe=$==="x"?ke:St,xr=Math.abs(Fe)/he;if(Math.abs(Fe)>=IT||xr>.11){Oe(xt.current),u.onDismiss==null||u.onDismiss.call(u,u),N($==="x"?ke>0?"right":"left":St>0?"down":"up"),ne(),oe(!0);return}else{var ze,Ge;(ze=Ye.current)==null||ze.style.setProperty("--swipe-amount-x","0px"),(Ge=Ye.current)==null||Ge.style.setProperty("--swipe-amount-y","0px")}ie(!1),H(!1),J(null)},onPointerMove:Y=>{var ve,Ce,ke;if(!wt.current||!ut||((ve=window.getSelection())==null?void 0:ve.toString().length)>0)return;const he=Y.clientY-wt.current.y,Fe=Y.clientX-wt.current.x;var xr;const ze=(xr=e.swipeDirections)!=null?xr:$T(U);!$&&(Math.abs(Fe)>1||Math.abs(he)>1)&&J(Math.abs(Fe)>Math.abs(he)?"x":"y");let Ge={x:0,y:0};const Qa=$t=>1/(1.5+Math.abs($t)/20);if($==="y"){if(ze.includes("top")||ze.includes("bottom"))if(ze.includes("top")&&he<0||ze.includes("bottom")&&he>0)Ge.y=he;else{const $t=he*Qa(he);Ge.y=Math.abs($t)<Math.abs(he)?$t:he}}else if($==="x"&&(ze.includes("left")||ze.includes("right")))if(ze.includes("left")&&Fe<0||ze.includes("right")&&Fe>0)Ge.x=Fe;else{const $t=Fe*Qa(Fe);Ge.x=Math.abs($t)<Math.abs(Fe)?$t:Fe}(Math.abs(Ge.x)>0||Math.abs(Ge.y)>0)&&ie(!0),(Ce=Ye.current)==null||Ce.style.setProperty("--swipe-amount-x",`${Ge.x}px`),(ke=Ye.current)==null||ke.style.setProperty("--swipe-amount-y",`${Ge.y}px`)}},Fo&&!u.jsx&&_e!=="loading"?w.createElement("button",{"aria-label":D,"data-disabled":Cn,"data-close-button":!0,onClick:Cn||!ut?()=>{}:()=>{ne(),u.onDismiss==null||u.onDismiss.call(u,u)},className:et(j?.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(Pe=V?.close)!=null?Pe:ST):null,(_e||u.icon||u.promise)&&u.icon!==null&&(V?.[_e]!==null||u.icon)?w.createElement("div",{"data-icon":"",className:et(j?.icon,u==null||(o=u.classNames)==null?void 0:o.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||ue():null,u.type!=="loading"?re:null):null,w.createElement("div",{"data-content":"",className:et(j?.content,u==null||(s=u.classNames)==null?void 0:s.content)},w.createElement("div",{"data-title":"",className:et(j?.title,u==null||(a=u.classNames)==null?void 0:a.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?w.createElement("div",{"data-description":"",className:et(B,wn,j?.description,u==null||(i=u.classNames)==null?void 0:i.description)},typeof u.description=="function"?u.description():u.description):null),w.isValidElement(u.cancel)?u.cancel:u.cancel&&Tr(u.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||_,onClick:Y=>{Tr(u.cancel)&&ut&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,Y),ne())},className:et(j?.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,w.isValidElement(u.action)?u.action:u.action&&Tr(u.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||I,onClick:Y=>{Tr(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,Y),!Y.defaultPrevented&&ne())},className:et(j?.actionButton,u==null||(d=u.classNames)==null?void 0:d.actionButton)},u.action.label):null)};function lc(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function FT(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,a=s?"--mobile-offset":"--offset",i=s?DT:TT;function l(d){["top","right","bottom","left"].forEach(f=>{n[`${a}-${f}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${a}-${d}`]=i:n[`${a}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):l(i)}),n}const LT=w.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:l,className:d,offset:f,mobileOffset:u,theme:m="light",richColors:h,duration:g,style:v,visibleToasts:y=MT,toastOptions:b,dir:x=lc(),gap:S=AT,icons:C,containerAriaLabel:P="Notifications"}=t,[E,R]=w.useState([]),_=w.useMemo(()=>r?E.filter(T=>T.toasterId===r):E.filter(T=>!T.toasterId),[E,r]),I=w.useMemo(()=>Array.from(new Set([s].concat(_.filter(T=>T.position).map(T=>T.position)))),[_,s]),[F,B]=w.useState([]),[z,U]=w.useState(!1),[G,Z]=w.useState(!1),[j,V]=w.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=w.useRef(null),$=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),J=w.useRef(null),k=w.useRef(!1),N=w.useCallback(T=>{R(O=>{var W;return(W=O.find(K=>K.id===T.id))!=null&&W.delete||Te.dismiss(T.id),O.filter(({id:K})=>K!==T.id)})},[]);return w.useEffect(()=>Te.subscribe(T=>{if(T.dismiss){requestAnimationFrame(()=>{R(O=>O.map(W=>W.id===T.id?{...W,delete:!0}:W))});return}setTimeout(()=>{Os.flushSync(()=>{R(O=>{const W=O.findIndex(K=>K.id===T.id);return W!==-1?[...O.slice(0,W),{...O[W],...T},...O.slice(W+1)]:[T,...O]})})})}),[E]),w.useEffect(()=>{if(m!=="system"){V(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const T=window.matchMedia("(prefers-color-scheme: dark)");try{T.addEventListener("change",({matches:O})=>{V(O?"dark":"light")})}catch{T.addListener(({matches:W})=>{try{V(W?"dark":"light")}catch(K){console.error(K)}})}},[m]),w.useEffect(()=>{E.length<=1&&U(!1)},[E]),w.useEffect(()=>{const T=O=>{var W;if(a.every(H=>O[H]||O.code===H)){var M;U(!0),(M=D.current)==null||M.focus()}O.code==="Escape"&&(document.activeElement===D.current||(W=D.current)!=null&&W.contains(document.activeElement))&&U(!1)};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[a]),w.useEffect(()=>{if(D.current)return()=>{J.current&&(J.current.focus({preventScroll:!0}),J.current=null,k.current=!1)}},[D.current]),w.createElement("section",{ref:n,"aria-label":`${P} ${$}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((T,O)=>{var W;const[K,M]=T.split("-");return _.length?w.createElement("ol",{key:T,dir:x==="auto"?lc():x,tabIndex:-1,ref:D,className:d,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":K,"data-x-position":M,style:{"--front-toast-height":`${((W=F[0])==null?void 0:W.height)||0}px`,"--width":`${OT}px`,"--gap":`${S}px`,...v,...FT(f,u)},onBlur:H=>{k.current&&!H.currentTarget.contains(H.relatedTarget)&&(k.current=!1,J.current&&(J.current.focus({preventScroll:!0}),J.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||k.current||(k.current=!0,J.current=H.relatedTarget)},onMouseEnter:()=>U(!0),onMouseMove:()=>U(!0),onMouseLeave:()=>{G||U(!1)},onDragEnd:()=>U(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||Z(!0)},onPointerUp:()=>Z(!1)},_.filter(H=>!H.position&&O===0||H.position===T).map((H,te)=>{var oe,ae;return w.createElement(WT,{key:H.id,icons:C,index:te,toast:H,defaultRichColors:h,duration:(oe=b?.duration)!=null?oe:g,className:b?.className,descriptionClassName:b?.descriptionClassName,invert:o,visibleToasts:y,closeButton:(ae=b?.closeButton)!=null?ae:l,interacting:G,position:T,style:b?.style,unstyled:b?.unstyled,classNames:b?.classNames,cancelButtonStyle:b?.cancelButtonStyle,actionButtonStyle:b?.actionButtonStyle,closeButtonAriaLabel:b?.closeButtonAriaLabel,removeToast:N,toasts:_.filter(ie=>ie.position==H.position),heights:F.filter(ie=>ie.position==H.position),setHeights:B,expandByDefault:i,gap:S,expanded:z,swipeDirections:t.swipeDirections})})):null}))}),BT=({...e})=>p.jsx(LT,{theme:"system",className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e}),sg=c.forwardRef(({...e},t)=>p.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));sg.displayName="Breadcrumb";const ag=c.forwardRef(({className:e,...t},n)=>p.jsx("ol",{ref:n,className:A("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));ag.displayName="BreadcrumbList";const ig=c.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,className:A("inline-flex items-center gap-1.5",e),...t}));ig.displayName="BreadcrumbItem";const cg=c.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?Nc:"a";return p.jsx(o,{ref:r,className:A("transition-colors hover:text-foreground",t),...n})});cg.displayName="BreadcrumbLink";const lg=c.forwardRef(({className:e,...t},n)=>p.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:A("font-normal text-foreground",e),...t}));lg.displayName="BreadcrumbPage";const ug=({children:e,className:t,...n})=>p.jsx("li",{role:"presentation","aria-hidden":"true",className:A("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...n,children:e??p.jsx(Bs,{})});ug.displayName="BreadcrumbSeparator";const dg=({className:e,...t})=>p.jsxs("span",{role:"presentation","aria-hidden":"true",className:A("flex h-9 w-9 items-center justify-center",e),...t,children:[p.jsx("span",{className:"h-4 w-4",children:"..."}),p.jsx("span",{className:"sr-only",children:"More"})]});dg.displayName="BreadcrumbEllipsis";const fg=({className:e,...t})=>p.jsx("nav",{role:"navigation","aria-label":"pagination",className:A("mx-auto flex w-full justify-center",e),...t});fg.displayName="Pagination";const pg=c.forwardRef(({className:e,...t},n)=>p.jsx("ul",{ref:n,className:A("flex flex-row items-center gap-1",e),...t}));pg.displayName="PaginationContent";const mg=c.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,className:A("",e),...t}));mg.displayName="PaginationItem";const jo=({className:e,isActive:t,size:n="icon",...r})=>p.jsx("a",{"aria-current":t?"page":void 0,className:A(An({variant:t?"outline":"ghost",size:n}),e),...r});jo.displayName="PaginationLink";const hg=({className:e,...t})=>p.jsxs(jo,{"aria-label":"Go to previous page",size:"default",className:A("gap-1 pl-2.5",e),...t,children:[p.jsx(ay,{className:"h-4 w-4"}),p.jsx("span",{children:"Previous"})]});hg.displayName="PaginationPrevious";const gg=({className:e,...t})=>p.jsxs(jo,{"aria-label":"Go to next page",size:"default",className:A("gap-1 pr-2.5",e),...t,children:[p.jsx("span",{children:"Next"}),p.jsx(Bs,{className:"h-4 w-4"})]});gg.displayName="PaginationNext";const vg=({className:e,...t})=>p.jsxs("span",{"aria-hidden":!0,className:A("flex h-9 w-9 items-center justify-center",e),...t,children:[p.jsx(fy,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"More pages"})]});vg.displayName="PaginationEllipsis";exports.Accordion=MN;exports.AccordionContent=_p;exports.AccordionItem=Rp;exports.AccordionTrigger=Np;exports.Alert=Xh;exports.AlertDescription=Qh;exports.AlertTitle=Zh;exports.Avatar=Kc;exports.AvatarFallback=Xc;exports.AvatarImage=qc;exports.Badge=bv;exports.Breadcrumb=sg;exports.BreadcrumbEllipsis=dg;exports.BreadcrumbItem=ig;exports.BreadcrumbLink=cg;exports.BreadcrumbList=ag;exports.BreadcrumbPage=lg;exports.BreadcrumbSeparator=ug;exports.Button=_c;exports.Calendar=gf;exports.Card=vf;exports.CardContent=wf;exports.CardDescription=xf;exports.CardFooter=Sf;exports.CardHeader=yf;exports.CardTitle=bf;exports.Checkbox=il;exports.Command=qa;exports.CommandDialog=oT;exports.CommandEmpty=zh;exports.CommandGroup=Gh;exports.CommandInput=Hh;exports.CommandItem=Kh;exports.CommandList=Yh;exports.CommandSeparator=Uh;exports.CommandShortcut=qh;exports.Dialog=Up;exports.DialogClose=XN;exports.DialogContent=Ta;exports.DialogDescription=Qp;exports.DialogFooter=Xp;exports.DialogHeader=qp;exports.DialogOverlay=Ma;exports.DialogPortal=Kp;exports.DialogTitle=Zp;exports.DialogTrigger=qN;exports.Drawer=Jp;exports.DrawerClose=tm;exports.DrawerContent=Oa;exports.DrawerDescription=$a;exports.DrawerFooter=Ia;exports.DrawerHeader=Aa;exports.DrawerTitle=ja;exports.DrawerTrigger=em;exports.DropdownMenu=Xk;exports.DropdownMenuCheckboxItem=xh;exports.DropdownMenuContent=yh;exports.DropdownMenuGroup=Qk;exports.DropdownMenuItem=bh;exports.DropdownMenuLabel=Sh;exports.DropdownMenuPortal=Jk;exports.DropdownMenuRadioGroup=tM;exports.DropdownMenuRadioItem=wh;exports.DropdownMenuSeparator=Ch;exports.DropdownMenuShortcut=Eh;exports.DropdownMenuSub=eM;exports.DropdownMenuSubContent=vh;exports.DropdownMenuSubTrigger=gh;exports.DropdownMenuTrigger=Zk;exports.Input=kc;exports.Label=Oc;exports.Pagination=fg;exports.PaginationContent=pg;exports.PaginationEllipsis=vg;exports.PaginationItem=mg;exports.PaginationLink=jo;exports.PaginationNext=gg;exports.PaginationPrevious=hg;exports.Popover=b_;exports.PopoverContent=gm;exports.PopoverTrigger=x_;exports.Progress=og;exports.RadioGroup=id;exports.RadioGroupItem=cd;exports.ScrollArea=Yf;exports.ScrollBar=ga;exports.Select=WS;exports.SelectContent=ju;exports.SelectGroup=FS;exports.SelectItem=Wu;exports.SelectLabel=$u;exports.SelectScrollDownButton=Qs;exports.SelectScrollUpButton=Zs;exports.SelectSeparator=Fu;exports.SelectTrigger=Iu;exports.SelectValue=LS;exports.Separator=$c;exports.Sheet=Jp;exports.SheetClose=tm;exports.SheetContent=Oa;exports.SheetDescription=$a;exports.SheetFooter=Ia;exports.SheetHeader=Aa;exports.SheetOverlay=Da;exports.SheetPortal=nm;exports.SheetTitle=ja;exports.SheetTrigger=em;exports.Skeleton=pT;exports.Slider=Ed;exports.Switch=hl;exports.Table=Cf;exports.TableBody=Pf;exports.TableCaption=Mf;exports.TableCell=kf;exports.TableFooter=Rf;exports.TableHead=_f;exports.TableHeader=Ef;exports.TableRow=Nf;exports.Tabs=UR;exports.TabsContent=ap;exports.TabsList=op;exports.TabsTrigger=sp;exports.Textarea=Mc;exports.Toaster=BT;exports.Toggle=Nd;exports.ToggleGroup=jd;exports.ToggleGroupItem=Wd;exports.Tooltip=DM;exports.TooltipContent=Ah;exports.TooltipProvider=TM;exports.TooltipTrigger=OM;exports.badgeVariants=Ac;exports.buttonVariants=An;exports.cn=A;exports.toggleVariants=na;
51
56
  //# sourceMappingURL=index.cjs.js.map