@memoreco/ui 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export * from './ui/src/index'
package/dist/index.js ADDED
@@ -0,0 +1,91 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),C=require("react"),Ue=require("@memoreco/utils"),jn=require("react-dom");function tr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=tr(C),Kt=tr(jn);function So(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nr(...e){return t=>{let n=!1;const o=e.map(r=>{const s=So(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():So(e[r],null)}}}}function ee(...e){return c.useCallback(nr(...e),e)}function pt(e){const t=Ki(e),n=c.forwardRef((o,r)=>{const{children:s,...a}=o,i=c.Children.toArray(s),u=i.find(qi);if(u){const d=u.props.children,f=i.map(l=>l===u?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:l);return m.jsx(t,{...a,ref:r,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return m.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var Yi=pt("Slot");function Ki(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const a=Qi(r),i=Zi(s,r.props);return r.type!==c.Fragment&&(i.ref=o?nr(o,a):a),c.cloneElement(r,i)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var or=Symbol("radix.slottable");function Xi(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=or,t}function qi(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===or}function Zi(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const u=s(...i);return r(...i),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Qi(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function rr(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=rr(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function sr(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=rr(e))&&(o&&(o+=" "),o+=t);return o}const Eo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ao=sr,At=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Ao(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,a=Object.keys(r).map(d=>{const f=n==null?void 0:n[d],l=s==null?void 0:s[d];if(f===null)return null;const g=Eo(f)||Eo(l);return r[d][g]}),i=n&&Object.entries(n).reduce((d,f)=>{let[l,g]=f;return g===void 0||(d[l]=g),d},{}),u=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,f)=>{let{class:l,className:g,...y}=f;return Object.entries(y).every(x=>{let[p,v]=x;return Array.isArray(v)?v.includes({...s,...i}[p]):{...s,...i}[p]===v})?[...d,l,g]:d},[]);return Ao(e,a,u,n==null?void 0:n.class,n==null?void 0:n.className)},Ln=At("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-[#EDEBEB]",secondary:"bg-secondary text-secondary-foreground hover:bg-[#EDEBEB]",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"}}),ar=c.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,...r},s)=>{const a=o?Yi:"button";return m.jsx(a,{className:Ue.cn(Ln({variant:t,size:n,className:e})),ref:s,...r})});ar.displayName="Button";const ir=c.forwardRef(({className:e,...t},n)=>m.jsx("div",{ref:n,className:Ue.cn("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));ir.displayName="Card";const lr=c.forwardRef(({className:e,...t},n)=>m.jsx("div",{ref:n,className:Ue.cn("flex flex-col space-y-1.5 p-6",e),...t}));lr.displayName="CardHeader";const cr=c.forwardRef(({className:e,...t},n)=>m.jsx("h3",{ref:n,className:Ue.cn("text-2xl font-semibold leading-none tracking-tight",e),...t}));cr.displayName="CardTitle";const dr=c.forwardRef(({className:e,...t},n)=>m.jsx("p",{ref:n,className:Ue.cn("text-sm text-muted-foreground",e),...t}));dr.displayName="CardDescription";const ur=c.forwardRef(({className:e,...t},n)=>m.jsx("div",{ref:n,className:Ue.cn("p-6 pt-0",e),...t}));ur.displayName="CardContent";const $n="-",Ji=e=>{const t=tl(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{const i=a.split($n);return i[0]===""&&i.length!==1&&i.shift(),fr(i,t)||el(a)},getConflictingClassGroupIds:(a,i)=>{const u=n[a]||[];return i&&o[a]?[...u,...o[a]]:u}}},fr=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?fr(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const s=e.join($n);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},No=/^\[(.+)\]$/,el=e=>{if(No.test(e)){const t=No.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},tl=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return ol(Object.entries(e.classGroups),n).forEach(([s,a])=>{Sn(a,o,s,t)}),o},Sn=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const s=r===""?t:Ro(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(nl(r)){Sn(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,a])=>{Sn(a,Ro(t,s),n,o)})})},Ro=(e,t)=>{let n=e;return t.split($n).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},nl=e=>e.isThemeGetter,ol=(e,t)=>t?e.map(([n,o])=>{const r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,i])=>[t+a,i])):s);return[n,r]}):e,rl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,o=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=o.get(s))!==void 0)return r(s,a),a},set(s,a){n.has(s)?n.set(s,a):r(s,a)}}},pr="!",sl=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,r=t[0],s=t.length,a=i=>{const u=[];let d=0,f=0,l;for(let v=0;v<i.length;v++){let h=i[v];if(d===0){if(h===r&&(o||i.slice(v,v+s)===t)){u.push(i.slice(f,v)),f=v+s;continue}if(h==="/"){l=v;continue}}h==="["?d++:h==="]"&&d--}const g=u.length===0?i:i.substring(f),y=g.startsWith(pr),x=y?g.substring(1):g,p=l&&l>f?l-f:void 0;return{modifiers:u,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:p}};return n?i=>n({className:i,parseClassName:a}):a},al=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},il=e=>({cache:rl(e.cacheSize),parseClassName:sl(e),...Ji(e)}),ll=/\s+/,cl=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],a=e.trim().split(ll);let i="";for(let u=a.length-1;u>=0;u-=1){const d=a[u],{modifiers:f,hasImportantModifier:l,baseClassName:g,maybePostfixModifierPosition:y}=n(d);let x=!!y,p=o(x?g.substring(0,y):g);if(!p){if(!x){i=d+(i.length>0?" "+i:i);continue}if(p=o(g),!p){i=d+(i.length>0?" "+i:i);continue}x=!1}const v=al(f).join(":"),h=l?v+pr:v,b=h+p;if(s.includes(b))continue;s.push(b);const w=r(p,x);for(let S=0;S<w.length;++S){const E=w[S];s.push(h+E)}i=d+(i.length>0?" "+i:i)}return i};function dl(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=mr(t))&&(o&&(o+=" "),o+=n);return o}const mr=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=mr(e[o]))&&(n&&(n+=" "),n+=t);return n};function ul(e,...t){let n,o,r,s=a;function a(u){const d=t.reduce((f,l)=>l(f),e());return n=il(d),o=n.cache.get,r=n.cache.set,s=i,i(u)}function i(u){const d=o(u);if(d)return d;const f=cl(u,n);return r(u,f),f}return function(){return s(dl.apply(null,arguments))}}const te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},gr=/^\[(?:([a-z-]+):)?(.+)\]$/i,fl=/^\d+\/\d+$/,pl=new Set(["px","full","screen"]),ml=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gl=/\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$/,hl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_e=e=>ct(e)||pl.has(e)||fl.test(e),$e=e=>gt(e,"length",Nl),ct=e=>!!e&&!Number.isNaN(Number(e)),pn=e=>gt(e,"number",ct),xt=e=>!!e&&Number.isInteger(Number(e)),yl=e=>e.endsWith("%")&&ct(e.slice(0,-1)),B=e=>gr.test(e),Be=e=>ml.test(e),xl=new Set(["length","size","percentage"]),wl=e=>gt(e,xl,hr),Cl=e=>gt(e,"position",hr),Sl=new Set(["image","url"]),El=e=>gt(e,Sl,Pl),Al=e=>gt(e,"",Rl),wt=()=>!0,gt=(e,t,n)=>{const o=gr.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},Nl=e=>gl.test(e)&&!hl.test(e),hr=()=>!1,Rl=e=>vl.test(e),Pl=e=>bl.test(e),Tl=()=>{const e=te("colors"),t=te("spacing"),n=te("blur"),o=te("brightness"),r=te("borderColor"),s=te("borderRadius"),a=te("borderSpacing"),i=te("borderWidth"),u=te("contrast"),d=te("grayscale"),f=te("hueRotate"),l=te("invert"),g=te("gap"),y=te("gradientColorStops"),x=te("gradientColorStopPositions"),p=te("inset"),v=te("margin"),h=te("opacity"),b=te("padding"),w=te("saturate"),S=te("scale"),E=te("sepia"),N=te("skew"),A=te("space"),D=te("translate"),j=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",B,t],T=()=>[B,t],M=()=>["",_e,$e],L=()=>["auto",ct,B],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["solid","dashed","dotted","double","none"],I=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",B],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[ct,B];return{cacheSize:500,separator:":",theme:{colors:[wt],spacing:[_e,$e],blur:["none","",Be,B],brightness:J(),borderColor:[e],borderRadius:["none","","full",Be,B],borderSpacing:T(),borderWidth:M(),contrast:J(),grayscale:F(),hueRotate:J(),invert:F(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[yl,$e],inset:U(),margin:U(),opacity:J(),padding:T(),saturate:J(),scale:J(),sepia:F(),skew:J(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[Be]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),B]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xt,B]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",xt,B]}],"grid-cols":[{"grid-cols":[wt]}],"col-start-end":[{col:["auto",{span:["full",xt,B]},B]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[wt]}],"row-start-end":[{row:["auto",{span:[xt,B]},B]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",B,t]}],"min-w":[{"min-w":[B,t,"min","max","fit"]}],"max-w":[{"max-w":[B,t,"none","full","min","max","fit","prose",{screen:[Be]},Be]}],h:[{h:[B,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Be,$e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pn]}],"font-family":[{font:[wt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",ct,pn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_e,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_e,$e]}],"underline-offset":[{"underline-offset":["auto",_e,B]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),Cl]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wl]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},El]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...R(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:R()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...R()]}],"outline-offset":[{"outline-offset":[_e,B]}],"outline-w":[{outline:[_e,$e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[_e,$e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Be,Al]}],"shadow-color":[{shadow:[wt]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...I(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":I()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Be,B]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[l]}],saturate:[{saturate:[w]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[l]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[xt,B]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",B]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[_e,$e,pn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Dl=ul(Tl);function V(...e){return Dl(sr(e))}const vr=c.forwardRef(({className:e,type:t,error:n,...o},r)=>m.jsx("input",{type:t,className:V("flex h-10 w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n&&"border-red-500 focus-visible:ring-red-500",e),ref:r,...o}));vr.displayName="Input";var Il=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H=Il.reduce((e,t)=>{const n=pt(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:a,...i}=r,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(u,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function _l(e,t){e&&Kt.flushSync(()=>e.dispatchEvent(t))}var kl="Label",br=c.forwardRef((e,t)=>m.jsx(H.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));br.displayName=kl;var yr=br;const Ol=At("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),xr=c.forwardRef(({className:e,...t},n)=>m.jsx(yr,{ref:n,className:V(Ol(),e),...t}));xr.displayName=yr.displayName;const Ml=At("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-white text-gray-900 border-gray-200",destructive:"border-red-500/50 text-red-900 dark:border-red-500 [&>svg]:text-red-500 bg-red-50",success:"border-green-500/50 text-green-900 dark:border-green-500 [&>svg]:text-green-500 bg-green-50",warning:"border-yellow-500/50 text-yellow-900 dark:border-yellow-500 [&>svg]:text-yellow-500 bg-yellow-50"}},defaultVariants:{variant:"default"}}),wr=c.forwardRef(({className:e,variant:t,...n},o)=>m.jsx("div",{ref:o,role:"alert",className:V(Ml({variant:t}),e),...n}));wr.displayName="Alert";const Cr=c.forwardRef(({className:e,...t},n)=>m.jsx("div",{ref:n,className:V("text-sm [&_p]:leading-relaxed",e),...t}));Cr.displayName="AlertDescription";const Sr=c.forwardRef(({className:e,...t},n)=>m.jsx("h5",{ref:n,className:V("mb-1 font-medium leading-none tracking-tight",e),...t}));Sr.displayName="AlertTitle";const Er=c.forwardRef(({className:e,error:t,...n},o)=>m.jsx("textarea",{className:V("flex min-h-[80px] w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t&&"border-red-500 focus-visible:ring-red-500",e),ref:o,...n}));Er.displayName="Textarea";const jl=At("animate-spin rounded-full border-2 border-current border-t-transparent",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-12 w-12"}},defaultVariants:{size:"md"}}),Ar=c.forwardRef(({className:e,size:t,...n},o)=>m.jsx("div",{ref:o,className:V(jl({size:t}),e),...n}));Ar.displayName="Spinner";const Ll=At("relative",{variants:{size:{sm:"w-[140px] h-[105px]",md:"w-[300px] h-[200px]",lg:"w-[400px] h-[250px]",xl:"w-[500px] h-[300px]"}},defaultVariants:{size:"md"}}),Nr=C.forwardRef(({className:e,size:t,cycleDuration:n=3e3,...o},r)=>{const s=C.useRef(null),a=C.useRef(null);return C.useEffect(()=>{if(s.current)return a.current&&a.current.destroy(),a.current=Ue.createDiscLoader({size:t||"md",cycleDuration:n,className:""}),s.current.innerHTML="",s.current.appendChild(a.current.element),()=>{a.current&&(a.current.destroy(),a.current=null)}},[t,n]),m.jsx("div",{ref:i=>{s.current=i,typeof r=="function"?r(i):r&&(r.current=i)},className:V(Ll({size:t}),e),...o})});Nr.displayName="DiscLoader";function $l(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 Bl=e=>{switch(e){case"success":return Vl;case"info":return Hl;case"warning":return zl;case"error":return Ul;default:return null}},Fl=Array(12).fill(0),Wl=({visible:e,className:t})=>C.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},C.createElement("div",{className:"sonner-spinner"},Fl.map((n,o)=>C.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),Vl=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.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"})),zl=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},C.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"})),Hl=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.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"})),Ul=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.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"})),Gl=C.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"},C.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),C.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Yl=()=>{const[e,t]=C.useState(document.hidden);return C.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let En=1;class Kl{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:o,...r}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:En++,a=this.toasts.find(u=>u.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(u=>u.id===s?(this.publish({...u,...t,id:s,title:o}),{...u,...t,id:s,dismissible:i,title:o}):u):this.addToast({title:o,...r,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(o=>o({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 o;n.loading!==void 0&&(o=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const r=Promise.resolve(t instanceof Function?t():t);let s=o!==void 0,a;const i=r.then(async d=>{if(a=["resolve",d],C.isValidElement(d))s=!1,this.create({id:o,type:"default",message:d});else if(ql(d)&&!d.ok){s=!1;const l=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,g=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,x=typeof l=="object"&&!C.isValidElement(l)?l:{message:l};this.create({id:o,type:"error",description:g,...x})}else if(d instanceof Error){s=!1;const l=typeof n.error=="function"?await n.error(d):n.error,g=typeof n.description=="function"?await n.description(d):n.description,x=typeof l=="object"&&!C.isValidElement(l)?l:{message:l};this.create({id:o,type:"error",description:g,...x})}else if(n.success!==void 0){s=!1;const l=typeof n.success=="function"?await n.success(d):n.success,g=typeof n.description=="function"?await n.description(d):n.description,x=typeof l=="object"&&!C.isValidElement(l)?l:{message:l};this.create({id:o,type:"success",description:g,...x})}}).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,l=typeof n.description=="function"?await n.description(d):n.description,y=typeof f=="object"&&!C.isValidElement(f)?f:{message:f};this.create({id:o,type:"error",description:l,...y})}}).finally(()=>{s&&(this.dismiss(o),o=void 0),n.finally==null||n.finally.call(n)}),u=()=>new Promise((d,f)=>i.then(()=>a[0]==="reject"?f(a[1]):d(a[1])).catch(f));return typeof o!="string"&&typeof o!="number"?{unwrap:u}:Object.assign(o,{unwrap:u})},this.custom=(t,n)=>{const o=(n==null?void 0:n.id)||En++;return this.create({jsx:t(o),id:o,...n}),o},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ue=new Kl,Xl=(e,t)=>{const n=(t==null?void 0:t.id)||En++;return ue.addToast({title:e,...t,id:n}),n},ql=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Zl=Xl,Ql=()=>ue.toasts,Jl=()=>ue.getActiveToasts(),ec=Object.assign(Zl,{success:ue.success,info:ue.info,warning:ue.warning,error:ue.error,custom:ue.custom,message:ue.message,promise:ue.promise,dismiss:ue.dismiss,loading:ue.loading},{getHistory:Ql,getToasts:Jl});$l("[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 It(e){return e.label!==void 0}const tc=3,nc="24px",oc="16px",Po=4e3,rc=356,sc=14,ac=45,ic=200;function Ne(...e){return e.filter(Boolean).join(" ")}function lc(e){const[t,n]=e.split("-"),o=[];return t&&o.push(t),n&&o.push(n),o}const cc=e=>{var t,n,o,r,s,a,i,u,d;const{invert:f,toast:l,unstyled:g,interacting:y,setHeights:x,visibleToasts:p,heights:v,index:h,toasts:b,expanded:w,removeToast:S,defaultRichColors:E,closeButton:N,style:A,cancelButtonStyle:D,actionButtonStyle:j,className:O="",descriptionClassName:U="",duration:T,position:M,gap:L,expandByDefault:Y,classNames:R,icons:I,closeButtonAriaLabel:P="Close toast"}=e,[F,Z]=C.useState(null),[J,Ae]=C.useState(null),[W,X]=C.useState(!1),[Q,oe]=C.useState(!1),[_,k]=C.useState(!1),[ne,K]=C.useState(!1),[G,z]=C.useState(!1),[le,ce]=C.useState(0),[Xe,je]=C.useState(0),ve=C.useRef(l.duration||T||Po),Rt=C.useRef(null),de=C.useRef(null),Li=h===0,$i=h+1<=p,fe=l.type,ot=l.dismissible!==!1,Bi=l.className||"",Fi=l.descriptionClassName||"",Pt=C.useMemo(()=>v.findIndex($=>$.toastId===l.id)||0,[v,l.id]),Wi=C.useMemo(()=>{var $;return($=l.closeButton)!=null?$:N},[l.closeButton,N]),ho=C.useMemo(()=>l.duration||T||Po,[l.duration,T]),un=C.useRef(0),rt=C.useRef(0),vo=C.useRef(0),st=C.useRef(null),[Vi,zi]=M.split("-"),bo=C.useMemo(()=>v.reduce(($,re,ie)=>ie>=Pt?$:$+re.height,0),[v,Pt]),yo=Yl(),Hi=l.invert||f,fn=fe==="loading";rt.current=C.useMemo(()=>Pt*L+bo,[Pt,bo]),C.useEffect(()=>{ve.current=ho},[ho]),C.useEffect(()=>{X(!0)},[]),C.useEffect(()=>{const $=de.current;if($){const re=$.getBoundingClientRect().height;return je(re),x(ie=>[{toastId:l.id,height:re,position:l.position},...ie]),()=>x(ie=>ie.filter(pe=>pe.toastId!==l.id))}},[x,l.id]),C.useLayoutEffect(()=>{if(!W)return;const $=de.current,re=$.style.height;$.style.height="auto";const ie=$.getBoundingClientRect().height;$.style.height=re,je(ie),x(pe=>pe.find(se=>se.toastId===l.id)?pe.map(se=>se.toastId===l.id?{...se,height:ie}:se):[{toastId:l.id,height:ie,position:l.position},...pe])},[W,l.title,l.description,x,l.id,l.jsx,l.action,l.cancel]);const Le=C.useCallback(()=>{oe(!0),ce(rt.current),x($=>$.filter(re=>re.toastId!==l.id)),setTimeout(()=>{S(l)},ic)},[l,S,x,rt]);C.useEffect(()=>{if(l.promise&&fe==="loading"||l.duration===1/0||l.type==="loading")return;let $;return w||y||yo?(()=>{if(vo.current<un.current){const pe=new Date().getTime()-un.current;ve.current=ve.current-pe}vo.current=new Date().getTime()})():(()=>{ve.current!==1/0&&(un.current=new Date().getTime(),$=setTimeout(()=>{l.onAutoClose==null||l.onAutoClose.call(l,l),Le()},ve.current))})(),()=>clearTimeout($)},[w,y,l,fe,yo,Le]),C.useEffect(()=>{l.delete&&(Le(),l.onDismiss==null||l.onDismiss.call(l,l))},[Le,l.delete]);function Ui(){var $;if(I!=null&&I.loading){var re;return C.createElement("div",{className:Ne(R==null?void 0:R.loader,l==null||(re=l.classNames)==null?void 0:re.loader,"sonner-loader"),"data-visible":fe==="loading"},I.loading)}return C.createElement(Wl,{className:Ne(R==null?void 0:R.loader,l==null||($=l.classNames)==null?void 0:$.loader),visible:fe==="loading"})}const Gi=l.icon||(I==null?void 0:I[fe])||Bl(fe);var xo,wo;return C.createElement("li",{tabIndex:0,ref:de,className:Ne(O,Bi,R==null?void 0:R.toast,l==null||(t=l.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[fe],l==null||(n=l.classNames)==null?void 0:n[fe]),"data-sonner-toast":"","data-rich-colors":(xo=l.richColors)!=null?xo:E,"data-styled":!(l.jsx||l.unstyled||g),"data-mounted":W,"data-promise":!!l.promise,"data-swiped":G,"data-removed":Q,"data-visible":$i,"data-y-position":Vi,"data-x-position":zi,"data-index":h,"data-front":Li,"data-swiping":_,"data-dismissible":ot,"data-type":fe,"data-invert":Hi,"data-swipe-out":ne,"data-swipe-direction":J,"data-expanded":!!(w||Y&&W),"data-testid":l.testId,style:{"--index":h,"--toasts-before":h,"--z-index":b.length-h,"--offset":`${Q?le:rt.current}px`,"--initial-height":Y?"auto":`${Xe}px`,...A,...l.style},onDragEnd:()=>{k(!1),Z(null),st.current=null},onPointerDown:$=>{$.button!==2&&(fn||!ot||(Rt.current=new Date,ce(rt.current),$.target.setPointerCapture($.pointerId),$.target.tagName!=="BUTTON"&&(k(!0),st.current={x:$.clientX,y:$.clientY})))},onPointerUp:()=>{var $,re,ie;if(ne||!ot)return;st.current=null;const pe=Number((($=de.current)==null?void 0:$.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tt=Number(((re=de.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),se=new Date().getTime()-((ie=Rt.current)==null?void 0:ie.getTime()),he=F==="x"?pe:Tt,Dt=Math.abs(he)/se;if(Math.abs(he)>=ac||Dt>.11){ce(rt.current),l.onDismiss==null||l.onDismiss.call(l,l),Ae(F==="x"?pe>0?"right":"left":Tt>0?"down":"up"),Le(),K(!0);return}else{var be,ye;(be=de.current)==null||be.style.setProperty("--swipe-amount-x","0px"),(ye=de.current)==null||ye.style.setProperty("--swipe-amount-y","0px")}z(!1),k(!1),Z(null)},onPointerMove:$=>{var re,ie,pe;if(!st.current||!ot||((re=window.getSelection())==null?void 0:re.toString().length)>0)return;const se=$.clientY-st.current.y,he=$.clientX-st.current.x;var Dt;const be=(Dt=e.swipeDirections)!=null?Dt:lc(M);!F&&(Math.abs(he)>1||Math.abs(se)>1)&&Z(Math.abs(he)>Math.abs(se)?"x":"y");let ye={x:0,y:0};const Co=qe=>1/(1.5+Math.abs(qe)/20);if(F==="y"){if(be.includes("top")||be.includes("bottom"))if(be.includes("top")&&se<0||be.includes("bottom")&&se>0)ye.y=se;else{const qe=se*Co(se);ye.y=Math.abs(qe)<Math.abs(se)?qe:se}}else if(F==="x"&&(be.includes("left")||be.includes("right")))if(be.includes("left")&&he<0||be.includes("right")&&he>0)ye.x=he;else{const qe=he*Co(he);ye.x=Math.abs(qe)<Math.abs(he)?qe:he}(Math.abs(ye.x)>0||Math.abs(ye.y)>0)&&z(!0),(ie=de.current)==null||ie.style.setProperty("--swipe-amount-x",`${ye.x}px`),(pe=de.current)==null||pe.style.setProperty("--swipe-amount-y",`${ye.y}px`)}},Wi&&!l.jsx&&fe!=="loading"?C.createElement("button",{"aria-label":P,"data-disabled":fn,"data-close-button":!0,onClick:fn||!ot?()=>{}:()=>{Le(),l.onDismiss==null||l.onDismiss.call(l,l)},className:Ne(R==null?void 0:R.closeButton,l==null||(o=l.classNames)==null?void 0:o.closeButton)},(wo=I==null?void 0:I.close)!=null?wo:Gl):null,(fe||l.icon||l.promise)&&l.icon!==null&&((I==null?void 0:I[fe])!==null||l.icon)?C.createElement("div",{"data-icon":"",className:Ne(R==null?void 0:R.icon,l==null||(r=l.classNames)==null?void 0:r.icon)},l.promise||l.type==="loading"&&!l.icon?l.icon||Ui():null,l.type!=="loading"?Gi:null):null,C.createElement("div",{"data-content":"",className:Ne(R==null?void 0:R.content,l==null||(s=l.classNames)==null?void 0:s.content)},C.createElement("div",{"data-title":"",className:Ne(R==null?void 0:R.title,l==null||(a=l.classNames)==null?void 0:a.title)},l.jsx?l.jsx:typeof l.title=="function"?l.title():l.title),l.description?C.createElement("div",{"data-description":"",className:Ne(U,Fi,R==null?void 0:R.description,l==null||(i=l.classNames)==null?void 0:i.description)},typeof l.description=="function"?l.description():l.description):null),C.isValidElement(l.cancel)?l.cancel:l.cancel&&It(l.cancel)?C.createElement("button",{"data-button":!0,"data-cancel":!0,style:l.cancelButtonStyle||D,onClick:$=>{It(l.cancel)&&ot&&(l.cancel.onClick==null||l.cancel.onClick.call(l.cancel,$),Le())},className:Ne(R==null?void 0:R.cancelButton,l==null||(u=l.classNames)==null?void 0:u.cancelButton)},l.cancel.label):null,C.isValidElement(l.action)?l.action:l.action&&It(l.action)?C.createElement("button",{"data-button":!0,"data-action":!0,style:l.actionButtonStyle||j,onClick:$=>{It(l.action)&&(l.action.onClick==null||l.action.onClick.call(l.action,$),!$.defaultPrevented&&Le())},className:Ne(R==null?void 0:R.actionButton,l==null||(d=l.classNames)==null?void 0:d.actionButton)},l.action.label):null)};function To(){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 dc(e,t){const n={};return[e,t].forEach((o,r)=>{const s=r===1,a=s?"--mobile-offset":"--offset",i=s?oc:nc;function u(d){["top","right","bottom","left"].forEach(f=>{n[`${a}-${f}`]=typeof d=="number"?`${d}px`:d})}typeof o=="number"||typeof o=="string"?u(o):typeof o=="object"?["top","right","bottom","left"].forEach(d=>{o[d]===void 0?n[`${a}-${d}`]=i:n[`${a}-${d}`]=typeof o[d]=="number"?`${o[d]}px`:o[d]}):u(i)}),n}const uc=C.forwardRef(function(t,n){const{id:o,invert:r,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:u,className:d,offset:f,mobileOffset:l,theme:g="light",richColors:y,duration:x,style:p,visibleToasts:v=tc,toastOptions:h,dir:b=To(),gap:w=sc,icons:S,containerAriaLabel:E="Notifications"}=t,[N,A]=C.useState([]),D=C.useMemo(()=>o?N.filter(W=>W.toasterId===o):N.filter(W=>!W.toasterId),[N,o]),j=C.useMemo(()=>Array.from(new Set([s].concat(D.filter(W=>W.position).map(W=>W.position)))),[D,s]),[O,U]=C.useState([]),[T,M]=C.useState(!1),[L,Y]=C.useState(!1),[R,I]=C.useState(g!=="system"?g:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),P=C.useRef(null),F=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),Z=C.useRef(null),J=C.useRef(!1),Ae=C.useCallback(W=>{A(X=>{var Q;return(Q=X.find(oe=>oe.id===W.id))!=null&&Q.delete||ue.dismiss(W.id),X.filter(({id:oe})=>oe!==W.id)})},[]);return C.useEffect(()=>ue.subscribe(W=>{if(W.dismiss){requestAnimationFrame(()=>{A(X=>X.map(Q=>Q.id===W.id?{...Q,delete:!0}:Q))});return}setTimeout(()=>{jn.flushSync(()=>{A(X=>{const Q=X.findIndex(oe=>oe.id===W.id);return Q!==-1?[...X.slice(0,Q),{...X[Q],...W},...X.slice(Q+1)]:[W,...X]})})})}),[N]),C.useEffect(()=>{if(g!=="system"){I(g);return}if(g==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?I("dark"):I("light")),typeof window>"u")return;const W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:X})=>{I(X?"dark":"light")})}catch{W.addListener(({matches:Q})=>{try{I(Q?"dark":"light")}catch(oe){console.error(oe)}})}},[g]),C.useEffect(()=>{N.length<=1&&M(!1)},[N]),C.useEffect(()=>{const W=X=>{var Q;if(a.every(k=>X[k]||X.code===k)){var _;M(!0),(_=P.current)==null||_.focus()}X.code==="Escape"&&(document.activeElement===P.current||(Q=P.current)!=null&&Q.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[a]),C.useEffect(()=>{if(P.current)return()=>{Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null,J.current=!1)}},[P.current]),C.createElement("section",{ref:n,"aria-label":`${E} ${F}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((W,X)=>{var Q;const[oe,_]=W.split("-");return D.length?C.createElement("ol",{key:W,dir:b==="auto"?To():b,tabIndex:-1,ref:P,className:d,"data-sonner-toaster":!0,"data-sonner-theme":R,"data-y-position":oe,"data-x-position":_,style:{"--front-toast-height":`${((Q=O[0])==null?void 0:Q.height)||0}px`,"--width":`${rc}px`,"--gap":`${w}px`,...p,...dc(f,l)},onBlur:k=>{J.current&&!k.currentTarget.contains(k.relatedTarget)&&(J.current=!1,Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null))},onFocus:k=>{k.target instanceof HTMLElement&&k.target.dataset.dismissible==="false"||J.current||(J.current=!0,Z.current=k.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{L||M(!1)},onDragEnd:()=>M(!1),onPointerDown:k=>{k.target instanceof HTMLElement&&k.target.dataset.dismissible==="false"||Y(!0)},onPointerUp:()=>Y(!1)},D.filter(k=>!k.position&&X===0||k.position===W).map((k,ne)=>{var K,G;return C.createElement(cc,{key:k.id,icons:S,index:ne,toast:k,defaultRichColors:y,duration:(K=h==null?void 0:h.duration)!=null?K:x,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:r,visibleToasts:v,closeButton:(G=h==null?void 0:h.closeButton)!=null?G:u,interacting:L,position:W,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,closeButtonAriaLabel:h==null?void 0:h.closeButtonAriaLabel,removeToast:Ae,toasts:D.filter(z=>z.position==k.position),heights:O.filter(z=>z.position==k.position),setHeights:U,expandByDefault:i,gap:w,expanded:T,swipeDirections:t.swipeDirections})})):null}))}),fc=({...e})=>m.jsx(uc,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-white group-[.toaster]:text-gray-900 group-[.toaster]:border-gray-200 group-[.toaster]:shadow-lg",description:"group-[.toast]:text-gray-500",actionButton:"group-[.toast]:bg-gray-900 group-[.toast]:text-gray-50",cancelButton:"group-[.toast]:bg-gray-100 group-[.toast]:text-gray-500"}},...e}),Rr=c.forwardRef(({className:e,...t},n)=>m.jsx("form",{ref:n,className:V("space-y-4",e),...t}));Rr.displayName="Form";const Pr=c.forwardRef(({className:e,error:t,children:n,...o},r)=>m.jsxs("div",{ref:r,className:V("space-y-2",e),...o,children:[n,t&&m.jsx("p",{className:"text-sm text-red-600",role:"alert",children:t})]}));Pr.displayName="FormField";const Tr=c.forwardRef(({className:e,variant:t="default",size:n="md",...o},r)=>m.jsx("div",{className:V("inline-flex items-center rounded-full border font-medium text-center whitespace-nowrap",{"px-2 py-0.5 text-xs":n==="sm","px-2.5 py-0.5 text-sm":n==="md","px-3 py-1 text-sm":n==="lg","bg-blue-600 border-blue-600 text-white":t==="default","bg-gray-100 border-gray-300 text-gray-800":t==="secondary","bg-transparent border-gray-300 text-gray-700":t==="outline","bg-green-100 border-green-300 text-green-800":t==="success","bg-yellow-100 border-yellow-300 text-yellow-800":t==="warning","bg-red-100 border-red-300 text-red-800":t==="error"},e),ref:r,...o}));Tr.displayName="Badge";const Dr=c.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...o},r)=>m.jsx("div",{ref:r,role:n?"none":"separator","aria-orientation":t,className:Ue.cn("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Dr.displayName="Separator";function pc(e,t){const n=c.createContext(t),o=s=>{const{children:a,...i}=s,u=c.useMemo(()=>i,Object.values(i));return m.jsx(n.Provider,{value:u,children:a})};o.displayName=e+"Provider";function r(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[o,r]}function Ge(e,t=[]){let n=[];function o(s,a){const i=c.createContext(a),u=n.length;n=[...n,a];const d=l=>{var h;const{scope:g,children:y,...x}=l,p=((h=g==null?void 0:g[e])==null?void 0:h[u])||i,v=c.useMemo(()=>x,Object.values(x));return m.jsx(p.Provider,{value:v,children:y})};d.displayName=s+"Provider";function f(l,g){var p;const y=((p=g==null?void 0:g[e])==null?void 0:p[u])||i,x=c.useContext(y);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${s}\``)}return[d,f]}const r=()=>{const s=n.map(a=>c.createContext(a));return function(i){const u=(i==null?void 0:i[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return r.scopeName=e,[o,mc(r,...t)]}function mc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((i,{useScope:u,scopeName:d})=>{const l=u(s)[`__scope${d}`];return{...i,...l}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ir(e){const t=e+"CollectionProvider",[n,o]=Ge(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:v,children:h}=p,b=C.useRef(null),w=C.useRef(new Map).current;return m.jsx(r,{scope:v,itemMap:w,collectionRef:b,children:h})};a.displayName=t;const i=e+"CollectionSlot",u=pt(i),d=C.forwardRef((p,v)=>{const{scope:h,children:b}=p,w=s(i,h),S=ee(v,w.collectionRef);return m.jsx(u,{ref:S,children:b})});d.displayName=i;const f=e+"CollectionItemSlot",l="data-radix-collection-item",g=pt(f),y=C.forwardRef((p,v)=>{const{scope:h,children:b,...w}=p,S=C.useRef(null),E=ee(v,S),N=s(f,h);return C.useEffect(()=>(N.itemMap.set(S,{ref:S,...w}),()=>void N.itemMap.delete(S))),m.jsx(g,{[l]:"",ref:E,children:b})});y.displayName=f;function x(p){const v=s(e+"CollectionConsumer",p);return C.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${l}]`));return Array.from(v.itemMap.values()).sort((N,A)=>w.indexOf(N.ref.current)-w.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:d,ItemSlot:y},x,o]}function q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var ae=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},gc=c[" useInsertionEffect ".trim().toString()]||ae;function Ze({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,a]=hc({defaultProp:t,onChange:n}),i=e!==void 0,u=i?e:r;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const l=f.current;l!==i&&console.warn(`${o} is changing from ${l?"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,o])}const d=c.useCallback(f=>{var l;if(i){const g=vc(f)?f(e):f;g!==e&&((l=a.current)==null||l.call(a,g))}else s(f)},[i,e,s,a]);return[u,d]}function hc({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return gc(()=>{s.current=t},[t]),c.useEffect(()=>{var a;r.current!==n&&((a=s.current)==null||a.call(s,n),r.current=n)},[n,r]),[n,o,s]}function vc(e){return typeof e=="function"}function bc(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var ht=e=>{const{present:t,children:n}=e,o=yc(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=ee(o.ref,xc(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null};ht.displayName="Presence";function yc(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),a=e?"mounted":"unmounted",[i,u]=bc(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const d=_t(o.current);s.current=i==="mounted"?d:"none"},[i]),ae(()=>{const d=o.current,f=r.current;if(f!==e){const g=s.current,y=_t(d);e?u("MOUNT"):y==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(f&&g!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),ae(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,l=y=>{const p=_t(o.current).includes(CSS.escape(y.animationName));if(y.target===t&&p&&(u("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=y=>{y.target===t&&(s.current=_t(o.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:c.useCallback(d=>{o.current=d?getComputedStyle(d):null,n(d)},[])}}function _t(e){return(e==null?void 0:e.animationName)||"none"}function xc(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wc=c[" useId ".trim().toString()]||(()=>{}),Cc=0;function We(e){const[t,n]=c.useState(wc());return ae(()=>{n(o=>o??String(Cc++))},[e]),t?`radix-${t}`:""}var Xt="Collapsible",[Sc,_r]=Ge(Xt),[Ec,Bn]=Sc(Xt),kr=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:s,onOpenChange:a,...i}=e,[u,d]=Ze({prop:o,defaultProp:r??!1,onChange:a,caller:Xt});return m.jsx(Ec,{scope:n,disabled:s,contentId:We(),open:u,onOpenToggle:c.useCallback(()=>d(f=>!f),[d]),children:m.jsx(H.div,{"data-state":Wn(u),"data-disabled":s?"":void 0,...i,ref:t})})});kr.displayName=Xt;var Or="CollapsibleTrigger",Mr=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=Bn(Or,n);return m.jsx(H.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Wn(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:q(e.onClick,r.onOpenToggle)})});Mr.displayName=Or;var Fn="CollapsibleContent",jr=c.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=Bn(Fn,e.__scopeCollapsible);return m.jsx(ht,{present:n||r.open,children:({present:s})=>m.jsx(Ac,{...o,ref:t,present:s})})});jr.displayName=Fn;var Ac=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...s}=e,a=Bn(Fn,n),[i,u]=c.useState(o),d=c.useRef(null),f=ee(t,d),l=c.useRef(0),g=l.current,y=c.useRef(0),x=y.current,p=a.open||i,v=c.useRef(p),h=c.useRef(void 0);return c.useEffect(()=>{const b=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(b)},[]),ae(()=>{const b=d.current;if(b){h.current=h.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const w=b.getBoundingClientRect();l.current=w.height,y.current=w.width,v.current||(b.style.transitionDuration=h.current.transitionDuration,b.style.animationName=h.current.animationName),u(o)}},[a.open,o]),m.jsx(H.div,{"data-state":Wn(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!p,...s,ref:f,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:p&&r})});function Wn(e){return e?"open":"closed"}var Nc=kr,Rc=Mr,Pc=jr,Tc=c.createContext(void 0);function Lr(e){const t=c.useContext(Tc);return e||t||"ltr"}var Se="Accordion",Dc=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Vn,Ic,_c]=Ir(Se),[qt]=Ge(Se,[_c,_r]),zn=_r(),$r=C.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,s=o;return m.jsx(Vn.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?m.jsx(jc,{...s,ref:t}):m.jsx(Mc,{...r,ref:t})})});$r.displayName=Se;var[Br,kc]=qt(Se),[Fr,Oc]=qt(Se,{collapsible:!1}),Mc=C.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:s=!1,...a}=e,[i,u]=Ze({prop:n,defaultProp:o??"",onChange:r,caller:Se});return m.jsx(Br,{scope:e.__scopeAccordion,value:C.useMemo(()=>i?[i]:[],[i]),onItemOpen:u,onItemClose:C.useCallback(()=>s&&u(""),[s,u]),children:m.jsx(Fr,{scope:e.__scopeAccordion,collapsible:s,children:m.jsx(Wr,{...a,ref:t})})})}),jc=C.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...s}=e,[a,i]=Ze({prop:n,defaultProp:o??[],onChange:r,caller:Se}),u=C.useCallback(f=>i((l=[])=>[...l,f]),[i]),d=C.useCallback(f=>i((l=[])=>l.filter(g=>g!==f)),[i]);return m.jsx(Br,{scope:e.__scopeAccordion,value:a,onItemOpen:u,onItemClose:d,children:m.jsx(Fr,{scope:e.__scopeAccordion,collapsible:!0,children:m.jsx(Wr,{...s,ref:t})})})}),[Lc,Zt]=qt(Se),Wr=C.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:s="vertical",...a}=e,i=C.useRef(null),u=ee(i,t),d=Ic(n),l=Lr(r)==="ltr",g=q(e.onKeyDown,y=>{var D;if(!Dc.includes(y.key))return;const x=y.target,p=d().filter(j=>{var O;return!((O=j.ref.current)!=null&&O.disabled)}),v=p.findIndex(j=>j.ref.current===x),h=p.length;if(v===-1)return;y.preventDefault();let b=v;const w=0,S=h-1,E=()=>{b=v+1,b>S&&(b=w)},N=()=>{b=v-1,b<w&&(b=S)};switch(y.key){case"Home":b=w;break;case"End":b=S;break;case"ArrowRight":s==="horizontal"&&(l?E():N());break;case"ArrowDown":s==="vertical"&&E();break;case"ArrowLeft":s==="horizontal"&&(l?N():E());break;case"ArrowUp":s==="vertical"&&N();break}const A=b%h;(D=p[A].ref.current)==null||D.focus()});return m.jsx(Lc,{scope:n,disabled:o,direction:r,orientation:s,children:m.jsx(Vn.Slot,{scope:n,children:m.jsx(H.div,{...a,"data-orientation":s,ref:u,onKeyDown:o?void 0:g})})})}),Wt="AccordionItem",[$c,Hn]=qt(Wt),Vr=C.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,s=Zt(Wt,n),a=kc(Wt,n),i=zn(n),u=We(),d=o&&a.value.includes(o)||!1,f=s.disabled||e.disabled;return m.jsx($c,{scope:n,open:d,disabled:f,triggerId:u,children:m.jsx(Nc,{"data-orientation":s.orientation,"data-state":Kr(d),...i,...r,ref:t,disabled:f,open:d,onOpenChange:l=>{l?a.onItemOpen(o):a.onItemClose(o)}})})});Vr.displayName=Wt;var zr="AccordionHeader",Hr=C.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Zt(Se,n),s=Hn(zr,n);return m.jsx(H.h3,{"data-orientation":r.orientation,"data-state":Kr(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});Hr.displayName=zr;var An="AccordionTrigger",Ur=C.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Zt(Se,n),s=Hn(An,n),a=Oc(An,n),i=zn(n);return m.jsx(Vn.ItemSlot,{scope:n,children:m.jsx(Rc,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...i,...o,ref:t})})});Ur.displayName=An;var Gr="AccordionContent",Yr=C.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Zt(Se,n),s=Hn(Gr,n),a=zn(n);return m.jsx(Pc,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...a,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Yr.displayName=Gr;function Kr(e){return e?"open":"closed"}var Bc=$r,Fc=Vr,Wc=Hr,Xr=Ur,qr=Yr;const Vc=Bc,Zr=c.forwardRef(({className:e,...t},n)=>m.jsx(Fc,{ref:n,className:V("border rounded-lg",e),...t}));Zr.displayName="AccordionItem";const Qr=c.forwardRef(({className:e,children:t,...n},o)=>m.jsx(Wc,{className:"flex",children:m.jsxs(Xr,{ref:o,className:V("flex flex-1 items-center justify-between py-4 px-4 text-left text-sm font-medium transition-all hover:underline",e),...n,children:[t,m.jsx("span",{className:"ml-2",children:"▾"})]})}));Qr.displayName=Xr.displayName;const Jr=c.forwardRef(({className:e,children:t,...n},o)=>m.jsx(qr,{ref:o,className:V("px-4 pb-4 text-sm text-muted-foreground",e),...n,children:t}));Jr.displayName=qr.displayName;function Qe(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function zc(e,t=globalThis==null?void 0:globalThis.document){const n=Qe(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Hc="DismissableLayer",Nn="dismissableLayer.update",Uc="dismissableLayer.pointerDownOutside",Gc="dismissableLayer.focusOutside",Do,es=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Un=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...u}=e,d=c.useContext(es),[f,l]=c.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=c.useState({}),x=ee(t,A=>l(A)),p=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),h=p.indexOf(v),b=f?p.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,S=b>=h,E=Xc(A=>{const D=A.target,j=[...d.branches].some(O=>O.contains(D));!S||j||(r==null||r(A),a==null||a(A),A.defaultPrevented||i==null||i())},g),N=qc(A=>{const D=A.target;[...d.branches].some(O=>O.contains(D))||(s==null||s(A),a==null||a(A),A.defaultPrevented||i==null||i())},g);return zc(A=>{b===d.layers.size-1&&(o==null||o(A),!A.defaultPrevented&&i&&(A.preventDefault(),i()))},g),c.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Do=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Io(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Do)}},[f,g,n,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Io())},[f,d]),c.useEffect(()=>{const A=()=>y({});return document.addEventListener(Nn,A),()=>document.removeEventListener(Nn,A)},[]),m.jsx(H.div,{...u,ref:x,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,N.onFocusCapture),onBlurCapture:q(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,E.onPointerDownCapture)})});Un.displayName=Hc;var Yc="DismissableLayerBranch",Kc=c.forwardRef((e,t)=>{const n=c.useContext(es),o=c.useRef(null),r=ee(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),m.jsx(H.div,{...e,ref:r})});Kc.displayName=Yc;function Xc(e,t=globalThis==null?void 0:globalThis.document){const n=Qe(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const s=i=>{if(i.target&&!o.current){let u=function(){ts(Uc,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function qc(e,t=globalThis==null?void 0:globalThis.document){const n=Qe(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&ts(Gc,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Io(){const e=new CustomEvent(Nn);document.dispatchEvent(e)}function ts(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?_l(r,s):r.dispatchEvent(s)}var mn="focusScope.autoFocusOnMount",gn="focusScope.autoFocusOnUnmount",_o={bubbles:!1,cancelable:!0},Zc="FocusScope",Gn=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[i,u]=c.useState(null),d=Qe(r),f=Qe(s),l=c.useRef(null),g=ee(t,p=>u(p)),y=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let p=function(w){if(y.paused||!i)return;const S=w.target;i.contains(S)?l.current=S:Fe(l.current,{select:!0})},v=function(w){if(y.paused||!i)return;const S=w.relatedTarget;S!==null&&(i.contains(S)||Fe(l.current,{select:!0}))},h=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Fe(i)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const b=new MutationObserver(h);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),b.disconnect()}}},[o,i,y.paused]),c.useEffect(()=>{if(i){Oo.add(y);const p=document.activeElement;if(!i.contains(p)){const h=new CustomEvent(mn,_o);i.addEventListener(mn,d),i.dispatchEvent(h),h.defaultPrevented||(Qc(od(ns(i)),{select:!0}),document.activeElement===p&&Fe(i))}return()=>{i.removeEventListener(mn,d),setTimeout(()=>{const h=new CustomEvent(gn,_o);i.addEventListener(gn,f),i.dispatchEvent(h),h.defaultPrevented||Fe(p??document.body,{select:!0}),i.removeEventListener(gn,f),Oo.remove(y)},0)}}},[i,d,f,y]);const x=c.useCallback(p=>{if(!n&&!o||y.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,h=document.activeElement;if(v&&h){const b=p.currentTarget,[w,S]=Jc(b);w&&S?!p.shiftKey&&h===S?(p.preventDefault(),n&&Fe(w,{select:!0})):p.shiftKey&&h===w&&(p.preventDefault(),n&&Fe(S,{select:!0})):h===b&&p.preventDefault()}},[n,o,y.paused]);return m.jsx(H.div,{tabIndex:-1,...a,ref:g,onKeyDown:x})});Gn.displayName=Zc;function Qc(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Fe(o,{select:t}),document.activeElement!==n)return}function Jc(e){const t=ns(e),n=ko(t,e),o=ko(t.reverse(),e);return[n,o]}function ns(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ko(e,t){for(const n of e)if(!ed(n,{upTo:t}))return n}function ed(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 td(e){return e instanceof HTMLInputElement&&"select"in e}function Fe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&td(e)&&t&&e.select()}}var Oo=nd();function nd(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Mo(e,t),e.unshift(t)},remove(t){var n;e=Mo(e,t),(n=e[0])==null||n.resume()}}}function Mo(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function od(e){return e.filter(t=>t.tagName!=="A")}var rd="Portal",Yn=c.forwardRef((e,t)=>{var i;const{container:n,...o}=e,[r,s]=c.useState(!1);ae(()=>s(!0),[]);const a=n||r&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?jn.createPortal(m.jsx(H.div,{...o,ref:t}),a):null});Yn.displayName=rd;var hn=0;function os(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??jo()),document.body.insertAdjacentElement("beforeend",e[1]??jo()),hn++,()=>{hn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hn--}},[])}function jo(){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}var Re=function(){return Re=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Re.apply(this,arguments)};function rs(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function sd(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var $t="right-scroll-bar-position",Bt="width-before-scroll-bar",ad="with-scroll-bars-hidden",id="--removed-body-scroll-bar-size";function vn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ld(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var cd=typeof window<"u"?c.useLayoutEffect:c.useEffect,Lo=new WeakMap;function dd(e,t){var n=ld(null,function(o){return e.forEach(function(r){return vn(r,o)})});return cd(function(){var o=Lo.get(n);if(o){var r=new Set(o),s=new Set(e),a=n.current;r.forEach(function(i){s.has(i)||vn(i,null)}),s.forEach(function(i){r.has(i)||vn(i,a)})}Lo.set(n,e)},[e]),n}function ud(e){return e}function fd(e,t){t===void 0&&(t=ud);var n=[],o=!1,r={read:function(){if(o)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,o);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(o=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){o=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var u=function(){var f=a;a=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return r}function pd(e){e===void 0&&(e={});var t=fd(null);return t.options=Re({async:!0,ssr:!1},e),t}var ss=function(e){var t=e.sideCar,n=rs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,Re({},n))};ss.isSideCarExport=!0;function md(e,t){return e.useMedium(t),ss}var as=pd(),bn=function(){},Qt=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:bn,onWheelCapture:bn,onTouchMoveCapture:bn}),r=o[0],s=o[1],a=e.forwardProps,i=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,l=e.shards,g=e.sideCar,y=e.noRelative,x=e.noIsolation,p=e.inert,v=e.allowPinchZoom,h=e.as,b=h===void 0?"div":h,w=e.gapMode,S=rs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,N=dd([n,t]),A=Re(Re({},S),r);return c.createElement(c.Fragment,null,f&&c.createElement(E,{sideCar:as,removeScrollBar:d,shards:l,noRelative:y,noIsolation:x,inert:p,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:w}),a?c.cloneElement(c.Children.only(i),Re(Re({},A),{ref:N})):c.createElement(b,Re({},A,{className:u,ref:N}),i))});Qt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qt.classNames={fullWidth:Bt,zeroRight:$t};var gd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gd();return t&&e.setAttribute("nonce",t),e}function vd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hd())&&(vd(t,n),bd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xd=function(){var e=yd();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},is=function(){var e=xd(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},wd={left:0,top:0,right:0,gap:0},yn=function(e){return parseInt(e||"",10)||0},Cd=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[yn(n),yn(o),yn(r)]},Sd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wd;var t=Cd(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Ed=is(),dt="data-scroll-locked",Ad=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2
+ .`.concat(ad,` {
3
+ overflow: hidden `).concat(o,`;
4
+ padding-right: `).concat(i,"px ").concat(o,`;
5
+ }
6
+ body[`).concat(dt,`] {
7
+ overflow: hidden `).concat(o,`;
8
+ overscroll-behavior: contain;
9
+ `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
10
+ padding-left: `.concat(r,`px;
11
+ padding-top: `).concat(s,`px;
12
+ padding-right: `).concat(a,`px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: `).concat(i,"px ").concat(o,`;
16
+ `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(o,";")].filter(Boolean).join(""),`
17
+ }
18
+
19
+ .`).concat($t,` {
20
+ right: `).concat(i,"px ").concat(o,`;
21
+ }
22
+
23
+ .`).concat(Bt,` {
24
+ margin-right: `).concat(i,"px ").concat(o,`;
25
+ }
26
+
27
+ .`).concat($t," .").concat($t,` {
28
+ right: 0 `).concat(o,`;
29
+ }
30
+
31
+ .`).concat(Bt," .").concat(Bt,` {
32
+ margin-right: 0 `).concat(o,`;
33
+ }
34
+
35
+ body[`).concat(dt,`] {
36
+ `).concat(id,": ").concat(i,`px;
37
+ }
38
+ `)},$o=function(){var e=parseInt(document.body.getAttribute(dt)||"0",10);return isFinite(e)?e:0},Nd=function(){c.useEffect(function(){return document.body.setAttribute(dt,($o()+1).toString()),function(){var e=$o()-1;e<=0?document.body.removeAttribute(dt):document.body.setAttribute(dt,e.toString())}},[])},Rd=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Nd();var s=c.useMemo(function(){return Sd(r)},[r]);return c.createElement(Ed,{styles:Ad(s,!t,r,n?"":"!important")})},Rn=!1;if(typeof window<"u")try{var kt=Object.defineProperty({},"passive",{get:function(){return Rn=!0,!0}});window.addEventListener("test",kt,kt),window.removeEventListener("test",kt,kt)}catch{Rn=!1}var at=Rn?{passive:!1}:!1,Pd=function(e){return e.tagName==="TEXTAREA"},ls=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Pd(e)&&n[t]==="visible")},Td=function(e){return ls(e,"overflowY")},Dd=function(e){return ls(e,"overflowX")},Bo=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=cs(e,o);if(r){var s=ds(e,o),a=s[1],i=s[2];if(a>i)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Id=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},_d=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},cs=function(e,t){return e==="v"?Td(t):Dd(t)},ds=function(e,t){return e==="v"?Id(t):_d(t)},kd=function(e,t){return e==="h"&&t==="rtl"?-1:1},Od=function(e,t,n,o,r){var s=kd(e,window.getComputedStyle(t).direction),a=s*o,i=n.target,u=t.contains(i),d=!1,f=a>0,l=0,g=0;do{if(!i)break;var y=ds(e,i),x=y[0],p=y[1],v=y[2],h=p-v-s*x;(x||h)&&cs(e,i)&&(l+=h,g+=x);var b=i.parentNode;i=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(f&&Math.abs(l)<1||!f&&Math.abs(g)<1)&&(d=!0),d},Ot=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fo=function(e){return[e.deltaX,e.deltaY]},Wo=function(e){return e&&"current"in e?e.current:e},Md=function(e,t){return e[0]===t[0]&&e[1]===t[1]},jd=function(e){return`
39
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
40
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
+ `)},Ld=0,it=[];function $d(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(Ld++)[0],s=c.useState(is)[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(r));var p=sd([e.lockRef.current],(e.shards||[]).map(Wo),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!a.current.allowPinchZoom;var h=Ot(p),b=n.current,w="deltaX"in p?p.deltaX:b[0]-h[0],S="deltaY"in p?p.deltaY:b[1]-h[1],E,N=p.target,A=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in p&&A==="h"&&N.type==="range")return!1;var D=Bo(A,N);if(!D)return!0;if(D?E=A:(E=A==="v"?"h":"v",D=Bo(A,N)),!D)return!1;if(!o.current&&"changedTouches"in p&&(w||S)&&(o.current=E),!E)return!0;var j=o.current||E;return Od(j,v,p,j==="h"?w:S)},[]),u=c.useCallback(function(p){var v=p;if(!(!it.length||it[it.length-1]!==s)){var h="deltaY"in v?Fo(v):Ot(v),b=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&Md(E.delta,h)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var w=(a.current.shards||[]).map(Wo).filter(Boolean).filter(function(E){return E.contains(v.target)}),S=w.length>0?i(v,w[0]):!a.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),d=c.useCallback(function(p,v,h,b){var w={name:p,delta:v,target:h,should:b,shadowParent:Bd(h)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),f=c.useCallback(function(p){n.current=Ot(p),o.current=void 0},[]),l=c.useCallback(function(p){d(p.type,Fo(p),p.target,i(p,e.lockRef.current))},[]),g=c.useCallback(function(p){d(p.type,Ot(p),p.target,i(p,e.lockRef.current))},[]);c.useEffect(function(){return it.push(s),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:g}),document.addEventListener("wheel",u,at),document.addEventListener("touchmove",u,at),document.addEventListener("touchstart",f,at),function(){it=it.filter(function(p){return p!==s}),document.removeEventListener("wheel",u,at),document.removeEventListener("touchmove",u,at),document.removeEventListener("touchstart",f,at)}},[]);var y=e.removeScrollBar,x=e.inert;return c.createElement(c.Fragment,null,x?c.createElement(s,{styles:jd(r)}):null,y?c.createElement(Rd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Bd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Fd=md(as,$d);var Kn=c.forwardRef(function(e,t){return c.createElement(Qt,Re({},e,{ref:t,sideCar:Fd}))});Kn.classNames=Qt.classNames;var Wd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lt=new WeakMap,Mt=new WeakMap,jt={},xn=0,us=function(e){return e&&(e.host||us(e.parentNode))},Vd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=us(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zd=function(e,t,n,o){var r=Vd(t,Array.isArray(e)?e:[e]);jt[n]||(jt[n]=new WeakMap);var s=jt[n],a=[],i=new Set,u=new Set(r),d=function(l){!l||i.has(l)||(i.add(l),d(l.parentNode))};r.forEach(d);var f=function(l){!l||u.has(l)||Array.prototype.forEach.call(l.children,function(g){if(i.has(g))f(g);else try{var y=g.getAttribute(o),x=y!==null&&y!=="false",p=(lt.get(g)||0)+1,v=(s.get(g)||0)+1;lt.set(g,p),s.set(g,v),a.push(g),p===1&&x&&Mt.set(g,!0),v===1&&g.setAttribute(n,"true"),x||g.setAttribute(o,"true")}catch(h){console.error("aria-hidden: cannot operate on ",g,h)}})};return f(t),i.clear(),xn++,function(){a.forEach(function(l){var g=lt.get(l)-1,y=s.get(l)-1;lt.set(l,g),s.set(l,y),g||(Mt.has(l)||l.removeAttribute(o),Mt.delete(l)),y||l.removeAttribute(n)}),xn--,xn||(lt=new WeakMap,lt=new WeakMap,Mt=new WeakMap,jt={})}},fs=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Wd(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),zd(o,r,n,"aria-hidden")):function(){return null}},Jt="Dialog",[ps,ms]=Ge(Jt),[Hd,Ee]=ps(Jt),gs=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:a=!0}=e,i=c.useRef(null),u=c.useRef(null),[d,f]=Ze({prop:o,defaultProp:r??!1,onChange:s,caller:Jt});return m.jsx(Hd,{scope:t,triggerRef:i,contentRef:u,contentId:We(),titleId:We(),descriptionId:We(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(l=>!l),[f]),modal:a,children:n})};gs.displayName=Jt;var hs="DialogTrigger",vs=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Ee(hs,n),s=ee(t,r.triggerRef);return m.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Zn(r.open),...o,ref:s,onClick:q(e.onClick,r.onOpenToggle)})});vs.displayName=hs;var Xn="DialogPortal",[Ud,bs]=ps(Xn,{forceMount:void 0}),ys=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=Ee(Xn,t);return m.jsx(Ud,{scope:t,forceMount:n,children:c.Children.map(o,a=>m.jsx(ht,{present:n||s.open,children:m.jsx(Yn,{asChild:!0,container:r,children:a})}))})};ys.displayName=Xn;var Vt="DialogOverlay",xs=c.forwardRef((e,t)=>{const n=bs(Vt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=Ee(Vt,e.__scopeDialog);return s.modal?m.jsx(ht,{present:o||s.open,children:m.jsx(Yd,{...r,ref:t})}):null});xs.displayName=Vt;var Gd=pt("DialogOverlay.RemoveScroll"),Yd=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Ee(Vt,n);return m.jsx(Kn,{as:Gd,allowPinchZoom:!0,shards:[r.contentRef],children:m.jsx(H.div,{"data-state":Zn(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Je="DialogContent",ws=c.forwardRef((e,t)=>{const n=bs(Je,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=Ee(Je,e.__scopeDialog);return m.jsx(ht,{present:o||s.open,children:s.modal?m.jsx(Kd,{...r,ref:t}):m.jsx(Xd,{...r,ref:t})})});ws.displayName=Je;var Kd=c.forwardRef((e,t)=>{const n=Ee(Je,e.__scopeDialog),o=c.useRef(null),r=ee(t,n.contentRef,o);return c.useEffect(()=>{const s=o.current;if(s)return fs(s)},[]),m.jsx(Cs,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:q(e.onFocusOutside,s=>s.preventDefault())})}),Xd=c.forwardRef((e,t)=>{const n=Ee(Je,e.__scopeDialog),o=c.useRef(!1),r=c.useRef(!1);return m.jsx(Cs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(o.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const a=s.target;((d=n.triggerRef.current)==null?void 0:d.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Cs=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...a}=e,i=Ee(Je,n),u=c.useRef(null),d=ee(t,u);return os(),m.jsxs(m.Fragment,{children:[m.jsx(Gn,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:m.jsx(Un,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Zn(i.open),...a,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Zd,{titleId:i.titleId}),m.jsx(Jd,{contentRef:u,descriptionId:i.descriptionId})]})]})}),qn="DialogTitle",Ss=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Ee(qn,n);return m.jsx(H.h2,{id:r.titleId,...o,ref:t})});Ss.displayName=qn;var Es="DialogDescription",As=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Ee(Es,n);return m.jsx(H.p,{id:r.descriptionId,...o,ref:t})});As.displayName=Es;var Ns="DialogClose",Rs=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Ee(Ns,n);return m.jsx(H.button,{type:"button",...o,ref:t,onClick:q(e.onClick,()=>r.onOpenChange(!1))})});Rs.displayName=Ns;function Zn(e){return e?"open":"closed"}var Ps="DialogTitleWarning",[qd,Ts]=pc(Ps,{contentName:Je,titleName:qn,docsSlug:"dialog"}),Zd=({titleId:e})=>{const t=Ts(Ps),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
+
43
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
+
45
+ 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},Qd="DialogDescriptionWarning",Jd=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ts(Qd).contentName}}.`;return c.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},Ds=gs,Is=vs,_s=ys,Qn=xs,Jn=ws,eo=Ss,to=As,en=Rs;/**
46
+ * @license lucide-react v0.542.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */const eu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),tu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),Vo=e=>{const t=tu(e);return t.charAt(0).toUpperCase()+t.slice(1)},ks=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim(),nu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
51
+ * @license lucide-react v0.542.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */var ou={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"};/**
56
+ * @license lucide-react v0.542.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const ru=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:a,...i},u)=>C.createElement("svg",{ref:u,...ou,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:ks("lucide",r),...!s&&!nu(i)&&{"aria-hidden":"true"},...i},[...a.map(([d,f])=>C.createElement(d,f)),...Array.isArray(s)?s:[s]]));/**
61
+ * @license lucide-react v0.542.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const tn=(e,t)=>{const n=C.forwardRef(({className:o,...r},s)=>C.createElement(ru,{ref:s,iconNode:t,className:ks(`lucide-${eu(Vo(e))}`,`lucide-${e}`,o),...r}));return n.displayName=Vo(e),n};/**
66
+ * @license lucide-react v0.542.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const su=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Os=tn("check",su);/**
71
+ * @license lucide-react v0.542.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const au=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ms=tn("chevron-down",au);/**
76
+ * @license lucide-react v0.542.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const iu=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],lu=tn("chevron-up",iu);/**
81
+ * @license lucide-react v0.542.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const cu=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],du=tn("x",cu),uu=Ds,fu=Is,js=_s,pu=en,no=c.forwardRef(({className:e,...t},n)=>m.jsx(Qn,{ref:n,className:V("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}));no.displayName=Qn.displayName;const Ls=c.forwardRef(({className:e,children:t,...n},o)=>m.jsxs(js,{children:[m.jsx(no,{}),m.jsxs(Jn,{ref:o,className:V("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-white 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,m.jsxs(en,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-500",children:[m.jsx(du,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ls.displayName=Jn.displayName;const $s=({className:e,...t})=>m.jsx("div",{className:V("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$s.displayName="DialogHeader";const Bs=({className:e,...t})=>m.jsx("div",{className:V("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Bs.displayName="DialogFooter";const Fs=c.forwardRef(({className:e,...t},n)=>m.jsx(eo,{ref:n,className:V("text-lg font-semibold leading-none tracking-tight",e),...t}));Fs.displayName=eo.displayName;const Ws=c.forwardRef(({className:e,...t},n)=>m.jsx(to,{ref:n,className:V("text-sm text-gray-500",e),...t}));Ws.displayName=to.displayName;function zo(e,[t,n]){return Math.min(n,Math.max(t,e))}const mu=["top","right","bottom","left"],ze=Math.min,me=Math.max,zt=Math.round,Lt=Math.floor,Te=e=>({x:e,y:e}),gu={left:"right",right:"left",bottom:"top",top:"bottom"},hu={start:"end",end:"start"};function Pn(e,t,n){return me(e,ze(t,n))}function ke(e,t){return typeof e=="function"?e(t):e}function Oe(e){return e.split("-")[0]}function vt(e){return e.split("-")[1]}function oo(e){return e==="x"?"y":"x"}function ro(e){return e==="y"?"height":"width"}const vu=new Set(["top","bottom"]);function Pe(e){return vu.has(Oe(e))?"y":"x"}function so(e){return oo(Pe(e))}function bu(e,t,n){n===void 0&&(n=!1);const o=vt(e),r=so(e),s=ro(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ht(a)),[a,Ht(a)]}function yu(e){const t=Ht(e);return[Tn(e),t,Tn(t)]}function Tn(e){return e.replace(/start|end/g,t=>hu[t])}const Ho=["left","right"],Uo=["right","left"],xu=["top","bottom"],wu=["bottom","top"];function Cu(e,t,n){switch(e){case"top":case"bottom":return n?t?Uo:Ho:t?Ho:Uo;case"left":case"right":return t?xu:wu;default:return[]}}function Su(e,t,n,o){const r=vt(e);let s=Cu(Oe(e),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(Tn)))),s}function Ht(e){return e.replace(/left|right|bottom|top/g,t=>gu[t])}function Eu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vs(e){return typeof e!="number"?Eu(e):{top:e,right:e,bottom:e,left:e}}function Ut(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Go(e,t,n){let{reference:o,floating:r}=e;const s=Pe(t),a=so(t),i=ro(a),u=Oe(t),d=s==="y",f=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,g=o[i]/2-r[i]/2;let y;switch(u){case"top":y={x:f,y:o.y-r.height};break;case"bottom":y={x:f,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:l};break;case"left":y={x:o.x-r.width,y:l};break;default:y={x:o.x,y:o.y}}switch(vt(t)){case"start":y[a]-=g*(n&&d?-1:1);break;case"end":y[a]+=g*(n&&d?-1:1);break}return y}const Au=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:l}=Go(d,o,u),g=o,y={},x=0;for(let p=0;p<i.length;p++){const{name:v,fn:h}=i[p],{x:b,y:w,data:S,reset:E}=await h({x:f,y:l,initialPlacement:o,placement:g,strategy:r,middlewareData:y,rects:d,platform:a,elements:{reference:e,floating:t}});f=b??f,l=w??l,y={...y,[v]:{...y[v],...S}},E&&x<=50&&(x++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(d=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:f,y:l}=Go(d,g,u)),p=-1)}return{x:f,y:l,placement:g,strategy:r,middlewareData:y}};async function St(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:a,elements:i,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:l="floating",altBoundary:g=!1,padding:y=0}=ke(t,e),x=Vs(y),v=i[g?l==="floating"?"reference":"floating":l],h=Ut(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:u})),b=l==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=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},E=Ut(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:w,strategy:u}):b);return{top:(h.top-E.top+x.top)/S.y,bottom:(E.bottom-h.bottom+x.bottom)/S.y,left:(h.left-E.left+x.left)/S.x,right:(E.right-h.right+x.right)/S.x}}const Nu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:a,elements:i,middlewareData:u}=t,{element:d,padding:f=0}=ke(e,t)||{};if(d==null)return{};const l=Vs(f),g={x:n,y:o},y=so(r),x=ro(y),p=await a.getDimensions(d),v=y==="y",h=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",S=s.reference[x]+s.reference[y]-g[y]-s.floating[x],E=g[y]-s.reference[y],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let A=N?N[w]:0;(!A||!await(a.isElement==null?void 0:a.isElement(N)))&&(A=i.floating[w]||s.floating[x]);const D=S/2-E/2,j=A/2-p[x]/2-1,O=ze(l[h],j),U=ze(l[b],j),T=O,M=A-p[x]-U,L=A/2-p[x]/2+D,Y=Pn(T,L,M),R=!u.arrow&&vt(r)!=null&&L!==Y&&s.reference[x]/2-(L<T?O:U)-p[x]/2<0,I=R?L<T?L-T:L-M:0;return{[y]:g[y]+I,data:{[y]:Y,centerOffset:L-Y-I,...R&&{alignmentOffset:I}},reset:R}}}),Ru=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:i,platform:u,elements:d}=t,{mainAxis:f=!0,crossAxis:l=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:p=!0,...v}=ke(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const h=Oe(r),b=Pe(i),w=Oe(i)===i,S=await(u.isRTL==null?void 0:u.isRTL(d.floating)),E=g||(w||!p?[Ht(i)]:yu(i)),N=x!=="none";!g&&N&&E.push(...Su(i,p,x,S));const A=[i,...E],D=await St(t,v),j=[];let O=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&j.push(D[h]),l){const L=bu(r,a,S);j.push(D[L[0]],D[L[1]])}if(O=[...O,{placement:r,overflows:j}],!j.every(L=>L<=0)){var U,T;const L=(((U=s.flip)==null?void 0:U.index)||0)+1,Y=A[L];if(Y&&(!(l==="alignment"?b!==Pe(Y):!1)||O.every(P=>Pe(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:L,overflows:O},reset:{placement:Y}};let R=(T=O.filter(I=>I.overflows[0]<=0).sort((I,P)=>I.overflows[1]-P.overflows[1])[0])==null?void 0:T.placement;if(!R)switch(y){case"bestFit":{var M;const I=(M=O.filter(P=>{if(N){const F=Pe(P.placement);return F===b||F==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(F=>F>0).reduce((F,Z)=>F+Z,0)]).sort((P,F)=>P[1]-F[1])[0])==null?void 0:M[0];I&&(R=I);break}case"initialPlacement":R=i;break}if(r!==R)return{reset:{placement:R}}}return{}}}};function Yo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ko(e){return mu.some(t=>e[t]>=0)}const Pu=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=ke(e,t);switch(o){case"referenceHidden":{const s=await St(t,{...r,elementContext:"reference"}),a=Yo(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ko(a)}}}case"escaped":{const s=await St(t,{...r,altBoundary:!0}),a=Yo(s,n.floating);return{data:{escapedOffsets:a,escaped:Ko(a)}}}default:return{}}}}},zs=new Set(["left","top"]);async function Tu(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=Oe(n),i=vt(n),u=Pe(n)==="y",d=zs.has(a)?-1:1,f=s&&u?-1:1,l=ke(t,e);let{mainAxis:g,crossAxis:y,alignmentAxis:x}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return i&&typeof x=="number"&&(y=i==="end"?x*-1:x),u?{x:y*f,y:g*d}:{x:g*d,y:y*f}}const Du=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:a,middlewareData:i}=t,u=await Tu(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:s+u.y,data:{...u,placement:a}}}}},Iu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:v=>{let{x:h,y:b}=v;return{x:h,y:b}}},...u}=ke(e,t),d={x:n,y:o},f=await St(t,u),l=Pe(Oe(r)),g=oo(l);let y=d[g],x=d[l];if(s){const v=g==="y"?"top":"left",h=g==="y"?"bottom":"right",b=y+f[v],w=y-f[h];y=Pn(b,y,w)}if(a){const v=l==="y"?"top":"left",h=l==="y"?"bottom":"right",b=x+f[v],w=x-f[h];x=Pn(b,x,w)}const p=i.fn({...t,[g]:y,[l]:x});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[g]:s,[l]:a}}}}}},_u=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:u=!0,crossAxis:d=!0}=ke(e,t),f={x:n,y:o},l=Pe(r),g=oo(l);let y=f[g],x=f[l];const p=ke(i,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const w=g==="y"?"height":"width",S=s.reference[g]-s.floating[w]+v.mainAxis,E=s.reference[g]+s.reference[w]-v.mainAxis;y<S?y=S:y>E&&(y=E)}if(d){var h,b;const w=g==="y"?"width":"height",S=zs.has(Oe(r)),E=s.reference[l]-s.floating[w]+(S&&((h=a.offset)==null?void 0:h[l])||0)+(S?0:v.crossAxis),N=s.reference[l]+s.reference[w]+(S?0:((b=a.offset)==null?void 0:b[l])||0)-(S?v.crossAxis:0);x<E?x=E:x>N&&(x=N)}return{[g]:y,[l]:x}}}},ku=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:a,elements:i}=t,{apply:u=()=>{},...d}=ke(e,t),f=await St(t,d),l=Oe(r),g=vt(r),y=Pe(r)==="y",{width:x,height:p}=s.floating;let v,h;l==="top"||l==="bottom"?(v=l,h=g===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(h=l,v=g==="end"?"top":"bottom");const b=p-f.top-f.bottom,w=x-f.left-f.right,S=ze(p-f[v],b),E=ze(x-f[h],w),N=!t.middlewareData.shift;let A=S,D=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(A=b),N&&!g){const O=me(f.left,0),U=me(f.right,0),T=me(f.top,0),M=me(f.bottom,0);y?D=x-2*(O!==0||U!==0?O+U:me(f.left,f.right)):A=p-2*(T!==0||M!==0?T+M:me(f.top,f.bottom))}await u({...t,availableWidth:D,availableHeight:A});const j=await a.getDimensions(i.floating);return x!==j.width||p!==j.height?{reset:{rects:!0}}:{}}}};function nn(){return typeof window<"u"}function bt(e){return Hs(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(Hs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hs(e){return nn()?e instanceof Node||e instanceof ge(e).Node:!1}function we(e){return nn()?e instanceof Element||e instanceof ge(e).Element:!1}function De(e){return nn()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function Xo(e){return!nn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}const Ou=new Set(["inline","contents"]);function Nt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Ou.has(r)}const Mu=new Set(["table","td","th"]);function ju(e){return Mu.has(bt(e))}const Lu=[":popover-open",":modal"];function on(e){return Lu.some(t=>{try{return e.matches(t)}catch{return!1}})}const $u=["transform","translate","scale","rotate","perspective"],Bu=["transform","translate","scale","rotate","perspective","filter"],Fu=["paint","layout","strict","content"];function ao(e){const t=io(),n=we(e)?Ce(e):e;return $u.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Bu.some(o=>(n.willChange||"").includes(o))||Fu.some(o=>(n.contain||"").includes(o))}function Wu(e){let t=He(e);for(;De(t)&&!mt(t);){if(ao(t))return t;if(on(t))return null;t=He(t)}return null}function io(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Vu=new Set(["html","body","#document"]);function mt(e){return Vu.has(bt(e))}function Ce(e){return ge(e).getComputedStyle(e)}function rn(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function He(e){if(bt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xo(e)&&e.host||Ie(e);return Xo(t)?t.host:t}function Us(e){const t=He(e);return mt(t)?e.ownerDocument?e.ownerDocument.body:e.body:De(t)&&Nt(t)?t:Us(t)}function Et(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Us(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),a=ge(r);if(s){const i=Dn(a);return t.concat(a,a.visualViewport||[],Nt(r)?r:[],i&&n?Et(i):[])}return t.concat(r,Et(r,[],n))}function Dn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gs(e){const t=Ce(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=De(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,i=zt(n)!==s||zt(o)!==a;return i&&(n=s,o=a),{width:n,height:o,$:i}}function lo(e){return we(e)?e:e.contextElement}function ut(e){const t=lo(e);if(!De(t))return Te(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Gs(t);let a=(s?zt(n.width):n.width)/o,i=(s?zt(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const zu=Te(0);function Ys(e){const t=ge(e);return!io()||!t.visualViewport?zu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Hu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ge(e)?!1:t}function et(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=lo(e);let a=Te(1);t&&(o?we(o)&&(a=ut(o)):a=ut(e));const i=Hu(s,n,o)?Ys(s):Te(0);let u=(r.left+i.x)/a.x,d=(r.top+i.y)/a.y,f=r.width/a.x,l=r.height/a.y;if(s){const g=ge(s),y=o&&we(o)?ge(o):o;let x=g,p=Dn(x);for(;p&&o&&y!==x;){const v=ut(p),h=p.getBoundingClientRect(),b=Ce(p),w=h.left+(p.clientLeft+parseFloat(b.paddingLeft))*v.x,S=h.top+(p.clientTop+parseFloat(b.paddingTop))*v.y;u*=v.x,d*=v.y,f*=v.x,l*=v.y,u+=w,d+=S,x=ge(p),p=Dn(x)}}return Ut({width:f,height:l,x:u,y:d})}function sn(e,t){const n=rn(e).scrollLeft;return t?t.left+n:et(Ie(e)).left+n}function Ks(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-sn(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Uu(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",a=Ie(o),i=t?on(t.floating):!1;if(o===a||i&&s)return n;let u={scrollLeft:0,scrollTop:0},d=Te(1);const f=Te(0),l=De(o);if((l||!l&&!s)&&((bt(o)!=="body"||Nt(a))&&(u=rn(o)),De(o))){const y=et(o);d=ut(o),f.x=y.x+o.clientLeft,f.y=y.y+o.clientTop}const g=a&&!l&&!s?Ks(a,u):Te(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+f.x+g.x,y:n.y*d.y-u.scrollTop*d.y+f.y+g.y}}function Gu(e){return Array.from(e.getClientRects())}function Yu(e){const t=Ie(e),n=rn(e),o=e.ownerDocument.body,r=me(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=me(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+sn(e);const i=-n.scrollTop;return Ce(o).direction==="rtl"&&(a+=me(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:i}}const qo=25;function Ku(e,t){const n=ge(e),o=Ie(e),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,i=0,u=0;if(r){s=r.width,a=r.height;const f=io();(!f||f&&t==="fixed")&&(i=r.offsetLeft,u=r.offsetTop)}const d=sn(o);if(d<=0){const f=o.ownerDocument,l=f.body,g=getComputedStyle(l),y=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,x=Math.abs(o.clientWidth-l.clientWidth-y);x<=qo&&(s-=x)}else d<=qo&&(s+=d);return{width:s,height:a,x:i,y:u}}const Xu=new Set(["absolute","fixed"]);function qu(e,t){const n=et(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=De(e)?ut(e):Te(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,u=r*s.x,d=o*s.y;return{width:a,height:i,x:u,y:d}}function Zo(e,t,n){let o;if(t==="viewport")o=Ku(e,n);else if(t==="document")o=Yu(Ie(e));else if(we(t))o=qu(t,n);else{const r=Ys(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ut(o)}function Xs(e,t){const n=He(e);return n===t||!we(n)||mt(n)?!1:Ce(n).position==="fixed"||Xs(n,t)}function Zu(e,t){const n=t.get(e);if(n)return n;let o=Et(e,[],!1).filter(i=>we(i)&&bt(i)!=="body"),r=null;const s=Ce(e).position==="fixed";let a=s?He(e):e;for(;we(a)&&!mt(a);){const i=Ce(a),u=ao(a);!u&&i.position==="fixed"&&(r=null),(s?!u&&!r:!u&&i.position==="static"&&!!r&&Xu.has(r.position)||Nt(a)&&!u&&Xs(e,a))?o=o.filter(f=>f!==a):r=i,a=He(a)}return t.set(e,o),o}function Qu(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?on(t)?[]:Zu(t,this._c):[].concat(n),o],i=a[0],u=a.reduce((d,f)=>{const l=Zo(t,f,r);return d.top=me(l.top,d.top),d.right=ze(l.right,d.right),d.bottom=ze(l.bottom,d.bottom),d.left=me(l.left,d.left),d},Zo(t,i,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Ju(e){const{width:t,height:n}=Gs(e);return{width:t,height:n}}function ef(e,t,n){const o=De(t),r=Ie(t),s=n==="fixed",a=et(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const u=Te(0);function d(){u.x=sn(r)}if(o||!o&&!s)if((bt(t)!=="body"||Nt(r))&&(i=rn(t)),o){const y=et(t,!0,s,t);u.x=y.x+t.clientLeft,u.y=y.y+t.clientTop}else r&&d();s&&!o&&r&&d();const f=r&&!o&&!s?Ks(r,i):Te(0),l=a.left+i.scrollLeft-u.x-f.x,g=a.top+i.scrollTop-u.y-f.y;return{x:l,y:g,width:a.width,height:a.height}}function wn(e){return Ce(e).position==="static"}function Qo(e,t){if(!De(e)||Ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ie(e)===n&&(n=n.ownerDocument.body),n}function qs(e,t){const n=ge(e);if(on(e))return n;if(!De(e)){let r=He(e);for(;r&&!mt(r);){if(we(r)&&!wn(r))return r;r=He(r)}return n}let o=Qo(e,t);for(;o&&ju(o)&&wn(o);)o=Qo(o,t);return o&&mt(o)&&wn(o)&&!ao(o)?n:o||Wu(e)||n}const tf=async function(e){const t=this.getOffsetParent||qs,n=this.getDimensions,o=await n(e.floating);return{reference:ef(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function nf(e){return Ce(e).direction==="rtl"}const of={convertOffsetParentRelativeRectToViewportRelativeRect:Uu,getDocumentElement:Ie,getClippingRect:Qu,getOffsetParent:qs,getElementRects:tf,getClientRects:Gu,getDimensions:Ju,getScale:ut,isElement:we,isRTL:nf};function Zs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rf(e,t){let n=null,o;const r=Ie(e);function s(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function a(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:f,top:l,width:g,height:y}=d;if(i||t(),!g||!y)return;const x=Lt(l),p=Lt(r.clientWidth-(f+g)),v=Lt(r.clientHeight-(l+y)),h=Lt(f),w={rootMargin:-x+"px "+-p+"px "+-v+"px "+-h+"px",threshold:me(0,ze(1,u))||1};let S=!0;function E(N){const A=N[0].intersectionRatio;if(A!==u){if(!S)return a();A?a(!1,A):o=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Zs(d,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(E,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return a(!0),s}function sf(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,d=lo(e),f=r||s?[...d?Et(d):[],...Et(t)]:[];f.forEach(h=>{r&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const l=d&&i?rf(d,n):null;let g=-1,y=null;a&&(y=new ResizeObserver(h=>{let[b]=h;b&&b.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),d&&!u&&y.observe(d),y.observe(t));let x,p=u?et(e):null;u&&v();function v(){const h=et(e);p&&!Zs(p,h)&&n(),p=h,x=requestAnimationFrame(v)}return n(),()=>{var h;f.forEach(b=>{r&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),l==null||l(),(h=y)==null||h.disconnect(),y=null,u&&cancelAnimationFrame(x)}}const af=Du,lf=Iu,cf=Ru,df=ku,uf=Pu,Jo=Nu,ff=_u,pf=(e,t,n)=>{const o=new Map,r={platform:of,...n},s={...r.platform,_c:o};return Au(e,t,{...r,platform:s})};var mf=typeof document<"u",gf=function(){},Ft=mf?C.useLayoutEffect:gf;function Gt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Gt(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Gt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Qs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function er(e,t){const n=Qs(e);return Math.round(t*n)/n}function Cn(e){const t=c.useRef(e);return Ft(()=>{t.current=e}),t}function hf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:u,open:d}=e,[f,l]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=c.useState(o);Gt(g,o)||y(o);const[x,p]=c.useState(null),[v,h]=c.useState(null),b=c.useCallback(P=>{P!==N.current&&(N.current=P,p(P))},[]),w=c.useCallback(P=>{P!==A.current&&(A.current=P,h(P))},[]),S=s||x,E=a||v,N=c.useRef(null),A=c.useRef(null),D=c.useRef(f),j=u!=null,O=Cn(u),U=Cn(r),T=Cn(d),M=c.useCallback(()=>{if(!N.current||!A.current)return;const P={placement:t,strategy:n,middleware:g};U.current&&(P.platform=U.current),pf(N.current,A.current,P).then(F=>{const Z={...F,isPositioned:T.current!==!1};L.current&&!Gt(D.current,Z)&&(D.current=Z,Kt.flushSync(()=>{l(Z)}))})},[g,t,n,U,T]);Ft(()=>{d===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,l(P=>({...P,isPositioned:!1})))},[d]);const L=c.useRef(!1);Ft(()=>(L.current=!0,()=>{L.current=!1}),[]),Ft(()=>{if(S&&(N.current=S),E&&(A.current=E),S&&E){if(O.current)return O.current(S,E,M);M()}},[S,E,M,O,j]);const Y=c.useMemo(()=>({reference:N,floating:A,setReference:b,setFloating:w}),[b,w]),R=c.useMemo(()=>({reference:S,floating:E}),[S,E]),I=c.useMemo(()=>{const P={position:n,left:0,top:0};if(!R.floating)return P;const F=er(R.floating,f.x),Z=er(R.floating,f.y);return i?{...P,transform:"translate("+F+"px, "+Z+"px)",...Qs(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:Z}},[n,i,R.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:M,refs:Y,elements:R,floatingStyles:I}),[f,M,Y,R,I])}const vf=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Jo({element:o.current,padding:r}).fn(n):{}:o?Jo({element:o,padding:r}).fn(n):{}}}},bf=(e,t)=>({...af(e),options:[e,t]}),yf=(e,t)=>({...lf(e),options:[e,t]}),xf=(e,t)=>({...ff(e),options:[e,t]}),wf=(e,t)=>({...cf(e),options:[e,t]}),Cf=(e,t)=>({...df(e),options:[e,t]}),Sf=(e,t)=>({...uf(e),options:[e,t]}),Ef=(e,t)=>({...vf(e),options:[e,t]});var Af="Arrow",Js=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return m.jsx(H.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Js.displayName=Af;var Nf=Js;function ea(e){const[t,n]=c.useState(void 0);return ae(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let a,i;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,i=d.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var co="Popper",[ta,na]=Ge(co),[Rf,oa]=ta(co),ra=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return m.jsx(Rf,{scope:t,anchor:o,onAnchorChange:r,children:n})};ra.displayName=co;var sa="PopperAnchor",aa=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=oa(sa,n),a=c.useRef(null),i=ee(t,a),u=c.useRef(null);return c.useEffect(()=>{const d=u.current;u.current=(o==null?void 0:o.current)||a.current,d!==u.current&&s.onAnchorChange(u.current)}),o?null:m.jsx(H.div,{...r,ref:i})});aa.displayName=sa;var uo="PopperContent",[Pf,Tf]=ta(uo),ia=c.forwardRef((e,t)=>{var _,k,ne,K,G,z;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:l="partial",hideWhenDetached:g=!1,updatePositionStrategy:y="optimized",onPlaced:x,...p}=e,v=oa(uo,n),[h,b]=c.useState(null),w=ee(t,le=>b(le)),[S,E]=c.useState(null),N=ea(S),A=(N==null?void 0:N.width)??0,D=(N==null?void 0:N.height)??0,j=o+(s!=="center"?"-"+s:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},U=Array.isArray(d)?d:[d],T=U.length>0,M={padding:O,boundary:U.filter(If),altBoundary:T},{refs:L,floatingStyles:Y,placement:R,isPositioned:I,middlewareData:P}=hf({strategy:"fixed",placement:j,whileElementsMounted:(...le)=>sf(...le,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[bf({mainAxis:r+D,alignmentAxis:a}),u&&yf({mainAxis:!0,crossAxis:!1,limiter:l==="partial"?xf():void 0,...M}),u&&wf({...M}),Cf({...M,apply:({elements:le,rects:ce,availableWidth:Xe,availableHeight:je})=>{const{width:ve,height:Rt}=ce.reference,de=le.floating.style;de.setProperty("--radix-popper-available-width",`${Xe}px`),de.setProperty("--radix-popper-available-height",`${je}px`),de.setProperty("--radix-popper-anchor-width",`${ve}px`),de.setProperty("--radix-popper-anchor-height",`${Rt}px`)}}),S&&Ef({element:S,padding:i}),_f({arrowWidth:A,arrowHeight:D}),g&&Sf({strategy:"referenceHidden",...M})]}),[F,Z]=da(R),J=Qe(x);ae(()=>{I&&(J==null||J())},[I,J]);const Ae=(_=P.arrow)==null?void 0:_.x,W=(k=P.arrow)==null?void 0:k.y,X=((ne=P.arrow)==null?void 0:ne.centerOffset)!==0,[Q,oe]=c.useState();return ae(()=>{h&&oe(window.getComputedStyle(h).zIndex)},[h]),m.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:I?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[(K=P.transformOrigin)==null?void 0:K.x,(G=P.transformOrigin)==null?void 0:G.y].join(" "),...((z=P.hide)==null?void 0:z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(Pf,{scope:n,placedSide:F,onArrowChange:E,arrowX:Ae,arrowY:W,shouldHideArrow:X,children:m.jsx(H.div,{"data-side":F,"data-align":Z,...p,ref:w,style:{...p.style,animation:I?void 0:"none"}})})})});ia.displayName=uo;var la="PopperArrow",Df={top:"bottom",right:"left",bottom:"top",left:"right"},ca=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=Tf(la,o),a=Df[s.placedSide];return m.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:m.jsx(Nf,{...r,ref:n,style:{...r.style,display:"block"}})})});ca.displayName=la;function If(e){return e!==null}var _f=e=>({name:"transformOrigin",options:e,fn(t){var v,h,b;const{placement:n,rects:o,middlewareData:r}=t,a=((v=r.arrow)==null?void 0:v.centerOffset)!==0,i=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[d,f]=da(n),l={start:"0%",center:"50%",end:"100%"}[f],g=(((h=r.arrow)==null?void 0:h.x)??0)+i/2,y=(((b=r.arrow)==null?void 0:b.y)??0)+u/2;let x="",p="";return d==="bottom"?(x=a?l:`${g}px`,p=`${-u}px`):d==="top"?(x=a?l:`${g}px`,p=`${o.floating.height+u}px`):d==="right"?(x=`${-u}px`,p=a?l:`${y}px`):d==="left"&&(x=`${o.floating.width+u}px`,p=a?l:`${y}px`),{data:{x,y:p}}}});function da(e){const[t,n="center"]=e.split("-");return[t,n]}var kf=ra,Of=aa,Mf=ia,jf=ca;function ua(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])}var fa=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"}),Lf="VisuallyHidden",$f=c.forwardRef((e,t)=>m.jsx(H.span,{...e,ref:t,style:{...fa,...e.style}}));$f.displayName=Lf;var Bf=[" ","Enter","ArrowUp","ArrowDown"],Ff=[" ","Enter"],tt="Select",[an,ln,Wf]=Ir(tt),[yt]=Ge(tt,[Wf,na]),cn=na(),[Vf,Ye]=yt(tt),[zf,Hf]=yt(tt),pa=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:a,defaultValue:i,onValueChange:u,dir:d,name:f,autoComplete:l,disabled:g,required:y,form:x}=e,p=cn(t),[v,h]=c.useState(null),[b,w]=c.useState(null),[S,E]=c.useState(!1),N=Lr(d),[A,D]=Ze({prop:o,defaultProp:r??!1,onChange:s,caller:tt}),[j,O]=Ze({prop:a,defaultProp:i,onChange:u,caller:tt}),U=c.useRef(null),T=v?x||!!v.closest("form"):!0,[M,L]=c.useState(new Set),Y=Array.from(M).map(R=>R.props.value).join(";");return m.jsx(kf,{...p,children:m.jsxs(Vf,{required:y,scope:t,trigger:v,onTriggerChange:h,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:We(),value:j,onValueChange:O,open:A,onOpenChange:D,dir:N,triggerPointerDownPosRef:U,disabled:g,children:[m.jsx(an.Provider,{scope:t,children:m.jsx(zf,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(R=>{L(I=>new Set(I).add(R))},[]),onNativeOptionRemove:c.useCallback(R=>{L(I=>{const P=new Set(I);return P.delete(R),P})},[]),children:n})}),T?m.jsxs($a,{"aria-hidden":!0,required:y,tabIndex:-1,name:f,autoComplete:l,value:j,onChange:R=>O(R.target.value),disabled:g,form:x,children:[j===void 0?m.jsx("option",{value:""}):null,Array.from(M)]},Y):null]})})};pa.displayName=tt;var ma="SelectTrigger",ga=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=cn(n),a=Ye(ma,n),i=a.disabled||o,u=ee(t,a.onTriggerChange),d=ln(n),f=c.useRef("touch"),[l,g,y]=Fa(p=>{const v=d().filter(w=>!w.disabled),h=v.find(w=>w.value===a.value),b=Wa(v,p,h);b!==void 0&&a.onValueChange(b.value)}),x=p=>{i||(a.onOpenChange(!0),y()),p&&(a.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return m.jsx(Of,{asChild:!0,...s,children:m.jsx(H.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":Ba(a.value)?"":void 0,...r,ref:u,onClick:q(r.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&x(p)}),onPointerDown:q(r.onPointerDown,p=>{f.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(x(p),p.preventDefault())}),onKeyDown:q(r.onKeyDown,p=>{const v=l.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&g(p.key),!(v&&p.key===" ")&&Bf.includes(p.key)&&(x(),p.preventDefault())})})})});ga.displayName=ma;var ha="SelectValue",va=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:a="",...i}=e,u=Ye(ha,n),{onValueNodeHasChildrenChange:d}=u,f=s!==void 0,l=ee(t,u.onValueNodeChange);return ae(()=>{d(f)},[d,f]),m.jsx(H.span,{...i,ref:l,style:{pointerEvents:"none"},children:Ba(u.value)?m.jsx(m.Fragment,{children:a}):s})});va.displayName=ha;var Uf="SelectIcon",ba=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return m.jsx(H.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});ba.displayName=Uf;var Gf="SelectPortal",ya=e=>m.jsx(Yn,{asChild:!0,...e});ya.displayName=Gf;var nt="SelectContent",xa=c.forwardRef((e,t)=>{const n=Ye(nt,e.__scopeSelect),[o,r]=c.useState();if(ae(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?Kt.createPortal(m.jsx(wa,{scope:e.__scopeSelect,children:m.jsx(an.Slot,{scope:e.__scopeSelect,children:m.jsx("div",{children:e.children})})}),s):null}return m.jsx(Ca,{...e,ref:t})});xa.displayName=nt;var xe=10,[wa,Ke]=yt(nt),Yf="SelectContentImpl",Kf=pt("SelectContent.RemoveScroll"),Ca=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:u,align:d,alignOffset:f,arrowPadding:l,collisionBoundary:g,collisionPadding:y,sticky:x,hideWhenDetached:p,avoidCollisions:v,...h}=e,b=Ye(nt,n),[w,S]=c.useState(null),[E,N]=c.useState(null),A=ee(t,_=>S(_)),[D,j]=c.useState(null),[O,U]=c.useState(null),T=ln(n),[M,L]=c.useState(!1),Y=c.useRef(!1);c.useEffect(()=>{if(w)return fs(w)},[w]),os();const R=c.useCallback(_=>{const[k,...ne]=T().map(z=>z.ref.current),[K]=ne.slice(-1),G=document.activeElement;for(const z of _)if(z===G||(z==null||z.scrollIntoView({block:"nearest"}),z===k&&E&&(E.scrollTop=0),z===K&&E&&(E.scrollTop=E.scrollHeight),z==null||z.focus(),document.activeElement!==G))return},[T,E]),I=c.useCallback(()=>R([D,w]),[R,D,w]);c.useEffect(()=>{M&&I()},[M,I]);const{onOpenChange:P,triggerPointerDownPosRef:F}=b;c.useEffect(()=>{if(w){let _={x:0,y:0};const k=K=>{var G,z;_={x:Math.abs(Math.round(K.pageX)-(((G=F.current)==null?void 0:G.x)??0)),y:Math.abs(Math.round(K.pageY)-(((z=F.current)==null?void 0:z.y)??0))}},ne=K=>{_.x<=10&&_.y<=10?K.preventDefault():w.contains(K.target)||P(!1),document.removeEventListener("pointermove",k),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",k),document.addEventListener("pointerup",ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",k),document.removeEventListener("pointerup",ne,{capture:!0})}}},[w,P,F]),c.useEffect(()=>{const _=()=>P(!1);return window.addEventListener("blur",_),window.addEventListener("resize",_),()=>{window.removeEventListener("blur",_),window.removeEventListener("resize",_)}},[P]);const[Z,J]=Fa(_=>{const k=T().filter(G=>!G.disabled),ne=k.find(G=>G.ref.current===document.activeElement),K=Wa(k,_,ne);K&&setTimeout(()=>K.ref.current.focus())}),Ae=c.useCallback((_,k,ne)=>{const K=!Y.current&&!ne;(b.value!==void 0&&b.value===k||K)&&(j(_),K&&(Y.current=!0))},[b.value]),W=c.useCallback(()=>w==null?void 0:w.focus(),[w]),X=c.useCallback((_,k,ne)=>{const K=!Y.current&&!ne;(b.value!==void 0&&b.value===k||K)&&U(_)},[b.value]),Q=o==="popper"?In:Sa,oe=Q===In?{side:i,sideOffset:u,align:d,alignOffset:f,arrowPadding:l,collisionBoundary:g,collisionPadding:y,sticky:x,hideWhenDetached:p,avoidCollisions:v}:{};return m.jsx(wa,{scope:n,content:w,viewport:E,onViewportChange:N,itemRefCallback:Ae,selectedItem:D,onItemLeave:W,itemTextRefCallback:X,focusSelectedItem:I,selectedItemText:O,position:o,isPositioned:M,searchRef:Z,children:m.jsx(Kn,{as:Kf,allowPinchZoom:!0,children:m.jsx(Gn,{asChild:!0,trapped:b.open,onMountAutoFocus:_=>{_.preventDefault()},onUnmountAutoFocus:q(r,_=>{var k;(k=b.trigger)==null||k.focus({preventScroll:!0}),_.preventDefault()}),children:m.jsx(Un,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:_=>_.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:m.jsx(Q,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:_=>_.preventDefault(),...h,...oe,onPlaced:()=>L(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:q(h.onKeyDown,_=>{const k=_.ctrlKey||_.altKey||_.metaKey;if(_.key==="Tab"&&_.preventDefault(),!k&&_.key.length===1&&J(_.key),["ArrowUp","ArrowDown","Home","End"].includes(_.key)){let K=T().filter(G=>!G.disabled).map(G=>G.ref.current);if(["ArrowUp","End"].includes(_.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(_.key)){const G=_.target,z=K.indexOf(G);K=K.slice(z+1)}setTimeout(()=>R(K)),_.preventDefault()}})})})})})})});Ca.displayName=Yf;var Xf="SelectItemAlignedPosition",Sa=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Ye(nt,n),a=Ke(nt,n),[i,u]=c.useState(null),[d,f]=c.useState(null),l=ee(t,A=>f(A)),g=ln(n),y=c.useRef(!1),x=c.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:h,focusSelectedItem:b}=a,w=c.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&d&&p&&v&&h){const A=s.trigger.getBoundingClientRect(),D=d.getBoundingClientRect(),j=s.valueNode.getBoundingClientRect(),O=h.getBoundingClientRect();if(s.dir!=="rtl"){const G=O.left-D.left,z=j.left-G,le=A.left-z,ce=A.width+le,Xe=Math.max(ce,D.width),je=window.innerWidth-xe,ve=zo(z,[xe,Math.max(xe,je-Xe)]);i.style.minWidth=ce+"px",i.style.left=ve+"px"}else{const G=D.right-O.right,z=window.innerWidth-j.right-G,le=window.innerWidth-A.right-z,ce=A.width+le,Xe=Math.max(ce,D.width),je=window.innerWidth-xe,ve=zo(z,[xe,Math.max(xe,je-Xe)]);i.style.minWidth=ce+"px",i.style.right=ve+"px"}const U=g(),T=window.innerHeight-xe*2,M=p.scrollHeight,L=window.getComputedStyle(d),Y=parseInt(L.borderTopWidth,10),R=parseInt(L.paddingTop,10),I=parseInt(L.borderBottomWidth,10),P=parseInt(L.paddingBottom,10),F=Y+R+M+P+I,Z=Math.min(v.offsetHeight*5,F),J=window.getComputedStyle(p),Ae=parseInt(J.paddingTop,10),W=parseInt(J.paddingBottom,10),X=A.top+A.height/2-xe,Q=T-X,oe=v.offsetHeight/2,_=v.offsetTop+oe,k=Y+R+_,ne=F-k;if(k<=X){const G=U.length>0&&v===U[U.length-1].ref.current;i.style.bottom="0px";const z=d.clientHeight-p.offsetTop-p.offsetHeight,le=Math.max(Q,oe+(G?W:0)+z+I),ce=k+le;i.style.height=ce+"px"}else{const G=U.length>0&&v===U[0].ref.current;i.style.top="0px";const le=Math.max(X,Y+p.offsetTop+(G?Ae:0)+oe)+ne;i.style.height=le+"px",p.scrollTop=k-X+p.offsetTop}i.style.margin=`${xe}px 0`,i.style.minHeight=Z+"px",i.style.maxHeight=T+"px",o==null||o(),requestAnimationFrame(()=>y.current=!0)}},[g,s.trigger,s.valueNode,i,d,p,v,h,s.dir,o]);ae(()=>w(),[w]);const[S,E]=c.useState();ae(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const N=c.useCallback(A=>{A&&x.current===!0&&(w(),b==null||b(),x.current=!1)},[w,b]);return m.jsx(Zf,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:y,onScrollButtonChange:N,children:m.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:m.jsx(H.div,{...r,ref:l,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Sa.displayName=Xf;var qf="SelectPopperPosition",In=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=xe,...s}=e,a=cn(n);return m.jsx(Mf,{...a,...s,ref:t,align:o,collisionPadding:r,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)"}})});In.displayName=qf;var[Zf,fo]=yt(nt,{}),_n="SelectViewport",Ea=c.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=Ke(_n,n),a=fo(_n,n),i=ee(t,s.onViewportChange),u=c.useRef(0);return m.jsxs(m.Fragment,{children:[m.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:o}),m.jsx(an.Slot,{scope:n,children:m.jsx(H.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:q(r.onScroll,d=>{const f=d.currentTarget,{contentWrapper:l,shouldExpandOnScrollRef:g}=a;if(g!=null&&g.current&&l){const y=Math.abs(u.current-f.scrollTop);if(y>0){const x=window.innerHeight-xe*2,p=parseFloat(l.style.minHeight),v=parseFloat(l.style.height),h=Math.max(p,v);if(h<x){const b=h+y,w=Math.min(x,b),S=b-w;l.style.height=w+"px",l.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,l.style.justifyContent="flex-end")}}}u.current=f.scrollTop})})})]})});Ea.displayName=_n;var Aa="SelectGroup",[Qf,Jf]=yt(Aa),Na=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=We();return m.jsx(Qf,{scope:n,id:r,children:m.jsx(H.div,{role:"group","aria-labelledby":r,...o,ref:t})})});Na.displayName=Aa;var Ra="SelectLabel",Pa=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Jf(Ra,n);return m.jsx(H.div,{id:r.id,...o,ref:t})});Pa.displayName=Ra;var Yt="SelectItem",[ep,Ta]=yt(Yt),Da=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...a}=e,i=Ye(Yt,n),u=Ke(Yt,n),d=i.value===o,[f,l]=c.useState(s??""),[g,y]=c.useState(!1),x=ee(t,b=>{var w;return(w=u.itemRefCallback)==null?void 0:w.call(u,b,o,r)}),p=We(),v=c.useRef("touch"),h=()=>{r||(i.onValueChange(o),i.onOpenChange(!1))};if(o==="")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 m.jsx(ep,{scope:n,value:o,disabled:r,textId:p,isSelected:d,onItemTextChange:c.useCallback(b=>{l(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:m.jsx(an.ItemSlot,{scope:n,value:o,disabled:r,textValue:f,children:m.jsx(H.div,{role:"option","aria-labelledby":p,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...a,ref:x,onFocus:q(a.onFocus,()=>y(!0)),onBlur:q(a.onBlur,()=>y(!1)),onClick:q(a.onClick,()=>{v.current!=="mouse"&&h()}),onPointerUp:q(a.onPointerUp,()=>{v.current==="mouse"&&h()}),onPointerDown:q(a.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:q(a.onPointerMove,b=>{var w;v.current=b.pointerType,r?(w=u.onItemLeave)==null||w.call(u):v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:q(a.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=u.onItemLeave)==null||w.call(u))}),onKeyDown:q(a.onKeyDown,b=>{var S;((S=u.searchRef)==null?void 0:S.current)!==""&&b.key===" "||(Ff.includes(b.key)&&h(),b.key===" "&&b.preventDefault())})})})})});Da.displayName=Yt;var Ct="SelectItemText",Ia=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,a=Ye(Ct,n),i=Ke(Ct,n),u=Ta(Ct,n),d=Hf(Ct,n),[f,l]=c.useState(null),g=ee(t,h=>l(h),u.onItemTextChange,h=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,h,u.value,u.disabled)}),y=f==null?void 0:f.textContent,x=c.useMemo(()=>m.jsx("option",{value:u.value,disabled:u.disabled,children:y},u.value),[u.disabled,u.value,y]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=d;return ae(()=>(p(x),()=>v(x)),[p,v,x]),m.jsxs(m.Fragment,{children:[m.jsx(H.span,{id:u.textId,...s,ref:g}),u.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Kt.createPortal(s.children,a.valueNode):null]})});Ia.displayName=Ct;var _a="SelectItemIndicator",ka=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return Ta(_a,n).isSelected?m.jsx(H.span,{"aria-hidden":!0,...o,ref:t}):null});ka.displayName=_a;var kn="SelectScrollUpButton",Oa=c.forwardRef((e,t)=>{const n=Ke(kn,e.__scopeSelect),o=fo(kn,e.__scopeSelect),[r,s]=c.useState(!1),a=ee(t,o.onScrollButtonChange);return ae(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=u.scrollTop>0;s(d)};const u=n.viewport;return i(),u.addEventListener("scroll",i),()=>u.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),r?m.jsx(ja,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:u}=n;i&&u&&(i.scrollTop=i.scrollTop-u.offsetHeight)}}):null});Oa.displayName=kn;var On="SelectScrollDownButton",Ma=c.forwardRef((e,t)=>{const n=Ke(On,e.__scopeSelect),o=fo(On,e.__scopeSelect),[r,s]=c.useState(!1),a=ee(t,o.onScrollButtonChange);return ae(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=u.scrollHeight-u.clientHeight,f=Math.ceil(u.scrollTop)<d;s(f)};const u=n.viewport;return i(),u.addEventListener("scroll",i),()=>u.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),r?m.jsx(ja,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:u}=n;i&&u&&(i.scrollTop=i.scrollTop+u.offsetHeight)}}):null});Ma.displayName=On;var ja=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=Ke("SelectScrollButton",n),a=c.useRef(null),i=ln(n),u=c.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return c.useEffect(()=>()=>u(),[u]),ae(()=>{var f;const d=i().find(l=>l.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),m.jsx(H.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:q(r.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(o,50))}),onPointerMove:q(r.onPointerMove,()=>{var d;(d=s.onItemLeave)==null||d.call(s),a.current===null&&(a.current=window.setInterval(o,50))}),onPointerLeave:q(r.onPointerLeave,()=>{u()})})}),tp="SelectSeparator",La=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return m.jsx(H.div,{"aria-hidden":!0,...o,ref:t})});La.displayName=tp;var Mn="SelectArrow",np=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=cn(n),s=Ye(Mn,n),a=Ke(Mn,n);return s.open&&a.position==="popper"?m.jsx(jf,{...r,...o,ref:t}):null});np.displayName=Mn;var op="SelectBubbleInput",$a=c.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=c.useRef(null),s=ee(o,r),a=ua(t);return c.useEffect(()=>{const i=r.current;if(!i)return;const u=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(u,"value").set;if(a!==t&&f){const l=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(l)}},[a,t]),m.jsx(H.select,{...n,style:{...fa,...n.style},ref:s,defaultValue:t})});$a.displayName=op;function Ba(e){return e===""||e===void 0}function Fa(e){const t=Qe(e),n=c.useRef(""),o=c.useRef(0),r=c.useCallback(a=>{const i=n.current+a;t(i),function u(d){n.current=d,window.clearTimeout(o.current),d!==""&&(o.current=window.setTimeout(()=>u(""),1e3))}(i)},[t]),s=c.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function Wa(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=rp(e,Math.max(s,0));r.length===1&&(a=a.filter(d=>d!==n));const u=a.find(d=>d.textValue.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function rp(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var sp=pa,Va=ga,ap=va,ip=ba,lp=ya,za=xa,cp=Ea,dp=Na,Ha=Pa,Ua=Da,up=Ia,fp=ka,Ga=Oa,Ya=Ma,Ka=La;const pp=sp,mp=dp,gp=ap,Xa=c.forwardRef(({className:e,children:t,...n},o)=>m.jsxs(Va,{ref:o,className:V("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,m.jsx(ip,{asChild:!0,children:m.jsx(Ms,{className:"h-4 w-4 opacity-50"})})]}));Xa.displayName=Va.displayName;const qa=c.forwardRef(({className:e,...t},n)=>m.jsx(Ga,{ref:n,className:V("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(lu,{className:"h-4 w-4"})}));qa.displayName=Ga.displayName;const Za=c.forwardRef(({className:e,...t},n)=>m.jsx(Ya,{ref:n,className:V("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(Ms,{className:"h-4 w-4"})}));Za.displayName=Ya.displayName;const Qa=c.forwardRef(({className:e,children:t,position:n="popper",...o},r)=>m.jsx(lp,{children:m.jsxs(za,{ref:r,className:V("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,...o,children:[m.jsx(qa,{}),m.jsx(cp,{className:V("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),m.jsx(Za,{})]})}));Qa.displayName=za.displayName;const Ja=c.forwardRef(({className:e,...t},n)=>m.jsx(Ha,{ref:n,className:V("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Ja.displayName=Ha.displayName;const ei=c.forwardRef(({className:e,children:t,...n},o)=>m.jsxs(Ua,{ref:o,className:V("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:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(fp,{children:m.jsx(Os,{className:"h-4 w-4"})})}),m.jsx(up,{children:t})]}));ei.displayName=Ua.displayName;const ti=c.forwardRef(({className:e,...t},n)=>m.jsx(Ka,{ref:n,className:V("-mx-1 my-1 h-px bg-muted",e),...t}));ti.displayName=Ka.displayName;var dn="Checkbox",[hp]=Ge(dn),[vp,po]=hp(dn);function bp(e){const{__scopeCheckbox:t,checked:n,children:o,defaultChecked:r,disabled:s,form:a,name:i,onCheckedChange:u,required:d,value:f="on",internal_do_not_use_render:l}=e,[g,y]=Ze({prop:n,defaultProp:r??!1,onChange:u,caller:dn}),[x,p]=c.useState(null),[v,h]=c.useState(null),b=c.useRef(!1),w=x?!!a||!!x.closest("form"):!0,S={checked:g,disabled:s,setChecked:y,control:x,setControl:p,name:i,form:a,value:f,hasConsumerStoppedPropagationRef:b,required:d,defaultChecked:Ve(r)?!1:r,isFormControl:w,bubbleInput:v,setBubbleInput:h};return m.jsx(vp,{scope:t,...S,children:yp(l)?l(S):o})}var ni="CheckboxTrigger",oi=c.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...o},r)=>{const{control:s,value:a,disabled:i,checked:u,required:d,setControl:f,setChecked:l,hasConsumerStoppedPropagationRef:g,isFormControl:y,bubbleInput:x}=po(ni,e),p=ee(r,f),v=c.useRef(u);return c.useEffect(()=>{const h=s==null?void 0:s.form;if(h){const b=()=>l(v.current);return h.addEventListener("reset",b),()=>h.removeEventListener("reset",b)}},[s,l]),m.jsx(H.button,{type:"button",role:"checkbox","aria-checked":Ve(u)?"mixed":u,"aria-required":d,"data-state":li(u),"data-disabled":i?"":void 0,disabled:i,value:a,...o,ref:p,onKeyDown:q(t,h=>{h.key==="Enter"&&h.preventDefault()}),onClick:q(n,h=>{l(b=>Ve(b)?!0:!b),x&&y&&(g.current=h.isPropagationStopped(),g.current||h.stopPropagation())})})});oi.displayName=ni;var mo=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:o,checked:r,defaultChecked:s,required:a,disabled:i,value:u,onCheckedChange:d,form:f,...l}=e;return m.jsx(bp,{__scopeCheckbox:n,checked:r,defaultChecked:s,disabled:i,required:a,onCheckedChange:d,name:o,form:f,value:u,internal_do_not_use_render:({isFormControl:g})=>m.jsxs(m.Fragment,{children:[m.jsx(oi,{...l,ref:t,__scopeCheckbox:n}),g&&m.jsx(ii,{__scopeCheckbox:n})]})})});mo.displayName=dn;var ri="CheckboxIndicator",si=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:o,...r}=e,s=po(ri,n);return m.jsx(ht,{present:o||Ve(s.checked)||s.checked===!0,children:m.jsx(H.span,{"data-state":li(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});si.displayName=ri;var ai="CheckboxBubbleInput",ii=c.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:o,hasConsumerStoppedPropagationRef:r,checked:s,defaultChecked:a,required:i,disabled:u,name:d,value:f,form:l,bubbleInput:g,setBubbleInput:y}=po(ai,e),x=ee(n,y),p=ua(s),v=ea(o);c.useEffect(()=>{const b=g;if(!b)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set,N=!r.current;if(p!==s&&E){const A=new Event("click",{bubbles:N});b.indeterminate=Ve(s),E.call(b,Ve(s)?!1:s),b.dispatchEvent(A)}},[g,p,s,r]);const h=c.useRef(Ve(s)?!1:s);return m.jsx(H.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??h.current,required:i,disabled:u,name:d,value:f,form:l,...t,tabIndex:-1,ref:x,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});ii.displayName=ai;function yp(e){return typeof e=="function"}function Ve(e){return e==="indeterminate"}function li(e){return Ve(e)?"indeterminate":e?"checked":"unchecked"}const ci=c.forwardRef(({className:e,...t},n)=>m.jsx(mo,{ref:n,className:V("peer h-4 w-4 shrink-0 rounded-sm border border-gray-200 border-gray-900 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-gray-900 data-[state=checked]:text-gray-50 dark:border-gray-800 dark:border-gray-50 dark:ring-offset-gray-950 dark:focus-visible:ring-gray-300 dark:data-[state=checked]:bg-gray-50 dark:data-[state=checked]:text-gray-900",e),...t,children:m.jsx(si,{className:V("flex items-center justify-center text-current"),children:m.jsx(Os,{className:"h-4 w-4"})})}));ci.displayName=mo.displayName;var di="AlertDialog",[xp]=Ge(di,[ms]),Me=ms(),ui=e=>{const{__scopeAlertDialog:t,...n}=e,o=Me(t);return m.jsx(Ds,{...o,...n,modal:!0})};ui.displayName=di;var wp="AlertDialogTrigger",fi=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Me(n);return m.jsx(Is,{...r,...o,ref:t})});fi.displayName=wp;var Cp="AlertDialogPortal",pi=e=>{const{__scopeAlertDialog:t,...n}=e,o=Me(t);return m.jsx(_s,{...o,...n})};pi.displayName=Cp;var Sp="AlertDialogOverlay",mi=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Me(n);return m.jsx(Qn,{...r,...o,ref:t})});mi.displayName=Sp;var ft="AlertDialogContent",[Ep,Ap]=xp(ft),Np=Xi("AlertDialogContent"),gi=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:o,...r}=e,s=Me(n),a=c.useRef(null),i=ee(t,a),u=c.useRef(null);return m.jsx(qd,{contentName:ft,titleName:hi,docsSlug:"alert-dialog",children:m.jsx(Ep,{scope:n,cancelRef:u,children:m.jsxs(Jn,{role:"alertdialog",...s,...r,ref:i,onOpenAutoFocus:q(r.onOpenAutoFocus,d=>{var f;d.preventDefault(),(f=u.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[m.jsx(Np,{children:o}),m.jsx(Pp,{contentRef:a})]})})})});gi.displayName=ft;var hi="AlertDialogTitle",vi=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Me(n);return m.jsx(eo,{...r,...o,ref:t})});vi.displayName=hi;var bi="AlertDialogDescription",yi=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Me(n);return m.jsx(to,{...r,...o,ref:t})});yi.displayName=bi;var Rp="AlertDialogAction",xi=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Me(n);return m.jsx(en,{...r,...o,ref:t})});xi.displayName=Rp;var wi="AlertDialogCancel",Ci=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,{cancelRef:r}=Ap(wi,n),s=Me(n),a=ee(t,r);return m.jsx(en,{...s,...o,ref:a})});Ci.displayName=wi;var Pp=({contentRef:e})=>{const t=`\`${ft}\` requires a description for the component to be accessible for screen reader users.
86
+
87
+ You can add a description to the \`${ft}\` by passing a \`${bi}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
88
+
89
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ft}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
90
+
91
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return c.useEffect(()=>{var o;document.getElementById((o=e.current)==null?void 0:o.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Tp=ui,Dp=fi,Ip=pi,Si=mi,Ei=gi,Ai=xi,Ni=Ci,Ri=vi,Pi=yi;const _p=Tp,kp=Dp,Ti=Ip,go=c.forwardRef(({className:e,...t},n)=>m.jsx(Si,{className:V("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}));go.displayName=Si.displayName;const Di=c.forwardRef(({className:e,...t},n)=>m.jsxs(Ti,{children:[m.jsx(go,{}),m.jsx(Ei,{ref:n,className:V("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-gray-200 bg-white 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 dark:border-gray-800 dark:bg-gray-950",e),...t})]}));Di.displayName=Ei.displayName;const Ii=({className:e,...t})=>m.jsx("div",{className:V("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ii.displayName="AlertDialogHeader";const _i=({className:e,...t})=>m.jsx("div",{className:V("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});_i.displayName="AlertDialogFooter";const ki=c.forwardRef(({className:e,...t},n)=>m.jsx(Ri,{ref:n,className:V("text-lg font-semibold",e),...t}));ki.displayName=Ri.displayName;const Oi=c.forwardRef(({className:e,...t},n)=>m.jsx(Pi,{ref:n,className:V("text-sm text-gray-500 dark:text-gray-400",e),...t}));Oi.displayName=Pi.displayName;const Mi=c.forwardRef(({className:e,...t},n)=>m.jsx(Ai,{ref:n,className:V(Ln(),e),...t}));Mi.displayName=Ai.displayName;const ji=c.forwardRef(({className:e,...t},n)=>m.jsx(Ni,{ref:n,className:V(Ln({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));ji.displayName=Ni.displayName;exports.Accordion=Vc;exports.AccordionContent=Jr;exports.AccordionItem=Zr;exports.AccordionTrigger=Qr;exports.Alert=wr;exports.AlertDescription=Cr;exports.AlertDialog=_p;exports.AlertDialogAction=Mi;exports.AlertDialogCancel=ji;exports.AlertDialogContent=Di;exports.AlertDialogDescription=Oi;exports.AlertDialogFooter=_i;exports.AlertDialogHeader=Ii;exports.AlertDialogOverlay=go;exports.AlertDialogPortal=Ti;exports.AlertDialogTitle=ki;exports.AlertDialogTrigger=kp;exports.AlertTitle=Sr;exports.Badge=Tr;exports.Button=ar;exports.Card=ir;exports.CardContent=ur;exports.CardDescription=dr;exports.CardHeader=lr;exports.CardTitle=cr;exports.Checkbox=ci;exports.Dialog=uu;exports.DialogClose=pu;exports.DialogContent=Ls;exports.DialogDescription=Ws;exports.DialogFooter=Bs;exports.DialogHeader=$s;exports.DialogOverlay=no;exports.DialogPortal=js;exports.DialogTitle=Fs;exports.DialogTrigger=fu;exports.DiscLoader=Nr;exports.Form=Rr;exports.FormField=Pr;exports.Input=vr;exports.Label=xr;exports.Select=pp;exports.SelectContent=Qa;exports.SelectGroup=mp;exports.SelectItem=ei;exports.SelectLabel=Ja;exports.SelectSeparator=ti;exports.SelectTrigger=Xa;exports.SelectValue=gp;exports.Separator=Dr;exports.Spinner=Ar;exports.Textarea=Er;exports.Toaster=fc;exports.cn=V;exports.toast=ec;