docthub-core-components 1.0.32 → 1.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),w=require("react"),Da=require("react-dom");function ji(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=ji(w),Xr=ji(Da);function Es(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Dt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Es(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Es(e[o],null)}}}}function he(...e){return f.useCallback(Dt(...e),e)}function jt(e){const t=Vm(e),n=f.forwardRef((r,o)=>{const{children:a,...s}=r,i=f.Children.toArray(a),l=i.find(Km);if(l){const u=l.props.children,m=i.map(c=>c===l?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:c);return d.jsx(t,{...s,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,m):null})}return d.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Um=jt("Slot");function Vm(e){const t=f.forwardRef((n,r)=>{const{children:o,...a}=n;if(f.isValidElement(o)){const s=Zm(o),i=Xm(a,o.props);return o.type!==f.Fragment&&(i.ref=r?Dt(r,s):s),f.cloneElement(o,i)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $i=Symbol("radix.slottable");function qm(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=$i,t}function Km(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$i}function Xm(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Zm(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Li(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Li(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Fi(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Li(e))&&(r&&(r+=" "),r+=t);return r}const Ns=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Rs=Fi,Zr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Rs(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const m=n==null?void 0:n[u],c=a==null?void 0:a[u];if(m===null)return null;const p=Ns(m)||Ns(c);return o[u][p]}),i=n&&Object.entries(n).reduce((u,m)=>{let[c,p]=m;return p===void 0||(u[c]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,m)=>{let{class:c,className:p,...h}=m;return Object.entries(h).every(b=>{let[g,v]=b;return Array.isArray(v)?v.includes({...a,...i}[g]):{...a,...i}[g]===v})?[...u,c,p]:u},[]);return Rs(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},ka="-",Qm=e=>{const t=ep(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(ka);return i[0]===""&&i.length!==1&&i.shift(),Wi(i,t)||Jm(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},Wi=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Wi(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(ka);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Ts=/^\[(.+)\]$/,Jm=e=>{if(Ts.test(e)){const t=Ts.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ep=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Qo(n[o],r,o,t);return r},Qo=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:_s(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(tp(o)){Qo(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{Qo(s,_s(t,a),n,r)})})},_s=(e,t)=>{let n=e;return t.split(ka).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},tp=e=>e.isThemeGetter,np=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},Jo="!",ea=":",rp=ea.length,op=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,u;for(let b=0;b<o.length;b++){let g=o[b];if(s===0&&i===0){if(g===ea){a.push(o.slice(l,b)),l=b+rp;continue}if(g==="/"){u=b;continue}}g==="["?s++:g==="]"?s--:g==="("?i++:g===")"&&i--}const m=a.length===0?o:o.substring(l),c=ap(m),p=c!==m,h=u&&u>l?u-l:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:c,maybePostfixModifierPosition:h}};if(t){const o=t+ea,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},ap=e=>e.endsWith(Jo)?e.substring(0,e.length-1):e.startsWith(Jo)?e.substring(1):e,sp=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},ip=e=>({cache:np(e.cacheSize),parseClassName:op(e),sortModifiers:sp(e),...Qm(e)}),cp=/\s+/,lp=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(cp);let l="";for(let u=i.length-1;u>=0;u-=1){const m=i[u],{isExternal:c,modifiers:p,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:g}=n(m);if(c){l=m+(l.length>0?" "+l:l);continue}let v=!!g,y=r(v?b.substring(0,g):b);if(!y){if(!v){l=m+(l.length>0?" "+l:l);continue}if(y=r(b),!y){l=m+(l.length>0?" "+l:l);continue}v=!1}const x=a(p).join(":"),S=h?x+Jo:x,D=S+y;if(s.includes(D))continue;s.push(D);const C=o(y,v);for(let N=0;N<C.length;++N){const M=C[N];s.push(S+M)}l=m+(l.length>0?" "+l:l)}return l};function up(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Bi(t))&&(r&&(r+=" "),r+=n);return r}const Bi=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Bi(e[r]))&&(n&&(n+=" "),n+=t);return n};function dp(e,...t){let n,r,o,a=s;function s(l){const u=t.reduce((m,c)=>c(m),e());return n=ip(u),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const u=r(l);if(u)return u;const m=lp(l,n);return o(l,m),m}return function(){return a(up.apply(null,arguments))}}const Ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Yi=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hi=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fp=/^\d+\/\d+$/,mp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pp=/\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$/,hp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,un=e=>fp.test(e),pe=e=>!!e&&!Number.isNaN(Number(e)),Ot=e=>!!e&&Number.isInteger(Number(e)),ko=e=>e.endsWith("%")&&pe(e.slice(0,-1)),xt=e=>mp.test(e),yp=()=>!0,bp=e=>pp.test(e)&&!hp.test(e),zi=()=>!1,wp=e=>gp.test(e),xp=e=>vp.test(e),Sp=e=>!re(e)&&!oe(e),Cp=e=>Mn(e,Vi,zi),re=e=>Yi.test(e),qt=e=>Mn(e,qi,bp),Eo=e=>Mn(e,Np,pe),Os=e=>Mn(e,Gi,zi),Mp=e=>Mn(e,Ui,xp),yr=e=>Mn(e,Ki,wp),oe=e=>Hi.test(e),jn=e=>Dn(e,qi),Dp=e=>Dn(e,Rp),Ps=e=>Dn(e,Gi),kp=e=>Dn(e,Vi),Ep=e=>Dn(e,Ui),br=e=>Dn(e,Ki,!0),Mn=(e,t,n)=>{const r=Yi.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Dn=(e,t,n=!1)=>{const r=Hi.exec(e);return r?r[1]?t(r[1]):n:!1},Gi=e=>e==="position"||e==="percentage",Ui=e=>e==="image"||e==="url",Vi=e=>e==="length"||e==="size"||e==="bg-size",qi=e=>e==="length",Np=e=>e==="number",Rp=e=>e==="family-name",Ki=e=>e==="shadow",Tp=()=>{const e=Ie("color"),t=Ie("font"),n=Ie("text"),r=Ie("font-weight"),o=Ie("tracking"),a=Ie("leading"),s=Ie("breakpoint"),i=Ie("container"),l=Ie("spacing"),u=Ie("radius"),m=Ie("shadow"),c=Ie("inset-shadow"),p=Ie("text-shadow"),h=Ie("drop-shadow"),b=Ie("blur"),g=Ie("perspective"),v=Ie("aspect"),y=Ie("ease"),x=Ie("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...D(),oe,re],N=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],E=()=>[oe,re,l],L=()=>[un,"full","auto",...E()],B=()=>[Ot,"none","subgrid",oe,re],Y=()=>["auto",{span:["full",Ot,oe,re]},Ot,oe,re],V=()=>[Ot,"auto",oe,re],O=()=>["auto","min","max","fr",oe,re],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...E()],A=()=>[un,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],k=()=>[e,oe,re],P=()=>[...D(),Ps,Os,{position:[oe,re]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",kp,Cp,{size:[oe,re]}],I=()=>[ko,jn,qt],j=()=>["","none","full",u,oe,re],H=()=>["",pe,jn,qt],$=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>[pe,ko,Ps,Os],U=()=>["","none",b,oe,re],X=()=>["none",pe,oe,re],J=()=>["none",pe,oe,re],ae=()=>[pe,oe,re],ce=()=>[un,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xt],breakpoint:[xt],color:[yp],container:[xt],"drop-shadow":[xt],ease:["in","out","in-out"],font:[Sp],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xt],shadow:[xt],spacing:["px",pe],text:[xt],"text-shadow":[xt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",un,re,oe,v]}],container:["container"],columns:[{columns:[pe,re,oe,i]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Ot,"auto",oe,re]}],basis:[{basis:[un,"full","auto",i,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,un,"auto","initial","none",re]}],grow:[{grow:["",pe,oe,re]}],shrink:[{shrink:["",pe,oe,re]}],order:[{order:[Ot,"first","last","none",oe,re]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:A()}],w:[{w:[i,"screen",...A()]}],"min-w":[{"min-w":[i,"screen","none",...A()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...A()]}],h:[{h:["screen","lh",...A()]}],"min-h":[{"min-h":["screen","lh","none",...A()]}],"max-h":[{"max-h":["screen","lh",...A()]}],"font-size":[{text:["base",n,jn,qt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,oe,Eo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ko,re]}],"font-family":[{font:[Dp,re,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,oe,re]}],"line-clamp":[{"line-clamp":[pe,"none",oe,Eo]}],leading:[{leading:[a,...E()]}],"list-image":[{"list-image":["none",oe,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oe,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",oe,qt]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[pe,"auto",oe,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe,re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ot,oe,re],radial:["",oe,re],conic:[Ot,oe,re]},Ep,Mp]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,oe,re]}],"outline-w":[{outline:["",pe,jn,qt]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",m,br,yr]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",c,br,yr]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[pe,qt]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",p,br,yr]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[pe,oe,re]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[oe,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oe,re]}],filter:[{filter:["","none",oe,re]}],blur:[{blur:U()}],brightness:[{brightness:[pe,oe,re]}],contrast:[{contrast:[pe,oe,re]}],"drop-shadow":[{"drop-shadow":["","none",h,br,yr]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",pe,oe,re]}],"hue-rotate":[{"hue-rotate":[pe,oe,re]}],invert:[{invert:["",pe,oe,re]}],saturate:[{saturate:[pe,oe,re]}],sepia:[{sepia:["",pe,oe,re]}],"backdrop-filter":[{"backdrop-filter":["","none",oe,re]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[pe,oe,re]}],"backdrop-contrast":[{"backdrop-contrast":[pe,oe,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,oe,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,oe,re]}],"backdrop-invert":[{"backdrop-invert":["",pe,oe,re]}],"backdrop-opacity":[{"backdrop-opacity":[pe,oe,re]}],"backdrop-saturate":[{"backdrop-saturate":[pe,oe,re]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,oe,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",oe,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",oe,re]}],ease:[{ease:["linear","initial",y,oe,re]}],delay:[{delay:[pe,oe,re]}],animate:[{animate:["none",x,oe,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,oe,re]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[oe,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oe,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",oe,re]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[pe,jn,qt,Eo]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},_p=dp(Tp);function W(...e){return _p(Fi(e))}const ta=Zr("inline-flex items-center justify-center 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-black text-white hover:bg-black/90",outline:"border border-gray-300 bg-white text-gray-700 hover:bg-gray-100",ghost:"text-gray-700 hover:bg-gray-100",error:"bg-red-500 text-white hover:bg-red-600",success:"bg-green-500 text-white hover:bg-green-600",warning:"bg-yellow-500 text-white hover:bg-yellow-600",blue:"bg-blue-500 text-white hover:bg-blue-600",disabled:"bg-gray-200 text-gray-400 cursor-not-allowed hover:bg-gray-200",brandBlue:"bg-brandBlue text-white hover:bg-brandBlue/90",primary:"bg-primary text-white hover:bg-primary/90"},size:{large:"rounded-xl text-base py-2.5 px-5 leading-snug font-semibold gap-2",medium:"rounded-xl text-sm py-2 px-4 leading-tight font-semibold gap-2",small:"rounded-full text-xs py-2 px-3 leading-4 font-semibold gap-1","icon.large":"rounded-[12px] p-2.5","icon.medium":"rounded-[10px] p-2","icon.small":"rounded-[14px] p-1.5"},iconSize:{large:"[&_svg]:w-6 [&_svg]:h-6",medium:"[&_svg]:w-5 [&_svg]:h-5",small:"[&_svg]:w-4 [&_svg]:h-4"},iconPosition:{left:"flex-row",right:"flex-row-reverse"},fullWidth:{true:"w-full",false:"w-auto"}},defaultVariants:{variant:"default",size:"medium",iconPosition:"left",fullWidth:!1}}),kt=w.forwardRef(({className:e,variant:t,size:n,iconSize:r,iconPosition:o,fullWidth:a,asChild:s=!1,icon:i,iconOnly:l,children:u,...m},c)=>{const p=s?Um:"button";let h=n;if(l&&n)switch(n){case"large":h="icon.large";break;case"medium":h="icon.medium";break;case"small":h="icon.small";break}const b=r||(n==="large"?"large":n==="small"?"small":"medium");return d.jsxs(p,{className:W(ta({variant:t,size:h,iconSize:b,iconPosition:o,fullWidth:a,className:e})),ref:c,"aria-label":l&&!m["aria-label"]?"Icon button":m["aria-label"],...m,children:[i&&d.jsx("span",{"data-testid":"button-icon",children:i}),!l&&u]})});kt.displayName="DoctButton";const Op={h1:{fontSize:"3.5rem",tag:"h1"},h2:{fontSize:"2.875rem",tag:"h2"},h3:{fontSize:"2.25rem",tag:"h3"},h4:{fontSize:"2rem",tag:"h4"},h5:{fontSize:"1.75rem",tag:"h5"},h6:{fontSize:"1.5rem",tag:"h6"},h7:{fontSize:"1.25rem",tag:"p"},h8:{fontSize:"1.125rem",tag:"p"},title1:{fontSize:"1.375rem",tag:"p"},title2:{fontSize:"1.125rem",tag:"p"},title3:{fontSize:"0.875rem",tag:"p"},title4:{fontSize:"0.75rem",tag:"p"},body1:{fontSize:"1rem",tag:"p"},body2:{fontSize:"0.875rem",tag:"p"},body3:{fontSize:"0.75rem",tag:"p"},body4:{fontSize:"0.625rem",tag:"p"},textLabel1:{fontSize:"1rem",tag:"span"},textLabel2:{fontSize:"0.875rem",tag:"span"},textLabel3:{fontSize:"0.75rem",tag:"span"},textLabel4:{fontSize:"0.6875rem",tag:"span"}},Pp={regular:"400",medium:"500",semiBold:"600",bold:"700",extraBold:"800",light:"300"},Ap=({variant:e,weight:t="regular",children:n,color:r="#000",align:o="inherit",className:a=""})=>{const s=Op[e]??{fontSize:"16px",tag:"p"},{fontSize:i,tag:l}=s;return d.jsx(l,{className:a,style:{fontSize:i,fontWeight:Pp[t]??"400",color:r,textAlign:o},children:n})};function Ip(){return d.jsx("div",{className:"flex flex-col items-center justify-center h-screen w-full bg-white",children:d.jsx("img",{src:"/logoAnimation.gif",alt:"Loading animation",className:"w-32 h-32 object-contain"})})}const Xi=f.forwardRef(({size:e=48,strokeWidth:t=4,className:n,colorClassName:r="text-current",...o},a)=>{const s=Math.max((e-t)/2,0),i=2*Math.PI*s;return d.jsxs("svg",{ref:a,width:e,height:e,viewBox:`0 0 ${e} ${e}`,className:W("animate-spin text-muted-foreground",n),role:"progressbar","aria-label":"Loading","aria-valuemin":0,"aria-valuemax":100,...o,children:[d.jsx("circle",{className:"opacity-25",cx:e/2,cy:e/2,r:s,stroke:"currentColor",strokeWidth:t,fill:"none"}),d.jsx("circle",{className:W(r),cx:e/2,cy:e/2,r:s,stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:i,strokeDashoffset:i*.75,fill:"none"})]})});Xi.displayName="CircularProgress";const nn=f.forwardRef(({className:e,type:t,...n},r)=>d.jsx("input",{type:t,className:W("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder-gray-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));nn.displayName="Input";var jp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=jp.reduce((e,t)=>{const n=jt(`Primitive.${t}`),r=f.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Zi(e,t){e&&Xr.flushSync(()=>e.dispatchEvent(t))}var $p="Label",Qi=f.forwardRef((e,t)=>d.jsx(ne.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Qi.displayName=$p;var Ji=Qi;const Lp=Zr("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),rn=f.forwardRef(({className:e,...t},n)=>d.jsx(Ji,{ref:n,className:W(Lp(),e),...t}));rn.displayName=Ji.displayName;const Je=({label:e,placeholder:t,helperText:n,error:r,required:o,type:a="text",leftIcon:s,rightIcon:i,className:l,inputClassName:u,onChange:m,showCharCount:c,maxLength:p,value:h,disabled:b,fridged:g,...v})=>{const[y,x]=w.useState((h==null?void 0:h.length)||0),S=N=>{m&&m(N),x(N.target.value.length)},D=c&&typeof p=="number",C=g||b;return d.jsxs("div",{className:W("space-y-1",l),children:[e&&d.jsxs(rn,{className:"text-sm font-medium text-foreground",children:[e,o&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsxs("div",{className:"relative",children:[s&&d.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:s}),i&&d.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:i}),d.jsx(nn,{type:a,placeholder:t,disabled:b,value:h,maxLength:p,onChange:S,className:W(s&&"pl-10",i&&"pr-10",r&&"border-destructive focus-visible:ring-destructive",C&&"cursor-not-allowed bg-muted text-muted-foreground opacity-70",u),...v}),D&&d.jsxs("span",{className:"absolute bottom-[-1.25rem] right-0 text-xs text-muted-foreground",children:[y," / ",p]})]}),(n||r)&&d.jsx("p",{className:W("text-xs",r?"text-destructive":"text-muted-foreground"),children:r||n})]})},Fp=({length:e=6,label:t,value:n,onChange:r,onComplete:o,className:a,error:s,inputClassName:i="h-8 w-8"})=>{const l=w.useRef([]),u=(c,p)=>{var b;if(p.length>1)return;const h=[...n];h[c]=p,r(h),p&&c<e-1&&((b=l.current[c+1])==null||b.focus()),h.every(g=>g!=="")&&o&&o(h.join(""))},m=(c,p)=>{var h;p.key==="Backspace"&&!n[c]&&c>0&&((h=l.current[c-1])==null||h.focus())};return d.jsxs("div",{className:W("space-y-2",a),children:[t&&d.jsx(rn,{className:"text-sm font-medium text-gray-700",children:t}),d.jsx("div",{className:"flex gap-1",children:n.map((c,p)=>d.jsx(nn,{ref:h=>l.current[p]=h,type:"text",inputMode:"numeric",maxLength:1,value:c,onChange:h=>u(p,h.target.value),onKeyDown:h=>m(p,h),className:W("text-center p-0 text-lg font-semibold",s&&"border-red-500 focus-visible:ring-red-500",i)},p))}),s&&d.jsx("p",{className:"text-xs text-red-500 mt-1",children:s})]})};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),w=require("react"),Da=require("react-dom");function ji(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=ji(w),Xr=ji(Da);function Es(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Mt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Es(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Es(e[o],null)}}}}function he(...e){return f.useCallback(Mt(...e),e)}function It(e){const t=qm(e),n=f.forwardRef((r,o)=>{const{children:a,...s}=r,i=f.Children.toArray(a),l=i.find(Km);if(l){const u=l.props.children,m=i.map(c=>c===l?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:c);return d.jsx(t,{...s,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,m):null})}return d.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Um=It("Slot");function qm(e){const t=f.forwardRef((n,r)=>{const{children:o,...a}=n;if(f.isValidElement(o)){const s=Zm(o),i=Xm(a,o.props);return o.type!==f.Fragment&&(i.ref=r?Mt(r,s):s),f.cloneElement(o,i)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $i=Symbol("radix.slottable");function Vm(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=$i,t}function Km(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$i}function Xm(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Zm(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Li(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Li(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Fi(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Li(e))&&(r&&(r+=" "),r+=t);return r}const Ns=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Rs=Fi,Zr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Rs(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const m=n==null?void 0:n[u],c=a==null?void 0:a[u];if(m===null)return null;const p=Ns(m)||Ns(c);return o[u][p]}),i=n&&Object.entries(n).reduce((u,m)=>{let[c,p]=m;return p===void 0||(u[c]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,m)=>{let{class:c,className:p,...h}=m;return Object.entries(h).every(b=>{let[g,v]=b;return Array.isArray(v)?v.includes({...a,...i}[g]):{...a,...i}[g]===v})?[...u,c,p]:u},[]);return Rs(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},ka="-",Qm=e=>{const t=ep(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(ka);return i[0]===""&&i.length!==1&&i.shift(),Wi(i,t)||Jm(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},Wi=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Wi(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(ka);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Ts=/^\[(.+)\]$/,Jm=e=>{if(Ts.test(e)){const t=Ts.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ep=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Qo(n[o],r,o,t);return r},Qo=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:_s(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(tp(o)){Qo(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{Qo(s,_s(t,a),n,r)})})},_s=(e,t)=>{let n=e;return t.split(ka).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},tp=e=>e.isThemeGetter,np=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},Jo="!",ea=":",rp=ea.length,op=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,u;for(let b=0;b<o.length;b++){let g=o[b];if(s===0&&i===0){if(g===ea){a.push(o.slice(l,b)),l=b+rp;continue}if(g==="/"){u=b;continue}}g==="["?s++:g==="]"?s--:g==="("?i++:g===")"&&i--}const m=a.length===0?o:o.substring(l),c=ap(m),p=c!==m,h=u&&u>l?u-l:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:c,maybePostfixModifierPosition:h}};if(t){const o=t+ea,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},ap=e=>e.endsWith(Jo)?e.substring(0,e.length-1):e.startsWith(Jo)?e.substring(1):e,sp=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},ip=e=>({cache:np(e.cacheSize),parseClassName:op(e),sortModifiers:sp(e),...Qm(e)}),cp=/\s+/,lp=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(cp);let l="";for(let u=i.length-1;u>=0;u-=1){const m=i[u],{isExternal:c,modifiers:p,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:g}=n(m);if(c){l=m+(l.length>0?" "+l:l);continue}let v=!!g,y=r(v?b.substring(0,g):b);if(!y){if(!v){l=m+(l.length>0?" "+l:l);continue}if(y=r(b),!y){l=m+(l.length>0?" "+l:l);continue}v=!1}const x=a(p).join(":"),S=h?x+Jo:x,D=S+y;if(s.includes(D))continue;s.push(D);const C=o(y,v);for(let N=0;N<C.length;++N){const M=C[N];s.push(S+M)}l=m+(l.length>0?" "+l:l)}return l};function up(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Bi(t))&&(r&&(r+=" "),r+=n);return r}const Bi=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Bi(e[r]))&&(n&&(n+=" "),n+=t);return n};function dp(e,...t){let n,r,o,a=s;function s(l){const u=t.reduce((m,c)=>c(m),e());return n=ip(u),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const u=r(l);if(u)return u;const m=lp(l,n);return o(l,m),m}return function(){return a(up.apply(null,arguments))}}const Oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Yi=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hi=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fp=/^\d+\/\d+$/,mp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pp=/\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$/,hp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,un=e=>fp.test(e),pe=e=>!!e&&!Number.isNaN(Number(e)),_t=e=>!!e&&Number.isInteger(Number(e)),ko=e=>e.endsWith("%")&&pe(e.slice(0,-1)),wt=e=>mp.test(e),yp=()=>!0,bp=e=>pp.test(e)&&!hp.test(e),zi=()=>!1,wp=e=>gp.test(e),xp=e=>vp.test(e),Sp=e=>!te(e)&&!ne(e),Cp=e=>Mn(e,qi,zi),te=e=>Yi.test(e),Vt=e=>Mn(e,Vi,bp),Eo=e=>Mn(e,Np,pe),Os=e=>Mn(e,Gi,zi),Mp=e=>Mn(e,Ui,xp),yr=e=>Mn(e,Ki,wp),ne=e=>Hi.test(e),jn=e=>Dn(e,Vi),Dp=e=>Dn(e,Rp),Ps=e=>Dn(e,Gi),kp=e=>Dn(e,qi),Ep=e=>Dn(e,Ui),br=e=>Dn(e,Ki,!0),Mn=(e,t,n)=>{const r=Yi.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Dn=(e,t,n=!1)=>{const r=Hi.exec(e);return r?r[1]?t(r[1]):n:!1},Gi=e=>e==="position"||e==="percentage",Ui=e=>e==="image"||e==="url",qi=e=>e==="length"||e==="size"||e==="bg-size",Vi=e=>e==="length",Np=e=>e==="number",Rp=e=>e==="family-name",Ki=e=>e==="shadow",Tp=()=>{const e=Oe("color"),t=Oe("font"),n=Oe("text"),r=Oe("font-weight"),o=Oe("tracking"),a=Oe("leading"),s=Oe("breakpoint"),i=Oe("container"),l=Oe("spacing"),u=Oe("radius"),m=Oe("shadow"),c=Oe("inset-shadow"),p=Oe("text-shadow"),h=Oe("drop-shadow"),b=Oe("blur"),g=Oe("perspective"),v=Oe("aspect"),y=Oe("ease"),x=Oe("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...D(),ne,te],N=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],E=()=>[ne,te,l],$=()=>[un,"full","auto",...E()],W=()=>[_t,"none","subgrid",ne,te],Y=()=>["auto",{span:["full",_t,ne,te]},_t,ne,te],U=()=>[_t,"auto",ne,te],A=()=>["auto","min","max","fr",ne,te],T=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...E()],P=()=>[un,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],k=()=>[e,ne,te],O=()=>[...D(),Ps,Os,{position:[ne,te]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",kp,Cp,{size:[ne,te]}],I=()=>[ko,jn,Vt],j=()=>["","none","full",u,ne,te],B=()=>["",pe,jn,Vt],z=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>[pe,ko,Ps,Os],q=()=>["","none",b,ne,te],X=()=>["none",pe,ne,te],Q=()=>["none",pe,ne,te],re=()=>[pe,ne,te],ie=()=>[un,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[wt],breakpoint:[wt],color:[yp],container:[wt],"drop-shadow":[wt],ease:["in","out","in-out"],font:[Sp],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[wt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[wt],shadow:[wt],spacing:["px",pe],text:[wt],"text-shadow":[wt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",un,te,ne,v]}],container:["container"],columns:[{columns:[pe,te,ne,i]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[_t,"auto",ne,te]}],basis:[{basis:[un,"full","auto",i,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,un,"auto","initial","none",te]}],grow:[{grow:["",pe,ne,te]}],shrink:[{shrink:["",pe,ne,te]}],order:[{order:[_t,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...T(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...T()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[i,"screen",...P()]}],"min-w":[{"min-w":[i,"screen","none",...P()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",n,jn,Vt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ne,Eo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ko,te]}],"font-family":[{font:[Dp,te,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ne,te]}],"line-clamp":[{"line-clamp":[pe,"none",ne,Eo]}],leading:[{leading:[a,...E()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",ne,Vt]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[pe,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_t,ne,te],radial:["",ne,te],conic:[_t,ne,te]},Ep,Mp]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,ne,te]}],"outline-w":[{outline:["",pe,jn,Vt]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",m,br,yr]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",c,br,yr]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[pe,Vt]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",p,br,yr]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[pe,ne,te]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:q()}],brightness:[{brightness:[pe,ne,te]}],contrast:[{contrast:[pe,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",h,br,yr]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",pe,ne,te]}],"hue-rotate":[{"hue-rotate":[pe,ne,te]}],invert:[{invert:["",pe,ne,te]}],saturate:[{saturate:[pe,ne,te]}],sepia:[{sepia:["",pe,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[pe,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[pe,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",pe,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[pe,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[pe,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",ne,te]}],ease:[{ease:["linear","initial",y,ne,te]}],delay:[{delay:[pe,ne,te]}],animate:[{animate:["none",x,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ne,te]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",ne,te]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[pe,jn,Vt,Eo]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},_p=dp(Tp);function F(...e){return _p(Fi(e))}const ta=Zr("inline-flex items-center justify-center 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-black text-white hover:bg-black/90",outline:"border border-gray-300 bg-white text-gray-700 hover:bg-gray-100",ghost:"text-gray-700 hover:bg-gray-100",error:"bg-red-500 text-white hover:bg-red-600",success:"bg-green-500 text-white hover:bg-green-600",warning:"bg-yellow-500 text-white hover:bg-yellow-600",blue:"bg-blue-500 text-white hover:bg-blue-600",disabled:"bg-gray-200 text-gray-400 cursor-not-allowed hover:bg-gray-200",brandBlue:"bg-brandBlue text-white hover:bg-brandBlue/90",primary:"bg-primary text-white hover:bg-primary/90"},size:{large:"rounded-xl text-base py-2.5 px-5 leading-snug font-semibold gap-2",medium:"rounded-xl text-sm py-2 px-4 leading-tight font-semibold gap-2",small:"rounded-full text-xs py-2 px-3 leading-4 font-semibold gap-1","icon.large":"rounded-[12px] p-2.5","icon.medium":"rounded-[10px] p-2","icon.small":"rounded-[14px] p-1.5"},iconSize:{large:"[&_svg]:w-6 [&_svg]:h-6",medium:"[&_svg]:w-5 [&_svg]:h-5",small:"[&_svg]:w-4 [&_svg]:h-4"},iconPosition:{left:"flex-row",right:"flex-row-reverse"},fullWidth:{true:"w-full",false:"w-auto"}},defaultVariants:{variant:"default",size:"medium",iconPosition:"left",fullWidth:!1}}),Dt=w.forwardRef(({className:e,variant:t,size:n,iconSize:r,iconPosition:o,fullWidth:a,asChild:s=!1,icon:i,iconOnly:l,children:u,...m},c)=>{const p=s?Um:"button";let h=n;if(l&&n)switch(n){case"large":h="icon.large";break;case"medium":h="icon.medium";break;case"small":h="icon.small";break}const b=r||(n==="large"?"large":n==="small"?"small":"medium");return d.jsxs(p,{className:F(ta({variant:t,size:h,iconSize:b,iconPosition:o,fullWidth:a,className:e})),ref:c,"aria-label":l&&!m["aria-label"]?"Icon button":m["aria-label"],...m,children:[i&&d.jsx("span",{"data-testid":"button-icon",children:i}),!l&&u]})});Dt.displayName="DoctButton";const Op={h1:{fontSize:"3.5rem",tag:"h1"},h2:{fontSize:"2.875rem",tag:"h2"},h3:{fontSize:"2.25rem",tag:"h3"},h4:{fontSize:"2rem",tag:"h4"},h5:{fontSize:"1.75rem",tag:"h5"},h6:{fontSize:"1.5rem",tag:"h6"},h7:{fontSize:"1.25rem",tag:"p"},h8:{fontSize:"1.125rem",tag:"p"},title1:{fontSize:"1.375rem",tag:"p"},title2:{fontSize:"1.125rem",tag:"p"},title3:{fontSize:"0.875rem",tag:"p"},title4:{fontSize:"0.75rem",tag:"p"},body1:{fontSize:"1rem",tag:"p"},body2:{fontSize:"0.875rem",tag:"p"},body3:{fontSize:"0.75rem",tag:"p"},body4:{fontSize:"0.625rem",tag:"p"},textLabel1:{fontSize:"1rem",tag:"span"},textLabel2:{fontSize:"0.875rem",tag:"span"},textLabel3:{fontSize:"0.75rem",tag:"span"},textLabel4:{fontSize:"0.6875rem",tag:"span"}},Pp={regular:"400",medium:"500",semiBold:"600",bold:"700",extraBold:"800",light:"300"},Ap=({variant:e,weight:t="regular",children:n,color:r="#000",align:o="inherit",className:a=""})=>{const s=Op[e]??{fontSize:"16px",tag:"p"},{fontSize:i,tag:l}=s;return d.jsx(l,{className:a,style:{fontSize:i,fontWeight:Pp[t]??"400",color:r,textAlign:o},children:n})};function Ip(){return d.jsx("div",{className:"flex flex-col items-center justify-center h-screen w-full bg-white",children:d.jsx("img",{src:"/logoAnimation.gif",alt:"Loading animation",className:"w-32 h-32 object-contain"})})}const Xi=f.forwardRef(({size:e=48,strokeWidth:t=4,className:n,colorClassName:r="text-current",...o},a)=>{const s=Math.max((e-t)/2,0),i=2*Math.PI*s;return d.jsxs("svg",{ref:a,width:e,height:e,viewBox:`0 0 ${e} ${e}`,className:F("animate-spin text-muted-foreground",n),role:"progressbar","aria-label":"Loading","aria-valuemin":0,"aria-valuemax":100,...o,children:[d.jsx("circle",{className:"opacity-25",cx:e/2,cy:e/2,r:s,stroke:"currentColor",strokeWidth:t,fill:"none"}),d.jsx("circle",{className:F(r),cx:e/2,cy:e/2,r:s,stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:i,strokeDashoffset:i*.75,fill:"none"})]})});Xi.displayName="CircularProgress";const nn=f.forwardRef(({className:e,type:t,...n},r)=>d.jsx("input",{type:t,className:F("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder-gray-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));nn.displayName="Input";var jp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ee=jp.reduce((e,t)=>{const n=It(`Primitive.${t}`),r=f.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Zi(e,t){e&&Xr.flushSync(()=>e.dispatchEvent(t))}var $p="Label",Qi=f.forwardRef((e,t)=>d.jsx(ee.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Qi.displayName=$p;var Ji=Qi;const Lp=Zr("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),rn=f.forwardRef(({className:e,...t},n)=>d.jsx(Ji,{ref:n,className:F(Lp(),e),...t}));rn.displayName=Ji.displayName;const Qe=({label:e,placeholder:t,helperText:n,error:r,required:o,type:a="text",leftIcon:s,rightIcon:i,className:l,inputClassName:u,onChange:m,showCharCount:c,maxLength:p,value:h,disabled:b,fridged:g,...v})=>{const[y,x]=w.useState((h==null?void 0:h.length)||0),S=N=>{m&&m(N),x(N.target.value.length)},D=c&&typeof p=="number",C=g||b;return d.jsxs("div",{className:F("space-y-1",l),children:[e&&d.jsxs(rn,{className:"text-sm font-medium text-foreground",children:[e,o&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsxs("div",{className:"relative",children:[s&&d.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:s}),i&&d.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:i}),d.jsx(nn,{type:a,placeholder:t,disabled:b,value:h,maxLength:p,onChange:S,className:F(s&&"pl-10",i&&"pr-10",r&&"border-destructive focus-visible:ring-destructive",C&&"cursor-not-allowed bg-muted text-muted-foreground opacity-70",u),...v}),D&&d.jsxs("span",{className:"absolute bottom-[-1.25rem] right-0 text-xs text-muted-foreground",children:[y," / ",p]})]}),(n||r)&&d.jsx("p",{className:F("text-xs",r?"text-destructive":"text-muted-foreground"),children:r||n})]})},Fp=({length:e=6,label:t,value:n,onChange:r,onComplete:o,className:a,error:s,inputClassName:i="h-8 w-8"})=>{const l=w.useRef([]),u=(c,p)=>{var b;if(p.length>1)return;const h=[...n];h[c]=p,r(h),p&&c<e-1&&((b=l.current[c+1])==null||b.focus()),h.every(g=>g!=="")&&o&&o(h.join(""))},m=(c,p)=>{var h;p.key==="Backspace"&&!n[c]&&c>0&&((h=l.current[c-1])==null||h.focus())};return d.jsxs("div",{className:F("space-y-2",a),children:[t&&d.jsx(rn,{className:"text-sm font-medium text-gray-700",children:t}),d.jsx("div",{className:"flex gap-1",children:n.map((c,p)=>d.jsx(nn,{ref:h=>l.current[p]=h,type:"text",inputMode:"numeric",maxLength:1,value:c,onChange:h=>u(p,h.target.value),onKeyDown:h=>m(p,h),className:F("text-center p-0 text-lg font-semibold",s&&"border-red-500 focus-visible:ring-red-500",i)},p))}),s&&d.jsx("p",{className:"text-xs text-red-500 mt-1",children:s})]})};/**
2
2
  * @license lucide-react v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -18,117 +18,117 @@
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const Re=(e,t)=>{const n=w.forwardRef(({className:r,...o},a)=>w.createElement(Yp,{ref:a,iconNode:t,className:ec(`lucide-${Wp(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
21
+ */const ke=(e,t)=>{const n=w.forwardRef(({className:r,...o},a)=>w.createElement(Yp,{ref:a,iconNode:t,className:ec(`lucide-${Wp(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
22
22
  * @license lucide-react v0.474.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */const Hp=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]],zp=Re("Building",Hp);/**
26
+ */const Hp=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]],zp=ke("Building",Hp);/**
27
27
  * @license lucide-react v0.474.0 - ISC
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const Gp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],tc=Re("CalendarDays",Gp);/**
31
+ */const Gp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],tc=ke("CalendarDays",Gp);/**
32
32
  * @license lucide-react v0.474.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const Up=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Jn=Re("Check",Up);/**
36
+ */const Up=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Jn=ke("Check",Up);/**
37
37
  * @license lucide-react v0.474.0 - ISC
38
38
  *
39
39
  * This source code is licensed under the ISC license.
40
40
  * See the LICENSE file in the root directory of this source tree.
41
- */const Vp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],er=Re("ChevronDown",Vp);/**
41
+ */const qp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],er=ke("ChevronDown",qp);/**
42
42
  * @license lucide-react v0.474.0 - ISC
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
- */const qp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],nc=Re("ChevronLeft",qp);/**
46
+ */const Vp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],nc=ke("ChevronLeft",Vp);/**
47
47
  * @license lucide-react v0.474.0 - ISC
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */const Kp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ea=Re("ChevronRight",Kp);/**
51
+ */const Kp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ea=ke("ChevronRight",Kp);/**
52
52
  * @license lucide-react v0.474.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const Xp=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Zp=Re("ChevronUp",Xp);/**
56
+ */const Xp=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Zp=ke("ChevronUp",Xp);/**
57
57
  * @license lucide-react v0.474.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const Qp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jp=Re("CircleCheck",Qp);/**
61
+ */const Qp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jp=ke("CircleCheck",Qp);/**
62
62
  * @license lucide-react v0.474.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
- */const eh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],th=Re("CircleX",eh);/**
66
+ */const eh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],th=ke("CircleX",eh);/**
67
67
  * @license lucide-react v0.474.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const nh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],rc=Re("Circle",nh);/**
71
+ */const nh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],rc=ke("Circle",nh);/**
72
72
  * @license lucide-react v0.474.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */const rh=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],oh=Re("EyeOff",rh);/**
76
+ */const rh=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],oh=ke("EyeOff",rh);/**
77
77
  * @license lucide-react v0.474.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const ah=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sh=Re("Eye",ah);/**
81
+ */const ah=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sh=ke("Eye",ah);/**
82
82
  * @license lucide-react v0.474.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const ih=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],ch=Re("Filter",ih);/**
86
+ */const ih=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],ch=ke("Filter",ih);/**
87
87
  * @license lucide-react v0.474.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const lh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],uh=Re("Info",lh);/**
91
+ */const lh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],uh=ke("Info",lh);/**
92
92
  * @license lucide-react v0.474.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const dh=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],oc=Re("Mail",dh);/**
96
+ */const dh=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],oc=ke("Mail",dh);/**
97
97
  * @license lucide-react v0.474.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const fh=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],mh=Re("MapPin",fh);/**
101
+ */const fh=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],mh=ke("MapPin",fh);/**
102
102
  * @license lucide-react v0.474.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const ph=[["path",{d:"M5 12h14",key:"1ays0h"}]],hh=Re("Minus",ph);/**
106
+ */const ph=[["path",{d:"M5 12h14",key:"1ays0h"}]],hh=ke("Minus",ph);/**
107
107
  * @license lucide-react v0.474.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const gh=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],vh=Re("Phone",gh);/**
111
+ */const gh=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],vh=ke("Phone",gh);/**
112
112
  * @license lucide-react v0.474.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const yh=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],ac=Re("Search",yh);/**
116
+ */const yh=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],ac=ke("Search",yh);/**
117
117
  * @license lucide-react v0.474.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const bh=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],wh=Re("TriangleAlert",bh);/**
121
+ */const bh=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],wh=ke("TriangleAlert",bh);/**
122
122
  * @license lucide-react v0.474.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const xh=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Sh=Re("User",xh);/**
126
+ */const xh=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Sh=ke("User",xh);/**
127
127
  * @license lucide-react v0.474.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const Ch=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kn=Re("X",Ch);function na({label:e,placeholder:t="Enter password",helperText:n,error:r,required:o,className:a,showPassword:s=!1,onShowPasswordChange:i,value:l,onChange:u,...m}){return d.jsxs("div",{className:W("space-y-1",a),children:[e&&d.jsxs(rn,{className:"text-sm font-medium text-gray-700",children:[e,o&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs("div",{className:"relative",children:[d.jsx(nn,{type:s?"text":"password",placeholder:t,className:W("pr-10",r&&"border-red-500 focus-visible:ring-red-500"),value:l,onChange:c=>u==null?void 0:u(c.target.value),...m}),d.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground cursor-pointer",onClick:()=>i==null?void 0:i(!s),"aria-label":s?"Hide password":"Show password",children:s?d.jsx(oh,{className:"h-4 w-4 text-gray-400 hover:text-gray-500"}):d.jsx(sh,{className:"h-4 w-4 text-gray-400 hover:text-gray-500"})})]}),r&&d.jsx("p",{className:"text-xs text-red-500",children:r}),n&&!r&&d.jsx("p",{className:"text-xs text-gray-500",children:n})]})}const Na=f.forwardRef(({label:e,helperText:t,errorText:n,required:r,className:o,placeholder:a="Write here...",rows:s=4,...i},l)=>{const u=!!n;return d.jsxs("div",{className:W("space-y-1",o),children:[e&&d.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[e,r&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsx("textarea",{ref:l,placeholder:a,rows:s,className:W("flex min-h-[80px] w-full rounded-md border bg-background px-3 py-2 text-base placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",u?"border-destructive focus:ring-destructive":"border-input focus:ring-ring"),...i}),(t||n)&&d.jsx("p",{className:W("text-xs",u?"text-destructive":"text-muted-foreground"),children:n||t})]})});Na.displayName="Textarea";function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Mh(e,t){const n=f.createContext(t),r=a=>{const{children:s,...i}=a,l=f.useMemo(()=>i,Object.values(i));return d.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=f.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ye(e,t=[]){let n=[];function r(a,s){const i=f.createContext(s),l=n.length;n=[...n,s];const u=c=>{var y;const{scope:p,children:h,...b}=c,g=((y=p==null?void 0:p[e])==null?void 0:y[l])||i,v=f.useMemo(()=>b,Object.values(b));return d.jsx(g.Provider,{value:v,children:h})};u.displayName=a+"Provider";function m(c,p){var g;const h=((g=p==null?void 0:p[e])==null?void 0:g[l])||i,b=f.useContext(h);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[u,m]}const o=()=>{const a=n.map(s=>f.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Dh(o,...t)]}function Dh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:u})=>{const c=l(a)[`__scope${u}`];return{...i,...c}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function tt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function kh(e,t=globalThis==null?void 0:globalThis.document){const n=tt(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Eh="DismissableLayer",ra="dismissableLayer.update",Nh="dismissableLayer.pointerDownOutside",Rh="dismissableLayer.focusOutside",As,sc=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),En=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,u=f.useContext(sc),[m,c]=f.useState(null),p=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=f.useState({}),b=he(t,M=>c(M)),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),x=m?g.indexOf(m):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,D=x>=y,C=Oh(M=>{const E=M.target,L=[...u.branches].some(B=>B.contains(E));!D||L||(o==null||o(M),s==null||s(M),M.defaultPrevented||i==null||i())},p),N=Ph(M=>{const E=M.target;[...u.branches].some(B=>B.contains(E))||(a==null||a(M),s==null||s(M),M.defaultPrevented||i==null||i())},p);return kh(M=>{x===u.layers.size-1&&(r==null||r(M),!M.defaultPrevented&&i&&(M.preventDefault(),i()))},p),f.useEffect(()=>{if(m)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(As=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(m)),u.layers.add(m),Is(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=As)}},[m,p,n,u]),f.useEffect(()=>()=>{m&&(u.layers.delete(m),u.layersWithOutsidePointerEventsDisabled.delete(m),Is())},[m,u]),f.useEffect(()=>{const M=()=>h({});return document.addEventListener(ra,M),()=>document.removeEventListener(ra,M)},[]),d.jsx(ne.div,{...l,ref:b,style:{pointerEvents:S?D?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,C.onPointerDownCapture)})});En.displayName=Eh;var Th="DismissableLayerBranch",_h=f.forwardRef((e,t)=>{const n=f.useContext(sc),r=f.useRef(null),o=he(t,r);return f.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(ne.div,{...e,ref:o})});_h.displayName=Th;function Oh(e,t=globalThis==null?void 0:globalThis.document){const n=tt(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){ic(Nh,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ph(e,t=globalThis==null?void 0:globalThis.document){const n=tt(e),r=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!r.current&&ic(Rh,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Is(){const e=new CustomEvent(ra);document.dispatchEvent(e)}function ic(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Zi(o,a):o.dispatchEvent(a)}var No=0;function Qr(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??js()),document.body.insertAdjacentElement("beforeend",e[1]??js()),No++,()=>{No===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),No--}},[])}function js(){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 Ro="focusScope.autoFocusOnMount",To="focusScope.autoFocusOnUnmount",$s={bubbles:!1,cancelable:!0},Ah="FocusScope",tr=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=f.useState(null),u=tt(o),m=tt(a),c=f.useRef(null),p=he(t,g=>l(g)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let g=function(S){if(h.paused||!i)return;const D=S.target;i.contains(D)?c.current=D:At(c.current,{select:!0})},v=function(S){if(h.paused||!i)return;const D=S.relatedTarget;D!==null&&(i.contains(D)||At(c.current,{select:!0}))},y=function(S){if(document.activeElement===document.body)for(const C of S)C.removedNodes.length>0&&At(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),x.disconnect()}}},[r,i,h.paused]),f.useEffect(()=>{if(i){Fs.add(h);const g=document.activeElement;if(!i.contains(g)){const y=new CustomEvent(Ro,$s);i.addEventListener(Ro,u),i.dispatchEvent(y),y.defaultPrevented||(Ih(Wh(cc(i)),{select:!0}),document.activeElement===g&&At(i))}return()=>{i.removeEventListener(Ro,u),setTimeout(()=>{const y=new CustomEvent(To,$s);i.addEventListener(To,m),i.dispatchEvent(y),y.defaultPrevented||At(g??document.body,{select:!0}),i.removeEventListener(To,m),Fs.remove(h)},0)}}},[i,u,m,h]);const b=f.useCallback(g=>{if(!n&&!r||h.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(v&&y){const x=g.currentTarget,[S,D]=jh(x);S&&D?!g.shiftKey&&y===D?(g.preventDefault(),n&&At(S,{select:!0})):g.shiftKey&&y===S&&(g.preventDefault(),n&&At(D,{select:!0})):y===x&&g.preventDefault()}},[n,r,h.paused]);return d.jsx(ne.div,{tabIndex:-1,...s,ref:p,onKeyDown:b})});tr.displayName=Ah;function Ih(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(At(r,{select:t}),document.activeElement!==n)return}function jh(e){const t=cc(e),n=Ls(t,e),r=Ls(t.reverse(),e);return[n,r]}function cc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ls(e,t){for(const n of e)if(!$h(n,{upTo:t}))return n}function $h(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 Lh(e){return e instanceof HTMLInputElement&&"select"in e}function At(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Lh(e)&&t&&e.select()}}var Fs=Fh();function Fh(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ws(e,t),e.unshift(t)},remove(t){var n;e=Ws(e,t),(n=e[0])==null||n.resume()}}}function Ws(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Wh(e){return e.filter(t=>t.tagName!=="A")}var Oe=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Bh=f[" useId ".trim().toString()]||(()=>{}),Yh=0;function Te(e){const[t,n]=f.useState(Bh());return Oe(()=>{n(r=>r??String(Yh++))},[e]),e||(t?`radix-${t}`:"")}const Hh=["top","right","bottom","left"],$t=Math.min,Ze=Math.max,$r=Math.round,wr=Math.floor,gt=e=>({x:e,y:e}),zh={left:"right",right:"left",bottom:"top",top:"bottom"},Gh={start:"end",end:"start"};function oa(e,t,n){return Ze(e,$t(t,n))}function Et(e,t){return typeof e=="function"?e(t):e}function Nt(e){return e.split("-")[0]}function Nn(e){return e.split("-")[1]}function Ra(e){return e==="x"?"y":"x"}function Ta(e){return e==="y"?"height":"width"}const Uh=new Set(["top","bottom"]);function pt(e){return Uh.has(Nt(e))?"y":"x"}function _a(e){return Ra(pt(e))}function Vh(e,t,n){n===void 0&&(n=!1);const r=Nn(e),o=_a(e),a=Ta(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Lr(s)),[s,Lr(s)]}function qh(e){const t=Lr(e);return[aa(e),t,aa(t)]}function aa(e){return e.replace(/start|end/g,t=>Gh[t])}const Bs=["left","right"],Ys=["right","left"],Kh=["top","bottom"],Xh=["bottom","top"];function Zh(e,t,n){switch(e){case"top":case"bottom":return n?t?Ys:Bs:t?Bs:Ys;case"left":case"right":return t?Kh:Xh;default:return[]}}function Qh(e,t,n,r){const o=Nn(e);let a=Zh(Nt(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(aa)))),a}function Lr(e){return e.replace(/left|right|bottom|top/g,t=>zh[t])}function Jh(e){return{top:0,right:0,bottom:0,left:0,...e}}function lc(e){return typeof e!="number"?Jh(e):{top:e,right:e,bottom:e,left:e}}function Fr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Hs(e,t,n){let{reference:r,floating:o}=e;const a=pt(t),s=_a(t),i=Ta(s),l=Nt(t),u=a==="y",m=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let h;switch(l){case"top":h={x:m,y:r.y-o.height};break;case"bottom":h={x:m,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-o.width,y:c};break;default:h={x:r.x,y:r.y}}switch(Nn(t)){case"start":h[s]-=p*(n&&u?-1:1);break;case"end":h[s]+=p*(n&&u?-1:1);break}return h}const eg=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:c}=Hs(u,r,l),p=r,h={},b=0;for(let g=0;g<i.length;g++){const{name:v,fn:y}=i[g],{x,y:S,data:D,reset:C}=await y({x:m,y:c,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});m=x??m,c=S??c,h={...h,[v]:{...h[v],...D}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(u=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:m,y:c}=Hs(u,p,l)),g=-1)}return{x:m,y:c,placement:p,strategy:o,middlewareData:h}};async function Un(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:c="floating",altBoundary:p=!1,padding:h=0}=Et(t,e),b=lc(h),v=i[p?c==="floating"?"reference":"floating":c],y=Fr(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:m,strategy:l})),x=c==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),D=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},C=Fr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:S,strategy:l}):x);return{top:(y.top-C.top+b.top)/D.y,bottom:(C.bottom-y.bottom+b.bottom)/D.y,left:(y.left-C.left+b.left)/D.x,right:(C.right-y.right+b.right)/D.x}}const tg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:m=0}=Et(e,t)||{};if(u==null)return{};const c=lc(m),p={x:n,y:r},h=_a(o),b=Ta(h),g=await s.getDimensions(u),v=h==="y",y=v?"top":"left",x=v?"bottom":"right",S=v?"clientHeight":"clientWidth",D=a.reference[b]+a.reference[h]-p[h]-a.floating[b],C=p[h]-a.reference[h],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let M=N?N[S]:0;(!M||!await(s.isElement==null?void 0:s.isElement(N)))&&(M=i.floating[S]||a.floating[b]);const E=D/2-C/2,L=M/2-g[b]/2-1,B=$t(c[y],L),Y=$t(c[x],L),V=B,O=M-g[b]-Y,_=M/2-g[b]/2+E,T=oa(V,_,O),R=!l.arrow&&Nn(o)!=null&&_!==T&&a.reference[b]/2-(_<V?B:Y)-g[b]/2<0,A=R?_<V?_-V:_-O:0;return{[h]:p[h]+A,data:{[h]:T,centerOffset:_-T-A,...R&&{alignmentOffset:A}},reset:R}}}),ng=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:m=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...v}=Et(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Nt(o),x=pt(i),S=Nt(i)===i,D=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=p||(S||!g?[Lr(i)]:qh(i)),N=b!=="none";!p&&N&&C.push(...Qh(i,g,b,D));const M=[i,...C],E=await Un(t,v),L=[];let B=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&L.push(E[y]),c){const _=Vh(o,s,D);L.push(E[_[0]],E[_[1]])}if(B=[...B,{placement:o,overflows:L}],!L.every(_=>_<=0)){var Y,V;const _=(((Y=a.flip)==null?void 0:Y.index)||0)+1,T=M[_];if(T&&(!(c==="alignment"?x!==pt(T):!1)||B.every(k=>pt(k.placement)===x?k.overflows[0]>0:!0)))return{data:{index:_,overflows:B},reset:{placement:T}};let R=(V=B.filter(A=>A.overflows[0]<=0).sort((A,k)=>A.overflows[1]-k.overflows[1])[0])==null?void 0:V.placement;if(!R)switch(h){case"bestFit":{var O;const A=(O=B.filter(k=>{if(N){const P=pt(k.placement);return P===x||P==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(P=>P>0).reduce((P,z)=>P+z,0)]).sort((k,P)=>k[1]-P[1])[0])==null?void 0:O[0];A&&(R=A);break}case"initialPlacement":R=i;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function zs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gs(e){return Hh.some(t=>e[t]>=0)}const rg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Et(e,t);switch(r){case"referenceHidden":{const a=await Un(t,{...o,elementContext:"reference"}),s=zs(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Gs(s)}}}case"escaped":{const a=await Un(t,{...o,altBoundary:!0}),s=zs(a,n.floating);return{data:{escapedOffsets:s,escaped:Gs(s)}}}default:return{}}}}},uc=new Set(["left","top"]);async function og(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Nt(n),i=Nn(n),l=pt(n)==="y",u=uc.has(s)?-1:1,m=a&&l?-1:1,c=Et(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:b}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return i&&typeof b=="number"&&(h=i==="end"?b*-1:b),l?{x:h*m,y:p*u}:{x:p*u,y:h*m}}const ag=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await og(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},sg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...l}=Et(e,t),u={x:n,y:r},m=await Un(t,l),c=pt(Nt(o)),p=Ra(c);let h=u[p],b=u[c];if(a){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=h+m[v],S=h-m[y];h=oa(x,h,S)}if(s){const v=c==="y"?"top":"left",y=c==="y"?"bottom":"right",x=b+m[v],S=b-m[y];b=oa(x,b,S)}const g=i.fn({...t,[p]:h,[c]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:a,[c]:s}}}}}},ig=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:u=!0}=Et(e,t),m={x:n,y:r},c=pt(o),p=Ra(c);let h=m[p],b=m[c];const g=Et(i,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const S=p==="y"?"height":"width",D=a.reference[p]-a.floating[S]+v.mainAxis,C=a.reference[p]+a.reference[S]-v.mainAxis;h<D?h=D:h>C&&(h=C)}if(u){var y,x;const S=p==="y"?"width":"height",D=uc.has(Nt(o)),C=a.reference[c]-a.floating[S]+(D&&((y=s.offset)==null?void 0:y[c])||0)+(D?0:v.crossAxis),N=a.reference[c]+a.reference[S]+(D?0:((x=s.offset)==null?void 0:x[c])||0)-(D?v.crossAxis:0);b<C?b=C:b>N&&(b=N)}return{[p]:h,[c]:b}}}},cg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...u}=Et(e,t),m=await Un(t,u),c=Nt(o),p=Nn(o),h=pt(o)==="y",{width:b,height:g}=a.floating;let v,y;c==="top"||c==="bottom"?(v=c,y=p===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=c,v=p==="end"?"top":"bottom");const x=g-m.top-m.bottom,S=b-m.left-m.right,D=$t(g-m[v],x),C=$t(b-m[y],S),N=!t.middlewareData.shift;let M=D,E=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=x),N&&!p){const B=Ze(m.left,0),Y=Ze(m.right,0),V=Ze(m.top,0),O=Ze(m.bottom,0);h?E=b-2*(B!==0||Y!==0?B+Y:Ze(m.left,m.right)):M=g-2*(V!==0||O!==0?V+O:Ze(m.top,m.bottom))}await l({...t,availableWidth:E,availableHeight:M});const L=await s.getDimensions(i.floating);return b!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function Jr(){return typeof window<"u"}function Rn(e){return dc(e)?(e.nodeName||"").toLowerCase():"#document"}function Qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yt(e){var t;return(t=(dc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dc(e){return Jr()?e instanceof Node||e instanceof Qe(e).Node:!1}function it(e){return Jr()?e instanceof Element||e instanceof Qe(e).Element:!1}function vt(e){return Jr()?e instanceof HTMLElement||e instanceof Qe(e).HTMLElement:!1}function Us(e){return!Jr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qe(e).ShadowRoot}const lg=new Set(["inline","contents"]);function nr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!lg.has(o)}const ug=new Set(["table","td","th"]);function dg(e){return ug.has(Rn(e))}const fg=[":popover-open",":modal"];function eo(e){return fg.some(t=>{try{return e.matches(t)}catch{return!1}})}const mg=["transform","translate","scale","rotate","perspective"],pg=["transform","translate","scale","rotate","perspective","filter"],hg=["paint","layout","strict","content"];function Oa(e){const t=Pa(),n=it(e)?ct(e):e;return mg.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||pg.some(r=>(n.willChange||"").includes(r))||hg.some(r=>(n.contain||"").includes(r))}function gg(e){let t=Lt(e);for(;vt(t)&&!bn(t);){if(Oa(t))return t;if(eo(t))return null;t=Lt(t)}return null}function Pa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vg=new Set(["html","body","#document"]);function bn(e){return vg.has(Rn(e))}function ct(e){return Qe(e).getComputedStyle(e)}function to(e){return it(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lt(e){if(Rn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Us(e)&&e.host||yt(e);return Us(t)?t.host:t}function fc(e){const t=Lt(e);return bn(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&nr(t)?t:fc(t)}function Vn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=fc(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=Qe(o);if(a){const i=sa(s);return t.concat(s,s.visualViewport||[],nr(o)?o:[],i&&n?Vn(i):[])}return t.concat(o,Vn(o,[],n))}function sa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mc(e){const t=ct(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=vt(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=$r(n)!==a||$r(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Aa(e){return it(e)?e:e.contextElement}function vn(e){const t=Aa(e);if(!vt(t))return gt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=mc(t);let s=(a?$r(n.width):n.width)/r,i=(a?$r(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const yg=gt(0);function pc(e){const t=Qe(e);return!Pa()||!t.visualViewport?yg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qe(e)?!1:t}function Zt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Aa(e);let s=gt(1);t&&(r?it(r)&&(s=vn(r)):s=vn(e));const i=bg(a,n,r)?pc(a):gt(0);let l=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,m=o.width/s.x,c=o.height/s.y;if(a){const p=Qe(a),h=r&&it(r)?Qe(r):r;let b=p,g=sa(b);for(;g&&r&&h!==b;){const v=vn(g),y=g.getBoundingClientRect(),x=ct(g),S=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,D=y.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,u*=v.y,m*=v.x,c*=v.y,l+=S,u+=D,b=Qe(g),g=sa(b)}}return Fr({width:m,height:c,x:l,y:u})}function Ia(e,t){const n=to(e).scrollLeft;return t?t.left+n:Zt(yt(e)).left+n}function hc(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Ia(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function wg(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=yt(r),i=t?eo(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},u=gt(1);const m=gt(0),c=vt(r);if((c||!c&&!a)&&((Rn(r)!=="body"||nr(s))&&(l=to(r)),vt(r))){const h=Zt(r);u=vn(r),m.x=h.x+r.clientLeft,m.y=h.y+r.clientTop}const p=s&&!c&&!a?hc(s,l,!0):gt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+m.x+p.x,y:n.y*u.y-l.scrollTop*u.y+m.y+p.y}}function xg(e){return Array.from(e.getClientRects())}function Sg(e){const t=yt(e),n=to(e),r=e.ownerDocument.body,o=Ze(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ze(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ia(e);const i=-n.scrollTop;return ct(r).direction==="rtl"&&(s+=Ze(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}function Cg(e,t){const n=Qe(e),r=yt(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const u=Pa();(!u||u&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}const Mg=new Set(["absolute","fixed"]);function Dg(e,t){const n=Zt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=vt(e)?vn(e):gt(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,u=r*a.y;return{width:s,height:i,x:l,y:u}}function Vs(e,t,n){let r;if(t==="viewport")r=Cg(e,n);else if(t==="document")r=Sg(yt(e));else if(it(t))r=Dg(t,n);else{const o=pc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Fr(r)}function gc(e,t){const n=Lt(e);return n===t||!it(n)||bn(n)?!1:ct(n).position==="fixed"||gc(n,t)}function kg(e,t){const n=t.get(e);if(n)return n;let r=Vn(e,[],!1).filter(i=>it(i)&&Rn(i)!=="body"),o=null;const a=ct(e).position==="fixed";let s=a?Lt(e):e;for(;it(s)&&!bn(s);){const i=ct(s),l=Oa(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&Mg.has(o.position)||nr(s)&&!l&&gc(e,s))?r=r.filter(m=>m!==s):o=i,s=Lt(s)}return t.set(e,r),r}function Eg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?eo(t)?[]:kg(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((u,m)=>{const c=Vs(t,m,o);return u.top=Ze(c.top,u.top),u.right=$t(c.right,u.right),u.bottom=$t(c.bottom,u.bottom),u.left=Ze(c.left,u.left),u},Vs(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ng(e){const{width:t,height:n}=mc(e);return{width:t,height:n}}function Rg(e,t,n){const r=vt(t),o=yt(t),a=n==="fixed",s=Zt(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=gt(0);function u(){l.x=Ia(o)}if(r||!r&&!a)if((Rn(t)!=="body"||nr(o))&&(i=to(t)),r){const h=Zt(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();a&&!r&&o&&u();const m=o&&!r&&!a?hc(o,i):gt(0),c=s.left+i.scrollLeft-l.x-m.x,p=s.top+i.scrollTop-l.y-m.y;return{x:c,y:p,width:s.width,height:s.height}}function _o(e){return ct(e).position==="static"}function qs(e,t){if(!vt(e)||ct(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return yt(e)===n&&(n=n.ownerDocument.body),n}function vc(e,t){const n=Qe(e);if(eo(e))return n;if(!vt(e)){let o=Lt(e);for(;o&&!bn(o);){if(it(o)&&!_o(o))return o;o=Lt(o)}return n}let r=qs(e,t);for(;r&&dg(r)&&_o(r);)r=qs(r,t);return r&&bn(r)&&_o(r)&&!Oa(r)?n:r||gg(e)||n}const Tg=async function(e){const t=this.getOffsetParent||vc,n=this.getDimensions,r=await n(e.floating);return{reference:Rg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _g(e){return ct(e).direction==="rtl"}const Og={convertOffsetParentRelativeRectToViewportRelativeRect:wg,getDocumentElement:yt,getClippingRect:Eg,getOffsetParent:vc,getElementRects:Tg,getClientRects:xg,getDimensions:Ng,getScale:vn,isElement:it,isRTL:_g};function yc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pg(e,t){let n=null,r;const o=yt(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:m,top:c,width:p,height:h}=u;if(i||t(),!p||!h)return;const b=wr(c),g=wr(o.clientWidth-(m+p)),v=wr(o.clientHeight-(c+h)),y=wr(m),S={rootMargin:-b+"px "+-g+"px "+-v+"px "+-y+"px",threshold:Ze(0,$t(1,l))||1};let D=!0;function C(N){const M=N[0].intersectionRatio;if(M!==l){if(!D)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!yc(u,e.getBoundingClientRect())&&s(),D=!1}try{n=new IntersectionObserver(C,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,S)}n.observe(e)}return s(!0),a}function Ag(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Aa(e),m=o||a?[...u?Vn(u):[],...Vn(t)]:[];m.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const c=u&&i?Pg(u,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let b,g=l?Zt(e):null;l&&v();function v(){const y=Zt(e);g&&!yc(g,y)&&n(),g=y,b=requestAnimationFrame(v)}return n(),()=>{var y;m.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),c==null||c(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const Ig=ag,jg=sg,$g=ng,Lg=cg,Fg=rg,Ks=tg,Wg=ig,Bg=(e,t,n)=>{const r=new Map,o={platform:Og,...n},a={...o.platform,_c:r};return eg(e,t,{...o,platform:a})};var Yg=typeof document<"u",Hg=function(){},Tr=Yg?w.useLayoutEffect:Hg;function Wr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Wr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Wr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function bc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xs(e,t){const n=bc(e);return Math.round(t*n)/n}function Oo(e){const t=f.useRef(e);return Tr(()=>{t.current=e}),t}function zg(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[m,c]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=f.useState(r);Wr(p,r)||h(r);const[b,g]=f.useState(null),[v,y]=f.useState(null),x=f.useCallback(k=>{k!==N.current&&(N.current=k,g(k))},[]),S=f.useCallback(k=>{k!==M.current&&(M.current=k,y(k))},[]),D=a||b,C=s||v,N=f.useRef(null),M=f.useRef(null),E=f.useRef(m),L=l!=null,B=Oo(l),Y=Oo(o),V=Oo(u),O=f.useCallback(()=>{if(!N.current||!M.current)return;const k={placement:t,strategy:n,middleware:p};Y.current&&(k.platform=Y.current),Bg(N.current,M.current,k).then(P=>{const z={...P,isPositioned:V.current!==!1};_.current&&!Wr(E.current,z)&&(E.current=z,Xr.flushSync(()=>{c(z)}))})},[p,t,n,Y,V]);Tr(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,c(k=>({...k,isPositioned:!1})))},[u]);const _=f.useRef(!1);Tr(()=>(_.current=!0,()=>{_.current=!1}),[]),Tr(()=>{if(D&&(N.current=D),C&&(M.current=C),D&&C){if(B.current)return B.current(D,C,O);O()}},[D,C,O,B,L]);const T=f.useMemo(()=>({reference:N,floating:M,setReference:x,setFloating:S}),[x,S]),R=f.useMemo(()=>({reference:D,floating:C}),[D,C]),A=f.useMemo(()=>{const k={position:n,left:0,top:0};if(!R.floating)return k;const P=Xs(R.floating,m.x),z=Xs(R.floating,m.y);return i?{...k,transform:"translate("+P+"px, "+z+"px)",...bc(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:z}},[n,i,R.floating,m.x,m.y]);return f.useMemo(()=>({...m,update:O,refs:T,elements:R,floatingStyles:A}),[m,O,T,R,A])}const Gg=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ks({element:r.current,padding:o}).fn(n):{}:r?Ks({element:r,padding:o}).fn(n):{}}}},Ug=(e,t)=>({...Ig(e),options:[e,t]}),Vg=(e,t)=>({...jg(e),options:[e,t]}),qg=(e,t)=>({...Wg(e),options:[e,t]}),Kg=(e,t)=>({...$g(e),options:[e,t]}),Xg=(e,t)=>({...Lg(e),options:[e,t]}),Zg=(e,t)=>({...Fg(e),options:[e,t]}),Qg=(e,t)=>({...Gg(e),options:[e,t]});var Jg="Arrow",wc=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(ne.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});wc.displayName=Jg;var ev=wc;function ja(e){const[t,n]=f.useState(void 0);return Oe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,i=u.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var $a="Popper",[xc,Wt]=Ye($a),[tv,Sc]=xc($a),Cc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return d.jsx(tv,{scope:t,anchor:r,onAnchorChange:o,children:n})};Cc.displayName=$a;var Mc="PopperAnchor",Dc=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Sc(Mc,n),s=f.useRef(null),i=he(t,s);return f.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:d.jsx(ne.div,{...o,ref:i})});Dc.displayName=Mc;var La="PopperContent",[nv,rv]=xc(La),kc=f.forwardRef((e,t)=>{var F,U,X,J,ae,ce;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:m=0,sticky:c="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:b,...g}=e,v=Sc(La,n),[y,x]=f.useState(null),S=he(t,be=>x(be)),[D,C]=f.useState(null),N=ja(D),M=(N==null?void 0:N.width)??0,E=(N==null?void 0:N.height)??0,L=r+(a!=="center"?"-"+a:""),B=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},Y=Array.isArray(u)?u:[u],V=Y.length>0,O={padding:B,boundary:Y.filter(av),altBoundary:V},{refs:_,floatingStyles:T,placement:R,isPositioned:A,middlewareData:k}=zg({strategy:"fixed",placement:L,whileElementsMounted:(...be)=>Ag(...be,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[Ug({mainAxis:o+E,alignmentAxis:s}),l&&Vg({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?qg():void 0,...O}),l&&Kg({...O}),Xg({...O,apply:({elements:be,rects:te,availableWidth:Pe,availableHeight:Ae})=>{const{width:ke,height:Ge}=te.reference,Me=be.floating.style;Me.setProperty("--radix-popper-available-width",`${Pe}px`),Me.setProperty("--radix-popper-available-height",`${Ae}px`),Me.setProperty("--radix-popper-anchor-width",`${ke}px`),Me.setProperty("--radix-popper-anchor-height",`${Ge}px`)}}),D&&Qg({element:D,padding:i}),sv({arrowWidth:M,arrowHeight:E}),p&&Zg({strategy:"referenceHidden",...O})]}),[P,z]=Rc(R),q=tt(b);Oe(()=>{A&&(q==null||q())},[A,q]);const I=(F=k.arrow)==null?void 0:F.x,j=(U=k.arrow)==null?void 0:U.y,H=((X=k.arrow)==null?void 0:X.centerOffset)!==0,[$,K]=f.useState();return Oe(()=>{y&&K(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:A?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[(J=k.transformOrigin)==null?void 0:J.x,(ae=k.transformOrigin)==null?void 0:ae.y].join(" "),...((ce=k.hide)==null?void 0:ce.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(nv,{scope:n,placedSide:P,onArrowChange:C,arrowX:I,arrowY:j,shouldHideArrow:H,children:d.jsx(ne.div,{"data-side":P,"data-align":z,...g,ref:S,style:{...g.style,animation:A?void 0:"none"}})})})});kc.displayName=La;var Ec="PopperArrow",ov={top:"bottom",right:"left",bottom:"top",left:"right"},Nc=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=rv(Ec,r),s=ov[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:d.jsx(ev,{...o,ref:n,style:{...o.style,display:"block"}})})});Nc.displayName=Ec;function av(e){return e!==null}var sv=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,m]=Rc(n),c={start:"0%",center:"50%",end:"100%"}[m],p=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,h=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let b="",g="";return u==="bottom"?(b=s?c:`${p}px`,g=`${-l}px`):u==="top"?(b=s?c:`${p}px`,g=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,g=s?c:`${h}px`):u==="left"&&(b=`${r.floating.width+l}px`,g=s?c:`${h}px`),{data:{x:b,y:g}}}});function Rc(e){const[t,n="center"]=e.split("-");return[t,n]}var rr=Cc,or=Dc,no=kc,ro=Nc,iv="Portal",ar=f.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=f.useState(!1);Oe(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Da.createPortal(d.jsx(ne.div,{...r,ref:t}),s):null});ar.displayName=iv;function cv(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var ze=e=>{const{present:t,children:n}=e,r=lv(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),a=he(r.ref,uv(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:a}):null};ze.displayName="Presence";function lv(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),s=e?"mounted":"unmounted",[i,l]=cv(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=xr(r.current);a.current=i==="mounted"?u:"none"},[i]),Oe(()=>{const u=r.current,m=o.current;if(m!==e){const p=a.current,h=xr(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(m&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Oe(()=>{if(t){let u;const m=t.ownerDocument.defaultView??window,c=h=>{const g=xr(r.current).includes(h.animationName);if(h.target===t&&g&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=h=>{h.target===t&&(a.current=xr(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{m.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:f.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function xr(e){return(e==null?void 0:e.animationName)||"none"}function uv(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dv=f[" useInsertionEffect ".trim().toString()]||Oe;function nt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=fv({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const m=f.useRef(e!==void 0);f.useEffect(()=>{const c=m.current;c!==i&&console.warn(`${r} is changing from ${c?"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.`),m.current=i},[i,r])}const u=f.useCallback(m=>{var c;if(i){const p=mv(m)?m(e):m;p!==e&&((c=s.current)==null||c.call(s,p))}else a(m)},[i,e,a,s]);return[l,u]}function fv({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),a=f.useRef(t);return dv(()=>{a.current=t},[t]),f.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function mv(e){return typeof e=="function"}var pv=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},dn=new WeakMap,Sr=new WeakMap,Cr={},Po=0,Tc=function(e){return e&&(e.host||Tc(e.parentNode))},hv=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Tc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},gv=function(e,t,n,r){var o=hv(t,Array.isArray(e)?e:[e]);Cr[n]||(Cr[n]=new WeakMap);var a=Cr[n],s=[],i=new Set,l=new Set(o),u=function(c){!c||i.has(c)||(i.add(c),u(c.parentNode))};o.forEach(u);var m=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(p){if(i.has(p))m(p);else try{var h=p.getAttribute(r),b=h!==null&&h!=="false",g=(dn.get(p)||0)+1,v=(a.get(p)||0)+1;dn.set(p,g),a.set(p,v),s.push(p),g===1&&b&&Sr.set(p,!0),v===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return m(t),i.clear(),Po++,function(){s.forEach(function(c){var p=dn.get(c)-1,h=a.get(c)-1;dn.set(c,p),a.set(c,h),p||(Sr.has(c)||c.removeAttribute(r),Sr.delete(c)),h||c.removeAttribute(n)}),Po--,Po||(dn=new WeakMap,dn=new WeakMap,Sr=new WeakMap,Cr={})}},oo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=pv(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),gv(r,o,n,"aria-hidden")):function(){return null}},mt=function(){return mt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},mt.apply(this,arguments)};function _c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function vv(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var _r="right-scroll-bar-position",Or="width-before-scroll-bar",yv="with-scroll-bars-hidden",bv="--removed-body-scroll-bar-size";function Ao(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wv(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var xv=typeof window<"u"?f.useLayoutEffect:f.useEffect,Zs=new WeakMap;function Sv(e,t){var n=wv(null,function(r){return e.forEach(function(o){return Ao(o,r)})});return xv(function(){var r=Zs.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Ao(i,null)}),a.forEach(function(i){o.has(i)||Ao(i,s)})}Zs.set(n,e)},[e]),n}function Cv(e){return e}function Mv(e,t){t===void 0&&(t=Cv);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var m=s;s=[],m.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(m){s.push(m),u()},filter:function(m){return s=s.filter(m),n}}}};return o}function Dv(e){e===void 0&&(e={});var t=Mv(null);return t.options=mt({async:!0,ssr:!1},e),t}var Oc=function(e){var t=e.sideCar,n=_c(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,mt({},n))};Oc.isSideCarExport=!0;function kv(e,t){return e.useMedium(t),Oc}var Pc=Dv(),Io=function(){},ao=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Io,onWheelCapture:Io,onTouchMoveCapture:Io}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,m=e.enabled,c=e.shards,p=e.sideCar,h=e.noRelative,b=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,S=e.gapMode,D=_c(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,N=Sv([n,t]),M=mt(mt({},D),o);return f.createElement(f.Fragment,null,m&&f.createElement(C,{sideCar:Pc,removeScrollBar:u,shards:c,noRelative:h,noIsolation:b,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:S}),s?f.cloneElement(f.Children.only(i),mt(mt({},M),{ref:N})):f.createElement(x,mt({},M,{className:l,ref:N}),i))});ao.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ao.classNames={fullWidth:Or,zeroRight:_r};var Ev=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Nv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ev();return t&&e.setAttribute("nonce",t),e}function Rv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Tv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _v=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Nv())&&(Rv(t,n),Tv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ov=function(){var e=_v();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ac=function(){var e=Ov(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Pv={left:0,top:0,right:0,gap:0},jo=function(e){return parseInt(e||"",10)||0},Av=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[jo(n),jo(r),jo(o)]},Iv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Pv;var t=Av(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},jv=Ac(),yn="data-scroll-locked",$v=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
131
+ */const Ch=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kn=ke("X",Ch);function na({label:e,placeholder:t="Enter password",helperText:n,error:r,required:o,className:a,showPassword:s=!1,onShowPasswordChange:i,value:l,onChange:u,...m}){return d.jsxs("div",{className:F("space-y-1",a),children:[e&&d.jsxs(rn,{className:"text-sm font-medium text-gray-700",children:[e,o&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs("div",{className:"relative",children:[d.jsx(nn,{type:s?"text":"password",placeholder:t,className:F("pr-10",r&&"border-red-500 focus-visible:ring-red-500"),value:l,onChange:c=>u==null?void 0:u(c.target.value),...m}),d.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground cursor-pointer",onClick:()=>i==null?void 0:i(!s),"aria-label":s?"Hide password":"Show password",children:s?d.jsx(oh,{className:"h-4 w-4 text-gray-400 hover:text-gray-500"}):d.jsx(sh,{className:"h-4 w-4 text-gray-400 hover:text-gray-500"})})]}),r&&d.jsx("p",{className:"text-xs text-red-500",children:r}),n&&!r&&d.jsx("p",{className:"text-xs text-gray-500",children:n})]})}const Na=f.forwardRef(({label:e,helperText:t,errorText:n,required:r,className:o,placeholder:a="Write here...",rows:s=4,...i},l)=>{const u=!!n;return d.jsxs("div",{className:F("space-y-1",o),children:[e&&d.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[e,r&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsx("textarea",{ref:l,placeholder:a,rows:s,className:F("flex min-h-[80px] w-full rounded-md border bg-background px-3 py-2 text-base placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",u?"border-destructive focus:ring-destructive":"border-input focus:ring-ring"),...i}),(t||n)&&d.jsx("p",{className:F("text-xs",u?"text-destructive":"text-muted-foreground"),children:n||t})]})});Na.displayName="Textarea";function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Mh(e,t){const n=f.createContext(t),r=a=>{const{children:s,...i}=a,l=f.useMemo(()=>i,Object.values(i));return d.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=f.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Be(e,t=[]){let n=[];function r(a,s){const i=f.createContext(s),l=n.length;n=[...n,s];const u=c=>{var y;const{scope:p,children:h,...b}=c,g=((y=p==null?void 0:p[e])==null?void 0:y[l])||i,v=f.useMemo(()=>b,Object.values(b));return d.jsx(g.Provider,{value:v,children:h})};u.displayName=a+"Provider";function m(c,p){var g;const h=((g=p==null?void 0:p[e])==null?void 0:g[l])||i,b=f.useContext(h);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[u,m]}const o=()=>{const a=n.map(s=>f.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Dh(o,...t)]}function Dh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:u})=>{const c=l(a)[`__scope${u}`];return{...i,...c}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function et(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function kh(e,t=globalThis==null?void 0:globalThis.document){const n=et(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Eh="DismissableLayer",ra="dismissableLayer.update",Nh="dismissableLayer.pointerDownOutside",Rh="dismissableLayer.focusOutside",As,sc=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),En=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,u=f.useContext(sc),[m,c]=f.useState(null),p=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=f.useState({}),b=he(t,M=>c(M)),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),x=m?g.indexOf(m):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,D=x>=y,C=Oh(M=>{const E=M.target,$=[...u.branches].some(W=>W.contains(E));!D||$||(o==null||o(M),s==null||s(M),M.defaultPrevented||i==null||i())},p),N=Ph(M=>{const E=M.target;[...u.branches].some(W=>W.contains(E))||(a==null||a(M),s==null||s(M),M.defaultPrevented||i==null||i())},p);return kh(M=>{x===u.layers.size-1&&(r==null||r(M),!M.defaultPrevented&&i&&(M.preventDefault(),i()))},p),f.useEffect(()=>{if(m)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(As=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(m)),u.layers.add(m),Is(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=As)}},[m,p,n,u]),f.useEffect(()=>()=>{m&&(u.layers.delete(m),u.layersWithOutsidePointerEventsDisabled.delete(m),Is())},[m,u]),f.useEffect(()=>{const M=()=>h({});return document.addEventListener(ra,M),()=>document.removeEventListener(ra,M)},[]),d.jsx(ee.div,{...l,ref:b,style:{pointerEvents:S?D?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,C.onPointerDownCapture)})});En.displayName=Eh;var Th="DismissableLayerBranch",_h=f.forwardRef((e,t)=>{const n=f.useContext(sc),r=f.useRef(null),o=he(t,r);return f.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(ee.div,{...e,ref:o})});_h.displayName=Th;function Oh(e,t=globalThis==null?void 0:globalThis.document){const n=et(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){ic(Nh,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ph(e,t=globalThis==null?void 0:globalThis.document){const n=et(e),r=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!r.current&&ic(Rh,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Is(){const e=new CustomEvent(ra);document.dispatchEvent(e)}function ic(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Zi(o,a):o.dispatchEvent(a)}var No=0;function Qr(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??js()),document.body.insertAdjacentElement("beforeend",e[1]??js()),No++,()=>{No===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),No--}},[])}function js(){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 Ro="focusScope.autoFocusOnMount",To="focusScope.autoFocusOnUnmount",$s={bubbles:!1,cancelable:!0},Ah="FocusScope",tr=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=f.useState(null),u=et(o),m=et(a),c=f.useRef(null),p=he(t,g=>l(g)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let g=function(S){if(h.paused||!i)return;const D=S.target;i.contains(D)?c.current=D:Pt(c.current,{select:!0})},v=function(S){if(h.paused||!i)return;const D=S.relatedTarget;D!==null&&(i.contains(D)||Pt(c.current,{select:!0}))},y=function(S){if(document.activeElement===document.body)for(const C of S)C.removedNodes.length>0&&Pt(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),x.disconnect()}}},[r,i,h.paused]),f.useEffect(()=>{if(i){Fs.add(h);const g=document.activeElement;if(!i.contains(g)){const y=new CustomEvent(Ro,$s);i.addEventListener(Ro,u),i.dispatchEvent(y),y.defaultPrevented||(Ih(Wh(cc(i)),{select:!0}),document.activeElement===g&&Pt(i))}return()=>{i.removeEventListener(Ro,u),setTimeout(()=>{const y=new CustomEvent(To,$s);i.addEventListener(To,m),i.dispatchEvent(y),y.defaultPrevented||Pt(g??document.body,{select:!0}),i.removeEventListener(To,m),Fs.remove(h)},0)}}},[i,u,m,h]);const b=f.useCallback(g=>{if(!n&&!r||h.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(v&&y){const x=g.currentTarget,[S,D]=jh(x);S&&D?!g.shiftKey&&y===D?(g.preventDefault(),n&&Pt(S,{select:!0})):g.shiftKey&&y===S&&(g.preventDefault(),n&&Pt(D,{select:!0})):y===x&&g.preventDefault()}},[n,r,h.paused]);return d.jsx(ee.div,{tabIndex:-1,...s,ref:p,onKeyDown:b})});tr.displayName=Ah;function Ih(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pt(r,{select:t}),document.activeElement!==n)return}function jh(e){const t=cc(e),n=Ls(t,e),r=Ls(t.reverse(),e);return[n,r]}function cc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ls(e,t){for(const n of e)if(!$h(n,{upTo:t}))return n}function $h(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 Lh(e){return e instanceof HTMLInputElement&&"select"in e}function Pt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Lh(e)&&t&&e.select()}}var Fs=Fh();function Fh(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ws(e,t),e.unshift(t)},remove(t){var n;e=Ws(e,t),(n=e[0])==null||n.resume()}}}function Ws(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Wh(e){return e.filter(t=>t.tagName!=="A")}var Re=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Bh=f[" useId ".trim().toString()]||(()=>{}),Yh=0;function Ee(e){const[t,n]=f.useState(Bh());return Re(()=>{n(r=>r??String(Yh++))},[e]),e||(t?`radix-${t}`:"")}const Hh=["top","right","bottom","left"],jt=Math.min,Xe=Math.max,$r=Math.round,wr=Math.floor,ht=e=>({x:e,y:e}),zh={left:"right",right:"left",bottom:"top",top:"bottom"},Gh={start:"end",end:"start"};function oa(e,t,n){return Xe(e,jt(t,n))}function kt(e,t){return typeof e=="function"?e(t):e}function Et(e){return e.split("-")[0]}function Nn(e){return e.split("-")[1]}function Ra(e){return e==="x"?"y":"x"}function Ta(e){return e==="y"?"height":"width"}const Uh=new Set(["top","bottom"]);function mt(e){return Uh.has(Et(e))?"y":"x"}function _a(e){return Ra(mt(e))}function qh(e,t,n){n===void 0&&(n=!1);const r=Nn(e),o=_a(e),a=Ta(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Lr(s)),[s,Lr(s)]}function Vh(e){const t=Lr(e);return[aa(e),t,aa(t)]}function aa(e){return e.replace(/start|end/g,t=>Gh[t])}const Bs=["left","right"],Ys=["right","left"],Kh=["top","bottom"],Xh=["bottom","top"];function Zh(e,t,n){switch(e){case"top":case"bottom":return n?t?Ys:Bs:t?Bs:Ys;case"left":case"right":return t?Kh:Xh;default:return[]}}function Qh(e,t,n,r){const o=Nn(e);let a=Zh(Et(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(aa)))),a}function Lr(e){return e.replace(/left|right|bottom|top/g,t=>zh[t])}function Jh(e){return{top:0,right:0,bottom:0,left:0,...e}}function lc(e){return typeof e!="number"?Jh(e):{top:e,right:e,bottom:e,left:e}}function Fr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Hs(e,t,n){let{reference:r,floating:o}=e;const a=mt(t),s=_a(t),i=Ta(s),l=Et(t),u=a==="y",m=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let h;switch(l){case"top":h={x:m,y:r.y-o.height};break;case"bottom":h={x:m,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-o.width,y:c};break;default:h={x:r.x,y:r.y}}switch(Nn(t)){case"start":h[s]-=p*(n&&u?-1:1);break;case"end":h[s]+=p*(n&&u?-1:1);break}return h}const eg=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:c}=Hs(u,r,l),p=r,h={},b=0;for(let g=0;g<i.length;g++){const{name:v,fn:y}=i[g],{x,y:S,data:D,reset:C}=await y({x:m,y:c,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});m=x??m,c=S??c,h={...h,[v]:{...h[v],...D}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(u=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:m,y:c}=Hs(u,p,l)),g=-1)}return{x:m,y:c,placement:p,strategy:o,middlewareData:h}};async function Un(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:c="floating",altBoundary:p=!1,padding:h=0}=kt(t,e),b=lc(h),v=i[p?c==="floating"?"reference":"floating":c],y=Fr(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:m,strategy:l})),x=c==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),D=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},C=Fr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:S,strategy:l}):x);return{top:(y.top-C.top+b.top)/D.y,bottom:(C.bottom-y.bottom+b.bottom)/D.y,left:(y.left-C.left+b.left)/D.x,right:(C.right-y.right+b.right)/D.x}}const tg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:m=0}=kt(e,t)||{};if(u==null)return{};const c=lc(m),p={x:n,y:r},h=_a(o),b=Ta(h),g=await s.getDimensions(u),v=h==="y",y=v?"top":"left",x=v?"bottom":"right",S=v?"clientHeight":"clientWidth",D=a.reference[b]+a.reference[h]-p[h]-a.floating[b],C=p[h]-a.reference[h],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let M=N?N[S]:0;(!M||!await(s.isElement==null?void 0:s.isElement(N)))&&(M=i.floating[S]||a.floating[b]);const E=D/2-C/2,$=M/2-g[b]/2-1,W=jt(c[y],$),Y=jt(c[x],$),U=W,A=M-g[b]-Y,T=M/2-g[b]/2+E,_=oa(U,T,A),R=!l.arrow&&Nn(o)!=null&&T!==_&&a.reference[b]/2-(T<U?W:Y)-g[b]/2<0,P=R?T<U?T-U:T-A:0;return{[h]:p[h]+P,data:{[h]:_,centerOffset:T-_-P,...R&&{alignmentOffset:P}},reset:R}}}),ng=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:m=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...v}=kt(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Et(o),x=mt(i),S=Et(i)===i,D=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=p||(S||!g?[Lr(i)]:Vh(i)),N=b!=="none";!p&&N&&C.push(...Qh(i,g,b,D));const M=[i,...C],E=await Un(t,v),$=[];let W=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&$.push(E[y]),c){const T=qh(o,s,D);$.push(E[T[0]],E[T[1]])}if(W=[...W,{placement:o,overflows:$}],!$.every(T=>T<=0)){var Y,U;const T=(((Y=a.flip)==null?void 0:Y.index)||0)+1,_=M[T];if(_&&(!(c==="alignment"?x!==mt(_):!1)||W.every(k=>mt(k.placement)===x?k.overflows[0]>0:!0)))return{data:{index:T,overflows:W},reset:{placement:_}};let R=(U=W.filter(P=>P.overflows[0]<=0).sort((P,k)=>P.overflows[1]-k.overflows[1])[0])==null?void 0:U.placement;if(!R)switch(h){case"bestFit":{var A;const P=(A=W.filter(k=>{if(N){const O=mt(k.placement);return O===x||O==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(O=>O>0).reduce((O,H)=>O+H,0)]).sort((k,O)=>k[1]-O[1])[0])==null?void 0:A[0];P&&(R=P);break}case"initialPlacement":R=i;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function zs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gs(e){return Hh.some(t=>e[t]>=0)}const rg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=kt(e,t);switch(r){case"referenceHidden":{const a=await Un(t,{...o,elementContext:"reference"}),s=zs(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Gs(s)}}}case"escaped":{const a=await Un(t,{...o,altBoundary:!0}),s=zs(a,n.floating);return{data:{escapedOffsets:s,escaped:Gs(s)}}}default:return{}}}}},uc=new Set(["left","top"]);async function og(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Et(n),i=Nn(n),l=mt(n)==="y",u=uc.has(s)?-1:1,m=a&&l?-1:1,c=kt(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:b}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return i&&typeof b=="number"&&(h=i==="end"?b*-1:b),l?{x:h*m,y:p*u}:{x:p*u,y:h*m}}const ag=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await og(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},sg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...l}=kt(e,t),u={x:n,y:r},m=await Un(t,l),c=mt(Et(o)),p=Ra(c);let h=u[p],b=u[c];if(a){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=h+m[v],S=h-m[y];h=oa(x,h,S)}if(s){const v=c==="y"?"top":"left",y=c==="y"?"bottom":"right",x=b+m[v],S=b-m[y];b=oa(x,b,S)}const g=i.fn({...t,[p]:h,[c]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:a,[c]:s}}}}}},ig=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:u=!0}=kt(e,t),m={x:n,y:r},c=mt(o),p=Ra(c);let h=m[p],b=m[c];const g=kt(i,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const S=p==="y"?"height":"width",D=a.reference[p]-a.floating[S]+v.mainAxis,C=a.reference[p]+a.reference[S]-v.mainAxis;h<D?h=D:h>C&&(h=C)}if(u){var y,x;const S=p==="y"?"width":"height",D=uc.has(Et(o)),C=a.reference[c]-a.floating[S]+(D&&((y=s.offset)==null?void 0:y[c])||0)+(D?0:v.crossAxis),N=a.reference[c]+a.reference[S]+(D?0:((x=s.offset)==null?void 0:x[c])||0)-(D?v.crossAxis:0);b<C?b=C:b>N&&(b=N)}return{[p]:h,[c]:b}}}},cg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...u}=kt(e,t),m=await Un(t,u),c=Et(o),p=Nn(o),h=mt(o)==="y",{width:b,height:g}=a.floating;let v,y;c==="top"||c==="bottom"?(v=c,y=p===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=c,v=p==="end"?"top":"bottom");const x=g-m.top-m.bottom,S=b-m.left-m.right,D=jt(g-m[v],x),C=jt(b-m[y],S),N=!t.middlewareData.shift;let M=D,E=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=x),N&&!p){const W=Xe(m.left,0),Y=Xe(m.right,0),U=Xe(m.top,0),A=Xe(m.bottom,0);h?E=b-2*(W!==0||Y!==0?W+Y:Xe(m.left,m.right)):M=g-2*(U!==0||A!==0?U+A:Xe(m.top,m.bottom))}await l({...t,availableWidth:E,availableHeight:M});const $=await s.getDimensions(i.floating);return b!==$.width||g!==$.height?{reset:{rects:!0}}:{}}}};function Jr(){return typeof window<"u"}function Rn(e){return dc(e)?(e.nodeName||"").toLowerCase():"#document"}function Ze(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vt(e){var t;return(t=(dc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dc(e){return Jr()?e instanceof Node||e instanceof Ze(e).Node:!1}function st(e){return Jr()?e instanceof Element||e instanceof Ze(e).Element:!1}function gt(e){return Jr()?e instanceof HTMLElement||e instanceof Ze(e).HTMLElement:!1}function Us(e){return!Jr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ze(e).ShadowRoot}const lg=new Set(["inline","contents"]);function nr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=it(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!lg.has(o)}const ug=new Set(["table","td","th"]);function dg(e){return ug.has(Rn(e))}const fg=[":popover-open",":modal"];function eo(e){return fg.some(t=>{try{return e.matches(t)}catch{return!1}})}const mg=["transform","translate","scale","rotate","perspective"],pg=["transform","translate","scale","rotate","perspective","filter"],hg=["paint","layout","strict","content"];function Oa(e){const t=Pa(),n=st(e)?it(e):e;return mg.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||pg.some(r=>(n.willChange||"").includes(r))||hg.some(r=>(n.contain||"").includes(r))}function gg(e){let t=$t(e);for(;gt(t)&&!bn(t);){if(Oa(t))return t;if(eo(t))return null;t=$t(t)}return null}function Pa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vg=new Set(["html","body","#document"]);function bn(e){return vg.has(Rn(e))}function it(e){return Ze(e).getComputedStyle(e)}function to(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $t(e){if(Rn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Us(e)&&e.host||vt(e);return Us(t)?t.host:t}function fc(e){const t=$t(e);return bn(t)?e.ownerDocument?e.ownerDocument.body:e.body:gt(t)&&nr(t)?t:fc(t)}function qn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=fc(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ze(o);if(a){const i=sa(s);return t.concat(s,s.visualViewport||[],nr(o)?o:[],i&&n?qn(i):[])}return t.concat(o,qn(o,[],n))}function sa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mc(e){const t=it(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=gt(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=$r(n)!==a||$r(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Aa(e){return st(e)?e:e.contextElement}function vn(e){const t=Aa(e);if(!gt(t))return ht(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=mc(t);let s=(a?$r(n.width):n.width)/r,i=(a?$r(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const yg=ht(0);function pc(e){const t=Ze(e);return!Pa()||!t.visualViewport?yg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ze(e)?!1:t}function Zt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Aa(e);let s=ht(1);t&&(r?st(r)&&(s=vn(r)):s=vn(e));const i=bg(a,n,r)?pc(a):ht(0);let l=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,m=o.width/s.x,c=o.height/s.y;if(a){const p=Ze(a),h=r&&st(r)?Ze(r):r;let b=p,g=sa(b);for(;g&&r&&h!==b;){const v=vn(g),y=g.getBoundingClientRect(),x=it(g),S=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,D=y.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,u*=v.y,m*=v.x,c*=v.y,l+=S,u+=D,b=Ze(g),g=sa(b)}}return Fr({width:m,height:c,x:l,y:u})}function Ia(e,t){const n=to(e).scrollLeft;return t?t.left+n:Zt(vt(e)).left+n}function hc(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Ia(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function wg(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=vt(r),i=t?eo(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},u=ht(1);const m=ht(0),c=gt(r);if((c||!c&&!a)&&((Rn(r)!=="body"||nr(s))&&(l=to(r)),gt(r))){const h=Zt(r);u=vn(r),m.x=h.x+r.clientLeft,m.y=h.y+r.clientTop}const p=s&&!c&&!a?hc(s,l,!0):ht(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+m.x+p.x,y:n.y*u.y-l.scrollTop*u.y+m.y+p.y}}function xg(e){return Array.from(e.getClientRects())}function Sg(e){const t=vt(e),n=to(e),r=e.ownerDocument.body,o=Xe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Xe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ia(e);const i=-n.scrollTop;return it(r).direction==="rtl"&&(s+=Xe(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}function Cg(e,t){const n=Ze(e),r=vt(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const u=Pa();(!u||u&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}const Mg=new Set(["absolute","fixed"]);function Dg(e,t){const n=Zt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=gt(e)?vn(e):ht(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,u=r*a.y;return{width:s,height:i,x:l,y:u}}function qs(e,t,n){let r;if(t==="viewport")r=Cg(e,n);else if(t==="document")r=Sg(vt(e));else if(st(t))r=Dg(t,n);else{const o=pc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Fr(r)}function gc(e,t){const n=$t(e);return n===t||!st(n)||bn(n)?!1:it(n).position==="fixed"||gc(n,t)}function kg(e,t){const n=t.get(e);if(n)return n;let r=qn(e,[],!1).filter(i=>st(i)&&Rn(i)!=="body"),o=null;const a=it(e).position==="fixed";let s=a?$t(e):e;for(;st(s)&&!bn(s);){const i=it(s),l=Oa(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&Mg.has(o.position)||nr(s)&&!l&&gc(e,s))?r=r.filter(m=>m!==s):o=i,s=$t(s)}return t.set(e,r),r}function Eg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?eo(t)?[]:kg(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((u,m)=>{const c=qs(t,m,o);return u.top=Xe(c.top,u.top),u.right=jt(c.right,u.right),u.bottom=jt(c.bottom,u.bottom),u.left=Xe(c.left,u.left),u},qs(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ng(e){const{width:t,height:n}=mc(e);return{width:t,height:n}}function Rg(e,t,n){const r=gt(t),o=vt(t),a=n==="fixed",s=Zt(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=ht(0);function u(){l.x=Ia(o)}if(r||!r&&!a)if((Rn(t)!=="body"||nr(o))&&(i=to(t)),r){const h=Zt(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();a&&!r&&o&&u();const m=o&&!r&&!a?hc(o,i):ht(0),c=s.left+i.scrollLeft-l.x-m.x,p=s.top+i.scrollTop-l.y-m.y;return{x:c,y:p,width:s.width,height:s.height}}function _o(e){return it(e).position==="static"}function Vs(e,t){if(!gt(e)||it(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return vt(e)===n&&(n=n.ownerDocument.body),n}function vc(e,t){const n=Ze(e);if(eo(e))return n;if(!gt(e)){let o=$t(e);for(;o&&!bn(o);){if(st(o)&&!_o(o))return o;o=$t(o)}return n}let r=Vs(e,t);for(;r&&dg(r)&&_o(r);)r=Vs(r,t);return r&&bn(r)&&_o(r)&&!Oa(r)?n:r||gg(e)||n}const Tg=async function(e){const t=this.getOffsetParent||vc,n=this.getDimensions,r=await n(e.floating);return{reference:Rg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _g(e){return it(e).direction==="rtl"}const Og={convertOffsetParentRelativeRectToViewportRelativeRect:wg,getDocumentElement:vt,getClippingRect:Eg,getOffsetParent:vc,getElementRects:Tg,getClientRects:xg,getDimensions:Ng,getScale:vn,isElement:st,isRTL:_g};function yc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pg(e,t){let n=null,r;const o=vt(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:m,top:c,width:p,height:h}=u;if(i||t(),!p||!h)return;const b=wr(c),g=wr(o.clientWidth-(m+p)),v=wr(o.clientHeight-(c+h)),y=wr(m),S={rootMargin:-b+"px "+-g+"px "+-v+"px "+-y+"px",threshold:Xe(0,jt(1,l))||1};let D=!0;function C(N){const M=N[0].intersectionRatio;if(M!==l){if(!D)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!yc(u,e.getBoundingClientRect())&&s(),D=!1}try{n=new IntersectionObserver(C,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,S)}n.observe(e)}return s(!0),a}function Ag(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Aa(e),m=o||a?[...u?qn(u):[],...qn(t)]:[];m.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const c=u&&i?Pg(u,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let b,g=l?Zt(e):null;l&&v();function v(){const y=Zt(e);g&&!yc(g,y)&&n(),g=y,b=requestAnimationFrame(v)}return n(),()=>{var y;m.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),c==null||c(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const Ig=ag,jg=sg,$g=ng,Lg=cg,Fg=rg,Ks=tg,Wg=ig,Bg=(e,t,n)=>{const r=new Map,o={platform:Og,...n},a={...o.platform,_c:r};return eg(e,t,{...o,platform:a})};var Yg=typeof document<"u",Hg=function(){},Tr=Yg?w.useLayoutEffect:Hg;function Wr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Wr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Wr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function bc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xs(e,t){const n=bc(e);return Math.round(t*n)/n}function Oo(e){const t=f.useRef(e);return Tr(()=>{t.current=e}),t}function zg(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[m,c]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=f.useState(r);Wr(p,r)||h(r);const[b,g]=f.useState(null),[v,y]=f.useState(null),x=f.useCallback(k=>{k!==N.current&&(N.current=k,g(k))},[]),S=f.useCallback(k=>{k!==M.current&&(M.current=k,y(k))},[]),D=a||b,C=s||v,N=f.useRef(null),M=f.useRef(null),E=f.useRef(m),$=l!=null,W=Oo(l),Y=Oo(o),U=Oo(u),A=f.useCallback(()=>{if(!N.current||!M.current)return;const k={placement:t,strategy:n,middleware:p};Y.current&&(k.platform=Y.current),Bg(N.current,M.current,k).then(O=>{const H={...O,isPositioned:U.current!==!1};T.current&&!Wr(E.current,H)&&(E.current=H,Xr.flushSync(()=>{c(H)}))})},[p,t,n,Y,U]);Tr(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,c(k=>({...k,isPositioned:!1})))},[u]);const T=f.useRef(!1);Tr(()=>(T.current=!0,()=>{T.current=!1}),[]),Tr(()=>{if(D&&(N.current=D),C&&(M.current=C),D&&C){if(W.current)return W.current(D,C,A);A()}},[D,C,A,W,$]);const _=f.useMemo(()=>({reference:N,floating:M,setReference:x,setFloating:S}),[x,S]),R=f.useMemo(()=>({reference:D,floating:C}),[D,C]),P=f.useMemo(()=>{const k={position:n,left:0,top:0};if(!R.floating)return k;const O=Xs(R.floating,m.x),H=Xs(R.floating,m.y);return i?{...k,transform:"translate("+O+"px, "+H+"px)",...bc(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:H}},[n,i,R.floating,m.x,m.y]);return f.useMemo(()=>({...m,update:A,refs:_,elements:R,floatingStyles:P}),[m,A,_,R,P])}const Gg=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ks({element:r.current,padding:o}).fn(n):{}:r?Ks({element:r,padding:o}).fn(n):{}}}},Ug=(e,t)=>({...Ig(e),options:[e,t]}),qg=(e,t)=>({...jg(e),options:[e,t]}),Vg=(e,t)=>({...Wg(e),options:[e,t]}),Kg=(e,t)=>({...$g(e),options:[e,t]}),Xg=(e,t)=>({...Lg(e),options:[e,t]}),Zg=(e,t)=>({...Fg(e),options:[e,t]}),Qg=(e,t)=>({...Gg(e),options:[e,t]});var Jg="Arrow",wc=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(ee.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});wc.displayName=Jg;var ev=wc;function ja(e){const[t,n]=f.useState(void 0);return Re(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,i=u.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var $a="Popper",[xc,Ft]=Be($a),[tv,Sc]=xc($a),Cc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return d.jsx(tv,{scope:t,anchor:r,onAnchorChange:o,children:n})};Cc.displayName=$a;var Mc="PopperAnchor",Dc=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Sc(Mc,n),s=f.useRef(null),i=he(t,s);return f.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:d.jsx(ee.div,{...o,ref:i})});Dc.displayName=Mc;var La="PopperContent",[nv,rv]=xc(La),kc=f.forwardRef((e,t)=>{var L,q,X,Q,re,ie;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:m=0,sticky:c="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:b,...g}=e,v=Sc(La,n),[y,x]=f.useState(null),S=he(t,ye=>x(ye)),[D,C]=f.useState(null),N=ja(D),M=(N==null?void 0:N.width)??0,E=(N==null?void 0:N.height)??0,$=r+(a!=="center"?"-"+a:""),W=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},Y=Array.isArray(u)?u:[u],U=Y.length>0,A={padding:W,boundary:Y.filter(av),altBoundary:U},{refs:T,floatingStyles:_,placement:R,isPositioned:P,middlewareData:k}=zg({strategy:"fixed",placement:$,whileElementsMounted:(...ye)=>Ag(...ye,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[Ug({mainAxis:o+E,alignmentAxis:s}),l&&qg({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?Vg():void 0,...A}),l&&Kg({...A}),Xg({...A,apply:({elements:ye,rects:J,availableWidth:Te,availableHeight:_e})=>{const{width:oe,height:me}=J.reference,be=ye.floating.style;be.setProperty("--radix-popper-available-width",`${Te}px`),be.setProperty("--radix-popper-available-height",`${_e}px`),be.setProperty("--radix-popper-anchor-width",`${oe}px`),be.setProperty("--radix-popper-anchor-height",`${me}px`)}}),D&&Qg({element:D,padding:i}),sv({arrowWidth:M,arrowHeight:E}),p&&Zg({strategy:"referenceHidden",...A})]}),[O,H]=Rc(R),V=et(b);Re(()=>{P&&(V==null||V())},[P,V]);const I=(L=k.arrow)==null?void 0:L.x,j=(q=k.arrow)==null?void 0:q.y,B=((X=k.arrow)==null?void 0:X.centerOffset)!==0,[z,K]=f.useState();return Re(()=>{y&&K(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:P?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[(Q=k.transformOrigin)==null?void 0:Q.x,(re=k.transformOrigin)==null?void 0:re.y].join(" "),...((ie=k.hide)==null?void 0:ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(nv,{scope:n,placedSide:O,onArrowChange:C,arrowX:I,arrowY:j,shouldHideArrow:B,children:d.jsx(ee.div,{"data-side":O,"data-align":H,...g,ref:S,style:{...g.style,animation:P?void 0:"none"}})})})});kc.displayName=La;var Ec="PopperArrow",ov={top:"bottom",right:"left",bottom:"top",left:"right"},Nc=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=rv(Ec,r),s=ov[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:d.jsx(ev,{...o,ref:n,style:{...o.style,display:"block"}})})});Nc.displayName=Ec;function av(e){return e!==null}var sv=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,m]=Rc(n),c={start:"0%",center:"50%",end:"100%"}[m],p=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,h=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let b="",g="";return u==="bottom"?(b=s?c:`${p}px`,g=`${-l}px`):u==="top"?(b=s?c:`${p}px`,g=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,g=s?c:`${h}px`):u==="left"&&(b=`${r.floating.width+l}px`,g=s?c:`${h}px`),{data:{x:b,y:g}}}});function Rc(e){const[t,n="center"]=e.split("-");return[t,n]}var rr=Cc,or=Dc,no=kc,ro=Nc,iv="Portal",ar=f.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=f.useState(!1);Re(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Da.createPortal(d.jsx(ee.div,{...r,ref:t}),s):null});ar.displayName=iv;function cv(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var ze=e=>{const{present:t,children:n}=e,r=lv(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),a=he(r.ref,uv(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:a}):null};ze.displayName="Presence";function lv(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),s=e?"mounted":"unmounted",[i,l]=cv(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=xr(r.current);a.current=i==="mounted"?u:"none"},[i]),Re(()=>{const u=r.current,m=o.current;if(m!==e){const p=a.current,h=xr(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(m&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Re(()=>{if(t){let u;const m=t.ownerDocument.defaultView??window,c=h=>{const g=xr(r.current).includes(h.animationName);if(h.target===t&&g&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=h=>{h.target===t&&(a.current=xr(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{m.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:f.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function xr(e){return(e==null?void 0:e.animationName)||"none"}function uv(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dv=f[" useInsertionEffect ".trim().toString()]||Re;function tt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=fv({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const m=f.useRef(e!==void 0);f.useEffect(()=>{const c=m.current;c!==i&&console.warn(`${r} is changing from ${c?"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.`),m.current=i},[i,r])}const u=f.useCallback(m=>{var c;if(i){const p=mv(m)?m(e):m;p!==e&&((c=s.current)==null||c.call(s,p))}else a(m)},[i,e,a,s]);return[l,u]}function fv({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),a=f.useRef(t);return dv(()=>{a.current=t},[t]),f.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function mv(e){return typeof e=="function"}var pv=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},dn=new WeakMap,Sr=new WeakMap,Cr={},Po=0,Tc=function(e){return e&&(e.host||Tc(e.parentNode))},hv=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Tc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},gv=function(e,t,n,r){var o=hv(t,Array.isArray(e)?e:[e]);Cr[n]||(Cr[n]=new WeakMap);var a=Cr[n],s=[],i=new Set,l=new Set(o),u=function(c){!c||i.has(c)||(i.add(c),u(c.parentNode))};o.forEach(u);var m=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(p){if(i.has(p))m(p);else try{var h=p.getAttribute(r),b=h!==null&&h!=="false",g=(dn.get(p)||0)+1,v=(a.get(p)||0)+1;dn.set(p,g),a.set(p,v),s.push(p),g===1&&b&&Sr.set(p,!0),v===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return m(t),i.clear(),Po++,function(){s.forEach(function(c){var p=dn.get(c)-1,h=a.get(c)-1;dn.set(c,p),a.set(c,h),p||(Sr.has(c)||c.removeAttribute(r),Sr.delete(c)),h||c.removeAttribute(n)}),Po--,Po||(dn=new WeakMap,dn=new WeakMap,Sr=new WeakMap,Cr={})}},oo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=pv(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),gv(r,o,n,"aria-hidden")):function(){return null}},ft=function(){return ft=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ft.apply(this,arguments)};function _c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function vv(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var _r="right-scroll-bar-position",Or="width-before-scroll-bar",yv="with-scroll-bars-hidden",bv="--removed-body-scroll-bar-size";function Ao(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wv(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var xv=typeof window<"u"?f.useLayoutEffect:f.useEffect,Zs=new WeakMap;function Sv(e,t){var n=wv(null,function(r){return e.forEach(function(o){return Ao(o,r)})});return xv(function(){var r=Zs.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Ao(i,null)}),a.forEach(function(i){o.has(i)||Ao(i,s)})}Zs.set(n,e)},[e]),n}function Cv(e){return e}function Mv(e,t){t===void 0&&(t=Cv);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var m=s;s=[],m.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(m){s.push(m),u()},filter:function(m){return s=s.filter(m),n}}}};return o}function Dv(e){e===void 0&&(e={});var t=Mv(null);return t.options=ft({async:!0,ssr:!1},e),t}var Oc=function(e){var t=e.sideCar,n=_c(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,ft({},n))};Oc.isSideCarExport=!0;function kv(e,t){return e.useMedium(t),Oc}var Pc=Dv(),Io=function(){},ao=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Io,onWheelCapture:Io,onTouchMoveCapture:Io}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,m=e.enabled,c=e.shards,p=e.sideCar,h=e.noRelative,b=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,S=e.gapMode,D=_c(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,N=Sv([n,t]),M=ft(ft({},D),o);return f.createElement(f.Fragment,null,m&&f.createElement(C,{sideCar:Pc,removeScrollBar:u,shards:c,noRelative:h,noIsolation:b,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:S}),s?f.cloneElement(f.Children.only(i),ft(ft({},M),{ref:N})):f.createElement(x,ft({},M,{className:l,ref:N}),i))});ao.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ao.classNames={fullWidth:Or,zeroRight:_r};var Ev=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Nv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ev();return t&&e.setAttribute("nonce",t),e}function Rv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Tv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _v=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Nv())&&(Rv(t,n),Tv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ov=function(){var e=_v();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ac=function(){var e=Ov(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Pv={left:0,top:0,right:0,gap:0},jo=function(e){return parseInt(e||"",10)||0},Av=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[jo(n),jo(r),jo(o)]},Iv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Pv;var t=Av(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},jv=Ac(),yn="data-scroll-locked",$v=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
132
132
  .`.concat(yv,` {
133
133
  overflow: hidden `).concat(r,`;
134
134
  padding-right: `).concat(i,"px ").concat(r,`;
@@ -165,40 +165,40 @@
165
165
  body[`).concat(yn,`] {
166
166
  `).concat(bv,": ").concat(i,`px;
167
167
  }
168
- `)},Qs=function(){var e=parseInt(document.body.getAttribute(yn)||"0",10);return isFinite(e)?e:0},Lv=function(){f.useEffect(function(){return document.body.setAttribute(yn,(Qs()+1).toString()),function(){var e=Qs()-1;e<=0?document.body.removeAttribute(yn):document.body.setAttribute(yn,e.toString())}},[])},Fv=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Lv();var a=f.useMemo(function(){return Iv(o)},[o]);return f.createElement(jv,{styles:$v(a,!t,o,n?"":"!important")})},ia=!1;if(typeof window<"u")try{var Mr=Object.defineProperty({},"passive",{get:function(){return ia=!0,!0}});window.addEventListener("test",Mr,Mr),window.removeEventListener("test",Mr,Mr)}catch{ia=!1}var fn=ia?{passive:!1}:!1,Wv=function(e){return e.tagName==="TEXTAREA"},Ic=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Wv(e)&&n[t]==="visible")},Bv=function(e){return Ic(e,"overflowY")},Yv=function(e){return Ic(e,"overflowX")},Js=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=jc(e,r);if(o){var a=$c(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Hv=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},zv=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},jc=function(e,t){return e==="v"?Bv(t):Yv(t)},$c=function(e,t){return e==="v"?Hv(t):zv(t)},Gv=function(e,t){return e==="h"&&t==="rtl"?-1:1},Uv=function(e,t,n,r,o){var a=Gv(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),u=!1,m=s>0,c=0,p=0;do{if(!i)break;var h=$c(e,i),b=h[0],g=h[1],v=h[2],y=g-v-a*b;(b||y)&&jc(e,i)&&(c+=y,p+=b);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(m&&Math.abs(c)<1||!m&&Math.abs(p)<1)&&(u=!0),u},Dr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ei=function(e){return[e.deltaX,e.deltaY]},ti=function(e){return e&&"current"in e?e.current:e},Vv=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qv=function(e){return`
168
+ `)},Qs=function(){var e=parseInt(document.body.getAttribute(yn)||"0",10);return isFinite(e)?e:0},Lv=function(){f.useEffect(function(){return document.body.setAttribute(yn,(Qs()+1).toString()),function(){var e=Qs()-1;e<=0?document.body.removeAttribute(yn):document.body.setAttribute(yn,e.toString())}},[])},Fv=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Lv();var a=f.useMemo(function(){return Iv(o)},[o]);return f.createElement(jv,{styles:$v(a,!t,o,n?"":"!important")})},ia=!1;if(typeof window<"u")try{var Mr=Object.defineProperty({},"passive",{get:function(){return ia=!0,!0}});window.addEventListener("test",Mr,Mr),window.removeEventListener("test",Mr,Mr)}catch{ia=!1}var fn=ia?{passive:!1}:!1,Wv=function(e){return e.tagName==="TEXTAREA"},Ic=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Wv(e)&&n[t]==="visible")},Bv=function(e){return Ic(e,"overflowY")},Yv=function(e){return Ic(e,"overflowX")},Js=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=jc(e,r);if(o){var a=$c(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Hv=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},zv=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},jc=function(e,t){return e==="v"?Bv(t):Yv(t)},$c=function(e,t){return e==="v"?Hv(t):zv(t)},Gv=function(e,t){return e==="h"&&t==="rtl"?-1:1},Uv=function(e,t,n,r,o){var a=Gv(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),u=!1,m=s>0,c=0,p=0;do{if(!i)break;var h=$c(e,i),b=h[0],g=h[1],v=h[2],y=g-v-a*b;(b||y)&&jc(e,i)&&(c+=y,p+=b);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(m&&Math.abs(c)<1||!m&&Math.abs(p)<1)&&(u=!0),u},Dr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ei=function(e){return[e.deltaX,e.deltaY]},ti=function(e){return e&&"current"in e?e.current:e},qv=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vv=function(e){return`
169
169
  .block-interactivity-`.concat(e,` {pointer-events: none;}
170
170
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
171
- `)},Kv=0,mn=[];function Xv(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Kv++)[0],a=f.useState(Ac)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=vv([e.lockRef.current],(e.shards||[]).map(ti),!0).filter(Boolean);return g.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=f.useCallback(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var y=Dr(g),x=n.current,S="deltaX"in g?g.deltaX:x[0]-y[0],D="deltaY"in g?g.deltaY:x[1]-y[1],C,N=g.target,M=Math.abs(S)>Math.abs(D)?"h":"v";if("touches"in g&&M==="h"&&N.type==="range")return!1;var E=Js(M,N);if(!E)return!0;if(E?C=M:(C=M==="v"?"h":"v",E=Js(M,N)),!E)return!1;if(!r.current&&"changedTouches"in g&&(S||D)&&(r.current=C),!C)return!0;var L=r.current||C;return Uv(L,v,g,L==="h"?S:D)},[]),l=f.useCallback(function(g){var v=g;if(!(!mn.length||mn[mn.length-1]!==a)){var y="deltaY"in v?ei(v):Dr(v),x=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&Vv(C.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var S=(s.current.shards||[]).map(ti).filter(Boolean).filter(function(C){return C.contains(v.target)}),D=S.length>0?i(v,S[0]):!s.current.noIsolation;D&&v.cancelable&&v.preventDefault()}}},[]),u=f.useCallback(function(g,v,y,x){var S={name:g,delta:v,target:y,should:x,shadowParent:Zv(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(D){return D!==S})},1)},[]),m=f.useCallback(function(g){n.current=Dr(g),r.current=void 0},[]),c=f.useCallback(function(g){u(g.type,ei(g),g.target,i(g,e.lockRef.current))},[]),p=f.useCallback(function(g){u(g.type,Dr(g),g.target,i(g,e.lockRef.current))},[]);f.useEffect(function(){return mn.push(a),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:p}),document.addEventListener("wheel",l,fn),document.addEventListener("touchmove",l,fn),document.addEventListener("touchstart",m,fn),function(){mn=mn.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,fn),document.removeEventListener("touchmove",l,fn),document.removeEventListener("touchstart",m,fn)}},[]);var h=e.removeScrollBar,b=e.inert;return f.createElement(f.Fragment,null,b?f.createElement(a,{styles:qv(o)}):null,h?f.createElement(Fv,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Zv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Qv=kv(Pc,Xv);var sr=f.forwardRef(function(e,t){return f.createElement(ao,mt({},e,{ref:t,sideCar:Qv}))});sr.classNames=ao.classNames;var so="Popover",[Lc,dD]=Ye(so,[Wt]),ir=Wt(),[Jv,Bt]=Lc(so),Fc=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=ir(t),l=f.useRef(null),[u,m]=f.useState(!1),[c,p]=nt({prop:r,defaultProp:o??!1,onChange:a,caller:so});return d.jsx(rr,{...i,children:d.jsx(Jv,{scope:t,contentId:Te(),triggerRef:l,open:c,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(h=>!h),[p]),hasCustomAnchor:u,onCustomAnchorAdd:f.useCallback(()=>m(!0),[]),onCustomAnchorRemove:f.useCallback(()=>m(!1),[]),modal:s,children:n})})};Fc.displayName=so;var Wc="PopoverAnchor",ey=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Bt(Wc,n),a=ir(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return f.useEffect(()=>(s(),()=>i()),[s,i]),d.jsx(or,{...a,...r,ref:t})});ey.displayName=Wc;var Bc="PopoverTrigger",Yc=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Bt(Bc,n),a=ir(n),s=he(t,o.triggerRef),i=d.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vc(o.open),...r,ref:s,onClick:Z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:d.jsx(or,{asChild:!0,...a,children:i})});Yc.displayName=Bc;var Fa="PopoverPortal",[ty,ny]=Lc(Fa,{forceMount:void 0}),Hc=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Bt(Fa,t);return d.jsx(ty,{scope:t,forceMount:n,children:d.jsx(ze,{present:n||a.open,children:d.jsx(ar,{asChild:!0,container:o,children:r})})})};Hc.displayName=Fa;var wn="PopoverContent",zc=f.forwardRef((e,t)=>{const n=ny(wn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Bt(wn,e.__scopePopover);return d.jsx(ze,{present:r||a.open,children:a.modal?d.jsx(oy,{...o,ref:t}):d.jsx(ay,{...o,ref:t})})});zc.displayName=wn;var ry=jt("PopoverContent.RemoveScroll"),oy=f.forwardRef((e,t)=>{const n=Bt(wn,e.__scopePopover),r=f.useRef(null),o=he(t,r),a=f.useRef(!1);return f.useEffect(()=>{const s=r.current;if(s)return oo(s)},[]),d.jsx(sr,{as:ry,allowPinchZoom:!0,children:d.jsx(Gc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,u=i.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),ay=f.forwardRef((e,t)=>{const n=Bt(wn,e.__scopePopover),r=f.useRef(!1),o=f.useRef(!1);return d.jsx(Gc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Gc=f.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:m,...c}=e,p=Bt(wn,n),h=ir(n);return Qr(),d.jsx(tr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(En,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:m,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),children:d.jsx(no,{"data-state":Vc(p.open),role:"dialog",id:p.contentId,...h,...c,ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Uc="PopoverClose",sy=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Bt(Uc,n);return d.jsx(ne.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});sy.displayName=Uc;var iy="PopoverArrow",cy=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ir(n);return d.jsx(ro,{...o,...r,ref:t})});cy.displayName=iy;function Vc(e){return e?"open":"closed"}var ly=Fc,uy=Yc,dy=Hc,qc=zc;const Wa=ly,Ba=uy,io=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(dy,{children:d.jsx(qc,{ref:r,sideOffset:t,className:W("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n})}));io.displayName=qc.displayName;function ni(e,[t,n]){return Math.min(n,Math.max(t,e))}function Ya(e){const t=e+"CollectionProvider",[n,r]=Ye(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:v,children:y}=g,x=w.useRef(null),S=w.useRef(new Map).current;return d.jsx(o,{scope:v,itemMap:S,collectionRef:x,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=jt(i),u=w.forwardRef((g,v)=>{const{scope:y,children:x}=g,S=a(i,y),D=he(v,S.collectionRef);return d.jsx(l,{ref:D,children:x})});u.displayName=i;const m=e+"CollectionItemSlot",c="data-radix-collection-item",p=jt(m),h=w.forwardRef((g,v)=>{const{scope:y,children:x,...S}=g,D=w.useRef(null),C=he(v,D),N=a(m,y);return w.useEffect(()=>(N.itemMap.set(D,{ref:D,...S}),()=>void N.itemMap.delete(D))),d.jsx(p,{[c]:"",ref:C,children:x})});h.displayName=m;function b(g){const v=a(e+"CollectionConsumer",g);return w.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${c}]`));return Array.from(v.itemMap.values()).sort((N,M)=>S.indexOf(N.ref.current)-S.indexOf(M.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},b,r]}var fy=f.createContext(void 0);function cr(e){const t=f.useContext(fy);return e||t||"ltr"}function Ha(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Kc=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"}),my="VisuallyHidden",Xc=f.forwardRef((e,t)=>d.jsx(ne.span,{...e,ref:t,style:{...Kc,...e.style}}));Xc.displayName=my;var py=Xc,hy=[" ","Enter","ArrowUp","ArrowDown"],gy=[" ","Enter"],Qt="Select",[co,lo,vy]=Ya(Qt),[Tn,fD]=Ye(Qt,[vy,Wt]),uo=Wt(),[yy,Yt]=Tn(Qt),[by,wy]=Tn(Qt),Zc=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:l,dir:u,name:m,autoComplete:c,disabled:p,required:h,form:b}=e,g=uo(t),[v,y]=f.useState(null),[x,S]=f.useState(null),[D,C]=f.useState(!1),N=cr(u),[M,E]=nt({prop:r,defaultProp:o??!1,onChange:a,caller:Qt}),[L,B]=nt({prop:s,defaultProp:i,onChange:l,caller:Qt}),Y=f.useRef(null),V=v?b||!!v.closest("form"):!0,[O,_]=f.useState(new Set),T=Array.from(O).map(R=>R.props.value).join(";");return d.jsx(rr,{...g,children:d.jsxs(yy,{required:h,scope:t,trigger:v,onTriggerChange:y,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:D,onValueNodeHasChildrenChange:C,contentId:Te(),value:L,onValueChange:B,open:M,onOpenChange:E,dir:N,triggerPointerDownPosRef:Y,disabled:p,children:[d.jsx(co.Provider,{scope:t,children:d.jsx(by,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(R=>{_(A=>new Set(A).add(R))},[]),onNativeOptionRemove:f.useCallback(R=>{_(A=>{const k=new Set(A);return k.delete(R),k})},[]),children:n})}),V?d.jsxs(xl,{"aria-hidden":!0,required:h,tabIndex:-1,name:m,autoComplete:c,value:L,onChange:R=>B(R.target.value),disabled:p,form:b,children:[L===void 0?d.jsx("option",{value:""}):null,Array.from(O)]},T):null]})})};Zc.displayName=Qt;var Qc="SelectTrigger",Jc=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=uo(n),s=Yt(Qc,n),i=s.disabled||r,l=he(t,s.onTriggerChange),u=lo(n),m=f.useRef("touch"),[c,p,h]=Cl(g=>{const v=u().filter(S=>!S.disabled),y=v.find(S=>S.value===s.value),x=Ml(v,g,y);x!==void 0&&s.onValueChange(x.value)}),b=g=>{i||(s.onOpenChange(!0),h()),g&&(s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return d.jsx(or,{asChild:!0,...a,children:d.jsx(ne.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Sl(s.value)?"":void 0,...o,ref:l,onClick:Z(o.onClick,g=>{g.currentTarget.focus(),m.current!=="mouse"&&b(g)}),onPointerDown:Z(o.onPointerDown,g=>{m.current=g.pointerType;const v=g.target;v.hasPointerCapture(g.pointerId)&&v.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(b(g),g.preventDefault())}),onKeyDown:Z(o.onKeyDown,g=>{const v=c.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&p(g.key),!(v&&g.key===" ")&&hy.includes(g.key)&&(b(),g.preventDefault())})})})});Jc.displayName=Qc;var el="SelectValue",tl=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...i}=e,l=Yt(el,n),{onValueNodeHasChildrenChange:u}=l,m=a!==void 0,c=he(t,l.onValueNodeChange);return Oe(()=>{u(m)},[u,m]),d.jsx(ne.span,{...i,ref:c,style:{pointerEvents:"none"},children:Sl(l.value)?d.jsx(d.Fragment,{children:s}):a})});tl.displayName=el;var xy="SelectIcon",nl=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(ne.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});nl.displayName=xy;var Sy="SelectPortal",rl=e=>d.jsx(ar,{asChild:!0,...e});rl.displayName=Sy;var Jt="SelectContent",ol=f.forwardRef((e,t)=>{const n=Yt(Jt,e.__scopeSelect),[r,o]=f.useState();if(Oe(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?Xr.createPortal(d.jsx(al,{scope:e.__scopeSelect,children:d.jsx(co.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(sl,{...e,ref:t})});ol.displayName=Jt;var at=10,[al,Ht]=Tn(Jt),Cy="SelectContentImpl",My=jt("SelectContent.RemoveScroll"),sl=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:l,align:u,alignOffset:m,arrowPadding:c,collisionBoundary:p,collisionPadding:h,sticky:b,hideWhenDetached:g,avoidCollisions:v,...y}=e,x=Yt(Jt,n),[S,D]=f.useState(null),[C,N]=f.useState(null),M=he(t,F=>D(F)),[E,L]=f.useState(null),[B,Y]=f.useState(null),V=lo(n),[O,_]=f.useState(!1),T=f.useRef(!1);f.useEffect(()=>{if(S)return oo(S)},[S]),Qr();const R=f.useCallback(F=>{const[U,...X]=V().map(ce=>ce.ref.current),[J]=X.slice(-1),ae=document.activeElement;for(const ce of F)if(ce===ae||(ce==null||ce.scrollIntoView({block:"nearest"}),ce===U&&C&&(C.scrollTop=0),ce===J&&C&&(C.scrollTop=C.scrollHeight),ce==null||ce.focus(),document.activeElement!==ae))return},[V,C]),A=f.useCallback(()=>R([E,S]),[R,E,S]);f.useEffect(()=>{O&&A()},[O,A]);const{onOpenChange:k,triggerPointerDownPosRef:P}=x;f.useEffect(()=>{if(S){let F={x:0,y:0};const U=J=>{var ae,ce;F={x:Math.abs(Math.round(J.pageX)-(((ae=P.current)==null?void 0:ae.x)??0)),y:Math.abs(Math.round(J.pageY)-(((ce=P.current)==null?void 0:ce.y)??0))}},X=J=>{F.x<=10&&F.y<=10?J.preventDefault():S.contains(J.target)||k(!1),document.removeEventListener("pointermove",U),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",X,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",X,{capture:!0})}}},[S,k,P]),f.useEffect(()=>{const F=()=>k(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[k]);const[z,q]=Cl(F=>{const U=V().filter(ae=>!ae.disabled),X=U.find(ae=>ae.ref.current===document.activeElement),J=Ml(U,F,X);J&&setTimeout(()=>J.ref.current.focus())}),I=f.useCallback((F,U,X)=>{const J=!T.current&&!X;(x.value!==void 0&&x.value===U||J)&&(L(F),J&&(T.current=!0))},[x.value]),j=f.useCallback(()=>S==null?void 0:S.focus(),[S]),H=f.useCallback((F,U,X)=>{const J=!T.current&&!X;(x.value!==void 0&&x.value===U||J)&&Y(F)},[x.value]),$=r==="popper"?ca:il,K=$===ca?{side:i,sideOffset:l,align:u,alignOffset:m,arrowPadding:c,collisionBoundary:p,collisionPadding:h,sticky:b,hideWhenDetached:g,avoidCollisions:v}:{};return d.jsx(al,{scope:n,content:S,viewport:C,onViewportChange:N,itemRefCallback:I,selectedItem:E,onItemLeave:j,itemTextRefCallback:H,focusSelectedItem:A,selectedItemText:B,position:r,isPositioned:O,searchRef:z,children:d.jsx(sr,{as:My,allowPinchZoom:!0,children:d.jsx(tr,{asChild:!0,trapped:x.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:Z(o,F=>{var U;(U=x.trigger)==null||U.focus({preventScroll:!0}),F.preventDefault()}),children:d.jsx(En,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:d.jsx($,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:F=>F.preventDefault(),...y,...K,onPlaced:()=>_(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Z(y.onKeyDown,F=>{const U=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!U&&F.key.length===1&&q(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let J=V().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);if(["ArrowUp","End"].includes(F.key)&&(J=J.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const ae=F.target,ce=J.indexOf(ae);J=J.slice(ce+1)}setTimeout(()=>R(J)),F.preventDefault()}})})})})})})});sl.displayName=Cy;var Dy="SelectItemAlignedPosition",il=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Yt(Jt,n),s=Ht(Jt,n),[i,l]=f.useState(null),[u,m]=f.useState(null),c=he(t,M=>m(M)),p=lo(n),h=f.useRef(!1),b=f.useRef(!0),{viewport:g,selectedItem:v,selectedItemText:y,focusSelectedItem:x}=s,S=f.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&u&&g&&v&&y){const M=a.trigger.getBoundingClientRect(),E=u.getBoundingClientRect(),L=a.valueNode.getBoundingClientRect(),B=y.getBoundingClientRect();if(a.dir!=="rtl"){const ae=B.left-E.left,ce=L.left-ae,be=M.left-ce,te=M.width+be,Pe=Math.max(te,E.width),Ae=window.innerWidth-at,ke=ni(ce,[at,Math.max(at,Ae-Pe)]);i.style.minWidth=te+"px",i.style.left=ke+"px"}else{const ae=E.right-B.right,ce=window.innerWidth-L.right-ae,be=window.innerWidth-M.right-ce,te=M.width+be,Pe=Math.max(te,E.width),Ae=window.innerWidth-at,ke=ni(ce,[at,Math.max(at,Ae-Pe)]);i.style.minWidth=te+"px",i.style.right=ke+"px"}const Y=p(),V=window.innerHeight-at*2,O=g.scrollHeight,_=window.getComputedStyle(u),T=parseInt(_.borderTopWidth,10),R=parseInt(_.paddingTop,10),A=parseInt(_.borderBottomWidth,10),k=parseInt(_.paddingBottom,10),P=T+R+O+k+A,z=Math.min(v.offsetHeight*5,P),q=window.getComputedStyle(g),I=parseInt(q.paddingTop,10),j=parseInt(q.paddingBottom,10),H=M.top+M.height/2-at,$=V-H,K=v.offsetHeight/2,F=v.offsetTop+K,U=T+R+F,X=P-U;if(U<=H){const ae=Y.length>0&&v===Y[Y.length-1].ref.current;i.style.bottom="0px";const ce=u.clientHeight-g.offsetTop-g.offsetHeight,be=Math.max($,K+(ae?j:0)+ce+A),te=U+be;i.style.height=te+"px"}else{const ae=Y.length>0&&v===Y[0].ref.current;i.style.top="0px";const be=Math.max(H,T+g.offsetTop+(ae?I:0)+K)+X;i.style.height=be+"px",g.scrollTop=U-H+g.offsetTop}i.style.margin=`${at}px 0`,i.style.minHeight=z+"px",i.style.maxHeight=V+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[p,a.trigger,a.valueNode,i,u,g,v,y,a.dir,r]);Oe(()=>S(),[S]);const[D,C]=f.useState();Oe(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const N=f.useCallback(M=>{M&&b.current===!0&&(S(),x==null||x(),b.current=!1)},[S,x]);return d.jsx(Ey,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:d.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:d.jsx(ne.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});il.displayName=Dy;var ky="SelectPopperPosition",ca=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=at,...a}=e,s=uo(n);return d.jsx(no,{...s,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.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)"}})});ca.displayName=ky;var[Ey,za]=Tn(Jt,{}),la="SelectViewport",cl=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Ht(la,n),s=za(la,n),i=he(t,a.onViewportChange),l=f.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),d.jsx(co.Slot,{scope:n,children:d.jsx(ne.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,u=>{const m=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:p}=s;if(p!=null&&p.current&&c){const h=Math.abs(l.current-m.scrollTop);if(h>0){const b=window.innerHeight-at*2,g=parseFloat(c.style.minHeight),v=parseFloat(c.style.height),y=Math.max(g,v);if(y<b){const x=y+h,S=Math.min(b,x),D=x-S;c.style.height=S+"px",c.style.bottom==="0px"&&(m.scrollTop=D>0?D:0,c.style.justifyContent="flex-end")}}}l.current=m.scrollTop})})})]})});cl.displayName=la;var ll="SelectGroup",[Ny,Ry]=Tn(ll),Ty=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Te();return d.jsx(Ny,{scope:n,id:o,children:d.jsx(ne.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ty.displayName=ll;var ul="SelectLabel",dl=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ry(ul,n);return d.jsx(ne.div,{id:o.id,...r,ref:t})});dl.displayName=ul;var Br="SelectItem",[_y,fl]=Tn(Br),ml=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,i=Yt(Br,n),l=Ht(Br,n),u=i.value===r,[m,c]=f.useState(a??""),[p,h]=f.useState(!1),b=he(t,x=>{var S;return(S=l.itemRefCallback)==null?void 0:S.call(l,x,r,o)}),g=Te(),v=f.useRef("touch"),y=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(_y,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:f.useCallback(x=>{c(S=>S||((x==null?void 0:x.textContent)??"").trim())},[]),children:d.jsx(co.ItemSlot,{scope:n,value:r,disabled:o,textValue:m,children:d.jsx(ne.div,{role:"option","aria-labelledby":g,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:b,onFocus:Z(s.onFocus,()=>h(!0)),onBlur:Z(s.onBlur,()=>h(!1)),onClick:Z(s.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:Z(s.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:Z(s.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:Z(s.onPointerMove,x=>{var S;v.current=x.pointerType,o?(S=l.onItemLeave)==null||S.call(l):v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(s.onPointerLeave,x=>{var S;x.currentTarget===document.activeElement&&((S=l.onItemLeave)==null||S.call(l))}),onKeyDown:Z(s.onKeyDown,x=>{var D;((D=l.searchRef)==null?void 0:D.current)!==""&&x.key===" "||(gy.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});ml.displayName=Br;var Yn="SelectItemText",pl=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=Yt(Yn,n),i=Ht(Yn,n),l=fl(Yn,n),u=wy(Yn,n),[m,c]=f.useState(null),p=he(t,y=>c(y),l.onItemTextChange,y=>{var x;return(x=i.itemTextRefCallback)==null?void 0:x.call(i,y,l.value,l.disabled)}),h=m==null?void 0:m.textContent,b=f.useMemo(()=>d.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=u;return Oe(()=>(g(b),()=>v(b)),[g,v,b]),d.jsxs(d.Fragment,{children:[d.jsx(ne.span,{id:l.textId,...a,ref:p}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Xr.createPortal(a.children,s.valueNode):null]})});pl.displayName=Yn;var hl="SelectItemIndicator",gl=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return fl(hl,n).isSelected?d.jsx(ne.span,{"aria-hidden":!0,...r,ref:t}):null});gl.displayName=hl;var ua="SelectScrollUpButton",vl=f.forwardRef((e,t)=>{const n=Ht(ua,e.__scopeSelect),r=za(ua,e.__scopeSelect),[o,a]=f.useState(!1),s=he(t,r.onScrollButtonChange);return Oe(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=l.scrollTop>0;a(u)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?d.jsx(bl,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});vl.displayName=ua;var da="SelectScrollDownButton",yl=f.forwardRef((e,t)=>{const n=Ht(da,e.__scopeSelect),r=za(da,e.__scopeSelect),[o,a]=f.useState(!1),s=he(t,r.onScrollButtonChange);return Oe(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=l.scrollHeight-l.clientHeight,m=Math.ceil(l.scrollTop)<u;a(m)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?d.jsx(bl,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});yl.displayName=da;var bl=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Ht("SelectScrollButton",n),s=f.useRef(null),i=lo(n),l=f.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return f.useEffect(()=>()=>l(),[l]),Oe(()=>{var m;const u=i().find(c=>c.ref.current===document.activeElement);(m=u==null?void 0:u.ref.current)==null||m.scrollIntoView({block:"nearest"})},[i]),d.jsx(ne.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{l()})})}),Oy="SelectSeparator",wl=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(ne.div,{"aria-hidden":!0,...r,ref:t})});wl.displayName=Oy;var fa="SelectArrow",Py=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=uo(n),a=Yt(fa,n),s=Ht(fa,n);return a.open&&s.position==="popper"?d.jsx(ro,{...o,...r,ref:t}):null});Py.displayName=fa;var Ay="SelectBubbleInput",xl=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),a=he(r,o),s=Ha(t);return f.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&m){const c=new Event("change",{bubbles:!0});m.call(i,t),i.dispatchEvent(c)}},[s,t]),d.jsx(ne.select,{...n,style:{...Kc,...n.style},ref:a,defaultValue:t})});xl.displayName=Ay;function Sl(e){return e===""||e===void 0}function Cl(e){const t=tt(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(s=>{const i=n.current+s;t(i),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(i)},[t]),a=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Ml(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Iy(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Iy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var jy=Zc,Dl=Jc,$y=tl,Ly=nl,Fy=rl,kl=ol,Wy=cl,El=dl,Nl=ml,By=pl,Yy=gl,Rl=vl,Tl=yl,_l=wl;const ma=jy,pa=$y,Yr=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Dl,{ref:r,className:W("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 data-[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,d.jsx(Ly,{asChild:!0,children:d.jsx(er,{strokeWidth:1.5,className:"h-4 w-4 text-foreground"})})]}));Yr.displayName=Dl.displayName;const Ol=f.forwardRef(({className:e,...t},n)=>d.jsx(Rl,{ref:n,className:W("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Zp,{className:"h-4 w-4"})}));Ol.displayName=Rl.displayName;const Pl=f.forwardRef(({className:e,...t},n)=>d.jsx(Tl,{ref:n,className:W("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(er,{className:"h-4 w-4"})}));Pl.displayName=Tl.displayName;const Hr=f.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>d.jsx(Fy,{children:d.jsxs(kl,{ref:o,className:W("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[d.jsx(Ol,{}),d.jsx(Wy,{className:W("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),d.jsx(Pl,{})]})}));Hr.displayName=kl.displayName;const Hy=f.forwardRef(({className:e,...t},n)=>d.jsx(El,{ref:n,className:W("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Hy.displayName=El.displayName;const zr=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Nl,{ref:r,className:W("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:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Yy,{children:d.jsx(Jn,{className:"h-4 w-4"})})}),d.jsx(By,{children:t})]}));zr.displayName=Nl.displayName;const zy=f.forwardRef(({className:e,...t},n)=>d.jsx(_l,{ref:n,className:W("-mx-1 my-1 h-px bg-muted",e),...t}));zy.displayName=_l.displayName;function Gy(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const $o={},Hn={};function Gn(e,t){try{const r=($o[e]||($o[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return r in Hn?Hn[r]:ri(r,r.split(":"))}catch{if(e in Hn)return Hn[e];const n=e==null?void 0:e.match(Uy);return n?ri(e,n.slice(1)):NaN}}const Uy=/([+-]\d\d):?(\d\d)?/;function ri(e,t){const n=+(t[0]||0),r=+(t[1]||0);return Hn[e]=n>0?n*60+r:n*60-r}class ht extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Gn(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Al(this),ha(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new ht(...n,t):new ht(Date.now(),t)}withTimeZone(t){return new ht(+this,t)}getTimezoneOffset(){return-Gn(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),ha(this),+this}[Symbol.for("constructDateFrom")](t){return new ht(+new Date(t),this.timeZone)}}const oi=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!oi.test(e))return;const t=e.replace(oi,"$1UTC");ht.prototype[t]&&(e.startsWith("get")?ht.prototype[e]=function(){return this.internal[t]()}:(ht.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Vy(this),+this},ht.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),ha(this),+this}))});function ha(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Vy(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Al(e)}function Al(e){const t=Gn(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),o=-new Date(+n).getTimezoneOffset(),a=r-o,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const i=r-t;i&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+i);const l=Gn(e.timeZone,e),m=-new Date(+e).getTimezoneOffset()-l,c=l!==t,p=m-i;if(c&&p){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+p);const h=Gn(e.timeZone,e),b=l-h;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}class Be extends ht{static tz(t,...n){return n.length?new Be(...n,t):new Be(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Gy(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new Be(+this,t)}[Symbol.for("constructDateFrom")](t){return new Be(+new Date(t),this.timeZone)}}var ue;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(ue||(ue={}));var Ne;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Ne||(Ne={}));var st;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(st||(st={}));var Xe;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Xe||(Xe={}));const Il=6048e5,qy=864e5,ai=Symbol.for("constructDateFrom");function $e(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ai in e?e[ai](t):e instanceof Date?new e.constructor(t):new Date(t)}function Se(e,t){return $e(t||e,e)}function jl(e,t,n){const r=Se(e,n==null?void 0:n.in);return isNaN(t)?$e(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function $l(e,t,n){const r=Se(e,n==null?void 0:n.in);if(isNaN(t))return $e(e,NaN);if(!t)return r;const o=r.getDate(),a=$e(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return o>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let Ky={};function lr(){return Ky}function xn(e,t){var i,l,u,m;const n=lr(),r=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((m=(u=n.locale)==null?void 0:u.options)==null?void 0:m.weekStartsOn)??0,o=Se(e,t==null?void 0:t.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function qn(e,t){return xn(e,{...t,weekStartsOn:1})}function Ll(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getFullYear(),o=$e(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=qn(o),s=$e(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const i=qn(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function si(e){const t=Se(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function _n(e,...t){const n=$e.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Kn(e,t){const n=Se(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Fl(e,t,n){const[r,o]=_n(n==null?void 0:n.in,e,t),a=Kn(r),s=Kn(o),i=+a-si(a),l=+s-si(s);return Math.round((i-l)/qy)}function Xy(e,t){const n=Ll(e,t),r=$e(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),qn(r)}function Zy(e,t,n){return jl(e,t*7,n)}function Qy(e,t,n){return $l(e,t*12,n)}function Jy(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=$e.bind(null,o));const a=Se(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),$e(r,n||NaN)}function eb(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=$e.bind(null,o));const a=Se(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),$e(r,n||NaN)}function tb(e,t,n){const[r,o]=_n(n==null?void 0:n.in,e,t);return+Kn(r)==+Kn(o)}function Wl(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function nb(e){return!(!Wl(e)&&typeof e!="number"||isNaN(+Se(e)))}function rb(e,t,n){const[r,o]=_n(n==null?void 0:n.in,e,t),a=r.getFullYear()-o.getFullYear(),s=r.getMonth()-o.getMonth();return a*12+s}function ob(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function ab(e,t){const[n,r]=_n(e,t.start,t.end);return{start:n,end:r}}function sb(e,t){const{start:n,end:r}=ab(t==null?void 0:t.in,e);let o=+n>+r;const a=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setDate(1);let i=1;const l=[];for(;+s<=a;)l.push($e(n,s)),s.setMonth(s.getMonth()+i);return o?l.reverse():l}function ib(e,t){const n=Se(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function cb(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Bl(e,t){const n=Se(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Yl(e,t){var i,l,u,m;const n=lr(),r=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((m=(u=n.locale)==null?void 0:u.options)==null?void 0:m.weekStartsOn)??0,o=Se(e,t==null?void 0:t.in),a=o.getDay(),s=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function lb(e,t){return Yl(e,{...t,weekStartsOn:1})}const ub={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},db=(e,t,n)=>{let r;const o=ub[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Lo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const fb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},mb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},pb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hb={date:Lo({formats:fb,defaultWidth:"full"}),time:Lo({formats:mb,defaultWidth:"full"}),dateTime:Lo({formats:pb,defaultWidth:"full"})},gb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vb=(e,t,n,r)=>gb[e];function $n(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=n!=null&&n.width?String(n.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const yb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},bb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wb={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},xb={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Sb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Cb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Mb=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Db={ordinalNumber:Mb,era:$n({values:yb,defaultWidth:"wide"}),quarter:$n({values:bb,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$n({values:wb,defaultWidth:"wide"}),day:$n({values:xb,defaultWidth:"wide"}),dayPeriod:$n({values:Sb,defaultWidth:"wide",formattingValues:Cb,defaultFormattingWidth:"wide"})};function Ln(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?Eb(i,c=>c.test(s)):kb(i,c=>c.test(s));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const m=t.slice(s.length);return{value:u,rest:m}}}function kb(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Eb(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Nb(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const Rb=/^(\d+)(th|st|nd|rd)?/i,Tb=/\d+/i,_b={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ob={any:[/^b/i,/^(a|c)/i]},Pb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ab={any:[/1/i,/2/i,/3/i,/4/i]},Ib={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},jb={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$b={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Lb={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fb={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Wb={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Bb={ordinalNumber:Nb({matchPattern:Rb,parsePattern:Tb,valueCallback:e=>parseInt(e,10)}),era:Ln({matchPatterns:_b,defaultMatchWidth:"wide",parsePatterns:Ob,defaultParseWidth:"any"}),quarter:Ln({matchPatterns:Pb,defaultMatchWidth:"wide",parsePatterns:Ab,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ln({matchPatterns:Ib,defaultMatchWidth:"wide",parsePatterns:jb,defaultParseWidth:"any"}),day:Ln({matchPatterns:$b,defaultMatchWidth:"wide",parsePatterns:Lb,defaultParseWidth:"any"}),dayPeriod:Ln({matchPatterns:Fb,defaultMatchWidth:"any",parsePatterns:Wb,defaultParseWidth:"any"})},Ga={code:"en-US",formatDistance:db,formatLong:hb,formatRelative:vb,localize:Db,match:Bb,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Yb(e,t){const n=Se(e,t==null?void 0:t.in);return Fl(n,Bl(n))+1}function Hl(e,t){const n=Se(e,t==null?void 0:t.in),r=+qn(n)-+Xy(n);return Math.round(r/Il)+1}function zl(e,t){var m,c,p,h;const n=Se(e,t==null?void 0:t.in),r=n.getFullYear(),o=lr(),a=(t==null?void 0:t.firstWeekContainsDate)??((c=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:c.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(p=o.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=$e((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=xn(s,t),l=$e((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=xn(l,t);return+n>=+i?r+1:+n>=+u?r:r-1}function Hb(e,t){var i,l,u,m;const n=lr(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(u=n.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)??1,o=zl(e,t),a=$e((t==null?void 0:t.in)||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),xn(a,t)}function Gl(e,t){const n=Se(e,t==null?void 0:t.in),r=+xn(n,t)-+Hb(n,t);return Math.round(r/Il)+1}function we(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Pt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return we(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):we(n+1,2)},d(e,t){return we(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return we(e.getHours()%12||12,t.length)},H(e,t){return we(e.getHours(),t.length)},m(e,t){return we(e.getMinutes(),t.length)},s(e,t){return we(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return we(o,t.length)}},pn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ii={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Pt.y(e,t)},Y:function(e,t,n,r){const o=zl(e,r),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return we(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):we(a,t.length)},R:function(e,t){const n=Ll(e);return we(n,t.length)},u:function(e,t){const n=e.getFullYear();return we(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return we(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return we(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Pt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return we(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Gl(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):we(o,t.length)},I:function(e,t,n){const r=Hl(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):we(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Pt.d(e,t)},D:function(e,t,n){const r=Yb(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):we(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return we(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return we(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return we(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=pn.noon:r===0?o=pn.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=pn.evening:r>=12?o=pn.afternoon:r>=4?o=pn.morning:o=pn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Pt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Pt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):we(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):we(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Pt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Pt.s(e,t)},S:function(e,t){return Pt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return li(r);case"XXXX":case"XX":return Xt(r);case"XXXXX":case"XXX":default:return Xt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return li(r);case"xxxx":case"xx":return Xt(r);case"xxxxx":case"xxx":default:return Xt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ci(r,":");case"OOOO":default:return"GMT"+Xt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ci(r,":");case"zzzz":default:return"GMT"+Xt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return we(r,t.length)},T:function(e,t,n){return we(+e,t.length)}};function ci(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+we(a,2)}function li(e,t){return e%60===0?(e>0?"-":"+")+we(Math.abs(e)/60,2):Xt(e,t)}function Xt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=we(Math.trunc(r/60),2),a=we(r%60,2);return n+o+t+a}const ui=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ul=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},zb=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ui(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",ui(r,t)).replace("{{time}}",Ul(o,t))},Gb={p:Ul,P:zb},Ub=/^D+$/,Vb=/^Y+$/,qb=["D","DD","YY","YYYY"];function Kb(e){return Ub.test(e)}function Xb(e){return Vb.test(e)}function Zb(e,t,n){const r=Qb(e,t,n);if(console.warn(r),qb.includes(e))throw new RangeError(r)}function Qb(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Jb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ew=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tw=/^'([^]*?)'?$/,nw=/''/g,rw=/[a-zA-Z]/;function ow(e,t,n){var m,c,p,h,b,g,v,y;const r=lr(),o=(n==null?void 0:n.locale)??r.locale??Ga,a=(n==null?void 0:n.firstWeekContainsDate)??((c=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(p=r.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((g=(b=n==null?void 0:n.locale)==null?void 0:b.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((y=(v=r.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??0,i=Se(e,n==null?void 0:n.in);if(!nb(i))throw new RangeError("Invalid time value");let l=t.match(ew).map(x=>{const S=x[0];if(S==="p"||S==="P"){const D=Gb[S];return D(x,o.formatLong)}return x}).join("").match(Jb).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const S=x[0];if(S==="'")return{isToken:!1,value:aw(x)};if(ii[S])return{isToken:!0,value:x};if(S.match(rw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const u={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return l.map(x=>{if(!x.isToken)return x.value;const S=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Xb(S)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Kb(S))&&Zb(S,t,String(e));const D=ii[S[0]];return D(i,S,o.localize,u)}).join("")}function aw(e){const t=e.match(tw);return t?t[1].replace(nw,"'"):e}function sw(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),a=$e(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function iw(e,t){return Se(e,t==null?void 0:t.in).getMonth()}function cw(e,t){return Se(e,t==null?void 0:t.in).getFullYear()}function lw(e,t){return+Se(e)>+Se(t)}function uw(e,t){return+Se(e)<+Se(t)}function dw(e,t,n){const[r,o]=_n(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function fw(e,t,n){const[r,o]=_n(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()}function mw(e,t,n){const r=Se(e,n==null?void 0:n.in),o=r.getFullYear(),a=r.getDate(),s=$e(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const i=sw(s);return r.setMonth(t,Math.min(a,i)),r}function pw(e,t,n){const r=Se(e,n==null?void 0:n.in);return isNaN(+r)?$e(e,NaN):(r.setFullYear(t),r)}const di=5,hw=4;function gw(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,di*7-1);return t.getMonth(e)===t.getMonth(a)?di:hw}function Vl(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function vw(e,t){const n=Vl(e,t),r=gw(e,t);return t.addDays(n,r*7-1)}class Rt{constructor(t,n){this.Date=Date,this.today=()=>{var r;return(r=this.overrides)!=null&&r.today?this.overrides.today():this.options.timeZone?Be.tz(this.options.timeZone):new this.Date},this.newDate=(r,o,a)=>{var s;return(s=this.overrides)!=null&&s.newDate?this.overrides.newDate(r,o,a):this.options.timeZone?new Be(r,o,a,this.options.timeZone):new Date(r,o,a)},this.addDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addDays?this.overrides.addDays(r,o):jl(r,o)},this.addMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addMonths?this.overrides.addMonths(r,o):$l(r,o)},this.addWeeks=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addWeeks?this.overrides.addWeeks(r,o):Zy(r,o)},this.addYears=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addYears?this.overrides.addYears(r,o):Qy(r,o)},this.differenceInCalendarDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):Fl(r,o)},this.differenceInCalendarMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):rb(r,o)},this.eachMonthOfInterval=r=>{var o;return(o=this.overrides)!=null&&o.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):sb(r)},this.endOfBroadcastWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):vw(r,this)},this.endOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfISOWeek?this.overrides.endOfISOWeek(r):lb(r)},this.endOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.endOfMonth?this.overrides.endOfMonth(r):ob(r)},this.endOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.endOfWeek?this.overrides.endOfWeek(r,o):Yl(r,this.options)},this.endOfYear=r=>{var o;return(o=this.overrides)!=null&&o.endOfYear?this.overrides.endOfYear(r):cb(r)},this.format=(r,o,a)=>{var i;const s=(i=this.overrides)!=null&&i.format?this.overrides.format(r,o,this.options):ow(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.getISOWeek?this.overrides.getISOWeek(r):Hl(r)},this.getMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getMonth?this.overrides.getMonth(r,this.options):iw(r,this.options)},this.getYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getYear?this.overrides.getYear(r,this.options):cw(r,this.options)},this.getWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getWeek?this.overrides.getWeek(r,this.options):Gl(r,this.options)},this.isAfter=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isAfter?this.overrides.isAfter(r,o):lw(r,o)},this.isBefore=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isBefore?this.overrides.isBefore(r,o):uw(r,o)},this.isDate=r=>{var o;return(o=this.overrides)!=null&&o.isDate?this.overrides.isDate(r):Wl(r)},this.isSameDay=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameDay?this.overrides.isSameDay(r,o):tb(r,o)},this.isSameMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameMonth?this.overrides.isSameMonth(r,o):dw(r,o)},this.isSameYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameYear?this.overrides.isSameYear(r,o):fw(r,o)},this.max=r=>{var o;return(o=this.overrides)!=null&&o.max?this.overrides.max(r):Jy(r)},this.min=r=>{var o;return(o=this.overrides)!=null&&o.min?this.overrides.min(r):eb(r)},this.setMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setMonth?this.overrides.setMonth(r,o):mw(r,o)},this.setYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setYear?this.overrides.setYear(r,o):pw(r,o)},this.startOfBroadcastWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Vl(r,this)},this.startOfDay=r=>{var o;return(o=this.overrides)!=null&&o.startOfDay?this.overrides.startOfDay(r):Kn(r)},this.startOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.startOfISOWeek?this.overrides.startOfISOWeek(r):qn(r)},this.startOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.startOfMonth?this.overrides.startOfMonth(r):ib(r)},this.startOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfWeek?this.overrides.startOfWeek(r,this.options):xn(r,this.options)},this.startOfYear=r=>{var o;return(o=this.overrides)!=null&&o.startOfYear?this.overrides.startOfYear(r):Bl(r)},this.options={locale:Ga,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}}const bt=new Rt;class ql{constructor(t,n,r=bt){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class yw{constructor(t,n){this.date=t,this.weeks=n}}class bw{constructor(t,n){this.days=n,this.weekNumber=t}}function St(e,t,n=!1,r=bt){let{from:o,to:a}=e;const{differenceInCalendarDays:s,isSameDay:i}=r;return o&&a?(s(a,o)<0&&([o,a]=[a,o]),s(t,o)>=(n?1:0)&&s(a,t)>=(n?1:0)):!n&&a?i(a,t):!n&&o?i(o,t):!1}function Kl(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Ua(e){return!!(e&&typeof e=="object"&&"from"in e)}function Xl(e){return!!(e&&typeof e=="object"&&"after"in e)}function Zl(e){return!!(e&&typeof e=="object"&&"before"in e)}function Ql(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Jl(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Ct(e,t,n=bt){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:s}=n;return r.some(i=>{if(typeof i=="boolean")return i;if(n.isDate(i))return o(e,i);if(Jl(i,n))return i.includes(e);if(Ua(i))return St(i,e,!1,n);if(Ql(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(Kl(i)){const l=a(i.before,e),u=a(i.after,e),m=l>0,c=u<0;return s(i.before,i.after)?c&&m:m||c}return Xl(i)?a(e,i.after)>0:Zl(i)?a(i.before,e)>0:typeof i=="function"?i(e):!1})}function ww(e,t,n,r,o){const{disabled:a,hidden:s,modifiers:i,showOutsideDays:l,broadcastCalendar:u,today:m}=t,{isSameDay:c,isSameMonth:p,startOfMonth:h,isBefore:b,endOfMonth:g,isAfter:v}=o,y=n&&h(n),x=r&&g(r),S={[Ne.focused]:[],[Ne.outside]:[],[Ne.disabled]:[],[Ne.hidden]:[],[Ne.today]:[]},D={};for(const C of e){const{date:N,displayMonth:M}=C,E=!!(M&&!p(N,M)),L=!!(y&&b(N,y)),B=!!(x&&v(N,x)),Y=!!(a&&Ct(N,a,o)),V=!!(s&&Ct(N,s,o))||L||B||!u&&!l&&E||u&&l===!1&&E,O=c(N,m??o.today());E&&S.outside.push(C),Y&&S.disabled.push(C),V&&S.hidden.push(C),O&&S.today.push(C),i&&Object.keys(i).forEach(_=>{const T=i==null?void 0:i[_];T&&Ct(N,T,o)&&(D[_]?D[_].push(C):D[_]=[C])})}return C=>{const N={[Ne.focused]:!1,[Ne.disabled]:!1,[Ne.hidden]:!1,[Ne.outside]:!1,[Ne.today]:!1},M={};for(const E in S){const L=S[E];N[E]=L.some(B=>B===C)}for(const E in D)M[E]=D[E].some(L=>L===C);return{...N,...M}}}function xw(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[a])=>(n[a]?o.push(n[a]):t[Ne[a]]?o.push(t[Ne[a]]):t[st[a]]&&o.push(t[st[a]]),o),[t[ue.Day]])}function Sw(e){return w.createElement("button",{...e})}function Cw(e){return w.createElement("span",{...e})}function Mw(e){const{size:t=24,orientation:n="left",className:r}=e;return w.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&w.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&w.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&w.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&w.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Dw(e){const{day:t,modifiers:n,...r}=e;return w.createElement("td",{...r})}function kw(e){const{day:t,modifiers:n,...r}=e,o=w.useRef(null);return w.useEffect(()=>{var a;n.focused&&((a=o.current)==null||a.focus())},[n.focused]),w.createElement("button",{ref:o,...r})}function Ew(e){const{options:t,className:n,components:r,classNames:o,...a}=e,s=[o[ue.Dropdown],n].join(" "),i=t==null?void 0:t.find(({value:l})=>l===a.value);return w.createElement("span",{"data-disabled":a.disabled,className:o[ue.DropdownRoot]},w.createElement(r.Select,{className:s,...a},t==null?void 0:t.map(({value:l,label:u,disabled:m})=>w.createElement(r.Option,{key:l,value:l,disabled:m},u))),w.createElement("span",{className:o[ue.CaptionLabel],"aria-hidden":!0},i==null?void 0:i.label,w.createElement(r.Chevron,{orientation:"down",size:18,className:o[ue.Chevron]})))}function Nw(e){return w.createElement("div",{...e})}function Rw(e){return w.createElement("div",{...e})}function Tw(e){const{calendarMonth:t,displayIndex:n,...r}=e;return w.createElement("div",{...r},e.children)}function _w(e){const{calendarMonth:t,displayIndex:n,...r}=e;return w.createElement("div",{...r})}function Ow(e){return w.createElement("table",{...e})}function Pw(e){return w.createElement("div",{...e})}const eu=w.createContext(void 0);function ur(){const e=w.useContext(eu);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function Aw(e){const{components:t}=ur();return w.createElement(t.Dropdown,{...e})}function Iw(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:s,classNames:i,labels:{labelPrevious:l,labelNext:u}}=ur(),m=w.useCallback(p=>{o&&(n==null||n(p))},[o,n]),c=w.useCallback(p=>{r&&(t==null||t(p))},[r,t]);return w.createElement("nav",{...a},w.createElement(s.PreviousMonthButton,{type:"button",className:i[ue.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:c},w.createElement(s.Chevron,{disabled:r?void 0:!0,className:i[ue.Chevron],orientation:"left"})),w.createElement(s.NextMonthButton,{type:"button",className:i[ue.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:m},w.createElement(s.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[ue.Chevron]})))}function jw(e){const{components:t}=ur();return w.createElement(t.Button,{...e})}function $w(e){return w.createElement("option",{...e})}function Lw(e){const{components:t}=ur();return w.createElement(t.Button,{...e})}function Fw(e){const{rootRef:t,...n}=e;return w.createElement("div",{...n,ref:t})}function Ww(e){return w.createElement("select",{...e})}function Bw(e){const{week:t,...n}=e;return w.createElement("tr",{...n})}function Yw(e){return w.createElement("th",{...e})}function Hw(e){return w.createElement("thead",{"aria-hidden":!0},w.createElement("tr",{...e}))}function zw(e){const{week:t,...n}=e;return w.createElement("th",{...n})}function Gw(e){return w.createElement("th",{...e})}function Uw(e){return w.createElement("tbody",{...e})}function Vw(e){const{components:t}=ur();return w.createElement(t.Dropdown,{...e})}const qw=Object.freeze(Object.defineProperty({__proto__:null,Button:Sw,CaptionLabel:Cw,Chevron:Mw,Day:Dw,DayButton:kw,Dropdown:Ew,DropdownNav:Nw,Footer:Rw,Month:Tw,MonthCaption:_w,MonthGrid:Ow,Months:Pw,MonthsDropdown:Aw,Nav:Iw,NextMonthButton:jw,Option:$w,PreviousMonthButton:Lw,Root:Fw,Select:Ww,Week:Bw,WeekNumber:zw,WeekNumberHeader:Gw,Weekday:Yw,Weekdays:Hw,Weeks:Uw,YearsDropdown:Vw},Symbol.toStringTag,{value:"Module"}));function Kw(e){return{...qw,...e}}function Xw(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function Va(){const e={};for(const t in ue)e[ue[t]]=`rdp-${ue[t]}`;for(const t in Ne)e[Ne[t]]=`rdp-${Ne[t]}`;for(const t in st)e[st[t]]=`rdp-${st[t]}`;for(const t in Xe)e[Xe[t]]=`rdp-${Xe[t]}`;return e}function tu(e,t,n){return(n??new Rt(t)).format(e,"LLLL y")}const Zw=tu;function Qw(e,t,n){return(n??new Rt(t)).format(e,"d")}function Jw(e,t=bt){return t.format(e,"LLLL")}function ex(e,t=bt){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function tx(){return""}function nx(e,t,n){return(n??new Rt(t)).format(e,"cccccc")}function nu(e,t=bt){return t.format(e,"yyyy")}const rx=nu,ox=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:tu,formatDay:Qw,formatMonthCaption:Zw,formatMonthDropdown:Jw,formatWeekNumber:ex,formatWeekNumberHeader:tx,formatWeekdayName:nx,formatYearCaption:rx,formatYearDropdown:nu},Symbol.toStringTag,{value:"Module"}));function ax(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...ox,...e}}function sx(e,t,n,r,o){const{startOfMonth:a,startOfYear:s,endOfYear:i,eachMonthOfInterval:l,getMonth:u}=o;return l({start:s(e),end:i(e)}).map(p=>{const h=r.formatMonthDropdown(p,o),b=u(p),g=t&&p<a(t)||n&&p>a(n)||!1;return{value:b,label:h,disabled:g}})}function ix(e,t={},n={}){let r={...t==null?void 0:t[ue.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n==null?void 0:n[o]}}),r}function cx(e,t,n){const r=e.today(),o=t?e.startOfISOWeek(r):e.startOfWeek(r),a=[];for(let s=0;s<7;s++){const i=e.addDays(o,s);a.push(i)}return a}function lx(e,t,n,r){if(!e||!t)return;const{startOfYear:o,endOfYear:a,addYears:s,getYear:i,isBefore:l,isSameYear:u}=r,m=o(e),c=a(t),p=[];let h=m;for(;l(h,c)||u(h,c);)p.push(h),h=s(h,1);return p.map(b=>{const g=n.formatYearDropdown(b,r);return{value:i(b),label:g,disabled:!1}})}function ru(e,t,n){return(n??new Rt(t)).format(e,"LLLL y")}const ux=ru;function dx(e,t,n,r){let o=(r??new Rt(n)).format(e,"PPPP");return t!=null&&t.today&&(o=`Today, ${o}`),o}function ou(e,t,n,r){let o=(r??new Rt(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const fx=ou;function mx(){return""}function px(e){return"Choose the Month"}function hx(e){return"Go to the Next Month"}function gx(e){return"Go to the Previous Month"}function vx(e,t,n){return(n??new Rt(t)).format(e,"cccc")}function yx(e,t){return`Week ${e}`}function bx(e){return"Week Number"}function wx(e){return"Choose the Year"}const xx=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:ux,labelDay:fx,labelDayButton:ou,labelGrid:ru,labelGridcell:dx,labelMonthDropdown:px,labelNav:mx,labelNext:hx,labelPrevious:gx,labelWeekNumber:yx,labelWeekNumberHeader:bx,labelWeekday:vx,labelYearDropdown:wx},Symbol.toStringTag,{value:"Module"})),dr=e=>e instanceof HTMLElement?e:null,Fo=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Sx=e=>dr(e.querySelector("[data-animated-month]")),Wo=e=>dr(e.querySelector("[data-animated-caption]")),Bo=e=>dr(e.querySelector("[data-animated-weeks]")),Cx=e=>dr(e.querySelector("[data-animated-nav]")),Mx=e=>dr(e.querySelector("[data-animated-weekdays]"));function Dx(e,t,{classNames:n,months:r,focused:o,dateLib:a}){const s=w.useRef(null),i=w.useRef(r),l=w.useRef(!1);w.useLayoutEffect(()=>{const u=i.current;if(i.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;const m=a.isSameMonth(r[0].date,u[0].date),c=a.isAfter(r[0].date,u[0].date),p=c?n[Xe.caption_after_enter]:n[Xe.caption_before_enter],h=c?n[Xe.weeks_after_enter]:n[Xe.weeks_before_enter],b=s.current,g=e.current.cloneNode(!0);if(g instanceof HTMLElement?(Fo(g).forEach(S=>{if(!(S instanceof HTMLElement))return;const D=Sx(S);D&&S.contains(D)&&S.removeChild(D);const C=Wo(S);C&&C.classList.remove(p);const N=Bo(S);N&&N.classList.remove(h)}),s.current=g):s.current=null,l.current||m||o)return;const v=b instanceof HTMLElement?Fo(b):[],y=Fo(e.current);if(y&&y.every(x=>x instanceof HTMLElement)&&v&&v.every(x=>x instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const x=Cx(e.current);x&&(x.style.zIndex="1"),y.forEach((S,D)=>{const C=v[D];if(!C)return;S.style.position="relative",S.style.overflow="hidden";const N=Wo(S);N&&N.classList.add(p);const M=Bo(S);M&&M.classList.add(h);const E=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),x&&(x.style.zIndex=""),N&&N.classList.remove(p),M&&M.classList.remove(h),S.style.position="",S.style.overflow="",S.contains(C)&&S.removeChild(C)};C.style.pointerEvents="none",C.style.position="absolute",C.style.overflow="hidden",C.setAttribute("aria-hidden","true");const L=Mx(C);L&&(L.style.opacity="0");const B=Wo(C);B&&(B.classList.add(c?n[Xe.caption_before_exit]:n[Xe.caption_after_exit]),B.addEventListener("animationend",E));const Y=Bo(C);Y&&Y.classList.add(c?n[Xe.weeks_before_exit]:n[Xe.weeks_after_exit]),S.insertBefore(C,S.firstChild)})}})}function kx(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:s,fixedWeeks:i,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:m,differenceInCalendarMonths:c,endOfBroadcastWeek:p,endOfISOWeek:h,endOfMonth:b,endOfWeek:g,isAfter:v,startOfBroadcastWeek:y,startOfISOWeek:x,startOfWeek:S}=r,D=l?y(o,r):s?x(o):S(o),C=l?p(a):s?h(b(a)):g(b(a)),N=m(C,D),M=c(a,o)+1,E=[];for(let Y=0;Y<=N;Y++){const V=u(D,Y);if(t&&v(V,t))break;E.push(V)}const B=(l?35:42)*M;if(i&&E.length<B){const Y=B-E.length;for(let V=0;V<Y;V++){const O=u(E[E.length-1],1);E.push(O)}}return E}function Ex(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((a,s)=>[...a,...s.days],t);return[...n,...o]},t)}function Nx(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let s=0;s<o;s++){const i=r.addMonths(e,s);if(t&&i>t)break;a.push(i)}return a}function fi(e,t,n,r){const{month:o,defaultMonth:a,today:s=r.today(),numberOfMonths:i=1}=e;let l=o||a||s;const{differenceInCalendarMonths:u,addMonths:m,startOfMonth:c}=r;if(n&&u(n,l)<i-1){const p=-1*(i-1);l=m(n,p)}return t&&u(l,t)<0&&(l=t),c(l)}function Rx(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:s,endOfMonth:i,endOfWeek:l,getISOWeek:u,getWeek:m,startOfBroadcastWeek:c,startOfISOWeek:p,startOfWeek:h}=r,b=e.reduce((g,v)=>{const y=n.broadcastCalendar?c(v,r):n.ISOWeek?p(v):h(v),x=n.broadcastCalendar?a(v):n.ISOWeek?s(i(v)):l(i(v)),S=t.filter(M=>M>=y&&M<=x),D=n.broadcastCalendar?35:42;if(n.fixedWeeks&&S.length<D){const M=t.filter(E=>{const L=D-S.length;return E>x&&E<=o(x,L)});S.push(...M)}const C=S.reduce((M,E)=>{const L=n.ISOWeek?u(E):m(E),B=M.find(V=>V.weekNumber===L),Y=new ql(E,v,r);return B?B.days.push(Y):M.push(new bw(L,[Y])),M},[]),N=new yw(v,C);return g.push(N),g},[]);return n.reverseMonths?b.reverse():b}function Tx(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:s,endOfMonth:i,addYears:l,endOfYear:u,newDate:m,today:c}=t,{fromYear:p,toYear:h,fromMonth:b,toMonth:g}=e;!n&&b&&(n=b),!n&&p&&(n=t.newDate(p,0,1)),!r&&g&&(r=g),!r&&h&&(r=m(h,11,31));const v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=s(n):p?n=m(p,0,1):!n&&v&&(n=o(l(e.today??c(),-100))),r?r=i(r):h?r=m(h,11,31):!r&&v&&(r=u(e.today??c())),[n&&a(n),r&&a(r)]}function _x(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=r,u=o?a:1,m=s(e);if(!t)return i(m,u);if(!(l(t,e)<a))return i(m,u)}function Ox(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=r,u=o?a??1:1,m=s(e);if(!t)return i(m,-u);if(!(l(m,t)<=0))return i(m,-u)}function Px(e){const t=[];return e.reduce((n,r)=>[...n,...r.weeks],t)}function fo(e,t){const[n,r]=w.useState(e);return[t===void 0?n:t,r]}function Ax(e,t){const[n,r]=Tx(e,t),{startOfMonth:o,endOfMonth:a}=t,s=fi(e,n,r,t),[i,l]=fo(s,e.month?s:void 0);w.useEffect(()=>{const N=fi(e,n,r,t);l(N)},[e.timeZone]);const u=Nx(i,r,e,t),m=kx(u,e.endMonth?a(e.endMonth):void 0,e,t),c=Rx(u,m,e,t),p=Px(c),h=Ex(c),b=Ox(i,n,e,t),g=_x(i,r,e,t),{disableNavigation:v,onMonthChange:y}=e,x=N=>p.some(M=>M.days.some(E=>E.isEqualTo(N))),S=N=>{if(v)return;let M=o(N);n&&M<o(n)&&(M=o(n)),r&&M>o(r)&&(M=o(r)),l(M),y==null||y(M)};return{months:c,weeks:p,days:h,navStart:n,navEnd:r,previousMonth:b,nextMonth:g,goToMonth:S,goToDay:N=>{x(N)||S(N.date)}}}var ft;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(ft||(ft={}));function mi(e){return!e[Ne.disabled]&&!e[Ne.hidden]&&!e[Ne.outside]}function Ix(e,t,n,r){let o,a=-1;for(const s of e){const i=t(s);mi(i)&&(i[Ne.focused]&&a<ft.FocusedModifier?(o=s,a=ft.FocusedModifier):r!=null&&r.isEqualTo(s)&&a<ft.LastFocused?(o=s,a=ft.LastFocused):n(s.date)&&a<ft.Selected?(o=s,a=ft.Selected):i[Ne.today]&&a<ft.Today&&(o=s,a=ft.Today))}return o||(o=e.find(s=>mi(t(s)))),o}function jx(e,t,n,r,o,a,s){const{ISOWeek:i,broadcastCalendar:l}=a,{addDays:u,addMonths:m,addWeeks:c,addYears:p,endOfBroadcastWeek:h,endOfISOWeek:b,endOfWeek:g,max:v,min:y,startOfBroadcastWeek:x,startOfISOWeek:S,startOfWeek:D}=s;let N={day:u,week:c,month:m,year:p,startOfWeek:M=>l?x(M,s):i?S(M):D(M),endOfWeek:M=>l?h(M):i?b(M):g(M)}[e](n,t==="after"?1:-1);return t==="before"&&r?N=v([r,N]):t==="after"&&o&&(N=y([o,N])),N}function au(e,t,n,r,o,a,s,i=0){if(i>365)return;const l=jx(e,t,n.date,r,o,a,s),u=!!(a.disabled&&Ct(l,a.disabled,s)),m=!!(a.hidden&&Ct(l,a.hidden,s)),c=l,p=new ql(l,c,s);return!u&&!m?p:au(e,t,p,r,o,a,s,i+1)}function $x(e,t,n,r,o){const{autoFocus:a}=e,[s,i]=w.useState(),l=Ix(t.days,n,r||(()=>!1),s),[u,m]=w.useState(a?l:void 0);return{isFocusTarget:g=>!!(l!=null&&l.isEqualTo(g)),setFocused:m,focused:u,blur:()=>{i(u),m(void 0)},moveFocus:(g,v)=>{if(!u)return;const y=au(g,v,u,t.navStart,t.navEnd,e,o);y&&(t.goToDay(y),m(y))}}}function Lx(e,t){const{selected:n,required:r,onSelect:o}=e,[a,s]=fo(n,o?n:void 0),i=o?n:a,{isSameDay:l}=t,u=h=>(i==null?void 0:i.some(b=>l(b,h)))??!1,{min:m,max:c}=e;return{selected:i,select:(h,b,g)=>{let v=[...i??[]];if(u(h)){if((i==null?void 0:i.length)===m||r&&(i==null?void 0:i.length)===1)return;v=i==null?void 0:i.filter(y=>!l(y,h))}else(i==null?void 0:i.length)===c?v=[h]:v=[...v,h];return o||s(v),o==null||o(v,h,b,g),v},isSelected:u}}function Fx(e,t,n=0,r=0,o=!1,a=bt){const{from:s,to:i}=t||{},{isSameDay:l,isAfter:u,isBefore:m}=a;let c;if(!s&&!i)c={from:e,to:n>0?void 0:e};else if(s&&!i)l(s,e)?o?c={from:s,to:void 0}:c=void 0:m(e,s)?c={from:e,to:s}:c={from:s,to:e};else if(s&&i)if(l(s,e)&&l(i,e))o?c={from:s,to:i}:c=void 0;else if(l(s,e))c={from:s,to:n>0?void 0:e};else if(l(i,e))c={from:e,to:n>0?void 0:e};else if(m(e,s))c={from:e,to:i};else if(u(e,s))c={from:s,to:e};else if(u(e,i))c={from:s,to:e};else throw new Error("Invalid range");if(c!=null&&c.from&&(c!=null&&c.to)){const p=a.differenceInCalendarDays(c.to,c.from);r>0&&p>r?c={from:e,to:void 0}:n>1&&p<n&&(c={from:e,to:void 0})}return c}function Wx(e,t,n=bt){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),s=Math.min(a,6);for(let i=0;i<=s;i++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function pi(e,t,n=bt){return St(e,t.from,!1,n)||St(e,t.to,!1,n)||St(t,e.from,!1,n)||St(t,e.to,!1,n)}function Bx(e,t,n=bt){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?St(e,i,!1,n):Jl(i,n)?i.some(l=>St(e,l,!1,n)):Ua(i)?i.from&&i.to?pi(e,{from:i.from,to:i.to},n):!1:Ql(i)?Wx(e,i.dayOfWeek,n):Kl(i)?n.isAfter(i.before,i.after)?pi(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):Ct(e.from,i,n)||Ct(e.to,i,n):Xl(i)||Zl(i)?Ct(e.from,i,n)||Ct(e.to,i,n):!1))return!0;const s=r.filter(i=>typeof i=="function");if(s.length){let i=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=l;u++){if(s.some(m=>m(i)))return!0;i=n.addDays(i,1)}}return!1}function Yx(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:s}=e,[i,l]=fo(o,s?o:void 0),u=s?o:i;return{selected:u,select:(p,h,b)=>{const{min:g,max:v}=e,y=p?Fx(p,u,g,v,a,t):void 0;return r&&n&&(y!=null&&y.from)&&y.to&&Bx({from:y.from,to:y.to},n,t)&&(y.from=p,y.to=void 0),s||l(y),s==null||s(y,p,h,b),y},isSelected:p=>u&&St(u,p,!1,t)}}function Hx(e,t){const{selected:n,required:r,onSelect:o}=e,[a,s]=fo(n,o?n:void 0),i=o?n:a,{isSameDay:l}=t;return{selected:i,select:(c,p,h)=>{let b=c;return!r&&i&&i&&l(c,i)&&(b=void 0),o||s(b),o==null||o(b,c,p,h),b},isSelected:c=>i?l(i,c):!1}}function zx(e,t){const n=Hx(e,t),r=Lx(e,t),o=Yx(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function su(e){var _t;let t=e;t.timeZone&&(t={...e},t.today&&(t.today=new Be(t.today,t.timeZone)),t.month&&(t.month=new Be(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new Be(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new Be(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new Be(t.endMonth,t.timeZone)),t.mode==="single"&&t.selected?t.selected=new Be(t.selected,t.timeZone):t.mode==="multiple"&&t.selected?t.selected=(_t=t.selected)==null?void 0:_t.map(G=>new Be(G,t.timeZone)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?new Be(t.selected.from,t.timeZone):void 0,to:t.selected.to?new Be(t.selected.to,t.timeZone):void 0}));const{components:n,formatters:r,labels:o,dateLib:a,locale:s,classNames:i}=w.useMemo(()=>{const G={...Ga,...t.locale};return{dateLib:new Rt({locale:G,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:Kw(t.components),formatters:ax(t.formatters),labels:{...xx,...t.labels},locale:G,classNames:{...Va(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]),{captionLayout:l,mode:u,navLayout:m,numberOfMonths:c=1,onDayBlur:p,onDayClick:h,onDayFocus:b,onDayKeyDown:g,onDayMouseEnter:v,onDayMouseLeave:y,onNextClick:x,onPrevClick:S,showWeekNumber:D,styles:C}=t,{formatCaption:N,formatDay:M,formatMonthDropdown:E,formatWeekNumber:L,formatWeekNumberHeader:B,formatWeekdayName:Y,formatYearDropdown:V}=r,O=Ax(t,a),{days:_,months:T,navStart:R,navEnd:A,previousMonth:k,nextMonth:P,goToMonth:z}=O,q=ww(_,t,R,A,a),{isSelected:I,select:j,selected:H}=zx(t,a)??{},{blur:$,focused:K,isFocusTarget:F,moveFocus:U,setFocused:X}=$x(t,O,q,I??(()=>!1),a),{labelDayButton:J,labelGridcell:ae,labelGrid:ce,labelMonthDropdown:be,labelNav:te,labelPrevious:Pe,labelNext:Ae,labelWeekday:ke,labelWeekNumber:Ge,labelWeekNumberHeader:Me,labelYearDropdown:Q}=o,ee=w.useMemo(()=>cx(a,t.ISOWeek),[a,t.ISOWeek]),ye=u!==void 0||h!==void 0,De=w.useCallback(()=>{k&&(z(k),S==null||S(k))},[k,z,S]),We=w.useCallback(()=>{P&&(z(P),x==null||x(P))},[z,P,x]),an=w.useCallback((G,le)=>ie=>{ie.preventDefault(),ie.stopPropagation(),X(G),j==null||j(G.date,le,ie),h==null||h(G.date,le,ie)},[j,h,X]),Tt=w.useCallback((G,le)=>ie=>{X(G),b==null||b(G.date,le,ie)},[b,X]),Pn=w.useCallback((G,le)=>ie=>{$(),p==null||p(G.date,le,ie)},[$,p]),wt=w.useCallback((G,le)=>ie=>{const me={ArrowLeft:[ie.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[ie.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[ie.shiftKey?"year":"week","after"],ArrowUp:[ie.shiftKey?"year":"week","before"],PageUp:[ie.shiftKey?"year":"month","before"],PageDown:[ie.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(me[ie.key]){ie.preventDefault(),ie.stopPropagation();const[ge,se]=me[ie.key];U(ge,se)}g==null||g(G.date,le,ie)},[U,g,t.dir]),Gt=w.useCallback((G,le)=>ie=>{v==null||v(G.date,le,ie)},[v]),rt=w.useCallback((G,le)=>ie=>{y==null||y(G.date,le,ie)},[y]),sn=w.useCallback(G=>le=>{const ie=Number(le.target.value),me=a.setMonth(a.startOfMonth(G),ie);z(me)},[a,z]),Ue=w.useCallback(G=>le=>{const ie=Number(le.target.value),me=a.setYear(a.startOfMonth(G),ie);z(me)},[a,z]),{className:cn,style:An}=w.useMemo(()=>({className:[i[ue.Root],t.className].filter(Boolean).join(" "),style:{...C==null?void 0:C[ue.Root],...t.style}}),[i,t.className,t.style,C]),ln=Xw(t),Ut=w.useRef(null);Dx(Ut,!!t.animate,{classNames:i,months:T,focused:K,dateLib:a});const In={dayPickerProps:t,selected:H,select:j,isSelected:I,months:T,nextMonth:P,previousMonth:k,goToMonth:z,getModifiers:q,components:n,classNames:i,styles:C,labels:o,formatters:r};return w.createElement(eu.Provider,{value:In},w.createElement(n.Root,{rootRef:t.animate?Ut:void 0,className:cn,style:An,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],...ln},w.createElement(n.Months,{className:i[ue.Months],style:C==null?void 0:C[ue.Months]},!t.hideNavigation&&!m&&w.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:i[ue.Nav],style:C==null?void 0:C[ue.Nav],"aria-label":te(),onPreviousClick:De,onNextClick:We,previousMonth:k,nextMonth:P}),T.map((G,le)=>{const ie=sx(G.date,R,A,r,a),me=lx(R,A,r,a);return w.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:i[ue.Month],style:C==null?void 0:C[ue.Month],key:le,displayIndex:le,calendarMonth:G},m==="around"&&!t.hideNavigation&&le===0&&w.createElement(n.PreviousMonthButton,{type:"button",className:i[ue.PreviousMonthButton],tabIndex:k?void 0:-1,"aria-disabled":k?void 0:!0,"aria-label":Pe(k),onClick:De,"data-animated-button":t.animate?"true":void 0},w.createElement(n.Chevron,{disabled:k?void 0:!0,className:i[ue.Chevron],orientation:t.dir==="rtl"?"right":"left"})),w.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:i[ue.MonthCaption],style:C==null?void 0:C[ue.MonthCaption],calendarMonth:G,displayIndex:le},l!=null&&l.startsWith("dropdown")?w.createElement(n.DropdownNav,{className:i[ue.Dropdowns],style:C==null?void 0:C[ue.Dropdowns]},l==="dropdown"||l==="dropdown-months"?w.createElement(n.MonthsDropdown,{className:i[ue.MonthsDropdown],"aria-label":be(),classNames:i,components:n,disabled:!!t.disableNavigation,onChange:sn(G.date),options:ie,style:C==null?void 0:C[ue.Dropdown],value:a.getMonth(G.date)}):w.createElement("span",null,E(G.date,a)),l==="dropdown"||l==="dropdown-years"?w.createElement(n.YearsDropdown,{className:i[ue.YearsDropdown],"aria-label":Q(a.options),classNames:i,components:n,disabled:!!t.disableNavigation,onChange:Ue(G.date),options:me,style:C==null?void 0:C[ue.Dropdown],value:a.getYear(G.date)}):w.createElement("span",null,V(G.date,a)),w.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},N(G.date,a.options,a))):w.createElement(n.CaptionLabel,{className:i[ue.CaptionLabel],role:"status","aria-live":"polite"},N(G.date,a.options,a))),m==="around"&&!t.hideNavigation&&le===c-1&&w.createElement(n.NextMonthButton,{type:"button",className:i[ue.NextMonthButton],tabIndex:P?void 0:-1,"aria-disabled":P?void 0:!0,"aria-label":Ae(P),onClick:We,"data-animated-button":t.animate?"true":void 0},w.createElement(n.Chevron,{disabled:P?void 0:!0,className:i[ue.Chevron],orientation:t.dir==="rtl"?"left":"right"})),le===c-1&&m==="after"&&!t.hideNavigation&&w.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:i[ue.Nav],style:C==null?void 0:C[ue.Nav],"aria-label":te(),onPreviousClick:De,onNextClick:We,previousMonth:k,nextMonth:P}),w.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":ce(G.date,a.options,a)||void 0,className:i[ue.MonthGrid],style:C==null?void 0:C[ue.MonthGrid]},!t.hideWeekdays&&w.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:i[ue.Weekdays],style:C==null?void 0:C[ue.Weekdays]},D&&w.createElement(n.WeekNumberHeader,{"aria-label":Me(a.options),className:i[ue.WeekNumberHeader],style:C==null?void 0:C[ue.WeekNumberHeader],scope:"col"},B()),ee.map((ge,se)=>w.createElement(n.Weekday,{"aria-label":ke(ge,a.options,a),className:i[ue.Weekday],key:se,style:C==null?void 0:C[ue.Weekday],scope:"col"},Y(ge,a.options,a)))),w.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:i[ue.Weeks],style:C==null?void 0:C[ue.Weeks]},G.weeks.map((ge,se)=>w.createElement(n.Week,{className:i[ue.Week],key:ge.weekNumber,style:C==null?void 0:C[ue.Week],week:ge},D&&w.createElement(n.WeekNumber,{week:ge,style:C==null?void 0:C[ue.WeekNumber],"aria-label":Ge(ge.weekNumber,{locale:s}),className:i[ue.WeekNumber],scope:"row",role:"rowheader"},L(ge.weekNumber,a)),ge.days.map(fe=>{const{date:ve}=fe,de=q(fe);if(de[Ne.focused]=!de.hidden&&!!(K!=null&&K.isEqualTo(fe)),de[st.selected]=(I==null?void 0:I(ve))||de.selected,Ua(H)){const{from:Ke,to:Le}=H;de[st.range_start]=!!(Ke&&Le&&a.isSameDay(ve,Ke)),de[st.range_end]=!!(Ke&&Le&&a.isSameDay(ve,Le)),de[st.range_middle]=St(H,ve,!0,a)}const Ve=ix(de,C,t.modifiersStyles),xe=xw(de,i,t.modifiersClassNames),Ce=!ye&&!de.hidden?ae(ve,de,a.options,a):void 0;return w.createElement(n.Day,{key:`${a.format(ve,"yyyy-MM-dd")}_${a.format(fe.displayMonth,"yyyy-MM")}`,day:fe,modifiers:de,className:xe.join(" "),style:Ve,role:"gridcell","aria-selected":de.selected||void 0,"aria-label":Ce,"data-day":a.format(ve,"yyyy-MM-dd"),"data-month":fe.outside?a.format(ve,"yyyy-MM"):void 0,"data-selected":de.selected||void 0,"data-disabled":de.disabled||void 0,"data-hidden":de.hidden||void 0,"data-outside":fe.outside||void 0,"data-focused":de.focused||void 0,"data-today":de.today||void 0},!de.hidden&&ye?w.createElement(n.DayButton,{className:i[ue.DayButton],style:C==null?void 0:C[ue.DayButton],type:"button",day:fe,modifiers:de,disabled:de.disabled||void 0,tabIndex:F(fe)?0:-1,"aria-label":J(ve,de,a.options,a),onClick:an(fe,de),onBlur:Pn(fe,de),onFocus:Tt(fe,de),onKeyDown:wt(fe,de),onMouseEnter:Gt(fe,de),onMouseLeave:rt(fe,de)},M(ve,a.options,a)):!de.hidden&&M(fe.date,a.options,a))}))))))})),t.footer&&w.createElement(n.Footer,{className:i[ue.Footer],style:C==null?void 0:C[ue.Footer],role:"status","aria-live":"polite"},t.footer)))}function qa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pr={exports:{}},Gx=Pr.exports,hi;function iu(){return hi||(hi=1,function(e,t){(function(n,r){e.exports=r()})(Gx,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",i="minute",l="hour",u="day",m="week",c="month",p="quarter",h="year",b="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var T=["th","st","nd","rd"],R=_%100;return"["+_+(T[(R-20)%10]||T[R]||T[0])+"]"}},S=function(_,T,R){var A=String(_);return!A||A.length>=T?_:""+Array(T+1-A.length).join(R)+_},D={s:S,z:function(_){var T=-_.utcOffset(),R=Math.abs(T),A=Math.floor(R/60),k=R%60;return(T<=0?"+":"-")+S(A,2,"0")+":"+S(k,2,"0")},m:function _(T,R){if(T.date()<R.date())return-_(R,T);var A=12*(R.year()-T.year())+(R.month()-T.month()),k=T.clone().add(A,c),P=R-k<0,z=T.clone().add(A+(P?-1:1),c);return+(-(A+(R-k)/(P?k-z:z-k))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:c,y:h,w:m,d:u,D:b,h:l,m:i,s,ms:a,Q:p}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},C="en",N={};N[C]=x;var M="$isDayjsObject",E=function(_){return _ instanceof V||!(!_||!_[M])},L=function _(T,R,A){var k;if(!T)return C;if(typeof T=="string"){var P=T.toLowerCase();N[P]&&(k=P),R&&(N[P]=R,k=P);var z=T.split("-");if(!k&&z.length>1)return _(z[0])}else{var q=T.name;N[q]=T,k=q}return!A&&k&&(C=k),k||!A&&C},B=function(_,T){if(E(_))return _.clone();var R=typeof T=="object"?T:{};return R.date=_,R.args=arguments,new V(R)},Y=D;Y.l=L,Y.i=E,Y.w=function(_,T){return B(_,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var V=function(){function _(R){this.$L=L(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[M]=!0}var T=_.prototype;return T.parse=function(R){this.$d=function(A){var k=A.date,P=A.utc;if(k===null)return new Date(NaN);if(Y.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var z=k.match(v);if(z){var q=z[2]-1||0,I=(z[7]||"0").substring(0,3);return P?new Date(Date.UTC(z[1],q,z[3]||1,z[4]||0,z[5]||0,z[6]||0,I)):new Date(z[1],q,z[3]||1,z[4]||0,z[5]||0,z[6]||0,I)}}return new Date(k)}(R),this.init()},T.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},T.$utils=function(){return Y},T.isValid=function(){return this.$d.toString()!==g},T.isSame=function(R,A){var k=B(R);return this.startOf(A)<=k&&k<=this.endOf(A)},T.isAfter=function(R,A){return B(R)<this.startOf(A)},T.isBefore=function(R,A){return this.endOf(A)<B(R)},T.$g=function(R,A,k){return Y.u(R)?this[A]:this.set(k,R)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(R,A){var k=this,P=!!Y.u(A)||A,z=Y.p(R),q=function(X,J){var ae=Y.w(k.$u?Date.UTC(k.$y,J,X):new Date(k.$y,J,X),k);return P?ae:ae.endOf(u)},I=function(X,J){return Y.w(k.toDate()[X].apply(k.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(J)),k)},j=this.$W,H=this.$M,$=this.$D,K="set"+(this.$u?"UTC":"");switch(z){case h:return P?q(1,0):q(31,11);case c:return P?q(1,H):q(0,H+1);case m:var F=this.$locale().weekStart||0,U=(j<F?j+7:j)-F;return q(P?$-U:$+(6-U),H);case u:case b:return I(K+"Hours",0);case l:return I(K+"Minutes",1);case i:return I(K+"Seconds",2);case s:return I(K+"Milliseconds",3);default:return this.clone()}},T.endOf=function(R){return this.startOf(R,!1)},T.$set=function(R,A){var k,P=Y.p(R),z="set"+(this.$u?"UTC":""),q=(k={},k[u]=z+"Date",k[b]=z+"Date",k[c]=z+"Month",k[h]=z+"FullYear",k[l]=z+"Hours",k[i]=z+"Minutes",k[s]=z+"Seconds",k[a]=z+"Milliseconds",k)[P],I=P===u?this.$D+(A-this.$W):A;if(P===c||P===h){var j=this.clone().set(b,1);j.$d[q](I),j.init(),this.$d=j.set(b,Math.min(this.$D,j.daysInMonth())).$d}else q&&this.$d[q](I);return this.init(),this},T.set=function(R,A){return this.clone().$set(R,A)},T.get=function(R){return this[Y.p(R)]()},T.add=function(R,A){var k,P=this;R=Number(R);var z=Y.p(A),q=function(H){var $=B(P);return Y.w($.date($.date()+Math.round(H*R)),P)};if(z===c)return this.set(c,this.$M+R);if(z===h)return this.set(h,this.$y+R);if(z===u)return q(1);if(z===m)return q(7);var I=(k={},k[i]=r,k[l]=o,k[s]=n,k)[z]||1,j=this.$d.getTime()+R*I;return Y.w(j,this)},T.subtract=function(R,A){return this.add(-1*R,A)},T.format=function(R){var A=this,k=this.$locale();if(!this.isValid())return k.invalidDate||g;var P=R||"YYYY-MM-DDTHH:mm:ssZ",z=Y.z(this),q=this.$H,I=this.$m,j=this.$M,H=k.weekdays,$=k.months,K=k.meridiem,F=function(J,ae,ce,be){return J&&(J[ae]||J(A,P))||ce[ae].slice(0,be)},U=function(J){return Y.s(q%12||12,J,"0")},X=K||function(J,ae,ce){var be=J<12?"AM":"PM";return ce?be.toLowerCase():be};return P.replace(y,function(J,ae){return ae||function(ce){switch(ce){case"YY":return String(A.$y).slice(-2);case"YYYY":return Y.s(A.$y,4,"0");case"M":return j+1;case"MM":return Y.s(j+1,2,"0");case"MMM":return F(k.monthsShort,j,$,3);case"MMMM":return F($,j);case"D":return A.$D;case"DD":return Y.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return F(k.weekdaysMin,A.$W,H,2);case"ddd":return F(k.weekdaysShort,A.$W,H,3);case"dddd":return H[A.$W];case"H":return String(q);case"HH":return Y.s(q,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return X(q,I,!0);case"A":return X(q,I,!1);case"m":return String(I);case"mm":return Y.s(I,2,"0");case"s":return String(A.$s);case"ss":return Y.s(A.$s,2,"0");case"SSS":return Y.s(A.$ms,3,"0");case"Z":return z}return null}(J)||z.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(R,A,k){var P,z=this,q=Y.p(A),I=B(R),j=(I.utcOffset()-this.utcOffset())*r,H=this-I,$=function(){return Y.m(z,I)};switch(q){case h:P=$()/12;break;case c:P=$();break;case p:P=$()/3;break;case m:P=(H-j)/6048e5;break;case u:P=(H-j)/864e5;break;case l:P=H/o;break;case i:P=H/r;break;case s:P=H/n;break;default:P=H}return k?P:Y.a(P)},T.daysInMonth=function(){return this.endOf(c).$D},T.$locale=function(){return N[this.$L]},T.locale=function(R,A){if(!R)return this.$L;var k=this.clone(),P=L(R,A,!0);return P&&(k.$L=P),k},T.clone=function(){return Y.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},_}(),O=V.prototype;return B.prototype=O,[["$ms",a],["$s",s],["$m",i],["$H",l],["$W",u],["$M",c],["$y",h],["$D",b]].forEach(function(_){O[_[1]]=function(T){return this.$g(T,_[0],_[1])}}),B.extend=function(_,T){return _.$i||(_(T,V,B),_.$i=!0),B},B.locale=L,B.isDayjs=E,B.unix=function(_){return B(1e3*_)},B.en=N[C],B.Ls=N,B.p={},B})}(Pr)),Pr.exports}var Ux=iu();const Mt=qa(Ux);var Ar={exports:{}},Vx=Ar.exports,gi;function qx(){return gi||(gi=1,function(e,t){(function(n,r){e.exports=r()})(Vx,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var s=o.prototype,i=s.format;a.en.formats=n,s.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,m=function(c,p){return c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,b,g){var v=g&&g.toUpperCase();return b||p[g]||n[g]||p[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,x,S){return x||S.slice(1)})})}(l,u===void 0?{}:u);return i.call(this,m)}}})}(Ar)),Ar.exports}var Kx=qx();const cu=qa(Kx);var Ir={exports:{}},Xx=Ir.exports,vi;function Zx(){return vi||(vi=1,function(e,t){(function(n,r){e.exports=r(iu())})(Xx,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(n),a={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(s){return""+s+(s===1?"er":"")}};return o.default.locale(a,null,!0),a})}(Ir)),Ir.exports}Zx();function Qx({month:e,onMonthChange:t}){const n=e.getFullYear(),r=e.getMonth(),o=["January","February","March","April","May","June","July","August","September","October","November","December"],a=new Date().getFullYear(),s=Array.from({length:201},(c,p)=>a-100+p),i=c=>{const p=new Date(e);p.setMonth(Number.parseInt(c)),t(p)},l=c=>{const p=new Date(e);p.setFullYear(Number.parseInt(c)),t(p)},u=()=>{const c=new Date(e);c.setMonth(c.getMonth()-1),t(c)},m=()=>{const c=new Date(e);c.setMonth(c.getMonth()+1),t(c)};return d.jsxs("div",{className:"flex items-center justify-between p-2 border-b bg-muted",children:[d.jsx(kt,{variant:"outline",size:"small",onClick:u,className:"h-7 w-7 p-0",children:d.jsx(nc,{className:"h-4 w-4"})}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs(ma,{value:r.toString(),onValueChange:i,children:[d.jsx(Yr,{className:"w-32 h-8 text-sm",children:d.jsx(pa,{})}),d.jsx(Hr,{children:o.map((c,p)=>d.jsx(zr,{value:p.toString(),children:c},c))})]}),d.jsxs(ma,{value:n.toString(),onValueChange:l,children:[d.jsx(Yr,{className:"w-20 h-8 text-sm",children:d.jsx(pa,{})}),d.jsx(Hr,{className:"max-h-[200px]",children:s.map(c=>d.jsx(zr,{value:c.toString(),children:c},c))})]})]}),d.jsx(kt,{variant:"outline",size:"small",onClick:m,className:"h-7 w-7 p-0",children:d.jsx(Ea,{className:"h-4 w-4"})})]})}Mt.extend(cu);const Gr=({label:e,placeholder:t="Pick a date",helperText:n,error:r,required:o,value:a,onSelect:s,className:i,minDate:l,maxDate:u,disabled:m,readOnly:c,locale:p="en",showOutsideDays:h,dayPickerProps:b,month:g,onMonthChange:v,open:y,onOpenChange:x,...S})=>{const[D,C]=w.useState(!1),N=y!==void 0?y:D,M=x||C,E=g??a??new Date,L=B=>{B&&(!a||B.getTime()!==a.getTime())&&(s==null||s(B),M(!1))};return Mt.locale(p),d.jsxs("div",{className:W("space-y-1",i),...S,children:[e&&d.jsxs(rn,{className:"text-sm font-medium text-gray-700",children:[e,o&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs(Wa,{open:N,onOpenChange:M,children:[d.jsx(Ba,{asChild:!0,children:d.jsxs(kt,{variant:"outline",className:W("w-full flex justify-between items-center font-normal",!a&&"text-muted-foreground",r&&"border border-red-500 focus:ring-red-500"),disabled:m,"aria-readonly":c,children:[d.jsx("span",{className:W("text-left",!a&&"text-muted-foreground"),children:a?Mt(a).locale(p).format("LL"):t}),d.jsx(tc,{strokeWidth:1.2,className:"ml-6 h-6 w-6 shrink-0 text-foreground"})]})}),d.jsx(io,{className:"w-auto p-0",align:"start",children:d.jsxs("div",{className:"bg-white rounded-md border shadow-md",children:[d.jsx(Qx,{month:E,onMonthChange:v??(()=>{})}),d.jsx("div",{className:"p-3",children:d.jsx(su,{mode:"single",selected:a,onSelect:L,month:E,onMonthChange:v,fromDate:l,toDate:u,showOutsideDays:h,className:"p-0",classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"hidden",caption_label:"text-sm font-medium",nav:"hidden",nav_button:"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100",nav_button_previous:"absolute left-1 top-1",nav_button_next:"absolute right-1 top-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:"h-9 w-9 p-0 font-normal aria-selected:opacity-100 hover:bg-accent hover:text-accent-foreground rounded-md transition-colors",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible"},...b})})]})})]}),(n||r)&&d.jsx("p",{className:W("text-xs",r?"text-red-500":"text-gray-500"),children:r||n})]})};function Jx({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:a,components:s,...i}){const l=Va();return d.jsx(su,{showOutsideDays:n,className:W("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...a},classNames:{root:W("w-fit",l.root),months:W("relative flex flex-col gap-4 md:flex-row",l.months),month:W("flex w-full flex-col gap-4",l.month),nav:W("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",l.nav),button_previous:W(ta({variant:o}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",l.button_previous),button_next:W(ta({variant:o}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",l.button_next),month_caption:W("flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",l.month_caption),dropdowns:W("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",l.dropdowns),dropdown_root:W("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",l.dropdown_root),dropdown:W("absolute inset-0 opacity-0",l.dropdown),caption_label:W("select-none font-medium",r==="label"?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:W("flex",l.weekdays),weekday:W("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",l.weekday),week:W("mt-2 flex w-full",l.week),week_number_header:W("w-[--cell-size] select-none",l.week_number_header),week_number:W("text-muted-foreground select-none text-[0.8rem]",l.week_number),day:W("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",l.day),range_start:W("bg-accent rounded-l-md",l.range_start),range_middle:W("rounded-none",l.range_middle),range_end:W("bg-accent rounded-r-md",l.range_end),today:W("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:W("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:W("text-muted-foreground opacity-50",l.disabled),hidden:W("invisible",l.hidden),...t},components:{Root:({className:u,rootRef:m,...c})=>d.jsx("div",{"data-slot":"calendar",ref:m,className:W(u),...c}),Chevron:({className:u,orientation:m,...c})=>m==="left"?d.jsx(nc,{className:W("size-4",u),...c}):m==="right"?d.jsx(Ea,{className:W("size-4",u),...c}):d.jsx(er,{className:W("size-4",u),...c}),DayButton:e0,WeekNumber:({children:u,...m})=>d.jsx("td",{...m,children:d.jsx("div",{className:"flex size-[--cell-size] items-center justify-center text-center",children:u})}),...s},...i})}function e0({className:e,day:t,modifiers:n,...r}){const o=Va(),a=f.useRef(null);return f.useEffect(()=>{var p;n.focused&&((p=a.current)==null||p.focus())},[n.focused]),d.jsx(kt,{ref:a,variant:"ghost",size:"icon.small","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:W("flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none","data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground","data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground","data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md","group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 group-data-[focused=true]/day:ring-[3px]","[&>span]:text-xs [&>span]:opacity-70",o.day,e),...r})}var jr={exports:{}},t0=jr.exports,yi;function n0(){return yi||(yi=1,function(e,t){(function(n,r){e.exports=r()})(t0,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},u=function(v){return(v=+v)+(v>68?1900:2e3)},m=function(v){return function(y){this[v]=+y}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var x=y.match(/([+-]|\d\d)/g),S=60*x[1]+(+x[2]||0);return S===0?0:x[0]==="+"?-S:S}(v)}],p=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(v,y){var x,S=l.meridiem;if(S){for(var D=1;D<=24;D+=1)if(v.indexOf(S(D,0,y))>-1){x=D>12;break}}else x=v===(y?"pm":"PM");return x},b={A:[i,function(v){this.afternoon=h(v,!1)}],a:[i,function(v){this.afternoon=h(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,m("seconds")],ss:[s,m("seconds")],m:[s,m("minutes")],mm:[s,m("minutes")],H:[s,m("hours")],h:[s,m("hours")],HH:[s,m("hours")],hh:[s,m("hours")],D:[s,m("day")],DD:[a,m("day")],Do:[i,function(v){var y=l.ordinal,x=v.match(/\d+/);if(this.day=x[0],y)for(var S=1;S<=31;S+=1)y(S).replace(/\[|\]/g,"")===v&&(this.day=S)}],w:[s,m("week")],ww:[a,m("week")],M:[s,m("month")],MM:[a,m("month")],MMM:[i,function(v){var y=p("months"),x=(p("monthsShort")||y.map(function(S){return S.slice(0,3)})).indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[i,function(v){var y=p("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,m("year")],YY:[a,function(v){this.year=u(v)}],YYYY:[/\d{4}/,m("year")],Z:c,ZZ:c};function g(v){var y,x;y=v,x=l&&l.formats;for(var S=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(B,Y,V){var O=V&&V.toUpperCase();return Y||x[V]||n[V]||x[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,T,R){return T||R.slice(1)})})).match(r),D=S.length,C=0;C<D;C+=1){var N=S[C],M=b[N],E=M&&M[0],L=M&&M[1];S[C]=L?{regex:E,parser:L}:N.replace(/^\[|\]$/g,"")}return function(B){for(var Y={},V=0,O=0;V<D;V+=1){var _=S[V];if(typeof _=="string")O+=_.length;else{var T=_.regex,R=_.parser,A=B.slice(O),k=T.exec(A)[0];R.call(Y,k),B=B.replace(k,"")}}return function(P){var z=P.afternoon;if(z!==void 0){var q=P.hours;z?q<12&&(P.hours+=12):q===12&&(P.hours=0),delete P.afternoon}}(Y),Y}}return function(v,y,x){x.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(u=v.parseTwoDigitYear);var S=y.prototype,D=S.parse;S.parse=function(C){var N=C.date,M=C.utc,E=C.args;this.$u=M;var L=E[1];if(typeof L=="string"){var B=E[2]===!0,Y=E[3]===!0,V=B||Y,O=E[2];Y&&(O=E[2]),l=this.$locale(),!B&&O&&(l=x.Ls[O]),this.$d=function(A,k,P,z){try{if(["x","X"].indexOf(k)>-1)return new Date((k==="X"?1e3:1)*A);var q=g(k)(A),I=q.year,j=q.month,H=q.day,$=q.hours,K=q.minutes,F=q.seconds,U=q.milliseconds,X=q.zone,J=q.week,ae=new Date,ce=H||(I||j?1:ae.getDate()),be=I||ae.getFullYear(),te=0;I&&!j||(te=j>0?j-1:ae.getMonth());var Pe,Ae=$||0,ke=K||0,Ge=F||0,Me=U||0;return X?new Date(Date.UTC(be,te,ce,Ae,ke,Ge,Me+60*X.offset*1e3)):P?new Date(Date.UTC(be,te,ce,Ae,ke,Ge,Me)):(Pe=new Date(be,te,ce,Ae,ke,Ge,Me),J&&(Pe=z(Pe).week(J).toDate()),Pe)}catch{return new Date("")}}(N,L,M,x),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),V&&N!=this.format(L)&&(this.$d=new Date("")),l={}}else if(L instanceof Array)for(var _=L.length,T=1;T<=_;T+=1){E[1]=L[T-1];var R=x.apply(this,E);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}T===_&&(this.$d=new Date(""))}else D.call(this,C)}}})}(jr)),jr.exports}var r0=n0();const o0=qa(r0);Mt.extend(o0);Mt.extend(cu);const a0={"MM/DD/YYYY":{separator:"/",pattern:/^[0-9/]$/},"DD/MM/YYYY":{separator:"/",pattern:/^[0-9/]$/},"YYYY-MM-DD":{separator:"-",pattern:/^[0-9-]$/},"DD-MM-YYYY":{separator:"-",pattern:/^[0-9-]$/}},s0=({label:e,placeholder:t,helperText:n,required:r,value:o,onSelect:a,className:s,minDate:i,maxDate:l,disabled:u,readOnly:m,locale:c="en",dateFormat:p="DD/MM/YYYY"})=>{const[h,b]=f.useState(!1),[g,v]=f.useState(""),[y,x]=f.useState(o),S=f.useMemo(()=>p,[p]),D=f.useMemo(()=>a0[S],[S]),C=f.useMemo(()=>t||S.toLowerCase(),[t,S]),N=f.useCallback(O=>{const _=O.replace(/\D/g,""),{separator:T}=D;if(_.length<=2)return _;switch(S){case"MM/DD/YYYY":case"DD/MM/YYYY":return _.length<=4?`${_.substring(0,2)}${T}${_.substring(2)}`:`${_.substring(0,2)}${T}${_.substring(2,4)}${T}${_.substring(4,8)}`;case"YYYY-MM-DD":return _.length<=4?_:_.length<=6?`${_.substring(0,4)}${T}${_.substring(4)}`:`${_.substring(0,4)}${T}${_.substring(4,6)}${T}${_.substring(6,8)}`;case"DD-MM-YYYY":return _.length<=4?`${_.substring(0,2)}${T}${_.substring(2)}`:`${_.substring(0,2)}${T}${_.substring(2,4)}${T}${_.substring(4,8)}`;default:return O}},[S,D]),M=f.useMemo(()=>O=>{const _=O.trim();return _&&Mt(_,S,!0).isValid()?Mt(_,S):null},[S]),E=f.useCallback(O=>Mt(O).format(S),[S]);f.useEffect(()=>{v(o?E(o):""),x(o),Mt.locale(c)},[o,c,E]);const L=f.useCallback(O=>{let _=O.target.value;if(v(_),!_.trim()){x(void 0),a==null||a(void 0);return}const T=N(_);T!==_&&_.replace(/\D/g,"").length>1&&(v(T),_=T);const R=M(_);if(R!=null&&R.isValid()){const A=R.toDate();(!i||A>=i)&&(!l||A<=l)&&(x(A),a==null||a(A))}},[N,M,a,i,l]),B=f.useCallback(()=>{y&&v(E(y))},[y,E]),Y=f.useCallback(O=>{O&&(v(E(O)),x(O),a==null||a(O),b(!1))},[a,E]),V=f.useCallback(O=>{if(!["Backspace","Delete","Tab","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(O.key)&&!D.pattern.test(O.key)&&!O.ctrlKey&&!O.metaKey){O.preventDefault();return}O.key==="Enter"&&(O.preventDefault(),B())},[D.pattern,B]);return d.jsxs("div",{className:W("space-y-1",s),children:[e&&d.jsxs(rn,{className:"text-sm font-medium text-gray-700",children:[e,r&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs(Wa,{open:h,onOpenChange:b,children:[d.jsxs("div",{className:"w-60 relative",children:[d.jsx(nn,{type:"text",value:g,onChange:L,onBlur:B,onKeyDown:V,placeholder:C,disabled:u,readOnly:m,className:"w-full pr-12"}),d.jsx(Ba,{asChild:!0,children:d.jsx("button",{type:"button",className:"absolute right-1 top-1/2 -translate-y-1/2 bg-transparent border-0 outline-none text-black hover:text-black focus:ring-2 focus:ring-ring",style:{height:"1.75rem",width:"1.75rem"},onClick:()=>b(O=>!O),disabled:u||m,"aria-label":"Open calendar",children:d.jsx(tc,{strokeWidth:1,className:"h-5 w-5"})})})]}),d.jsx(io,{className:"w-auto p-0",align:"start",children:d.jsx(Jx,{mode:"single",selected:y,onSelect:Y,fromDate:i,toDate:l})})]}),n&&d.jsx("p",{className:"text-xs text-gray-500",children:n})]})};function Sn({label:e,placeholder:t="Select option",options:n,leadingIcon:r,helperText:o,error:a,required:s,onValueChange:i,className:l,variant:u="default",disabled:m=!1}){return d.jsxs("div",{className:W("space-y-1",l),children:[e&&d.jsxs(rn,{className:W("text-sm font-medium",m?"text-gray-400":"text-gray-700"),children:[e,s&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs(ma,{onValueChange:i,disabled:m,children:[d.jsx(Yr,{className:W("border-input focus-within:ring-primary",a&&"border-red-500 focus-within:ring-red-500",u==="gray"&&"bg-gray-100 border-gray-300 text-gray-700",m&&"opacity-50 cursor-not-allowed"),children:d.jsxs("div",{className:"flex items-center gap-2 w-full",children:[r&&d.jsx("div",{className:"text-gray-400",children:r}),d.jsx(pa,{placeholder:t})]})}),d.jsx(Hr,{children:n.map(c=>d.jsx(zr,{value:c.value,children:c.label},c.value))})]}),(o||a)&&d.jsx("p",{className:W("text-xs",a?"text-red-500":m?"text-gray-400":"text-gray-500"),children:a||o})]})}const i0=({label:e,variant:t="filled",color:n="default",size:r="medium",deletable:o=!1,onDelete:a,onClick:s,icon:i,avatar:l,disabled:u=!1,className:m="",...c})=>{const p="inline-flex items-center gap-1 font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",h={small:"px-2 py-0.5 text-xs rounded-full",medium:"px-3 py-1 text-sm rounded-full",large:"px-4 py-1.5 text-base rounded-full"},b={default:{filled:"bg-gray-200 text-gray-800 hover:bg-gray-300",outlined:"border border-gray-300 text-gray-700 hover:bg-gray-50"},primary:{filled:"bg-blue-500 text-white hover:bg-blue-600",outlined:"border border-blue-500 text-blue-600 hover:bg-blue-50"},secondary:{filled:"bg-purple-500 text-white hover:bg-purple-600",outlined:"border border-purple-500 text-purple-600 hover:bg-purple-50"},success:{filled:"bg-green-500 text-white hover:bg-green-600",outlined:"border border-green-500 text-green-600 hover:bg-green-50"},warning:{filled:"bg-yellow-500 text-white hover:bg-yellow-600",outlined:"border border-yellow-500 text-yellow-600 hover:bg-yellow-50"},error:{filled:"bg-red-500 text-white hover:bg-red-600",outlined:"border border-red-500 text-red-600 hover:bg-red-50"}},g=u?"opacity-50 cursor-not-allowed":"cursor-pointer",v=s&&!u?"hover:shadow-md":"",y=`
171
+ `)},Kv=0,mn=[];function Xv(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Kv++)[0],a=f.useState(Ac)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=vv([e.lockRef.current],(e.shards||[]).map(ti),!0).filter(Boolean);return g.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=f.useCallback(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var y=Dr(g),x=n.current,S="deltaX"in g?g.deltaX:x[0]-y[0],D="deltaY"in g?g.deltaY:x[1]-y[1],C,N=g.target,M=Math.abs(S)>Math.abs(D)?"h":"v";if("touches"in g&&M==="h"&&N.type==="range")return!1;var E=Js(M,N);if(!E)return!0;if(E?C=M:(C=M==="v"?"h":"v",E=Js(M,N)),!E)return!1;if(!r.current&&"changedTouches"in g&&(S||D)&&(r.current=C),!C)return!0;var $=r.current||C;return Uv($,v,g,$==="h"?S:D)},[]),l=f.useCallback(function(g){var v=g;if(!(!mn.length||mn[mn.length-1]!==a)){var y="deltaY"in v?ei(v):Dr(v),x=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&qv(C.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var S=(s.current.shards||[]).map(ti).filter(Boolean).filter(function(C){return C.contains(v.target)}),D=S.length>0?i(v,S[0]):!s.current.noIsolation;D&&v.cancelable&&v.preventDefault()}}},[]),u=f.useCallback(function(g,v,y,x){var S={name:g,delta:v,target:y,should:x,shadowParent:Zv(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(D){return D!==S})},1)},[]),m=f.useCallback(function(g){n.current=Dr(g),r.current=void 0},[]),c=f.useCallback(function(g){u(g.type,ei(g),g.target,i(g,e.lockRef.current))},[]),p=f.useCallback(function(g){u(g.type,Dr(g),g.target,i(g,e.lockRef.current))},[]);f.useEffect(function(){return mn.push(a),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:p}),document.addEventListener("wheel",l,fn),document.addEventListener("touchmove",l,fn),document.addEventListener("touchstart",m,fn),function(){mn=mn.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,fn),document.removeEventListener("touchmove",l,fn),document.removeEventListener("touchstart",m,fn)}},[]);var h=e.removeScrollBar,b=e.inert;return f.createElement(f.Fragment,null,b?f.createElement(a,{styles:Vv(o)}):null,h?f.createElement(Fv,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Zv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Qv=kv(Pc,Xv);var sr=f.forwardRef(function(e,t){return f.createElement(ao,ft({},e,{ref:t,sideCar:Qv}))});sr.classNames=ao.classNames;var so="Popover",[Lc,dD]=Be(so,[Ft]),ir=Ft(),[Jv,Wt]=Lc(so),Fc=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=ir(t),l=f.useRef(null),[u,m]=f.useState(!1),[c,p]=tt({prop:r,defaultProp:o??!1,onChange:a,caller:so});return d.jsx(rr,{...i,children:d.jsx(Jv,{scope:t,contentId:Ee(),triggerRef:l,open:c,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(h=>!h),[p]),hasCustomAnchor:u,onCustomAnchorAdd:f.useCallback(()=>m(!0),[]),onCustomAnchorRemove:f.useCallback(()=>m(!1),[]),modal:s,children:n})})};Fc.displayName=so;var Wc="PopoverAnchor",ey=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Wt(Wc,n),a=ir(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return f.useEffect(()=>(s(),()=>i()),[s,i]),d.jsx(or,{...a,...r,ref:t})});ey.displayName=Wc;var Bc="PopoverTrigger",Yc=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Wt(Bc,n),a=ir(n),s=he(t,o.triggerRef),i=d.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":qc(o.open),...r,ref:s,onClick:Z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:d.jsx(or,{asChild:!0,...a,children:i})});Yc.displayName=Bc;var Fa="PopoverPortal",[ty,ny]=Lc(Fa,{forceMount:void 0}),Hc=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Wt(Fa,t);return d.jsx(ty,{scope:t,forceMount:n,children:d.jsx(ze,{present:n||a.open,children:d.jsx(ar,{asChild:!0,container:o,children:r})})})};Hc.displayName=Fa;var wn="PopoverContent",zc=f.forwardRef((e,t)=>{const n=ny(wn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Wt(wn,e.__scopePopover);return d.jsx(ze,{present:r||a.open,children:a.modal?d.jsx(oy,{...o,ref:t}):d.jsx(ay,{...o,ref:t})})});zc.displayName=wn;var ry=It("PopoverContent.RemoveScroll"),oy=f.forwardRef((e,t)=>{const n=Wt(wn,e.__scopePopover),r=f.useRef(null),o=he(t,r),a=f.useRef(!1);return f.useEffect(()=>{const s=r.current;if(s)return oo(s)},[]),d.jsx(sr,{as:ry,allowPinchZoom:!0,children:d.jsx(Gc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,u=i.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),ay=f.forwardRef((e,t)=>{const n=Wt(wn,e.__scopePopover),r=f.useRef(!1),o=f.useRef(!1);return d.jsx(Gc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Gc=f.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:m,...c}=e,p=Wt(wn,n),h=ir(n);return Qr(),d.jsx(tr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(En,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:m,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),children:d.jsx(no,{"data-state":qc(p.open),role:"dialog",id:p.contentId,...h,...c,ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Uc="PopoverClose",sy=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Wt(Uc,n);return d.jsx(ee.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});sy.displayName=Uc;var iy="PopoverArrow",cy=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ir(n);return d.jsx(ro,{...o,...r,ref:t})});cy.displayName=iy;function qc(e){return e?"open":"closed"}var ly=Fc,uy=Yc,dy=Hc,Vc=zc;const Wa=ly,Ba=uy,io=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(dy,{children:d.jsx(Vc,{ref:r,sideOffset:t,className:F("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n})}));io.displayName=Vc.displayName;function ni(e,[t,n]){return Math.min(n,Math.max(t,e))}function Ya(e){const t=e+"CollectionProvider",[n,r]=Be(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:v,children:y}=g,x=w.useRef(null),S=w.useRef(new Map).current;return d.jsx(o,{scope:v,itemMap:S,collectionRef:x,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=It(i),u=w.forwardRef((g,v)=>{const{scope:y,children:x}=g,S=a(i,y),D=he(v,S.collectionRef);return d.jsx(l,{ref:D,children:x})});u.displayName=i;const m=e+"CollectionItemSlot",c="data-radix-collection-item",p=It(m),h=w.forwardRef((g,v)=>{const{scope:y,children:x,...S}=g,D=w.useRef(null),C=he(v,D),N=a(m,y);return w.useEffect(()=>(N.itemMap.set(D,{ref:D,...S}),()=>void N.itemMap.delete(D))),d.jsx(p,{[c]:"",ref:C,children:x})});h.displayName=m;function b(g){const v=a(e+"CollectionConsumer",g);return w.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${c}]`));return Array.from(v.itemMap.values()).sort((N,M)=>S.indexOf(N.ref.current)-S.indexOf(M.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},b,r]}var fy=f.createContext(void 0);function cr(e){const t=f.useContext(fy);return e||t||"ltr"}function Ha(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Kc=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"}),my="VisuallyHidden",Xc=f.forwardRef((e,t)=>d.jsx(ee.span,{...e,ref:t,style:{...Kc,...e.style}}));Xc.displayName=my;var py=Xc,hy=[" ","Enter","ArrowUp","ArrowDown"],gy=[" ","Enter"],Qt="Select",[co,lo,vy]=Ya(Qt),[Tn,fD]=Be(Qt,[vy,Ft]),uo=Ft(),[yy,Bt]=Tn(Qt),[by,wy]=Tn(Qt),Zc=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:l,dir:u,name:m,autoComplete:c,disabled:p,required:h,form:b}=e,g=uo(t),[v,y]=f.useState(null),[x,S]=f.useState(null),[D,C]=f.useState(!1),N=cr(u),[M,E]=tt({prop:r,defaultProp:o??!1,onChange:a,caller:Qt}),[$,W]=tt({prop:s,defaultProp:i,onChange:l,caller:Qt}),Y=f.useRef(null),U=v?b||!!v.closest("form"):!0,[A,T]=f.useState(new Set),_=Array.from(A).map(R=>R.props.value).join(";");return d.jsx(rr,{...g,children:d.jsxs(yy,{required:h,scope:t,trigger:v,onTriggerChange:y,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:D,onValueNodeHasChildrenChange:C,contentId:Ee(),value:$,onValueChange:W,open:M,onOpenChange:E,dir:N,triggerPointerDownPosRef:Y,disabled:p,children:[d.jsx(co.Provider,{scope:t,children:d.jsx(by,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(R=>{T(P=>new Set(P).add(R))},[]),onNativeOptionRemove:f.useCallback(R=>{T(P=>{const k=new Set(P);return k.delete(R),k})},[]),children:n})}),U?d.jsxs(xl,{"aria-hidden":!0,required:h,tabIndex:-1,name:m,autoComplete:c,value:$,onChange:R=>W(R.target.value),disabled:p,form:b,children:[$===void 0?d.jsx("option",{value:""}):null,Array.from(A)]},_):null]})})};Zc.displayName=Qt;var Qc="SelectTrigger",Jc=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=uo(n),s=Bt(Qc,n),i=s.disabled||r,l=he(t,s.onTriggerChange),u=lo(n),m=f.useRef("touch"),[c,p,h]=Cl(g=>{const v=u().filter(S=>!S.disabled),y=v.find(S=>S.value===s.value),x=Ml(v,g,y);x!==void 0&&s.onValueChange(x.value)}),b=g=>{i||(s.onOpenChange(!0),h()),g&&(s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return d.jsx(or,{asChild:!0,...a,children:d.jsx(ee.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Sl(s.value)?"":void 0,...o,ref:l,onClick:Z(o.onClick,g=>{g.currentTarget.focus(),m.current!=="mouse"&&b(g)}),onPointerDown:Z(o.onPointerDown,g=>{m.current=g.pointerType;const v=g.target;v.hasPointerCapture(g.pointerId)&&v.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(b(g),g.preventDefault())}),onKeyDown:Z(o.onKeyDown,g=>{const v=c.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&p(g.key),!(v&&g.key===" ")&&hy.includes(g.key)&&(b(),g.preventDefault())})})})});Jc.displayName=Qc;var el="SelectValue",tl=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...i}=e,l=Bt(el,n),{onValueNodeHasChildrenChange:u}=l,m=a!==void 0,c=he(t,l.onValueNodeChange);return Re(()=>{u(m)},[u,m]),d.jsx(ee.span,{...i,ref:c,style:{pointerEvents:"none"},children:Sl(l.value)?d.jsx(d.Fragment,{children:s}):a})});tl.displayName=el;var xy="SelectIcon",nl=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(ee.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});nl.displayName=xy;var Sy="SelectPortal",rl=e=>d.jsx(ar,{asChild:!0,...e});rl.displayName=Sy;var Jt="SelectContent",ol=f.forwardRef((e,t)=>{const n=Bt(Jt,e.__scopeSelect),[r,o]=f.useState();if(Re(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?Xr.createPortal(d.jsx(al,{scope:e.__scopeSelect,children:d.jsx(co.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(sl,{...e,ref:t})});ol.displayName=Jt;var ot=10,[al,Yt]=Tn(Jt),Cy="SelectContentImpl",My=It("SelectContent.RemoveScroll"),sl=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:l,align:u,alignOffset:m,arrowPadding:c,collisionBoundary:p,collisionPadding:h,sticky:b,hideWhenDetached:g,avoidCollisions:v,...y}=e,x=Bt(Jt,n),[S,D]=f.useState(null),[C,N]=f.useState(null),M=he(t,L=>D(L)),[E,$]=f.useState(null),[W,Y]=f.useState(null),U=lo(n),[A,T]=f.useState(!1),_=f.useRef(!1);f.useEffect(()=>{if(S)return oo(S)},[S]),Qr();const R=f.useCallback(L=>{const[q,...X]=U().map(ie=>ie.ref.current),[Q]=X.slice(-1),re=document.activeElement;for(const ie of L)if(ie===re||(ie==null||ie.scrollIntoView({block:"nearest"}),ie===q&&C&&(C.scrollTop=0),ie===Q&&C&&(C.scrollTop=C.scrollHeight),ie==null||ie.focus(),document.activeElement!==re))return},[U,C]),P=f.useCallback(()=>R([E,S]),[R,E,S]);f.useEffect(()=>{A&&P()},[A,P]);const{onOpenChange:k,triggerPointerDownPosRef:O}=x;f.useEffect(()=>{if(S){let L={x:0,y:0};const q=Q=>{var re,ie;L={x:Math.abs(Math.round(Q.pageX)-(((re=O.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(Q.pageY)-(((ie=O.current)==null?void 0:ie.y)??0))}},X=Q=>{L.x<=10&&L.y<=10?Q.preventDefault():S.contains(Q.target)||k(!1),document.removeEventListener("pointermove",q),O.current=null};return O.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",X,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",X,{capture:!0})}}},[S,k,O]),f.useEffect(()=>{const L=()=>k(!1);return window.addEventListener("blur",L),window.addEventListener("resize",L),()=>{window.removeEventListener("blur",L),window.removeEventListener("resize",L)}},[k]);const[H,V]=Cl(L=>{const q=U().filter(re=>!re.disabled),X=q.find(re=>re.ref.current===document.activeElement),Q=Ml(q,L,X);Q&&setTimeout(()=>Q.ref.current.focus())}),I=f.useCallback((L,q,X)=>{const Q=!_.current&&!X;(x.value!==void 0&&x.value===q||Q)&&($(L),Q&&(_.current=!0))},[x.value]),j=f.useCallback(()=>S==null?void 0:S.focus(),[S]),B=f.useCallback((L,q,X)=>{const Q=!_.current&&!X;(x.value!==void 0&&x.value===q||Q)&&Y(L)},[x.value]),z=r==="popper"?ca:il,K=z===ca?{side:i,sideOffset:l,align:u,alignOffset:m,arrowPadding:c,collisionBoundary:p,collisionPadding:h,sticky:b,hideWhenDetached:g,avoidCollisions:v}:{};return d.jsx(al,{scope:n,content:S,viewport:C,onViewportChange:N,itemRefCallback:I,selectedItem:E,onItemLeave:j,itemTextRefCallback:B,focusSelectedItem:P,selectedItemText:W,position:r,isPositioned:A,searchRef:H,children:d.jsx(sr,{as:My,allowPinchZoom:!0,children:d.jsx(tr,{asChild:!0,trapped:x.open,onMountAutoFocus:L=>{L.preventDefault()},onUnmountAutoFocus:Z(o,L=>{var q;(q=x.trigger)==null||q.focus({preventScroll:!0}),L.preventDefault()}),children:d.jsx(En,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:L=>L.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:d.jsx(z,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:L=>L.preventDefault(),...y,...K,onPlaced:()=>T(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Z(y.onKeyDown,L=>{const q=L.ctrlKey||L.altKey||L.metaKey;if(L.key==="Tab"&&L.preventDefault(),!q&&L.key.length===1&&V(L.key),["ArrowUp","ArrowDown","Home","End"].includes(L.key)){let Q=U().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(L.key)&&(Q=Q.slice().reverse()),["ArrowUp","ArrowDown"].includes(L.key)){const re=L.target,ie=Q.indexOf(re);Q=Q.slice(ie+1)}setTimeout(()=>R(Q)),L.preventDefault()}})})})})})})});sl.displayName=Cy;var Dy="SelectItemAlignedPosition",il=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Bt(Jt,n),s=Yt(Jt,n),[i,l]=f.useState(null),[u,m]=f.useState(null),c=he(t,M=>m(M)),p=lo(n),h=f.useRef(!1),b=f.useRef(!0),{viewport:g,selectedItem:v,selectedItemText:y,focusSelectedItem:x}=s,S=f.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&u&&g&&v&&y){const M=a.trigger.getBoundingClientRect(),E=u.getBoundingClientRect(),$=a.valueNode.getBoundingClientRect(),W=y.getBoundingClientRect();if(a.dir!=="rtl"){const re=W.left-E.left,ie=$.left-re,ye=M.left-ie,J=M.width+ye,Te=Math.max(J,E.width),_e=window.innerWidth-ot,oe=ni(ie,[ot,Math.max(ot,_e-Te)]);i.style.minWidth=J+"px",i.style.left=oe+"px"}else{const re=E.right-W.right,ie=window.innerWidth-$.right-re,ye=window.innerWidth-M.right-ie,J=M.width+ye,Te=Math.max(J,E.width),_e=window.innerWidth-ot,oe=ni(ie,[ot,Math.max(ot,_e-Te)]);i.style.minWidth=J+"px",i.style.right=oe+"px"}const Y=p(),U=window.innerHeight-ot*2,A=g.scrollHeight,T=window.getComputedStyle(u),_=parseInt(T.borderTopWidth,10),R=parseInt(T.paddingTop,10),P=parseInt(T.borderBottomWidth,10),k=parseInt(T.paddingBottom,10),O=_+R+A+k+P,H=Math.min(v.offsetHeight*5,O),V=window.getComputedStyle(g),I=parseInt(V.paddingTop,10),j=parseInt(V.paddingBottom,10),B=M.top+M.height/2-ot,z=U-B,K=v.offsetHeight/2,L=v.offsetTop+K,q=_+R+L,X=O-q;if(q<=B){const re=Y.length>0&&v===Y[Y.length-1].ref.current;i.style.bottom="0px";const ie=u.clientHeight-g.offsetTop-g.offsetHeight,ye=Math.max(z,K+(re?j:0)+ie+P),J=q+ye;i.style.height=J+"px"}else{const re=Y.length>0&&v===Y[0].ref.current;i.style.top="0px";const ye=Math.max(B,_+g.offsetTop+(re?I:0)+K)+X;i.style.height=ye+"px",g.scrollTop=q-B+g.offsetTop}i.style.margin=`${ot}px 0`,i.style.minHeight=H+"px",i.style.maxHeight=U+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[p,a.trigger,a.valueNode,i,u,g,v,y,a.dir,r]);Re(()=>S(),[S]);const[D,C]=f.useState();Re(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const N=f.useCallback(M=>{M&&b.current===!0&&(S(),x==null||x(),b.current=!1)},[S,x]);return d.jsx(Ey,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:d.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:d.jsx(ee.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});il.displayName=Dy;var ky="SelectPopperPosition",ca=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=ot,...a}=e,s=uo(n);return d.jsx(no,{...s,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.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)"}})});ca.displayName=ky;var[Ey,za]=Tn(Jt,{}),la="SelectViewport",cl=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Yt(la,n),s=za(la,n),i=he(t,a.onViewportChange),l=f.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),d.jsx(co.Slot,{scope:n,children:d.jsx(ee.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,u=>{const m=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:p}=s;if(p!=null&&p.current&&c){const h=Math.abs(l.current-m.scrollTop);if(h>0){const b=window.innerHeight-ot*2,g=parseFloat(c.style.minHeight),v=parseFloat(c.style.height),y=Math.max(g,v);if(y<b){const x=y+h,S=Math.min(b,x),D=x-S;c.style.height=S+"px",c.style.bottom==="0px"&&(m.scrollTop=D>0?D:0,c.style.justifyContent="flex-end")}}}l.current=m.scrollTop})})})]})});cl.displayName=la;var ll="SelectGroup",[Ny,Ry]=Tn(ll),Ty=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ee();return d.jsx(Ny,{scope:n,id:o,children:d.jsx(ee.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ty.displayName=ll;var ul="SelectLabel",dl=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ry(ul,n);return d.jsx(ee.div,{id:o.id,...r,ref:t})});dl.displayName=ul;var Br="SelectItem",[_y,fl]=Tn(Br),ml=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,i=Bt(Br,n),l=Yt(Br,n),u=i.value===r,[m,c]=f.useState(a??""),[p,h]=f.useState(!1),b=he(t,x=>{var S;return(S=l.itemRefCallback)==null?void 0:S.call(l,x,r,o)}),g=Ee(),v=f.useRef("touch"),y=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(_y,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:f.useCallback(x=>{c(S=>S||((x==null?void 0:x.textContent)??"").trim())},[]),children:d.jsx(co.ItemSlot,{scope:n,value:r,disabled:o,textValue:m,children:d.jsx(ee.div,{role:"option","aria-labelledby":g,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:b,onFocus:Z(s.onFocus,()=>h(!0)),onBlur:Z(s.onBlur,()=>h(!1)),onClick:Z(s.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:Z(s.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:Z(s.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:Z(s.onPointerMove,x=>{var S;v.current=x.pointerType,o?(S=l.onItemLeave)==null||S.call(l):v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(s.onPointerLeave,x=>{var S;x.currentTarget===document.activeElement&&((S=l.onItemLeave)==null||S.call(l))}),onKeyDown:Z(s.onKeyDown,x=>{var D;((D=l.searchRef)==null?void 0:D.current)!==""&&x.key===" "||(gy.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});ml.displayName=Br;var Yn="SelectItemText",pl=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=Bt(Yn,n),i=Yt(Yn,n),l=fl(Yn,n),u=wy(Yn,n),[m,c]=f.useState(null),p=he(t,y=>c(y),l.onItemTextChange,y=>{var x;return(x=i.itemTextRefCallback)==null?void 0:x.call(i,y,l.value,l.disabled)}),h=m==null?void 0:m.textContent,b=f.useMemo(()=>d.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=u;return Re(()=>(g(b),()=>v(b)),[g,v,b]),d.jsxs(d.Fragment,{children:[d.jsx(ee.span,{id:l.textId,...a,ref:p}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Xr.createPortal(a.children,s.valueNode):null]})});pl.displayName=Yn;var hl="SelectItemIndicator",gl=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return fl(hl,n).isSelected?d.jsx(ee.span,{"aria-hidden":!0,...r,ref:t}):null});gl.displayName=hl;var ua="SelectScrollUpButton",vl=f.forwardRef((e,t)=>{const n=Yt(ua,e.__scopeSelect),r=za(ua,e.__scopeSelect),[o,a]=f.useState(!1),s=he(t,r.onScrollButtonChange);return Re(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=l.scrollTop>0;a(u)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?d.jsx(bl,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});vl.displayName=ua;var da="SelectScrollDownButton",yl=f.forwardRef((e,t)=>{const n=Yt(da,e.__scopeSelect),r=za(da,e.__scopeSelect),[o,a]=f.useState(!1),s=he(t,r.onScrollButtonChange);return Re(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=l.scrollHeight-l.clientHeight,m=Math.ceil(l.scrollTop)<u;a(m)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?d.jsx(bl,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});yl.displayName=da;var bl=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Yt("SelectScrollButton",n),s=f.useRef(null),i=lo(n),l=f.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return f.useEffect(()=>()=>l(),[l]),Re(()=>{var m;const u=i().find(c=>c.ref.current===document.activeElement);(m=u==null?void 0:u.ref.current)==null||m.scrollIntoView({block:"nearest"})},[i]),d.jsx(ee.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{l()})})}),Oy="SelectSeparator",wl=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(ee.div,{"aria-hidden":!0,...r,ref:t})});wl.displayName=Oy;var fa="SelectArrow",Py=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=uo(n),a=Bt(fa,n),s=Yt(fa,n);return a.open&&s.position==="popper"?d.jsx(ro,{...o,...r,ref:t}):null});Py.displayName=fa;var Ay="SelectBubbleInput",xl=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),a=he(r,o),s=Ha(t);return f.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&m){const c=new Event("change",{bubbles:!0});m.call(i,t),i.dispatchEvent(c)}},[s,t]),d.jsx(ee.select,{...n,style:{...Kc,...n.style},ref:a,defaultValue:t})});xl.displayName=Ay;function Sl(e){return e===""||e===void 0}function Cl(e){const t=et(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(s=>{const i=n.current+s;t(i),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(i)},[t]),a=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Ml(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Iy(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Iy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var jy=Zc,Dl=Jc,$y=tl,Ly=nl,Fy=rl,kl=ol,Wy=cl,El=dl,Nl=ml,By=pl,Yy=gl,Rl=vl,Tl=yl,_l=wl;const ma=jy,pa=$y,Yr=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Dl,{ref:r,className:F("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 data-[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,d.jsx(Ly,{asChild:!0,children:d.jsx(er,{strokeWidth:1.5,className:"h-4 w-4 text-foreground"})})]}));Yr.displayName=Dl.displayName;const Ol=f.forwardRef(({className:e,...t},n)=>d.jsx(Rl,{ref:n,className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Zp,{className:"h-4 w-4"})}));Ol.displayName=Rl.displayName;const Pl=f.forwardRef(({className:e,...t},n)=>d.jsx(Tl,{ref:n,className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(er,{className:"h-4 w-4"})}));Pl.displayName=Tl.displayName;const Hr=f.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>d.jsx(Fy,{children:d.jsxs(kl,{ref:o,className:F("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[d.jsx(Ol,{}),d.jsx(Wy,{className:F("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),d.jsx(Pl,{})]})}));Hr.displayName=kl.displayName;const Hy=f.forwardRef(({className:e,...t},n)=>d.jsx(El,{ref:n,className:F("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Hy.displayName=El.displayName;const zr=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Nl,{ref:r,className:F("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:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Yy,{children:d.jsx(Jn,{className:"h-4 w-4"})})}),d.jsx(By,{children:t})]}));zr.displayName=Nl.displayName;const zy=f.forwardRef(({className:e,...t},n)=>d.jsx(_l,{ref:n,className:F("-mx-1 my-1 h-px bg-muted",e),...t}));zy.displayName=_l.displayName;function Gy(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const $o={},Hn={};function Gn(e,t){try{const r=($o[e]||($o[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return r in Hn?Hn[r]:ri(r,r.split(":"))}catch{if(e in Hn)return Hn[e];const n=e==null?void 0:e.match(Uy);return n?ri(e,n.slice(1)):NaN}}const Uy=/([+-]\d\d):?(\d\d)?/;function ri(e,t){const n=+(t[0]||0),r=+(t[1]||0);return Hn[e]=n>0?n*60+r:n*60-r}class pt extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Gn(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Al(this),ha(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new pt(...n,t):new pt(Date.now(),t)}withTimeZone(t){return new pt(+this,t)}getTimezoneOffset(){return-Gn(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),ha(this),+this}[Symbol.for("constructDateFrom")](t){return new pt(+new Date(t),this.timeZone)}}const oi=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!oi.test(e))return;const t=e.replace(oi,"$1UTC");pt.prototype[t]&&(e.startsWith("get")?pt.prototype[e]=function(){return this.internal[t]()}:(pt.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),qy(this),+this},pt.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),ha(this),+this}))});function ha(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function qy(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Al(e)}function Al(e){const t=Gn(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),o=-new Date(+n).getTimezoneOffset(),a=r-o,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const i=r-t;i&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+i);const l=Gn(e.timeZone,e),m=-new Date(+e).getTimezoneOffset()-l,c=l!==t,p=m-i;if(c&&p){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+p);const h=Gn(e.timeZone,e),b=l-h;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}class We extends pt{static tz(t,...n){return n.length?new We(...n,t):new We(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Gy(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new We(+this,t)}[Symbol.for("constructDateFrom")](t){return new We(+new Date(t),this.timeZone)}}var le;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(le||(le={}));var De;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(De||(De={}));var at;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(at||(at={}));var Ke;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Ke||(Ke={}));const Il=6048e5,Vy=864e5,ai=Symbol.for("constructDateFrom");function Ae(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ai in e?e[ai](t):e instanceof Date?new e.constructor(t):new Date(t)}function Se(e,t){return Ae(t||e,e)}function jl(e,t,n){const r=Se(e,n==null?void 0:n.in);return isNaN(t)?Ae(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function $l(e,t,n){const r=Se(e,n==null?void 0:n.in);if(isNaN(t))return Ae(e,NaN);if(!t)return r;const o=r.getDate(),a=Ae(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return o>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let Ky={};function lr(){return Ky}function xn(e,t){var i,l,u,m;const n=lr(),r=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((m=(u=n.locale)==null?void 0:u.options)==null?void 0:m.weekStartsOn)??0,o=Se(e,t==null?void 0:t.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function Vn(e,t){return xn(e,{...t,weekStartsOn:1})}function Ll(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getFullYear(),o=Ae(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=Vn(o),s=Ae(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const i=Vn(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function si(e){const t=Se(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function _n(e,...t){const n=Ae.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Kn(e,t){const n=Se(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Fl(e,t,n){const[r,o]=_n(n==null?void 0:n.in,e,t),a=Kn(r),s=Kn(o),i=+a-si(a),l=+s-si(s);return Math.round((i-l)/Vy)}function Xy(e,t){const n=Ll(e,t),r=Ae(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Vn(r)}function Zy(e,t,n){return jl(e,t*7,n)}function Qy(e,t,n){return $l(e,t*12,n)}function Jy(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ae.bind(null,o));const a=Se(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),Ae(r,n||NaN)}function eb(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ae.bind(null,o));const a=Se(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),Ae(r,n||NaN)}function tb(e,t,n){const[r,o]=_n(n==null?void 0:n.in,e,t);return+Kn(r)==+Kn(o)}function Wl(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function nb(e){return!(!Wl(e)&&typeof e!="number"||isNaN(+Se(e)))}function rb(e,t,n){const[r,o]=_n(n==null?void 0:n.in,e,t),a=r.getFullYear()-o.getFullYear(),s=r.getMonth()-o.getMonth();return a*12+s}function ob(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function ab(e,t){const[n,r]=_n(e,t.start,t.end);return{start:n,end:r}}function sb(e,t){const{start:n,end:r}=ab(t==null?void 0:t.in,e);let o=+n>+r;const a=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setDate(1);let i=1;const l=[];for(;+s<=a;)l.push(Ae(n,s)),s.setMonth(s.getMonth()+i);return o?l.reverse():l}function ib(e,t){const n=Se(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function cb(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Bl(e,t){const n=Se(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Yl(e,t){var i,l,u,m;const n=lr(),r=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((m=(u=n.locale)==null?void 0:u.options)==null?void 0:m.weekStartsOn)??0,o=Se(e,t==null?void 0:t.in),a=o.getDay(),s=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function lb(e,t){return Yl(e,{...t,weekStartsOn:1})}const ub={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},db=(e,t,n)=>{let r;const o=ub[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Lo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const fb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},mb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},pb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hb={date:Lo({formats:fb,defaultWidth:"full"}),time:Lo({formats:mb,defaultWidth:"full"}),dateTime:Lo({formats:pb,defaultWidth:"full"})},gb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vb=(e,t,n,r)=>gb[e];function $n(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=n!=null&&n.width?String(n.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const yb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},bb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wb={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},xb={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Sb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Cb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Mb=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Db={ordinalNumber:Mb,era:$n({values:yb,defaultWidth:"wide"}),quarter:$n({values:bb,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$n({values:wb,defaultWidth:"wide"}),day:$n({values:xb,defaultWidth:"wide"}),dayPeriod:$n({values:Sb,defaultWidth:"wide",formattingValues:Cb,defaultFormattingWidth:"wide"})};function Ln(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?Eb(i,c=>c.test(s)):kb(i,c=>c.test(s));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const m=t.slice(s.length);return{value:u,rest:m}}}function kb(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Eb(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Nb(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const Rb=/^(\d+)(th|st|nd|rd)?/i,Tb=/\d+/i,_b={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ob={any:[/^b/i,/^(a|c)/i]},Pb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ab={any:[/1/i,/2/i,/3/i,/4/i]},Ib={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},jb={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$b={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Lb={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fb={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Wb={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Bb={ordinalNumber:Nb({matchPattern:Rb,parsePattern:Tb,valueCallback:e=>parseInt(e,10)}),era:Ln({matchPatterns:_b,defaultMatchWidth:"wide",parsePatterns:Ob,defaultParseWidth:"any"}),quarter:Ln({matchPatterns:Pb,defaultMatchWidth:"wide",parsePatterns:Ab,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ln({matchPatterns:Ib,defaultMatchWidth:"wide",parsePatterns:jb,defaultParseWidth:"any"}),day:Ln({matchPatterns:$b,defaultMatchWidth:"wide",parsePatterns:Lb,defaultParseWidth:"any"}),dayPeriod:Ln({matchPatterns:Fb,defaultMatchWidth:"any",parsePatterns:Wb,defaultParseWidth:"any"})},Ga={code:"en-US",formatDistance:db,formatLong:hb,formatRelative:vb,localize:Db,match:Bb,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Yb(e,t){const n=Se(e,t==null?void 0:t.in);return Fl(n,Bl(n))+1}function Hl(e,t){const n=Se(e,t==null?void 0:t.in),r=+Vn(n)-+Xy(n);return Math.round(r/Il)+1}function zl(e,t){var m,c,p,h;const n=Se(e,t==null?void 0:t.in),r=n.getFullYear(),o=lr(),a=(t==null?void 0:t.firstWeekContainsDate)??((c=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:c.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(p=o.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=Ae((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=xn(s,t),l=Ae((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=xn(l,t);return+n>=+i?r+1:+n>=+u?r:r-1}function Hb(e,t){var i,l,u,m;const n=lr(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(u=n.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)??1,o=zl(e,t),a=Ae((t==null?void 0:t.in)||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),xn(a,t)}function Gl(e,t){const n=Se(e,t==null?void 0:t.in),r=+xn(n,t)-+Hb(n,t);return Math.round(r/Il)+1}function we(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ot={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return we(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):we(n+1,2)},d(e,t){return we(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return we(e.getHours()%12||12,t.length)},H(e,t){return we(e.getHours(),t.length)},m(e,t){return we(e.getMinutes(),t.length)},s(e,t){return we(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return we(o,t.length)}},pn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ii={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Ot.y(e,t)},Y:function(e,t,n,r){const o=zl(e,r),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return we(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):we(a,t.length)},R:function(e,t){const n=Ll(e);return we(n,t.length)},u:function(e,t){const n=e.getFullYear();return we(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return we(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return we(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ot.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return we(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Gl(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):we(o,t.length)},I:function(e,t,n){const r=Hl(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):we(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ot.d(e,t)},D:function(e,t,n){const r=Yb(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):we(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return we(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return we(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return we(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=pn.noon:r===0?o=pn.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=pn.evening:r>=12?o=pn.afternoon:r>=4?o=pn.morning:o=pn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ot.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ot.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):we(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):we(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ot.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ot.s(e,t)},S:function(e,t){return Ot.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return li(r);case"XXXX":case"XX":return Xt(r);case"XXXXX":case"XXX":default:return Xt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return li(r);case"xxxx":case"xx":return Xt(r);case"xxxxx":case"xxx":default:return Xt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ci(r,":");case"OOOO":default:return"GMT"+Xt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ci(r,":");case"zzzz":default:return"GMT"+Xt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return we(r,t.length)},T:function(e,t,n){return we(+e,t.length)}};function ci(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+we(a,2)}function li(e,t){return e%60===0?(e>0?"-":"+")+we(Math.abs(e)/60,2):Xt(e,t)}function Xt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=we(Math.trunc(r/60),2),a=we(r%60,2);return n+o+t+a}const ui=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ul=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},zb=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ui(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",ui(r,t)).replace("{{time}}",Ul(o,t))},Gb={p:Ul,P:zb},Ub=/^D+$/,qb=/^Y+$/,Vb=["D","DD","YY","YYYY"];function Kb(e){return Ub.test(e)}function Xb(e){return qb.test(e)}function Zb(e,t,n){const r=Qb(e,t,n);if(console.warn(r),Vb.includes(e))throw new RangeError(r)}function Qb(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Jb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ew=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tw=/^'([^]*?)'?$/,nw=/''/g,rw=/[a-zA-Z]/;function ow(e,t,n){var m,c,p,h,b,g,v,y;const r=lr(),o=(n==null?void 0:n.locale)??r.locale??Ga,a=(n==null?void 0:n.firstWeekContainsDate)??((c=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(p=r.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((g=(b=n==null?void 0:n.locale)==null?void 0:b.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((y=(v=r.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??0,i=Se(e,n==null?void 0:n.in);if(!nb(i))throw new RangeError("Invalid time value");let l=t.match(ew).map(x=>{const S=x[0];if(S==="p"||S==="P"){const D=Gb[S];return D(x,o.formatLong)}return x}).join("").match(Jb).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const S=x[0];if(S==="'")return{isToken:!1,value:aw(x)};if(ii[S])return{isToken:!0,value:x};if(S.match(rw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const u={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return l.map(x=>{if(!x.isToken)return x.value;const S=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Xb(S)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Kb(S))&&Zb(S,t,String(e));const D=ii[S[0]];return D(i,S,o.localize,u)}).join("")}function aw(e){const t=e.match(tw);return t?t[1].replace(nw,"'"):e}function sw(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),a=Ae(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function iw(e,t){return Se(e,t==null?void 0:t.in).getMonth()}function cw(e,t){return Se(e,t==null?void 0:t.in).getFullYear()}function lw(e,t){return+Se(e)>+Se(t)}function uw(e,t){return+Se(e)<+Se(t)}function dw(e,t,n){const[r,o]=_n(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function fw(e,t,n){const[r,o]=_n(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()}function mw(e,t,n){const r=Se(e,n==null?void 0:n.in),o=r.getFullYear(),a=r.getDate(),s=Ae(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const i=sw(s);return r.setMonth(t,Math.min(a,i)),r}function pw(e,t,n){const r=Se(e,n==null?void 0:n.in);return isNaN(+r)?Ae(e,NaN):(r.setFullYear(t),r)}const di=5,hw=4;function gw(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,di*7-1);return t.getMonth(e)===t.getMonth(a)?di:hw}function ql(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function vw(e,t){const n=ql(e,t),r=gw(e,t);return t.addDays(n,r*7-1)}class Nt{constructor(t,n){this.Date=Date,this.today=()=>{var r;return(r=this.overrides)!=null&&r.today?this.overrides.today():this.options.timeZone?We.tz(this.options.timeZone):new this.Date},this.newDate=(r,o,a)=>{var s;return(s=this.overrides)!=null&&s.newDate?this.overrides.newDate(r,o,a):this.options.timeZone?new We(r,o,a,this.options.timeZone):new Date(r,o,a)},this.addDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addDays?this.overrides.addDays(r,o):jl(r,o)},this.addMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addMonths?this.overrides.addMonths(r,o):$l(r,o)},this.addWeeks=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addWeeks?this.overrides.addWeeks(r,o):Zy(r,o)},this.addYears=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addYears?this.overrides.addYears(r,o):Qy(r,o)},this.differenceInCalendarDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):Fl(r,o)},this.differenceInCalendarMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):rb(r,o)},this.eachMonthOfInterval=r=>{var o;return(o=this.overrides)!=null&&o.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):sb(r)},this.endOfBroadcastWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):vw(r,this)},this.endOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfISOWeek?this.overrides.endOfISOWeek(r):lb(r)},this.endOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.endOfMonth?this.overrides.endOfMonth(r):ob(r)},this.endOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.endOfWeek?this.overrides.endOfWeek(r,o):Yl(r,this.options)},this.endOfYear=r=>{var o;return(o=this.overrides)!=null&&o.endOfYear?this.overrides.endOfYear(r):cb(r)},this.format=(r,o,a)=>{var i;const s=(i=this.overrides)!=null&&i.format?this.overrides.format(r,o,this.options):ow(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.getISOWeek?this.overrides.getISOWeek(r):Hl(r)},this.getMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getMonth?this.overrides.getMonth(r,this.options):iw(r,this.options)},this.getYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getYear?this.overrides.getYear(r,this.options):cw(r,this.options)},this.getWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getWeek?this.overrides.getWeek(r,this.options):Gl(r,this.options)},this.isAfter=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isAfter?this.overrides.isAfter(r,o):lw(r,o)},this.isBefore=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isBefore?this.overrides.isBefore(r,o):uw(r,o)},this.isDate=r=>{var o;return(o=this.overrides)!=null&&o.isDate?this.overrides.isDate(r):Wl(r)},this.isSameDay=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameDay?this.overrides.isSameDay(r,o):tb(r,o)},this.isSameMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameMonth?this.overrides.isSameMonth(r,o):dw(r,o)},this.isSameYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameYear?this.overrides.isSameYear(r,o):fw(r,o)},this.max=r=>{var o;return(o=this.overrides)!=null&&o.max?this.overrides.max(r):Jy(r)},this.min=r=>{var o;return(o=this.overrides)!=null&&o.min?this.overrides.min(r):eb(r)},this.setMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setMonth?this.overrides.setMonth(r,o):mw(r,o)},this.setYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setYear?this.overrides.setYear(r,o):pw(r,o)},this.startOfBroadcastWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):ql(r,this)},this.startOfDay=r=>{var o;return(o=this.overrides)!=null&&o.startOfDay?this.overrides.startOfDay(r):Kn(r)},this.startOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.startOfISOWeek?this.overrides.startOfISOWeek(r):Vn(r)},this.startOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.startOfMonth?this.overrides.startOfMonth(r):ib(r)},this.startOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfWeek?this.overrides.startOfWeek(r,this.options):xn(r,this.options)},this.startOfYear=r=>{var o;return(o=this.overrides)!=null&&o.startOfYear?this.overrides.startOfYear(r):Bl(r)},this.options={locale:Ga,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}}const yt=new Nt;class Vl{constructor(t,n,r=yt){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class yw{constructor(t,n){this.date=t,this.weeks=n}}class bw{constructor(t,n){this.days=n,this.weekNumber=t}}function xt(e,t,n=!1,r=yt){let{from:o,to:a}=e;const{differenceInCalendarDays:s,isSameDay:i}=r;return o&&a?(s(a,o)<0&&([o,a]=[a,o]),s(t,o)>=(n?1:0)&&s(a,t)>=(n?1:0)):!n&&a?i(a,t):!n&&o?i(o,t):!1}function Kl(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Ua(e){return!!(e&&typeof e=="object"&&"from"in e)}function Xl(e){return!!(e&&typeof e=="object"&&"after"in e)}function Zl(e){return!!(e&&typeof e=="object"&&"before"in e)}function Ql(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Jl(e,t){return Array.isArray(e)&&e.every(t.isDate)}function St(e,t,n=yt){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:s}=n;return r.some(i=>{if(typeof i=="boolean")return i;if(n.isDate(i))return o(e,i);if(Jl(i,n))return i.includes(e);if(Ua(i))return xt(i,e,!1,n);if(Ql(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(Kl(i)){const l=a(i.before,e),u=a(i.after,e),m=l>0,c=u<0;return s(i.before,i.after)?c&&m:m||c}return Xl(i)?a(e,i.after)>0:Zl(i)?a(i.before,e)>0:typeof i=="function"?i(e):!1})}function ww(e,t,n,r,o){const{disabled:a,hidden:s,modifiers:i,showOutsideDays:l,broadcastCalendar:u,today:m}=t,{isSameDay:c,isSameMonth:p,startOfMonth:h,isBefore:b,endOfMonth:g,isAfter:v}=o,y=n&&h(n),x=r&&g(r),S={[De.focused]:[],[De.outside]:[],[De.disabled]:[],[De.hidden]:[],[De.today]:[]},D={};for(const C of e){const{date:N,displayMonth:M}=C,E=!!(M&&!p(N,M)),$=!!(y&&b(N,y)),W=!!(x&&v(N,x)),Y=!!(a&&St(N,a,o)),U=!!(s&&St(N,s,o))||$||W||!u&&!l&&E||u&&l===!1&&E,A=c(N,m??o.today());E&&S.outside.push(C),Y&&S.disabled.push(C),U&&S.hidden.push(C),A&&S.today.push(C),i&&Object.keys(i).forEach(T=>{const _=i==null?void 0:i[T];_&&St(N,_,o)&&(D[T]?D[T].push(C):D[T]=[C])})}return C=>{const N={[De.focused]:!1,[De.disabled]:!1,[De.hidden]:!1,[De.outside]:!1,[De.today]:!1},M={};for(const E in S){const $=S[E];N[E]=$.some(W=>W===C)}for(const E in D)M[E]=D[E].some($=>$===C);return{...N,...M}}}function xw(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[a])=>(n[a]?o.push(n[a]):t[De[a]]?o.push(t[De[a]]):t[at[a]]&&o.push(t[at[a]]),o),[t[le.Day]])}function Sw(e){return w.createElement("button",{...e})}function Cw(e){return w.createElement("span",{...e})}function Mw(e){const{size:t=24,orientation:n="left",className:r}=e;return w.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&w.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&w.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&w.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&w.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Dw(e){const{day:t,modifiers:n,...r}=e;return w.createElement("td",{...r})}function kw(e){const{day:t,modifiers:n,...r}=e,o=w.useRef(null);return w.useEffect(()=>{var a;n.focused&&((a=o.current)==null||a.focus())},[n.focused]),w.createElement("button",{ref:o,...r})}function Ew(e){const{options:t,className:n,components:r,classNames:o,...a}=e,s=[o[le.Dropdown],n].join(" "),i=t==null?void 0:t.find(({value:l})=>l===a.value);return w.createElement("span",{"data-disabled":a.disabled,className:o[le.DropdownRoot]},w.createElement(r.Select,{className:s,...a},t==null?void 0:t.map(({value:l,label:u,disabled:m})=>w.createElement(r.Option,{key:l,value:l,disabled:m},u))),w.createElement("span",{className:o[le.CaptionLabel],"aria-hidden":!0},i==null?void 0:i.label,w.createElement(r.Chevron,{orientation:"down",size:18,className:o[le.Chevron]})))}function Nw(e){return w.createElement("div",{...e})}function Rw(e){return w.createElement("div",{...e})}function Tw(e){const{calendarMonth:t,displayIndex:n,...r}=e;return w.createElement("div",{...r},e.children)}function _w(e){const{calendarMonth:t,displayIndex:n,...r}=e;return w.createElement("div",{...r})}function Ow(e){return w.createElement("table",{...e})}function Pw(e){return w.createElement("div",{...e})}const eu=w.createContext(void 0);function ur(){const e=w.useContext(eu);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function Aw(e){const{components:t}=ur();return w.createElement(t.Dropdown,{...e})}function Iw(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:s,classNames:i,labels:{labelPrevious:l,labelNext:u}}=ur(),m=w.useCallback(p=>{o&&(n==null||n(p))},[o,n]),c=w.useCallback(p=>{r&&(t==null||t(p))},[r,t]);return w.createElement("nav",{...a},w.createElement(s.PreviousMonthButton,{type:"button",className:i[le.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:c},w.createElement(s.Chevron,{disabled:r?void 0:!0,className:i[le.Chevron],orientation:"left"})),w.createElement(s.NextMonthButton,{type:"button",className:i[le.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:m},w.createElement(s.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[le.Chevron]})))}function jw(e){const{components:t}=ur();return w.createElement(t.Button,{...e})}function $w(e){return w.createElement("option",{...e})}function Lw(e){const{components:t}=ur();return w.createElement(t.Button,{...e})}function Fw(e){const{rootRef:t,...n}=e;return w.createElement("div",{...n,ref:t})}function Ww(e){return w.createElement("select",{...e})}function Bw(e){const{week:t,...n}=e;return w.createElement("tr",{...n})}function Yw(e){return w.createElement("th",{...e})}function Hw(e){return w.createElement("thead",{"aria-hidden":!0},w.createElement("tr",{...e}))}function zw(e){const{week:t,...n}=e;return w.createElement("th",{...n})}function Gw(e){return w.createElement("th",{...e})}function Uw(e){return w.createElement("tbody",{...e})}function qw(e){const{components:t}=ur();return w.createElement(t.Dropdown,{...e})}const Vw=Object.freeze(Object.defineProperty({__proto__:null,Button:Sw,CaptionLabel:Cw,Chevron:Mw,Day:Dw,DayButton:kw,Dropdown:Ew,DropdownNav:Nw,Footer:Rw,Month:Tw,MonthCaption:_w,MonthGrid:Ow,Months:Pw,MonthsDropdown:Aw,Nav:Iw,NextMonthButton:jw,Option:$w,PreviousMonthButton:Lw,Root:Fw,Select:Ww,Week:Bw,WeekNumber:zw,WeekNumberHeader:Gw,Weekday:Yw,Weekdays:Hw,Weeks:Uw,YearsDropdown:qw},Symbol.toStringTag,{value:"Module"}));function Kw(e){return{...Vw,...e}}function Xw(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function qa(){const e={};for(const t in le)e[le[t]]=`rdp-${le[t]}`;for(const t in De)e[De[t]]=`rdp-${De[t]}`;for(const t in at)e[at[t]]=`rdp-${at[t]}`;for(const t in Ke)e[Ke[t]]=`rdp-${Ke[t]}`;return e}function tu(e,t,n){return(n??new Nt(t)).format(e,"LLLL y")}const Zw=tu;function Qw(e,t,n){return(n??new Nt(t)).format(e,"d")}function Jw(e,t=yt){return t.format(e,"LLLL")}function ex(e,t=yt){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function tx(){return""}function nx(e,t,n){return(n??new Nt(t)).format(e,"cccccc")}function nu(e,t=yt){return t.format(e,"yyyy")}const rx=nu,ox=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:tu,formatDay:Qw,formatMonthCaption:Zw,formatMonthDropdown:Jw,formatWeekNumber:ex,formatWeekNumberHeader:tx,formatWeekdayName:nx,formatYearCaption:rx,formatYearDropdown:nu},Symbol.toStringTag,{value:"Module"}));function ax(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...ox,...e}}function sx(e,t,n,r,o){const{startOfMonth:a,startOfYear:s,endOfYear:i,eachMonthOfInterval:l,getMonth:u}=o;return l({start:s(e),end:i(e)}).map(p=>{const h=r.formatMonthDropdown(p,o),b=u(p),g=t&&p<a(t)||n&&p>a(n)||!1;return{value:b,label:h,disabled:g}})}function ix(e,t={},n={}){let r={...t==null?void 0:t[le.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n==null?void 0:n[o]}}),r}function cx(e,t,n){const r=e.today(),o=t?e.startOfISOWeek(r):e.startOfWeek(r),a=[];for(let s=0;s<7;s++){const i=e.addDays(o,s);a.push(i)}return a}function lx(e,t,n,r){if(!e||!t)return;const{startOfYear:o,endOfYear:a,addYears:s,getYear:i,isBefore:l,isSameYear:u}=r,m=o(e),c=a(t),p=[];let h=m;for(;l(h,c)||u(h,c);)p.push(h),h=s(h,1);return p.map(b=>{const g=n.formatYearDropdown(b,r);return{value:i(b),label:g,disabled:!1}})}function ru(e,t,n){return(n??new Nt(t)).format(e,"LLLL y")}const ux=ru;function dx(e,t,n,r){let o=(r??new Nt(n)).format(e,"PPPP");return t!=null&&t.today&&(o=`Today, ${o}`),o}function ou(e,t,n,r){let o=(r??new Nt(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const fx=ou;function mx(){return""}function px(e){return"Choose the Month"}function hx(e){return"Go to the Next Month"}function gx(e){return"Go to the Previous Month"}function vx(e,t,n){return(n??new Nt(t)).format(e,"cccc")}function yx(e,t){return`Week ${e}`}function bx(e){return"Week Number"}function wx(e){return"Choose the Year"}const xx=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:ux,labelDay:fx,labelDayButton:ou,labelGrid:ru,labelGridcell:dx,labelMonthDropdown:px,labelNav:mx,labelNext:hx,labelPrevious:gx,labelWeekNumber:yx,labelWeekNumberHeader:bx,labelWeekday:vx,labelYearDropdown:wx},Symbol.toStringTag,{value:"Module"})),dr=e=>e instanceof HTMLElement?e:null,Fo=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Sx=e=>dr(e.querySelector("[data-animated-month]")),Wo=e=>dr(e.querySelector("[data-animated-caption]")),Bo=e=>dr(e.querySelector("[data-animated-weeks]")),Cx=e=>dr(e.querySelector("[data-animated-nav]")),Mx=e=>dr(e.querySelector("[data-animated-weekdays]"));function Dx(e,t,{classNames:n,months:r,focused:o,dateLib:a}){const s=w.useRef(null),i=w.useRef(r),l=w.useRef(!1);w.useLayoutEffect(()=>{const u=i.current;if(i.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;const m=a.isSameMonth(r[0].date,u[0].date),c=a.isAfter(r[0].date,u[0].date),p=c?n[Ke.caption_after_enter]:n[Ke.caption_before_enter],h=c?n[Ke.weeks_after_enter]:n[Ke.weeks_before_enter],b=s.current,g=e.current.cloneNode(!0);if(g instanceof HTMLElement?(Fo(g).forEach(S=>{if(!(S instanceof HTMLElement))return;const D=Sx(S);D&&S.contains(D)&&S.removeChild(D);const C=Wo(S);C&&C.classList.remove(p);const N=Bo(S);N&&N.classList.remove(h)}),s.current=g):s.current=null,l.current||m||o)return;const v=b instanceof HTMLElement?Fo(b):[],y=Fo(e.current);if(y&&y.every(x=>x instanceof HTMLElement)&&v&&v.every(x=>x instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const x=Cx(e.current);x&&(x.style.zIndex="1"),y.forEach((S,D)=>{const C=v[D];if(!C)return;S.style.position="relative",S.style.overflow="hidden";const N=Wo(S);N&&N.classList.add(p);const M=Bo(S);M&&M.classList.add(h);const E=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),x&&(x.style.zIndex=""),N&&N.classList.remove(p),M&&M.classList.remove(h),S.style.position="",S.style.overflow="",S.contains(C)&&S.removeChild(C)};C.style.pointerEvents="none",C.style.position="absolute",C.style.overflow="hidden",C.setAttribute("aria-hidden","true");const $=Mx(C);$&&($.style.opacity="0");const W=Wo(C);W&&(W.classList.add(c?n[Ke.caption_before_exit]:n[Ke.caption_after_exit]),W.addEventListener("animationend",E));const Y=Bo(C);Y&&Y.classList.add(c?n[Ke.weeks_before_exit]:n[Ke.weeks_after_exit]),S.insertBefore(C,S.firstChild)})}})}function kx(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:s,fixedWeeks:i,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:m,differenceInCalendarMonths:c,endOfBroadcastWeek:p,endOfISOWeek:h,endOfMonth:b,endOfWeek:g,isAfter:v,startOfBroadcastWeek:y,startOfISOWeek:x,startOfWeek:S}=r,D=l?y(o,r):s?x(o):S(o),C=l?p(a):s?h(b(a)):g(b(a)),N=m(C,D),M=c(a,o)+1,E=[];for(let Y=0;Y<=N;Y++){const U=u(D,Y);if(t&&v(U,t))break;E.push(U)}const W=(l?35:42)*M;if(i&&E.length<W){const Y=W-E.length;for(let U=0;U<Y;U++){const A=u(E[E.length-1],1);E.push(A)}}return E}function Ex(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((a,s)=>[...a,...s.days],t);return[...n,...o]},t)}function Nx(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let s=0;s<o;s++){const i=r.addMonths(e,s);if(t&&i>t)break;a.push(i)}return a}function fi(e,t,n,r){const{month:o,defaultMonth:a,today:s=r.today(),numberOfMonths:i=1}=e;let l=o||a||s;const{differenceInCalendarMonths:u,addMonths:m,startOfMonth:c}=r;if(n&&u(n,l)<i-1){const p=-1*(i-1);l=m(n,p)}return t&&u(l,t)<0&&(l=t),c(l)}function Rx(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:s,endOfMonth:i,endOfWeek:l,getISOWeek:u,getWeek:m,startOfBroadcastWeek:c,startOfISOWeek:p,startOfWeek:h}=r,b=e.reduce((g,v)=>{const y=n.broadcastCalendar?c(v,r):n.ISOWeek?p(v):h(v),x=n.broadcastCalendar?a(v):n.ISOWeek?s(i(v)):l(i(v)),S=t.filter(M=>M>=y&&M<=x),D=n.broadcastCalendar?35:42;if(n.fixedWeeks&&S.length<D){const M=t.filter(E=>{const $=D-S.length;return E>x&&E<=o(x,$)});S.push(...M)}const C=S.reduce((M,E)=>{const $=n.ISOWeek?u(E):m(E),W=M.find(U=>U.weekNumber===$),Y=new Vl(E,v,r);return W?W.days.push(Y):M.push(new bw($,[Y])),M},[]),N=new yw(v,C);return g.push(N),g},[]);return n.reverseMonths?b.reverse():b}function Tx(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:s,endOfMonth:i,addYears:l,endOfYear:u,newDate:m,today:c}=t,{fromYear:p,toYear:h,fromMonth:b,toMonth:g}=e;!n&&b&&(n=b),!n&&p&&(n=t.newDate(p,0,1)),!r&&g&&(r=g),!r&&h&&(r=m(h,11,31));const v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=s(n):p?n=m(p,0,1):!n&&v&&(n=o(l(e.today??c(),-100))),r?r=i(r):h?r=m(h,11,31):!r&&v&&(r=u(e.today??c())),[n&&a(n),r&&a(r)]}function _x(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=r,u=o?a:1,m=s(e);if(!t)return i(m,u);if(!(l(t,e)<a))return i(m,u)}function Ox(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=r,u=o?a??1:1,m=s(e);if(!t)return i(m,-u);if(!(l(m,t)<=0))return i(m,-u)}function Px(e){const t=[];return e.reduce((n,r)=>[...n,...r.weeks],t)}function fo(e,t){const[n,r]=w.useState(e);return[t===void 0?n:t,r]}function Ax(e,t){const[n,r]=Tx(e,t),{startOfMonth:o,endOfMonth:a}=t,s=fi(e,n,r,t),[i,l]=fo(s,e.month?s:void 0);w.useEffect(()=>{const N=fi(e,n,r,t);l(N)},[e.timeZone]);const u=Nx(i,r,e,t),m=kx(u,e.endMonth?a(e.endMonth):void 0,e,t),c=Rx(u,m,e,t),p=Px(c),h=Ex(c),b=Ox(i,n,e,t),g=_x(i,r,e,t),{disableNavigation:v,onMonthChange:y}=e,x=N=>p.some(M=>M.days.some(E=>E.isEqualTo(N))),S=N=>{if(v)return;let M=o(N);n&&M<o(n)&&(M=o(n)),r&&M>o(r)&&(M=o(r)),l(M),y==null||y(M)};return{months:c,weeks:p,days:h,navStart:n,navEnd:r,previousMonth:b,nextMonth:g,goToMonth:S,goToDay:N=>{x(N)||S(N.date)}}}var dt;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(dt||(dt={}));function mi(e){return!e[De.disabled]&&!e[De.hidden]&&!e[De.outside]}function Ix(e,t,n,r){let o,a=-1;for(const s of e){const i=t(s);mi(i)&&(i[De.focused]&&a<dt.FocusedModifier?(o=s,a=dt.FocusedModifier):r!=null&&r.isEqualTo(s)&&a<dt.LastFocused?(o=s,a=dt.LastFocused):n(s.date)&&a<dt.Selected?(o=s,a=dt.Selected):i[De.today]&&a<dt.Today&&(o=s,a=dt.Today))}return o||(o=e.find(s=>mi(t(s)))),o}function jx(e,t,n,r,o,a,s){const{ISOWeek:i,broadcastCalendar:l}=a,{addDays:u,addMonths:m,addWeeks:c,addYears:p,endOfBroadcastWeek:h,endOfISOWeek:b,endOfWeek:g,max:v,min:y,startOfBroadcastWeek:x,startOfISOWeek:S,startOfWeek:D}=s;let N={day:u,week:c,month:m,year:p,startOfWeek:M=>l?x(M,s):i?S(M):D(M),endOfWeek:M=>l?h(M):i?b(M):g(M)}[e](n,t==="after"?1:-1);return t==="before"&&r?N=v([r,N]):t==="after"&&o&&(N=y([o,N])),N}function au(e,t,n,r,o,a,s,i=0){if(i>365)return;const l=jx(e,t,n.date,r,o,a,s),u=!!(a.disabled&&St(l,a.disabled,s)),m=!!(a.hidden&&St(l,a.hidden,s)),c=l,p=new Vl(l,c,s);return!u&&!m?p:au(e,t,p,r,o,a,s,i+1)}function $x(e,t,n,r,o){const{autoFocus:a}=e,[s,i]=w.useState(),l=Ix(t.days,n,r||(()=>!1),s),[u,m]=w.useState(a?l:void 0);return{isFocusTarget:g=>!!(l!=null&&l.isEqualTo(g)),setFocused:m,focused:u,blur:()=>{i(u),m(void 0)},moveFocus:(g,v)=>{if(!u)return;const y=au(g,v,u,t.navStart,t.navEnd,e,o);y&&(t.goToDay(y),m(y))}}}function Lx(e,t){const{selected:n,required:r,onSelect:o}=e,[a,s]=fo(n,o?n:void 0),i=o?n:a,{isSameDay:l}=t,u=h=>(i==null?void 0:i.some(b=>l(b,h)))??!1,{min:m,max:c}=e;return{selected:i,select:(h,b,g)=>{let v=[...i??[]];if(u(h)){if((i==null?void 0:i.length)===m||r&&(i==null?void 0:i.length)===1)return;v=i==null?void 0:i.filter(y=>!l(y,h))}else(i==null?void 0:i.length)===c?v=[h]:v=[...v,h];return o||s(v),o==null||o(v,h,b,g),v},isSelected:u}}function Fx(e,t,n=0,r=0,o=!1,a=yt){const{from:s,to:i}=t||{},{isSameDay:l,isAfter:u,isBefore:m}=a;let c;if(!s&&!i)c={from:e,to:n>0?void 0:e};else if(s&&!i)l(s,e)?o?c={from:s,to:void 0}:c=void 0:m(e,s)?c={from:e,to:s}:c={from:s,to:e};else if(s&&i)if(l(s,e)&&l(i,e))o?c={from:s,to:i}:c=void 0;else if(l(s,e))c={from:s,to:n>0?void 0:e};else if(l(i,e))c={from:e,to:n>0?void 0:e};else if(m(e,s))c={from:e,to:i};else if(u(e,s))c={from:s,to:e};else if(u(e,i))c={from:s,to:e};else throw new Error("Invalid range");if(c!=null&&c.from&&(c!=null&&c.to)){const p=a.differenceInCalendarDays(c.to,c.from);r>0&&p>r?c={from:e,to:void 0}:n>1&&p<n&&(c={from:e,to:void 0})}return c}function Wx(e,t,n=yt){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),s=Math.min(a,6);for(let i=0;i<=s;i++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function pi(e,t,n=yt){return xt(e,t.from,!1,n)||xt(e,t.to,!1,n)||xt(t,e.from,!1,n)||xt(t,e.to,!1,n)}function Bx(e,t,n=yt){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?xt(e,i,!1,n):Jl(i,n)?i.some(l=>xt(e,l,!1,n)):Ua(i)?i.from&&i.to?pi(e,{from:i.from,to:i.to},n):!1:Ql(i)?Wx(e,i.dayOfWeek,n):Kl(i)?n.isAfter(i.before,i.after)?pi(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):St(e.from,i,n)||St(e.to,i,n):Xl(i)||Zl(i)?St(e.from,i,n)||St(e.to,i,n):!1))return!0;const s=r.filter(i=>typeof i=="function");if(s.length){let i=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=l;u++){if(s.some(m=>m(i)))return!0;i=n.addDays(i,1)}}return!1}function Yx(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:s}=e,[i,l]=fo(o,s?o:void 0),u=s?o:i;return{selected:u,select:(p,h,b)=>{const{min:g,max:v}=e,y=p?Fx(p,u,g,v,a,t):void 0;return r&&n&&(y!=null&&y.from)&&y.to&&Bx({from:y.from,to:y.to},n,t)&&(y.from=p,y.to=void 0),s||l(y),s==null||s(y,p,h,b),y},isSelected:p=>u&&xt(u,p,!1,t)}}function Hx(e,t){const{selected:n,required:r,onSelect:o}=e,[a,s]=fo(n,o?n:void 0),i=o?n:a,{isSameDay:l}=t;return{selected:i,select:(c,p,h)=>{let b=c;return!r&&i&&i&&l(c,i)&&(b=void 0),o||s(b),o==null||o(b,c,p,h),b},isSelected:c=>i?l(i,c):!1}}function zx(e,t){const n=Hx(e,t),r=Lx(e,t),o=Yx(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function su(e){var Tt;let t=e;t.timeZone&&(t={...e},t.today&&(t.today=new We(t.today,t.timeZone)),t.month&&(t.month=new We(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new We(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new We(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new We(t.endMonth,t.timeZone)),t.mode==="single"&&t.selected?t.selected=new We(t.selected,t.timeZone):t.mode==="multiple"&&t.selected?t.selected=(Tt=t.selected)==null?void 0:Tt.map(G=>new We(G,t.timeZone)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?new We(t.selected.from,t.timeZone):void 0,to:t.selected.to?new We(t.selected.to,t.timeZone):void 0}));const{components:n,formatters:r,labels:o,dateLib:a,locale:s,classNames:i}=w.useMemo(()=>{const G={...Ga,...t.locale};return{dateLib:new Nt({locale:G,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:Kw(t.components),formatters:ax(t.formatters),labels:{...xx,...t.labels},locale:G,classNames:{...qa(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]),{captionLayout:l,mode:u,navLayout:m,numberOfMonths:c=1,onDayBlur:p,onDayClick:h,onDayFocus:b,onDayKeyDown:g,onDayMouseEnter:v,onDayMouseLeave:y,onNextClick:x,onPrevClick:S,showWeekNumber:D,styles:C}=t,{formatCaption:N,formatDay:M,formatMonthDropdown:E,formatWeekNumber:$,formatWeekNumberHeader:W,formatWeekdayName:Y,formatYearDropdown:U}=r,A=Ax(t,a),{days:T,months:_,navStart:R,navEnd:P,previousMonth:k,nextMonth:O,goToMonth:H}=A,V=ww(T,t,R,P,a),{isSelected:I,select:j,selected:B}=zx(t,a)??{},{blur:z,focused:K,isFocusTarget:L,moveFocus:q,setFocused:X}=$x(t,A,V,I??(()=>!1),a),{labelDayButton:Q,labelGridcell:re,labelGrid:ie,labelMonthDropdown:ye,labelNav:J,labelPrevious:Te,labelNext:_e,labelWeekday:oe,labelWeekNumber:me,labelWeekNumberHeader:be,labelYearDropdown:$e}=o,He=w.useMemo(()=>cx(a,t.ISOWeek),[a,t.ISOWeek]),Ie=u!==void 0||h!==void 0,Fe=w.useCallback(()=>{k&&(H(k),S==null||S(k))},[k,H,S]),zt=w.useCallback(()=>{O&&(H(O),x==null||x(O))},[H,O,x]),an=w.useCallback((G,ce)=>se=>{se.preventDefault(),se.stopPropagation(),X(G),j==null||j(G.date,ce,se),h==null||h(G.date,ce,se)},[j,h,X]),Rt=w.useCallback((G,ce)=>se=>{X(G),b==null||b(G.date,ce,se)},[b,X]),Pn=w.useCallback((G,ce)=>se=>{z(),p==null||p(G.date,ce,se)},[z,p]),bt=w.useCallback((G,ce)=>se=>{const fe={ArrowLeft:[se.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[se.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[se.shiftKey?"year":"week","after"],ArrowUp:[se.shiftKey?"year":"week","before"],PageUp:[se.shiftKey?"year":"month","before"],PageDown:[se.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(fe[se.key]){se.preventDefault(),se.stopPropagation();const[ge,ae]=fe[se.key];q(ge,ae)}g==null||g(G.date,ce,se)},[q,g,t.dir]),Gt=w.useCallback((G,ce)=>se=>{v==null||v(G.date,ce,se)},[v]),nt=w.useCallback((G,ce)=>se=>{y==null||y(G.date,ce,se)},[y]),sn=w.useCallback(G=>ce=>{const se=Number(ce.target.value),fe=a.setMonth(a.startOfMonth(G),se);H(fe)},[a,H]),Ge=w.useCallback(G=>ce=>{const se=Number(ce.target.value),fe=a.setYear(a.startOfMonth(G),se);H(fe)},[a,H]),{className:cn,style:An}=w.useMemo(()=>({className:[i[le.Root],t.className].filter(Boolean).join(" "),style:{...C==null?void 0:C[le.Root],...t.style}}),[i,t.className,t.style,C]),ln=Xw(t),Ut=w.useRef(null);Dx(Ut,!!t.animate,{classNames:i,months:_,focused:K,dateLib:a});const In={dayPickerProps:t,selected:B,select:j,isSelected:I,months:_,nextMonth:O,previousMonth:k,goToMonth:H,getModifiers:V,components:n,classNames:i,styles:C,labels:o,formatters:r};return w.createElement(eu.Provider,{value:In},w.createElement(n.Root,{rootRef:t.animate?Ut:void 0,className:cn,style:An,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],...ln},w.createElement(n.Months,{className:i[le.Months],style:C==null?void 0:C[le.Months]},!t.hideNavigation&&!m&&w.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:i[le.Nav],style:C==null?void 0:C[le.Nav],"aria-label":J(),onPreviousClick:Fe,onNextClick:zt,previousMonth:k,nextMonth:O}),_.map((G,ce)=>{const se=sx(G.date,R,P,r,a),fe=lx(R,P,r,a);return w.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:i[le.Month],style:C==null?void 0:C[le.Month],key:ce,displayIndex:ce,calendarMonth:G},m==="around"&&!t.hideNavigation&&ce===0&&w.createElement(n.PreviousMonthButton,{type:"button",className:i[le.PreviousMonthButton],tabIndex:k?void 0:-1,"aria-disabled":k?void 0:!0,"aria-label":Te(k),onClick:Fe,"data-animated-button":t.animate?"true":void 0},w.createElement(n.Chevron,{disabled:k?void 0:!0,className:i[le.Chevron],orientation:t.dir==="rtl"?"right":"left"})),w.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:i[le.MonthCaption],style:C==null?void 0:C[le.MonthCaption],calendarMonth:G,displayIndex:ce},l!=null&&l.startsWith("dropdown")?w.createElement(n.DropdownNav,{className:i[le.Dropdowns],style:C==null?void 0:C[le.Dropdowns]},l==="dropdown"||l==="dropdown-months"?w.createElement(n.MonthsDropdown,{className:i[le.MonthsDropdown],"aria-label":ye(),classNames:i,components:n,disabled:!!t.disableNavigation,onChange:sn(G.date),options:se,style:C==null?void 0:C[le.Dropdown],value:a.getMonth(G.date)}):w.createElement("span",null,E(G.date,a)),l==="dropdown"||l==="dropdown-years"?w.createElement(n.YearsDropdown,{className:i[le.YearsDropdown],"aria-label":$e(a.options),classNames:i,components:n,disabled:!!t.disableNavigation,onChange:Ge(G.date),options:fe,style:C==null?void 0:C[le.Dropdown],value:a.getYear(G.date)}):w.createElement("span",null,U(G.date,a)),w.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},N(G.date,a.options,a))):w.createElement(n.CaptionLabel,{className:i[le.CaptionLabel],role:"status","aria-live":"polite"},N(G.date,a.options,a))),m==="around"&&!t.hideNavigation&&ce===c-1&&w.createElement(n.NextMonthButton,{type:"button",className:i[le.NextMonthButton],tabIndex:O?void 0:-1,"aria-disabled":O?void 0:!0,"aria-label":_e(O),onClick:zt,"data-animated-button":t.animate?"true":void 0},w.createElement(n.Chevron,{disabled:O?void 0:!0,className:i[le.Chevron],orientation:t.dir==="rtl"?"left":"right"})),ce===c-1&&m==="after"&&!t.hideNavigation&&w.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:i[le.Nav],style:C==null?void 0:C[le.Nav],"aria-label":J(),onPreviousClick:Fe,onNextClick:zt,previousMonth:k,nextMonth:O}),w.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":ie(G.date,a.options,a)||void 0,className:i[le.MonthGrid],style:C==null?void 0:C[le.MonthGrid]},!t.hideWeekdays&&w.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:i[le.Weekdays],style:C==null?void 0:C[le.Weekdays]},D&&w.createElement(n.WeekNumberHeader,{"aria-label":be(a.options),className:i[le.WeekNumberHeader],style:C==null?void 0:C[le.WeekNumberHeader],scope:"col"},W()),He.map((ge,ae)=>w.createElement(n.Weekday,{"aria-label":oe(ge,a.options,a),className:i[le.Weekday],key:ae,style:C==null?void 0:C[le.Weekday],scope:"col"},Y(ge,a.options,a)))),w.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:i[le.Weeks],style:C==null?void 0:C[le.Weeks]},G.weeks.map((ge,ae)=>w.createElement(n.Week,{className:i[le.Week],key:ge.weekNumber,style:C==null?void 0:C[le.Week],week:ge},D&&w.createElement(n.WeekNumber,{week:ge,style:C==null?void 0:C[le.WeekNumber],"aria-label":me(ge.weekNumber,{locale:s}),className:i[le.WeekNumber],scope:"row",role:"rowheader"},$(ge.weekNumber,a)),ge.days.map(de=>{const{date:ve}=de,ue=V(de);if(ue[De.focused]=!ue.hidden&&!!(K!=null&&K.isEqualTo(de)),ue[at.selected]=(I==null?void 0:I(ve))||ue.selected,Ua(B)){const{from:Ve,to:je}=B;ue[at.range_start]=!!(Ve&&je&&a.isSameDay(ve,Ve)),ue[at.range_end]=!!(Ve&&je&&a.isSameDay(ve,je)),ue[at.range_middle]=xt(B,ve,!0,a)}const Ue=ix(ue,C,t.modifiersStyles),xe=xw(ue,i,t.modifiersClassNames),Ce=!Ie&&!ue.hidden?re(ve,ue,a.options,a):void 0;return w.createElement(n.Day,{key:`${a.format(ve,"yyyy-MM-dd")}_${a.format(de.displayMonth,"yyyy-MM")}`,day:de,modifiers:ue,className:xe.join(" "),style:Ue,role:"gridcell","aria-selected":ue.selected||void 0,"aria-label":Ce,"data-day":a.format(ve,"yyyy-MM-dd"),"data-month":de.outside?a.format(ve,"yyyy-MM"):void 0,"data-selected":ue.selected||void 0,"data-disabled":ue.disabled||void 0,"data-hidden":ue.hidden||void 0,"data-outside":de.outside||void 0,"data-focused":ue.focused||void 0,"data-today":ue.today||void 0},!ue.hidden&&Ie?w.createElement(n.DayButton,{className:i[le.DayButton],style:C==null?void 0:C[le.DayButton],type:"button",day:de,modifiers:ue,disabled:ue.disabled||void 0,tabIndex:L(de)?0:-1,"aria-label":Q(ve,ue,a.options,a),onClick:an(de,ue),onBlur:Pn(de,ue),onFocus:Rt(de,ue),onKeyDown:bt(de,ue),onMouseEnter:Gt(de,ue),onMouseLeave:nt(de,ue)},M(ve,a.options,a)):!ue.hidden&&M(de.date,a.options,a))}))))))})),t.footer&&w.createElement(n.Footer,{className:i[le.Footer],style:C==null?void 0:C[le.Footer],role:"status","aria-live":"polite"},t.footer)))}function Va(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pr={exports:{}},Gx=Pr.exports,hi;function iu(){return hi||(hi=1,function(e,t){(function(n,r){e.exports=r()})(Gx,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",i="minute",l="hour",u="day",m="week",c="month",p="quarter",h="year",b="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var _=["th","st","nd","rd"],R=T%100;return"["+T+(_[(R-20)%10]||_[R]||_[0])+"]"}},S=function(T,_,R){var P=String(T);return!P||P.length>=_?T:""+Array(_+1-P.length).join(R)+T},D={s:S,z:function(T){var _=-T.utcOffset(),R=Math.abs(_),P=Math.floor(R/60),k=R%60;return(_<=0?"+":"-")+S(P,2,"0")+":"+S(k,2,"0")},m:function T(_,R){if(_.date()<R.date())return-T(R,_);var P=12*(R.year()-_.year())+(R.month()-_.month()),k=_.clone().add(P,c),O=R-k<0,H=_.clone().add(P+(O?-1:1),c);return+(-(P+(R-k)/(O?k-H:H-k))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:c,y:h,w:m,d:u,D:b,h:l,m:i,s,ms:a,Q:p}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},C="en",N={};N[C]=x;var M="$isDayjsObject",E=function(T){return T instanceof U||!(!T||!T[M])},$=function T(_,R,P){var k;if(!_)return C;if(typeof _=="string"){var O=_.toLowerCase();N[O]&&(k=O),R&&(N[O]=R,k=O);var H=_.split("-");if(!k&&H.length>1)return T(H[0])}else{var V=_.name;N[V]=_,k=V}return!P&&k&&(C=k),k||!P&&C},W=function(T,_){if(E(T))return T.clone();var R=typeof _=="object"?_:{};return R.date=T,R.args=arguments,new U(R)},Y=D;Y.l=$,Y.i=E,Y.w=function(T,_){return W(T,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var U=function(){function T(R){this.$L=$(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[M]=!0}var _=T.prototype;return _.parse=function(R){this.$d=function(P){var k=P.date,O=P.utc;if(k===null)return new Date(NaN);if(Y.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var H=k.match(v);if(H){var V=H[2]-1||0,I=(H[7]||"0").substring(0,3);return O?new Date(Date.UTC(H[1],V,H[3]||1,H[4]||0,H[5]||0,H[6]||0,I)):new Date(H[1],V,H[3]||1,H[4]||0,H[5]||0,H[6]||0,I)}}return new Date(k)}(R),this.init()},_.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},_.$utils=function(){return Y},_.isValid=function(){return this.$d.toString()!==g},_.isSame=function(R,P){var k=W(R);return this.startOf(P)<=k&&k<=this.endOf(P)},_.isAfter=function(R,P){return W(R)<this.startOf(P)},_.isBefore=function(R,P){return this.endOf(P)<W(R)},_.$g=function(R,P,k){return Y.u(R)?this[P]:this.set(k,R)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(R,P){var k=this,O=!!Y.u(P)||P,H=Y.p(R),V=function(X,Q){var re=Y.w(k.$u?Date.UTC(k.$y,Q,X):new Date(k.$y,Q,X),k);return O?re:re.endOf(u)},I=function(X,Q){return Y.w(k.toDate()[X].apply(k.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(Q)),k)},j=this.$W,B=this.$M,z=this.$D,K="set"+(this.$u?"UTC":"");switch(H){case h:return O?V(1,0):V(31,11);case c:return O?V(1,B):V(0,B+1);case m:var L=this.$locale().weekStart||0,q=(j<L?j+7:j)-L;return V(O?z-q:z+(6-q),B);case u:case b:return I(K+"Hours",0);case l:return I(K+"Minutes",1);case i:return I(K+"Seconds",2);case s:return I(K+"Milliseconds",3);default:return this.clone()}},_.endOf=function(R){return this.startOf(R,!1)},_.$set=function(R,P){var k,O=Y.p(R),H="set"+(this.$u?"UTC":""),V=(k={},k[u]=H+"Date",k[b]=H+"Date",k[c]=H+"Month",k[h]=H+"FullYear",k[l]=H+"Hours",k[i]=H+"Minutes",k[s]=H+"Seconds",k[a]=H+"Milliseconds",k)[O],I=O===u?this.$D+(P-this.$W):P;if(O===c||O===h){var j=this.clone().set(b,1);j.$d[V](I),j.init(),this.$d=j.set(b,Math.min(this.$D,j.daysInMonth())).$d}else V&&this.$d[V](I);return this.init(),this},_.set=function(R,P){return this.clone().$set(R,P)},_.get=function(R){return this[Y.p(R)]()},_.add=function(R,P){var k,O=this;R=Number(R);var H=Y.p(P),V=function(B){var z=W(O);return Y.w(z.date(z.date()+Math.round(B*R)),O)};if(H===c)return this.set(c,this.$M+R);if(H===h)return this.set(h,this.$y+R);if(H===u)return V(1);if(H===m)return V(7);var I=(k={},k[i]=r,k[l]=o,k[s]=n,k)[H]||1,j=this.$d.getTime()+R*I;return Y.w(j,this)},_.subtract=function(R,P){return this.add(-1*R,P)},_.format=function(R){var P=this,k=this.$locale();if(!this.isValid())return k.invalidDate||g;var O=R||"YYYY-MM-DDTHH:mm:ssZ",H=Y.z(this),V=this.$H,I=this.$m,j=this.$M,B=k.weekdays,z=k.months,K=k.meridiem,L=function(Q,re,ie,ye){return Q&&(Q[re]||Q(P,O))||ie[re].slice(0,ye)},q=function(Q){return Y.s(V%12||12,Q,"0")},X=K||function(Q,re,ie){var ye=Q<12?"AM":"PM";return ie?ye.toLowerCase():ye};return O.replace(y,function(Q,re){return re||function(ie){switch(ie){case"YY":return String(P.$y).slice(-2);case"YYYY":return Y.s(P.$y,4,"0");case"M":return j+1;case"MM":return Y.s(j+1,2,"0");case"MMM":return L(k.monthsShort,j,z,3);case"MMMM":return L(z,j);case"D":return P.$D;case"DD":return Y.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return L(k.weekdaysMin,P.$W,B,2);case"ddd":return L(k.weekdaysShort,P.$W,B,3);case"dddd":return B[P.$W];case"H":return String(V);case"HH":return Y.s(V,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return X(V,I,!0);case"A":return X(V,I,!1);case"m":return String(I);case"mm":return Y.s(I,2,"0");case"s":return String(P.$s);case"ss":return Y.s(P.$s,2,"0");case"SSS":return Y.s(P.$ms,3,"0");case"Z":return H}return null}(Q)||H.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(R,P,k){var O,H=this,V=Y.p(P),I=W(R),j=(I.utcOffset()-this.utcOffset())*r,B=this-I,z=function(){return Y.m(H,I)};switch(V){case h:O=z()/12;break;case c:O=z();break;case p:O=z()/3;break;case m:O=(B-j)/6048e5;break;case u:O=(B-j)/864e5;break;case l:O=B/o;break;case i:O=B/r;break;case s:O=B/n;break;default:O=B}return k?O:Y.a(O)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return N[this.$L]},_.locale=function(R,P){if(!R)return this.$L;var k=this.clone(),O=$(R,P,!0);return O&&(k.$L=O),k},_.clone=function(){return Y.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},T}(),A=U.prototype;return W.prototype=A,[["$ms",a],["$s",s],["$m",i],["$H",l],["$W",u],["$M",c],["$y",h],["$D",b]].forEach(function(T){A[T[1]]=function(_){return this.$g(_,T[0],T[1])}}),W.extend=function(T,_){return T.$i||(T(_,U,W),T.$i=!0),W},W.locale=$,W.isDayjs=E,W.unix=function(T){return W(1e3*T)},W.en=N[C],W.Ls=N,W.p={},W})}(Pr)),Pr.exports}var Ux=iu();const Ct=Va(Ux);var Ar={exports:{}},qx=Ar.exports,gi;function Vx(){return gi||(gi=1,function(e,t){(function(n,r){e.exports=r()})(qx,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var s=o.prototype,i=s.format;a.en.formats=n,s.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,m=function(c,p){return c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,b,g){var v=g&&g.toUpperCase();return b||p[g]||n[g]||p[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,x,S){return x||S.slice(1)})})}(l,u===void 0?{}:u);return i.call(this,m)}}})}(Ar)),Ar.exports}var Kx=Vx();const cu=Va(Kx);var Ir={exports:{}},Xx=Ir.exports,vi;function Zx(){return vi||(vi=1,function(e,t){(function(n,r){e.exports=r(iu())})(Xx,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(n),a={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(s){return""+s+(s===1?"er":"")}};return o.default.locale(a,null,!0),a})}(Ir)),Ir.exports}Zx();function Qx({month:e,onMonthChange:t}){const n=e.getFullYear(),r=e.getMonth(),o=["January","February","March","April","May","June","July","August","September","October","November","December"],a=new Date().getFullYear(),s=Array.from({length:201},(c,p)=>a-100+p),i=c=>{const p=new Date(e);p.setMonth(Number.parseInt(c)),t(p)},l=c=>{const p=new Date(e);p.setFullYear(Number.parseInt(c)),t(p)},u=()=>{const c=new Date(e);c.setMonth(c.getMonth()-1),t(c)},m=()=>{const c=new Date(e);c.setMonth(c.getMonth()+1),t(c)};return d.jsxs("div",{className:"flex items-center justify-between p-2 border-b bg-muted",children:[d.jsx(Dt,{variant:"outline",size:"small",onClick:u,className:"h-7 w-7 p-0",children:d.jsx(nc,{className:"h-4 w-4"})}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs(ma,{value:r.toString(),onValueChange:i,children:[d.jsx(Yr,{className:"w-32 h-8 text-sm",children:d.jsx(pa,{})}),d.jsx(Hr,{children:o.map((c,p)=>d.jsx(zr,{value:p.toString(),children:c},c))})]}),d.jsxs(ma,{value:n.toString(),onValueChange:l,children:[d.jsx(Yr,{className:"w-20 h-8 text-sm",children:d.jsx(pa,{})}),d.jsx(Hr,{className:"max-h-[200px]",children:s.map(c=>d.jsx(zr,{value:c.toString(),children:c},c))})]})]}),d.jsx(Dt,{variant:"outline",size:"small",onClick:m,className:"h-7 w-7 p-0",children:d.jsx(Ea,{className:"h-4 w-4"})})]})}Ct.extend(cu);const Gr=({label:e,placeholder:t="Pick a date",helperText:n,error:r,required:o,value:a,onSelect:s,className:i,minDate:l,maxDate:u,disabled:m,readOnly:c,locale:p="en",showOutsideDays:h,dayPickerProps:b,month:g,onMonthChange:v,open:y,onOpenChange:x,...S})=>{const[D,C]=w.useState(!1),N=y!==void 0?y:D,M=x||C,E=g??a??new Date,$=W=>{W&&(!a||W.getTime()!==a.getTime())&&(s==null||s(W),M(!1))};return Ct.locale(p),d.jsxs("div",{className:F("space-y-1",i),...S,children:[e&&d.jsxs(rn,{className:"text-sm font-medium text-gray-700",children:[e,o&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs(Wa,{open:N,onOpenChange:M,children:[d.jsx(Ba,{asChild:!0,children:d.jsxs(Dt,{variant:"outline",className:F("w-full flex justify-between items-center font-normal",!a&&"text-muted-foreground",r&&"border border-red-500 focus:ring-red-500"),disabled:m,"aria-readonly":c,children:[d.jsx("span",{className:F("text-left",!a&&"text-muted-foreground"),children:a?Ct(a).locale(p).format("LL"):t}),d.jsx(tc,{strokeWidth:1.2,className:"ml-6 h-6 w-6 shrink-0 text-foreground"})]})}),d.jsx(io,{className:"w-auto p-0",align:"start",children:d.jsxs("div",{className:"bg-white rounded-md border shadow-md",children:[d.jsx(Qx,{month:E,onMonthChange:v??(()=>{})}),d.jsx("div",{className:"p-3",children:d.jsx(su,{mode:"single",selected:a,onSelect:$,month:E,onMonthChange:v,fromDate:l,toDate:u,showOutsideDays:h,className:"p-0",classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"hidden",caption_label:"text-sm font-medium",nav:"hidden",nav_button:"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100",nav_button_previous:"absolute left-1 top-1",nav_button_next:"absolute right-1 top-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:"h-9 w-9 p-0 font-normal aria-selected:opacity-100 hover:bg-accent hover:text-accent-foreground rounded-md transition-colors",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible"},...b})})]})})]}),(n||r)&&d.jsx("p",{className:F("text-xs",r?"text-red-500":"text-gray-500"),children:r||n})]})};function Jx({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:a,components:s,...i}){const l=qa();return d.jsx(su,{showOutsideDays:n,className:F("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...a},classNames:{root:F("w-fit",l.root),months:F("relative flex flex-col gap-4 md:flex-row",l.months),month:F("flex w-full flex-col gap-4",l.month),nav:F("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",l.nav),button_previous:F(ta({variant:o}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",l.button_previous),button_next:F(ta({variant:o}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",l.button_next),month_caption:F("flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",l.month_caption),dropdowns:F("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",l.dropdowns),dropdown_root:F("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",l.dropdown_root),dropdown:F("absolute inset-0 opacity-0",l.dropdown),caption_label:F("select-none font-medium",r==="label"?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:F("flex",l.weekdays),weekday:F("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",l.weekday),week:F("mt-2 flex w-full",l.week),week_number_header:F("w-[--cell-size] select-none",l.week_number_header),week_number:F("text-muted-foreground select-none text-[0.8rem]",l.week_number),day:F("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",l.day),range_start:F("bg-accent rounded-l-md",l.range_start),range_middle:F("rounded-none",l.range_middle),range_end:F("bg-accent rounded-r-md",l.range_end),today:F("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:F("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:F("text-muted-foreground opacity-50",l.disabled),hidden:F("invisible",l.hidden),...t},components:{Root:({className:u,rootRef:m,...c})=>d.jsx("div",{"data-slot":"calendar",ref:m,className:F(u),...c}),Chevron:({className:u,orientation:m,...c})=>m==="left"?d.jsx(nc,{className:F("size-4",u),...c}):m==="right"?d.jsx(Ea,{className:F("size-4",u),...c}):d.jsx(er,{className:F("size-4",u),...c}),DayButton:e0,WeekNumber:({children:u,...m})=>d.jsx("td",{...m,children:d.jsx("div",{className:"flex size-[--cell-size] items-center justify-center text-center",children:u})}),...s},...i})}function e0({className:e,day:t,modifiers:n,...r}){const o=qa(),a=f.useRef(null);return f.useEffect(()=>{var p;n.focused&&((p=a.current)==null||p.focus())},[n.focused]),d.jsx(Dt,{ref:a,variant:"ghost",size:"icon.small","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:F("flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none","data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground","data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground","data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md","group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 group-data-[focused=true]/day:ring-[3px]","[&>span]:text-xs [&>span]:opacity-70",o.day,e),...r})}var jr={exports:{}},t0=jr.exports,yi;function n0(){return yi||(yi=1,function(e,t){(function(n,r){e.exports=r()})(t0,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},u=function(v){return(v=+v)+(v>68?1900:2e3)},m=function(v){return function(y){this[v]=+y}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var x=y.match(/([+-]|\d\d)/g),S=60*x[1]+(+x[2]||0);return S===0?0:x[0]==="+"?-S:S}(v)}],p=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(v,y){var x,S=l.meridiem;if(S){for(var D=1;D<=24;D+=1)if(v.indexOf(S(D,0,y))>-1){x=D>12;break}}else x=v===(y?"pm":"PM");return x},b={A:[i,function(v){this.afternoon=h(v,!1)}],a:[i,function(v){this.afternoon=h(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,m("seconds")],ss:[s,m("seconds")],m:[s,m("minutes")],mm:[s,m("minutes")],H:[s,m("hours")],h:[s,m("hours")],HH:[s,m("hours")],hh:[s,m("hours")],D:[s,m("day")],DD:[a,m("day")],Do:[i,function(v){var y=l.ordinal,x=v.match(/\d+/);if(this.day=x[0],y)for(var S=1;S<=31;S+=1)y(S).replace(/\[|\]/g,"")===v&&(this.day=S)}],w:[s,m("week")],ww:[a,m("week")],M:[s,m("month")],MM:[a,m("month")],MMM:[i,function(v){var y=p("months"),x=(p("monthsShort")||y.map(function(S){return S.slice(0,3)})).indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[i,function(v){var y=p("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,m("year")],YY:[a,function(v){this.year=u(v)}],YYYY:[/\d{4}/,m("year")],Z:c,ZZ:c};function g(v){var y,x;y=v,x=l&&l.formats;for(var S=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(W,Y,U){var A=U&&U.toUpperCase();return Y||x[U]||n[U]||x[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,_,R){return _||R.slice(1)})})).match(r),D=S.length,C=0;C<D;C+=1){var N=S[C],M=b[N],E=M&&M[0],$=M&&M[1];S[C]=$?{regex:E,parser:$}:N.replace(/^\[|\]$/g,"")}return function(W){for(var Y={},U=0,A=0;U<D;U+=1){var T=S[U];if(typeof T=="string")A+=T.length;else{var _=T.regex,R=T.parser,P=W.slice(A),k=_.exec(P)[0];R.call(Y,k),W=W.replace(k,"")}}return function(O){var H=O.afternoon;if(H!==void 0){var V=O.hours;H?V<12&&(O.hours+=12):V===12&&(O.hours=0),delete O.afternoon}}(Y),Y}}return function(v,y,x){x.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(u=v.parseTwoDigitYear);var S=y.prototype,D=S.parse;S.parse=function(C){var N=C.date,M=C.utc,E=C.args;this.$u=M;var $=E[1];if(typeof $=="string"){var W=E[2]===!0,Y=E[3]===!0,U=W||Y,A=E[2];Y&&(A=E[2]),l=this.$locale(),!W&&A&&(l=x.Ls[A]),this.$d=function(P,k,O,H){try{if(["x","X"].indexOf(k)>-1)return new Date((k==="X"?1e3:1)*P);var V=g(k)(P),I=V.year,j=V.month,B=V.day,z=V.hours,K=V.minutes,L=V.seconds,q=V.milliseconds,X=V.zone,Q=V.week,re=new Date,ie=B||(I||j?1:re.getDate()),ye=I||re.getFullYear(),J=0;I&&!j||(J=j>0?j-1:re.getMonth());var Te,_e=z||0,oe=K||0,me=L||0,be=q||0;return X?new Date(Date.UTC(ye,J,ie,_e,oe,me,be+60*X.offset*1e3)):O?new Date(Date.UTC(ye,J,ie,_e,oe,me,be)):(Te=new Date(ye,J,ie,_e,oe,me,be),Q&&(Te=H(Te).week(Q).toDate()),Te)}catch{return new Date("")}}(N,$,M,x),this.init(),A&&A!==!0&&(this.$L=this.locale(A).$L),U&&N!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var T=$.length,_=1;_<=T;_+=1){E[1]=$[_-1];var R=x.apply(this,E);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}_===T&&(this.$d=new Date(""))}else D.call(this,C)}}})}(jr)),jr.exports}var r0=n0();const o0=Va(r0);Ct.extend(o0);Ct.extend(cu);const a0={"MM/DD/YYYY":{separator:"/",pattern:/^[0-9/]$/},"DD/MM/YYYY":{separator:"/",pattern:/^[0-9/]$/},"YYYY-MM-DD":{separator:"-",pattern:/^[0-9-]$/},"DD-MM-YYYY":{separator:"-",pattern:/^[0-9-]$/}},s0=({label:e,placeholder:t,helperText:n,required:r,value:o,onSelect:a,className:s,minDate:i,maxDate:l,disabled:u,readOnly:m,locale:c="en",dateFormat:p="DD/MM/YYYY"})=>{const[h,b]=f.useState(!1),[g,v]=f.useState(""),[y,x]=f.useState(o),S=f.useMemo(()=>p,[p]),D=f.useMemo(()=>a0[S],[S]),C=f.useMemo(()=>t||S.toLowerCase(),[t,S]),N=f.useCallback(A=>{const T=A.replace(/\D/g,""),{separator:_}=D;if(T.length<=2)return T;switch(S){case"MM/DD/YYYY":case"DD/MM/YYYY":return T.length<=4?`${T.substring(0,2)}${_}${T.substring(2)}`:`${T.substring(0,2)}${_}${T.substring(2,4)}${_}${T.substring(4,8)}`;case"YYYY-MM-DD":return T.length<=4?T:T.length<=6?`${T.substring(0,4)}${_}${T.substring(4)}`:`${T.substring(0,4)}${_}${T.substring(4,6)}${_}${T.substring(6,8)}`;case"DD-MM-YYYY":return T.length<=4?`${T.substring(0,2)}${_}${T.substring(2)}`:`${T.substring(0,2)}${_}${T.substring(2,4)}${_}${T.substring(4,8)}`;default:return A}},[S,D]),M=f.useMemo(()=>A=>{const T=A.trim();return T&&Ct(T,S,!0).isValid()?Ct(T,S):null},[S]),E=f.useCallback(A=>Ct(A).format(S),[S]);f.useEffect(()=>{v(o?E(o):""),x(o),Ct.locale(c)},[o,c,E]);const $=f.useCallback(A=>{let T=A.target.value;if(v(T),!T.trim()){x(void 0),a==null||a(void 0);return}const _=N(T);_!==T&&T.replace(/\D/g,"").length>1&&(v(_),T=_);const R=M(T);if(R!=null&&R.isValid()){const P=R.toDate();(!i||P>=i)&&(!l||P<=l)&&(x(P),a==null||a(P))}},[N,M,a,i,l]),W=f.useCallback(()=>{y&&v(E(y))},[y,E]),Y=f.useCallback(A=>{A&&(v(E(A)),x(A),a==null||a(A),b(!1))},[a,E]),U=f.useCallback(A=>{if(!["Backspace","Delete","Tab","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(A.key)&&!D.pattern.test(A.key)&&!A.ctrlKey&&!A.metaKey){A.preventDefault();return}A.key==="Enter"&&(A.preventDefault(),W())},[D.pattern,W]);return d.jsxs("div",{className:F("space-y-1",s),children:[e&&d.jsxs(rn,{className:"text-sm font-medium text-gray-700",children:[e,r&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs(Wa,{open:h,onOpenChange:b,children:[d.jsxs("div",{className:"w-60 relative",children:[d.jsx(nn,{type:"text",value:g,onChange:$,onBlur:W,onKeyDown:U,placeholder:C,disabled:u,readOnly:m,className:"w-full pr-12"}),d.jsx(Ba,{asChild:!0,children:d.jsx("button",{type:"button",className:"absolute right-1 top-1/2 -translate-y-1/2 bg-transparent border-0 outline-none text-black hover:text-black focus:ring-2 focus:ring-ring",style:{height:"1.75rem",width:"1.75rem"},onClick:()=>b(A=>!A),disabled:u||m,"aria-label":"Open calendar",children:d.jsx(tc,{strokeWidth:1,className:"h-5 w-5"})})})]}),d.jsx(io,{className:"w-auto p-0",align:"start",children:d.jsx(Jx,{mode:"single",selected:y,onSelect:Y,fromDate:i,toDate:l})})]}),n&&d.jsx("p",{className:"text-xs text-gray-500",children:n})]})};function Sn({label:e,placeholder:t="Select option",options:n,value:r,leadingIcon:o,helperText:a,error:s,required:i,onValueChange:l,className:u,variant:m="default",disabled:c=!1}){return d.jsxs("div",{className:F("space-y-1",u),children:[e&&d.jsxs(rn,{className:F("text-sm font-medium",c?"text-gray-400":"text-gray-700"),children:[e,i&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs(ma,{value:r,onValueChange:l,disabled:c,children:[d.jsx(Yr,{className:F("border-input focus-within:ring-primary",s&&"border-red-500 focus-within:ring-red-500",m==="gray"&&"bg-gray-100 border-gray-300 text-gray-700",c&&"opacity-50 cursor-not-allowed"),children:d.jsxs("div",{className:"flex items-center gap-2 w-full",children:[o&&d.jsx("div",{className:"text-gray-400",children:o}),d.jsx(pa,{placeholder:t})]})}),d.jsx(Hr,{children:n.map(p=>d.jsx(zr,{value:p.value,children:p.label},p.value))})]}),(a||s)&&d.jsx("p",{className:F("text-xs",s?"text-red-500":c?"text-gray-400":"text-gray-500"),children:s||a})]})}const i0=({label:e,variant:t="filled",color:n="default",size:r="medium",deletable:o=!1,onDelete:a,onClick:s,icon:i,avatar:l,disabled:u=!1,className:m="",...c})=>{const p="inline-flex items-center gap-1 font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",h={small:"px-2 py-0.5 text-xs rounded-full",medium:"px-3 py-1 text-sm rounded-full",large:"px-4 py-1.5 text-base rounded-full"},b={default:{filled:"bg-gray-200 text-gray-800 hover:bg-gray-300",outlined:"border border-gray-300 text-gray-700 hover:bg-gray-50"},primary:{filled:"bg-blue-500 text-white hover:bg-blue-600",outlined:"border border-blue-500 text-blue-600 hover:bg-blue-50"},secondary:{filled:"bg-purple-500 text-white hover:bg-purple-600",outlined:"border border-purple-500 text-purple-600 hover:bg-purple-50"},success:{filled:"bg-green-500 text-white hover:bg-green-600",outlined:"border border-green-500 text-green-600 hover:bg-green-50"},warning:{filled:"bg-yellow-500 text-white hover:bg-yellow-600",outlined:"border border-yellow-500 text-yellow-600 hover:bg-yellow-50"},error:{filled:"bg-red-500 text-white hover:bg-red-600",outlined:"border border-red-500 text-red-600 hover:bg-red-50"}},g=u?"opacity-50 cursor-not-allowed":"cursor-pointer",v=s&&!u?"hover:shadow-md":"",y=`
172
172
  ${p}
173
173
  ${h[r]}
174
174
  ${b[n][t]}
175
175
  ${g}
176
176
  ${v}
177
177
  ${m}
178
- `.trim(),x=C=>{!u&&s&&s(C)},S=C=>{C.stopPropagation(),!u&&a&&a(C)},D=r==="small"?12:r==="large"?18:14;return d.jsxs("div",{className:y,onClick:x,...c,children:[l&&d.jsx("div",{className:`rounded-full overflow-hidden ${r==="small"?"w-4 h-4":r==="large"?"w-6 h-6":"w-5 h-5"}`,children:typeof l=="string"?d.jsx("img",{src:l,alt:`Avatar for ${e}`,className:"w-full h-full object-cover"}):l}),i&&!l&&d.jsx("div",{className:"flex items-center",children:w.isValidElement(i)?w.cloneElement(i,{size:D}):i}),d.jsx("span",{children:e}),o&&d.jsx("button",{onClick:S,className:`ml-1 rounded-full p-0.5 hover:bg-black hover:bg-opacity-10 transition-colors ${u?"cursor-not-allowed":"cursor-pointer"}`,disabled:u,children:d.jsx(kn,{size:D})})]})},c0={small:"h-8 text-sm",medium:"h-10",large:"h-12 text-base"},l0={white:"bg-white border-gray-300",grey:"bg-gray-100 border-gray-300"},lu=({size:e="medium",variant:t="white",placeholder:n="Search here",className:r,onChange:o,query:a=""})=>d.jsxs("div",{className:"relative",children:[d.jsx(ac,{strokeWidth:1.1,className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-900 h-5 w-5"}),d.jsx(nn,{placeholder:n,className:W("pl-12 rounded-full",c0[e],l0[t],r),onChange:o,value:a})]}),u0=[{value:"all",label:"All Categories"},{value:"electronics",label:"Electronics"},{value:"clothing",label:"Clothing"},{value:"books",label:"Books"}],d0=[{value:"newest",label:"Newest First"},{value:"oldest",label:"Oldest First"},{value:"name-asc",label:"Name A-Z"},{value:"name-desc",label:"Name Z-A"}],f0=({className:e,searchPlaceholder:t="Search...",categories:n=u0,sortOptions:r=d0,showDateFilter:o=!1,onSearch:a,onFilter:s,onClear:i,defaultFilters:l})=>{const[u,m]=w.useState({category:(l==null?void 0:l.category)??"",sort:(l==null?void 0:l.sort)??"",dateFrom:l==null?void 0:l.dateFrom,dateTo:l==null?void 0:l.dateTo}),[c,p]=w.useState(!1),[h,b]=w.useState(!1),[g,v]=w.useState(u.dateFrom??new Date),[y,x]=w.useState(u.dateTo??new Date),S=(N,M)=>{const E={...u,[N]:M};m(E),s==null||s(E)},D=()=>{m({category:"",sort:"",dateFrom:void 0,dateTo:void 0}),i==null||i()},C=Object.values(u).some(N=>N!==""&&N!==void 0);return d.jsxs("div",{className:W("space-y-4",e),children:[d.jsx(lu,{size:"medium",placeholder:t,onChange:N=>a==null?void 0:a(N.target.value)}),d.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ch,{className:"h-4 w-4 text-gray-500"}),d.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Filters:"})]}),d.jsx(Sn,{placeholder:"Category",options:n,onValueChange:N=>S("category",N),className:"min-w-[140px]"}),d.jsx(Sn,{placeholder:"Sort by",options:r,onValueChange:N=>S("sort",N),className:"min-w-[140px]"}),o&&d.jsxs(d.Fragment,{children:[d.jsx(Gr,{placeholder:"From date",value:u.dateFrom,onSelect:N=>{S("dateFrom",N),v(N??g)},className:"min-w-[140px]",open:c,onOpenChange:p,month:g,onMonthChange:v}),d.jsx(Gr,{placeholder:"To date",value:u.dateTo,onSelect:N=>{S("dateTo",N),x(N??y)},className:"min-w-[140px]",open:h,onOpenChange:b,month:y,onMonthChange:x})]}),C&&d.jsxs(kt,{variant:"outline",size:"small",onClick:D,className:"flex items-center gap-1",children:[d.jsx(kn,{className:"h-3 w-3"}),"Clear"]})]})]})},m0=[{value:"personal",label:"Personal Account"},{value:"business",label:"Business Account"},{value:"developer",label:"Developer Account"}];function p0({className:e,showDateOfBirth:t=!0,accountTypes:n=m0,onValueChange:r}){const[o,a]=w.useState(),[s,i]=w.useState(!1),[l,u]=w.useState(!1),[m,c]=w.useState(!1),[p,h]=w.useState(o??new Date),[b,g]=w.useState(""),[v,y]=w.useState("");return d.jsxs("div",{className:W("space-y-4",e),children:[d.jsx(Je,{label:"Username",placeholder:"Choose a username",helperText:"Must be at least 3 characters long",required:!0,onChange:x=>r==null?void 0:r("username",x.target.value)}),d.jsx(Je,{label:"Email Address",type:"email",placeholder:"Enter your email",icon:d.jsx(oc,{className:"h-4 w-4"}),required:!0,onChange:x=>r==null?void 0:r("email",x.target.value)}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[d.jsx(na,{label:"Password",helperText:"Must be at least 8 characters",required:!0,value:b,onChange:x=>{g(x),r==null||r("password",x)},showPassword:s,onShowPasswordChange:i}),d.jsx(na,{label:"Confirm Password",placeholder:"Confirm your password",required:!0,value:v,onChange:x=>{y(x),r==null||r("confirmPassword",x)},showPassword:l,onShowPasswordChange:u})]}),d.jsx(Sn,{label:"Account Type",placeholder:"Select account type",options:n,leadingIcon:d.jsx(Sh,{className:"h-4 w-4"}),required:!0,onValueChange:x=>r==null?void 0:r("accountType",x)}),t&&d.jsx(Gr,{label:"Date of Birth",placeholder:"Select your birth date",helperText:"Must be 18 or older",value:o,maxDate:new Date,onSelect:x=>{a(x),h(x??p),x&&(r==null||r("dateOfBirth",x))},open:m,onOpenChange:c,month:p,onMonthChange:h})]})}const h0=[{value:"us",label:"United States"},{value:"ca",label:"Canada"},{value:"uk",label:"United Kingdom"},{value:"au",label:"Australia"},{value:"de",label:"Germany"},{value:"fr",label:"France"}];function g0({className:e,countries:t=h0,onValueChange:n}){return d.jsxs("div",{className:W("space-y-4",e),children:[d.jsx(Je,{label:"Street Address",placeholder:"Enter street address",required:!0,onChange:r=>n==null?void 0:n("streetAddress",r.target.value)}),d.jsx(Je,{label:"Apartment, suite, etc.",placeholder:"Apartment, suite, etc. (optional)",onChange:r=>n==null?void 0:n("addressLine2",r.target.value)}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[d.jsx(Je,{label:"City",placeholder:"Enter city",required:!0,onChange:r=>n==null?void 0:n("city",r.target.value)}),d.jsx(Je,{label:"State/Province",placeholder:"Enter state",required:!0,onChange:r=>n==null?void 0:n("state",r.target.value)}),d.jsx(Je,{label:"ZIP/Postal Code",placeholder:"Enter ZIP code",required:!0,onChange:r=>n==null?void 0:n("zipCode",r.target.value)})]}),d.jsx(Sn,{label:"Country",placeholder:"Select country",options:t,leadingIcon:d.jsx(mh,{className:"h-4 w-4"}),required:!0,onValueChange:r=>n==null?void 0:n("country",r)})]})}const v0=[{value:"sales",label:"Sales"},{value:"support",label:"Support"},{value:"general",label:"General Inquiry"}];function y0({className:e,showDepartment:t=!0,departmentOptions:n=v0,onValueChange:r}){return d.jsxs("div",{className:W("space-y-4",e),children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[d.jsx(Je,{label:"First Name",placeholder:"Enter first name",required:!0,onChange:o=>r==null?void 0:r("firstName",o.target.value)}),d.jsx(Je,{label:"Last Name",placeholder:"Enter last name",required:!0,onChange:o=>r==null?void 0:r("lastName",o.target.value)})]}),d.jsx(Je,{label:"Email Address",type:"email",placeholder:"Enter your email",icon:d.jsx(oc,{className:"h-4 w-4"}),required:!0,onChange:o=>r==null?void 0:r("email",o.target.value)}),d.jsx(Je,{label:"Phone Number",type:"tel",placeholder:"+1 (555) 000-0000",icon:d.jsx(vh,{className:"h-4 w-4"}),onChange:o=>r==null?void 0:r("phone",o.target.value)}),t&&d.jsx(Sn,{label:"Department",placeholder:"Select department",options:n,leadingIcon:d.jsx(zp,{className:"h-4 w-4"}),onValueChange:o=>r==null?void 0:r("department",o)}),d.jsx(Na,{label:"Message",placeholder:"How can we help you?",required:!0,onChange:o=>r==null?void 0:r("message",o.target.value)})]})}var bi=1,b0=.9,w0=.8,x0=.17,Yo=.1,Ho=.999,S0=.9999,C0=.99,M0=/[\\\/_+.#"@\[\(\{&]/,D0=/[\\\/_+.#"@\[\(\{&]/g,k0=/[\s-]/,uu=/[\s-]/g;function ga(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?bi:C0;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var l=r.charAt(a),u=n.indexOf(l,o),m=0,c,p,h,b;u>=0;)c=ga(e,t,n,r,u+1,a+1,s),c>m&&(u===o?c*=bi:M0.test(e.charAt(u-1))?(c*=w0,h=e.slice(o,u-1).match(D0),h&&o>0&&(c*=Math.pow(Ho,h.length))):k0.test(e.charAt(u-1))?(c*=b0,b=e.slice(o,u-1).match(uu),b&&o>0&&(c*=Math.pow(Ho,b.length))):(c*=x0,o>0&&(c*=Math.pow(Ho,u-o))),e.charAt(u)!==t.charAt(a)&&(c*=S0)),(c<Yo&&n.charAt(u-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(u-1)!==r.charAt(a))&&(p=ga(e,t,n,r,u+1,a+2,s),p*Yo>c&&(c=p*Yo)),c>m&&(m=c),u=n.indexOf(l,u+1);return s[i]=m,m}function wi(e){return e.toLowerCase().replace(uu," ")}function E0(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ga(e,t,wi(e),wi(t),0,0,{})}var mo="Dialog",[du,mD]=Ye(mo),[N0,lt]=du(mo),fu=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=f.useRef(null),l=f.useRef(null),[u,m]=nt({prop:r,defaultProp:o??!1,onChange:a,caller:mo});return d.jsx(N0,{scope:t,triggerRef:i,contentRef:l,contentId:Te(),titleId:Te(),descriptionId:Te(),open:u,onOpenChange:m,onOpenToggle:f.useCallback(()=>m(c=>!c),[m]),modal:s,children:n})};fu.displayName=mo;var mu="DialogTrigger",pu=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(mu,n),a=he(t,o.triggerRef);return d.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Za(o.open),...r,ref:a,onClick:Z(e.onClick,o.onOpenToggle)})});pu.displayName=mu;var Ka="DialogPortal",[R0,hu]=du(Ka,{forceMount:void 0}),gu=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=lt(Ka,t);return d.jsx(R0,{scope:t,forceMount:n,children:f.Children.map(r,s=>d.jsx(ze,{present:n||a.open,children:d.jsx(ar,{asChild:!0,container:o,children:s})}))})};gu.displayName=Ka;var Ur="DialogOverlay",vu=f.forwardRef((e,t)=>{const n=hu(Ur,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=lt(Ur,e.__scopeDialog);return a.modal?d.jsx(ze,{present:r||a.open,children:d.jsx(_0,{...o,ref:t})}):null});vu.displayName=Ur;var T0=jt("DialogOverlay.RemoveScroll"),_0=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(Ur,n);return d.jsx(sr,{as:T0,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(ne.div,{"data-state":Za(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),en="DialogContent",yu=f.forwardRef((e,t)=>{const n=hu(en,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=lt(en,e.__scopeDialog);return d.jsx(ze,{present:r||a.open,children:a.modal?d.jsx(O0,{...o,ref:t}):d.jsx(P0,{...o,ref:t})})});yu.displayName=en;var O0=f.forwardRef((e,t)=>{const n=lt(en,e.__scopeDialog),r=f.useRef(null),o=he(t,n.contentRef,r);return f.useEffect(()=>{const a=r.current;if(a)return oo(a)},[]),d.jsx(bu,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,a=>a.preventDefault())})}),P0=f.forwardRef((e,t)=>{const n=lt(en,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return d.jsx(bu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),bu=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=lt(en,n),l=f.useRef(null),u=he(t,l);return Qr(),d.jsxs(d.Fragment,{children:[d.jsx(tr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(En,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Za(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(A0,{titleId:i.titleId}),d.jsx(j0,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Xa="DialogTitle",wu=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(Xa,n);return d.jsx(ne.h2,{id:o.titleId,...r,ref:t})});wu.displayName=Xa;var xu="DialogDescription",Su=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(xu,n);return d.jsx(ne.p,{id:o.descriptionId,...r,ref:t})});Su.displayName=xu;var Cu="DialogClose",Mu=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(Cu,n);return d.jsx(ne.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});Mu.displayName=Cu;function Za(e){return e?"open":"closed"}var Du="DialogTitleWarning",[pD,ku]=Mh(Du,{contentName:en,titleName:Xa,docsSlug:"dialog"}),A0=({titleId:e})=>{const t=ku(Du),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
178
+ `.trim(),x=C=>{!u&&s&&s(C)},S=C=>{C.stopPropagation(),!u&&a&&a(C)},D=r==="small"?12:r==="large"?18:14;return d.jsxs("div",{className:y,onClick:x,...c,children:[l&&d.jsx("div",{className:`rounded-full overflow-hidden ${r==="small"?"w-4 h-4":r==="large"?"w-6 h-6":"w-5 h-5"}`,children:typeof l=="string"?d.jsx("img",{src:l,alt:`Avatar for ${e}`,className:"w-full h-full object-cover"}):l}),i&&!l&&d.jsx("div",{className:"flex items-center",children:w.isValidElement(i)?w.cloneElement(i,{size:D}):i}),d.jsx("span",{children:e}),o&&d.jsx("button",{onClick:S,className:`ml-1 rounded-full p-0.5 hover:bg-black hover:bg-opacity-10 transition-colors ${u?"cursor-not-allowed":"cursor-pointer"}`,disabled:u,children:d.jsx(kn,{size:D})})]})},c0={small:"h-8 text-sm",medium:"h-10",large:"h-12 text-base"},l0={white:"bg-white border-gray-300",grey:"bg-gray-100 border-gray-300"},lu=({size:e="medium",variant:t="white",placeholder:n="Search here",className:r,onChange:o,query:a=""})=>d.jsxs("div",{className:"relative",children:[d.jsx(ac,{strokeWidth:1.1,className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-900 h-5 w-5"}),d.jsx(nn,{placeholder:n,className:F("pl-12 rounded-full",c0[e],l0[t],r),onChange:o,value:a})]}),u0=[{value:"all",label:"All Categories"},{value:"electronics",label:"Electronics"},{value:"clothing",label:"Clothing"},{value:"books",label:"Books"}],d0=[{value:"newest",label:"Newest First"},{value:"oldest",label:"Oldest First"},{value:"name-asc",label:"Name A-Z"},{value:"name-desc",label:"Name Z-A"}],f0=({className:e,searchPlaceholder:t="Search...",categories:n=u0,sortOptions:r=d0,showDateFilter:o=!1,onSearch:a,onFilter:s,onClear:i,defaultFilters:l})=>{const[u,m]=w.useState({category:(l==null?void 0:l.category)??"",sort:(l==null?void 0:l.sort)??"",dateFrom:l==null?void 0:l.dateFrom,dateTo:l==null?void 0:l.dateTo}),[c,p]=w.useState(!1),[h,b]=w.useState(!1),[g,v]=w.useState(u.dateFrom??new Date),[y,x]=w.useState(u.dateTo??new Date),S=(N,M)=>{const E={...u,[N]:M};m(E),s==null||s(E)},D=()=>{m({category:"",sort:"",dateFrom:void 0,dateTo:void 0}),i==null||i()},C=Object.values(u).some(N=>N!==""&&N!==void 0);return d.jsxs("div",{className:F("space-y-4",e),children:[d.jsx(lu,{size:"medium",placeholder:t,onChange:N=>a==null?void 0:a(N.target.value)}),d.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ch,{className:"h-4 w-4 text-gray-500"}),d.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Filters:"})]}),d.jsx(Sn,{placeholder:"Category",options:n,onValueChange:N=>S("category",N),className:"min-w-[140px]"}),d.jsx(Sn,{placeholder:"Sort by",options:r,onValueChange:N=>S("sort",N),className:"min-w-[140px]"}),o&&d.jsxs(d.Fragment,{children:[d.jsx(Gr,{placeholder:"From date",value:u.dateFrom,onSelect:N=>{S("dateFrom",N),v(N??g)},className:"min-w-[140px]",open:c,onOpenChange:p,month:g,onMonthChange:v}),d.jsx(Gr,{placeholder:"To date",value:u.dateTo,onSelect:N=>{S("dateTo",N),x(N??y)},className:"min-w-[140px]",open:h,onOpenChange:b,month:y,onMonthChange:x})]}),C&&d.jsxs(Dt,{variant:"outline",size:"small",onClick:D,className:"flex items-center gap-1",children:[d.jsx(kn,{className:"h-3 w-3"}),"Clear"]})]})]})},m0=[{value:"personal",label:"Personal Account"},{value:"business",label:"Business Account"},{value:"developer",label:"Developer Account"}];function p0({className:e,showDateOfBirth:t=!0,accountTypes:n=m0,onValueChange:r}){const[o,a]=w.useState(),[s,i]=w.useState(!1),[l,u]=w.useState(!1),[m,c]=w.useState(!1),[p,h]=w.useState(o??new Date),[b,g]=w.useState(""),[v,y]=w.useState("");return d.jsxs("div",{className:F("space-y-4",e),children:[d.jsx(Qe,{label:"Username",placeholder:"Choose a username",helperText:"Must be at least 3 characters long",required:!0,onChange:x=>r==null?void 0:r("username",x.target.value)}),d.jsx(Qe,{label:"Email Address",type:"email",placeholder:"Enter your email",icon:d.jsx(oc,{className:"h-4 w-4"}),required:!0,onChange:x=>r==null?void 0:r("email",x.target.value)}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[d.jsx(na,{label:"Password",helperText:"Must be at least 8 characters",required:!0,value:b,onChange:x=>{g(x),r==null||r("password",x)},showPassword:s,onShowPasswordChange:i}),d.jsx(na,{label:"Confirm Password",placeholder:"Confirm your password",required:!0,value:v,onChange:x=>{y(x),r==null||r("confirmPassword",x)},showPassword:l,onShowPasswordChange:u})]}),d.jsx(Sn,{label:"Account Type",placeholder:"Select account type",options:n,leadingIcon:d.jsx(Sh,{className:"h-4 w-4"}),required:!0,onValueChange:x=>r==null?void 0:r("accountType",x)}),t&&d.jsx(Gr,{label:"Date of Birth",placeholder:"Select your birth date",helperText:"Must be 18 or older",value:o,maxDate:new Date,onSelect:x=>{a(x),h(x??p),x&&(r==null||r("dateOfBirth",x))},open:m,onOpenChange:c,month:p,onMonthChange:h})]})}const h0=[{value:"us",label:"United States"},{value:"ca",label:"Canada"},{value:"uk",label:"United Kingdom"},{value:"au",label:"Australia"},{value:"de",label:"Germany"},{value:"fr",label:"France"}];function g0({className:e,countries:t=h0,onValueChange:n}){return d.jsxs("div",{className:F("space-y-4",e),children:[d.jsx(Qe,{label:"Street Address",placeholder:"Enter street address",required:!0,onChange:r=>n==null?void 0:n("streetAddress",r.target.value)}),d.jsx(Qe,{label:"Apartment, suite, etc.",placeholder:"Apartment, suite, etc. (optional)",onChange:r=>n==null?void 0:n("addressLine2",r.target.value)}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[d.jsx(Qe,{label:"City",placeholder:"Enter city",required:!0,onChange:r=>n==null?void 0:n("city",r.target.value)}),d.jsx(Qe,{label:"State/Province",placeholder:"Enter state",required:!0,onChange:r=>n==null?void 0:n("state",r.target.value)}),d.jsx(Qe,{label:"ZIP/Postal Code",placeholder:"Enter ZIP code",required:!0,onChange:r=>n==null?void 0:n("zipCode",r.target.value)})]}),d.jsx(Sn,{label:"Country",placeholder:"Select country",options:t,leadingIcon:d.jsx(mh,{className:"h-4 w-4"}),required:!0,onValueChange:r=>n==null?void 0:n("country",r)})]})}const v0=[{value:"sales",label:"Sales"},{value:"support",label:"Support"},{value:"general",label:"General Inquiry"}];function y0({className:e,showDepartment:t=!0,departmentOptions:n=v0,onValueChange:r}){return d.jsxs("div",{className:F("space-y-4",e),children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[d.jsx(Qe,{label:"First Name",placeholder:"Enter first name",required:!0,onChange:o=>r==null?void 0:r("firstName",o.target.value)}),d.jsx(Qe,{label:"Last Name",placeholder:"Enter last name",required:!0,onChange:o=>r==null?void 0:r("lastName",o.target.value)})]}),d.jsx(Qe,{label:"Email Address",type:"email",placeholder:"Enter your email",icon:d.jsx(oc,{className:"h-4 w-4"}),required:!0,onChange:o=>r==null?void 0:r("email",o.target.value)}),d.jsx(Qe,{label:"Phone Number",type:"tel",placeholder:"+1 (555) 000-0000",icon:d.jsx(vh,{className:"h-4 w-4"}),onChange:o=>r==null?void 0:r("phone",o.target.value)}),t&&d.jsx(Sn,{label:"Department",placeholder:"Select department",options:n,leadingIcon:d.jsx(zp,{className:"h-4 w-4"}),onValueChange:o=>r==null?void 0:r("department",o)}),d.jsx(Na,{label:"Message",placeholder:"How can we help you?",required:!0,onChange:o=>r==null?void 0:r("message",o.target.value)})]})}var bi=1,b0=.9,w0=.8,x0=.17,Yo=.1,Ho=.999,S0=.9999,C0=.99,M0=/[\\\/_+.#"@\[\(\{&]/,D0=/[\\\/_+.#"@\[\(\{&]/g,k0=/[\s-]/,uu=/[\s-]/g;function ga(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?bi:C0;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var l=r.charAt(a),u=n.indexOf(l,o),m=0,c,p,h,b;u>=0;)c=ga(e,t,n,r,u+1,a+1,s),c>m&&(u===o?c*=bi:M0.test(e.charAt(u-1))?(c*=w0,h=e.slice(o,u-1).match(D0),h&&o>0&&(c*=Math.pow(Ho,h.length))):k0.test(e.charAt(u-1))?(c*=b0,b=e.slice(o,u-1).match(uu),b&&o>0&&(c*=Math.pow(Ho,b.length))):(c*=x0,o>0&&(c*=Math.pow(Ho,u-o))),e.charAt(u)!==t.charAt(a)&&(c*=S0)),(c<Yo&&n.charAt(u-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(u-1)!==r.charAt(a))&&(p=ga(e,t,n,r,u+1,a+2,s),p*Yo>c&&(c=p*Yo)),c>m&&(m=c),u=n.indexOf(l,u+1);return s[i]=m,m}function wi(e){return e.toLowerCase().replace(uu," ")}function E0(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ga(e,t,wi(e),wi(t),0,0,{})}var mo="Dialog",[du,mD]=Be(mo),[N0,ct]=du(mo),fu=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=f.useRef(null),l=f.useRef(null),[u,m]=tt({prop:r,defaultProp:o??!1,onChange:a,caller:mo});return d.jsx(N0,{scope:t,triggerRef:i,contentRef:l,contentId:Ee(),titleId:Ee(),descriptionId:Ee(),open:u,onOpenChange:m,onOpenToggle:f.useCallback(()=>m(c=>!c),[m]),modal:s,children:n})};fu.displayName=mo;var mu="DialogTrigger",pu=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ct(mu,n),a=he(t,o.triggerRef);return d.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Za(o.open),...r,ref:a,onClick:Z(e.onClick,o.onOpenToggle)})});pu.displayName=mu;var Ka="DialogPortal",[R0,hu]=du(Ka,{forceMount:void 0}),gu=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=ct(Ka,t);return d.jsx(R0,{scope:t,forceMount:n,children:f.Children.map(r,s=>d.jsx(ze,{present:n||a.open,children:d.jsx(ar,{asChild:!0,container:o,children:s})}))})};gu.displayName=Ka;var Ur="DialogOverlay",vu=f.forwardRef((e,t)=>{const n=hu(Ur,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ct(Ur,e.__scopeDialog);return a.modal?d.jsx(ze,{present:r||a.open,children:d.jsx(_0,{...o,ref:t})}):null});vu.displayName=Ur;var T0=It("DialogOverlay.RemoveScroll"),_0=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ct(Ur,n);return d.jsx(sr,{as:T0,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(ee.div,{"data-state":Za(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),en="DialogContent",yu=f.forwardRef((e,t)=>{const n=hu(en,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ct(en,e.__scopeDialog);return d.jsx(ze,{present:r||a.open,children:a.modal?d.jsx(O0,{...o,ref:t}):d.jsx(P0,{...o,ref:t})})});yu.displayName=en;var O0=f.forwardRef((e,t)=>{const n=ct(en,e.__scopeDialog),r=f.useRef(null),o=he(t,n.contentRef,r);return f.useEffect(()=>{const a=r.current;if(a)return oo(a)},[]),d.jsx(bu,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,a=>a.preventDefault())})}),P0=f.forwardRef((e,t)=>{const n=ct(en,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return d.jsx(bu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),bu=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=ct(en,n),l=f.useRef(null),u=he(t,l);return Qr(),d.jsxs(d.Fragment,{children:[d.jsx(tr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(En,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Za(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(A0,{titleId:i.titleId}),d.jsx(j0,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Xa="DialogTitle",wu=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ct(Xa,n);return d.jsx(ee.h2,{id:o.titleId,...r,ref:t})});wu.displayName=Xa;var xu="DialogDescription",Su=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ct(xu,n);return d.jsx(ee.p,{id:o.descriptionId,...r,ref:t})});Su.displayName=xu;var Cu="DialogClose",Mu=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ct(Cu,n);return d.jsx(ee.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});Mu.displayName=Cu;function Za(e){return e?"open":"closed"}var Du="DialogTitleWarning",[pD,ku]=Mh(Du,{contentName:en,titleName:Xa,docsSlug:"dialog"}),A0=({titleId:e})=>{const t=ku(Du),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
179
179
 
180
180
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
181
181
 
182
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},I0="DialogDescriptionWarning",j0=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ku(I0).contentName}}.`;return f.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Qa=fu,Eu=pu,Ja=gu,po=vu,ho=yu,es=wu,ts=Su,ns=Mu,Fn='[cmdk-group=""]',zo='[cmdk-group-items=""]',$0='[cmdk-group-heading=""]',Nu='[cmdk-item=""]',xi=`${Nu}:not([aria-disabled="true"])`,va="cmdk-item-select",hn="data-value",L0=(e,t,n)=>E0(e,t,n),Ru=f.createContext(void 0),fr=()=>f.useContext(Ru),Tu=f.createContext(void 0),rs=()=>f.useContext(Tu),_u=f.createContext(void 0),Ou=f.forwardRef((e,t)=>{let n=gn(()=>{var I,j;return{search:"",value:(j=(I=e.value)!=null?I:e.defaultValue)!=null?j:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=gn(()=>new Set),o=gn(()=>new Map),a=gn(()=>new Map),s=gn(()=>new Set),i=Pu(e),{label:l,children:u,value:m,onValueChange:c,filter:p,shouldFilter:h,loop:b,disablePointerSelection:g=!1,vimBindings:v=!0,...y}=e,x=Te(),S=Te(),D=Te(),C=f.useRef(null),N=K0();tn(()=>{if(m!==void 0){let I=m.trim();n.current.value=I,M.emit()}},[m]),tn(()=>{N(6,O)},[]);let M=f.useMemo(()=>({subscribe:I=>(s.current.add(I),()=>s.current.delete(I)),snapshot:()=>n.current,setState:(I,j,H)=>{var $,K,F,U;if(!Object.is(n.current[I],j)){if(n.current[I]=j,I==="search")V(),B(),N(1,Y);else if(I==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let X=document.getElementById(D);X?X.focus():($=document.getElementById(x))==null||$.focus()}if(N(7,()=>{var X;n.current.selectedItemId=(X=_())==null?void 0:X.id,M.emit()}),H||N(5,O),((K=i.current)==null?void 0:K.value)!==void 0){let X=j??"";(U=(F=i.current).onValueChange)==null||U.call(F,X);return}}M.emit()}},emit:()=>{s.current.forEach(I=>I())}}),[]),E=f.useMemo(()=>({value:(I,j,H)=>{var $;j!==(($=a.current.get(I))==null?void 0:$.value)&&(a.current.set(I,{value:j,keywords:H}),n.current.filtered.items.set(I,L(j,H)),N(2,()=>{B(),M.emit()}))},item:(I,j)=>(r.current.add(I),j&&(o.current.has(j)?o.current.get(j).add(I):o.current.set(j,new Set([I]))),N(3,()=>{V(),B(),n.current.value||Y(),M.emit()}),()=>{a.current.delete(I),r.current.delete(I),n.current.filtered.items.delete(I);let H=_();N(4,()=>{V(),(H==null?void 0:H.getAttribute("id"))===I&&Y(),M.emit()})}),group:I=>(o.current.has(I)||o.current.set(I,new Set),()=>{a.current.delete(I),o.current.delete(I)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:x,inputId:D,labelId:S,listInnerRef:C}),[]);function L(I,j){var H,$;let K=($=(H=i.current)==null?void 0:H.filter)!=null?$:L0;return I?K(I,n.current.search,j):0}function B(){if(!n.current.search||i.current.shouldFilter===!1)return;let I=n.current.filtered.items,j=[];n.current.filtered.groups.forEach($=>{let K=o.current.get($),F=0;K.forEach(U=>{let X=I.get(U);F=Math.max(X,F)}),j.push([$,F])});let H=C.current;T().sort(($,K)=>{var F,U;let X=$.getAttribute("id"),J=K.getAttribute("id");return((F=I.get(J))!=null?F:0)-((U=I.get(X))!=null?U:0)}).forEach($=>{let K=$.closest(zo);K?K.appendChild($.parentElement===K?$:$.closest(`${zo} > *`)):H.appendChild($.parentElement===H?$:$.closest(`${zo} > *`))}),j.sort(($,K)=>K[1]-$[1]).forEach($=>{var K;let F=(K=C.current)==null?void 0:K.querySelector(`${Fn}[${hn}="${encodeURIComponent($[0])}"]`);F==null||F.parentElement.appendChild(F)})}function Y(){let I=T().find(H=>H.getAttribute("aria-disabled")!=="true"),j=I==null?void 0:I.getAttribute(hn);M.setState("value",j||void 0)}function V(){var I,j,H,$;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let K=0;for(let F of r.current){let U=(j=(I=a.current.get(F))==null?void 0:I.value)!=null?j:"",X=($=(H=a.current.get(F))==null?void 0:H.keywords)!=null?$:[],J=L(U,X);n.current.filtered.items.set(F,J),J>0&&K++}for(let[F,U]of o.current)for(let X of U)if(n.current.filtered.items.get(X)>0){n.current.filtered.groups.add(F);break}n.current.filtered.count=K}function O(){var I,j,H;let $=_();$&&(((I=$.parentElement)==null?void 0:I.firstChild)===$&&((H=(j=$.closest(Fn))==null?void 0:j.querySelector($0))==null||H.scrollIntoView({block:"nearest"})),$.scrollIntoView({block:"nearest"}))}function _(){var I;return(I=C.current)==null?void 0:I.querySelector(`${Nu}[aria-selected="true"]`)}function T(){var I;return Array.from(((I=C.current)==null?void 0:I.querySelectorAll(xi))||[])}function R(I){let j=T()[I];j&&M.setState("value",j.getAttribute(hn))}function A(I){var j;let H=_(),$=T(),K=$.findIndex(U=>U===H),F=$[K+I];(j=i.current)!=null&&j.loop&&(F=K+I<0?$[$.length-1]:K+I===$.length?$[0]:$[K+I]),F&&M.setState("value",F.getAttribute(hn))}function k(I){let j=_(),H=j==null?void 0:j.closest(Fn),$;for(;H&&!$;)H=I>0?V0(H,Fn):q0(H,Fn),$=H==null?void 0:H.querySelector(xi);$?M.setState("value",$.getAttribute(hn)):A(I)}let P=()=>R(T().length-1),z=I=>{I.preventDefault(),I.metaKey?P():I.altKey?k(1):A(1)},q=I=>{I.preventDefault(),I.metaKey?R(0):I.altKey?k(-1):A(-1)};return f.createElement(ne.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:I=>{var j;(j=y.onKeyDown)==null||j.call(y,I);let H=I.nativeEvent.isComposing||I.keyCode===229;if(!(I.defaultPrevented||H))switch(I.key){case"n":case"j":{v&&I.ctrlKey&&z(I);break}case"ArrowDown":{z(I);break}case"p":case"k":{v&&I.ctrlKey&&q(I);break}case"ArrowUp":{q(I);break}case"Home":{I.preventDefault(),R(0);break}case"End":{I.preventDefault(),P();break}case"Enter":{I.preventDefault();let $=_();if($){let K=new Event(va);$.dispatchEvent(K)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:Z0},l),go(e,I=>f.createElement(Tu.Provider,{value:M},f.createElement(Ru.Provider,{value:E},I))))}),F0=f.forwardRef((e,t)=>{var n,r;let o=Te(),a=f.useRef(null),s=f.useContext(_u),i=fr(),l=Pu(e),u=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;tn(()=>{if(!u)return i.item(o,s==null?void 0:s.id)},[u]);let m=Au(o,a,[e.value,e.children,a],e.keywords),c=rs(),p=Ft(N=>N.value&&N.value===m.current),h=Ft(N=>u||i.filter()===!1?!0:N.search?N.filtered.items.get(o)>0:!0);f.useEffect(()=>{let N=a.current;if(!(!N||e.disabled))return N.addEventListener(va,b),()=>N.removeEventListener(va,b)},[h,e.onSelect,e.disabled]);function b(){var N,M;g(),(M=(N=l.current).onSelect)==null||M.call(N,m.current)}function g(){c.setState("value",m.current,!0)}if(!h)return null;let{disabled:v,value:y,onSelect:x,forceMount:S,keywords:D,...C}=e;return f.createElement(ne.div,{ref:Dt(a,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||i.getDisablePointerSelection()?void 0:g,onClick:v?void 0:b},e.children)}),W0=f.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=Te(),i=f.useRef(null),l=f.useRef(null),u=Te(),m=fr(),c=Ft(h=>o||m.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);tn(()=>m.group(s),[]),Au(s,i,[e.value,e.heading,l]);let p=f.useMemo(()=>({id:s,forceMount:o}),[o]);return f.createElement(ne.div,{ref:Dt(i,t),...a,"cmdk-group":"",role:"presentation",hidden:c?void 0:!0},n&&f.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),go(e,h=>f.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f.createElement(_u.Provider,{value:p},h))))}),B0=f.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=f.useRef(null),a=Ft(s=>!s.search);return!n&&!a?null:f.createElement(ne.div,{ref:Dt(o,t),...r,"cmdk-separator":"",role:"separator"})}),Y0=f.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=rs(),s=Ft(u=>u.search),i=Ft(u=>u.selectedItemId),l=fr();return f.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),f.createElement(ne.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:o?e.value:s,onChange:u=>{o||a.setState("search",u.target.value),n==null||n(u.target.value)}})}),H0=f.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=f.useRef(null),s=f.useRef(null),i=Ft(u=>u.selectedItemId),l=fr();return f.useEffect(()=>{if(s.current&&a.current){let u=s.current,m=a.current,c,p=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let h=u.offsetHeight;m.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return p.observe(u),()=>{cancelAnimationFrame(c),p.unobserve(u)}}},[]),f.createElement(ne.div,{ref:Dt(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:l.listId},go(e,u=>f.createElement("div",{ref:Dt(s,l.listInnerRef),"cmdk-list-sizer":""},u)))}),z0=f.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return f.createElement(Qa,{open:n,onOpenChange:r},f.createElement(Ja,{container:s},f.createElement(po,{"cmdk-overlay":"",className:o}),f.createElement(ho,{"aria-label":e.label,"cmdk-dialog":"",className:a},f.createElement(Ou,{ref:t,...i}))))}),G0=f.forwardRef((e,t)=>Ft(n=>n.filtered.count===0)?f.createElement(ne.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),U0=f.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return f.createElement(ne.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},go(e,s=>f.createElement("div",{"aria-hidden":!0},s)))}),Fe=Object.assign(Ou,{List:H0,Item:F0,Input:Y0,Group:W0,Separator:B0,Dialog:z0,Empty:G0,Loading:U0});function V0(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function q0(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Pu(e){let t=f.useRef(e);return tn(()=>{t.current=e}),t}var tn=typeof window>"u"?f.useEffect:f.useLayoutEffect;function gn(e){let t=f.useRef();return t.current===void 0&&(t.current=e()),t}function Ft(e){let t=rs(),n=()=>e(t.snapshot());return f.useSyncExternalStore(t.subscribe,n,n)}function Au(e,t,n,r=[]){let o=f.useRef(),a=fr();return tn(()=>{var s;let i=(()=>{var u;for(let m of n){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(u=m.current.textContent)==null?void 0:u.trim():o.current}})(),l=r.map(u=>u.trim());a.value(e,i,l),(s=t.current)==null||s.setAttribute(hn,i),o.current=i}),o}var K0=()=>{let[e,t]=f.useState(),n=gn(()=>new Map);return tn(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function X0(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function go({asChild:e,children:t},n){return e&&f.isValidElement(t)?f.cloneElement(X0(t),{ref:t.ref},n(t.props.children)):n(t)}var Z0={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Q0=Qa,J0=Eu,e1=Ja,t1=ns,Iu=f.forwardRef(({className:e,...t},n)=>d.jsx(po,{ref:n,className:W("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}));Iu.displayName=po.displayName;const ju=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(e1,{children:[d.jsx(Iu,{}),d.jsxs(ho,{ref:r,className:W("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,d.jsxs(ns,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[d.jsx(kn,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ju.displayName=ho.displayName;const $u=({className:e,...t})=>d.jsx("div",{className:W("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$u.displayName="DialogHeader";const Lu=({className:e,...t})=>d.jsx("div",{className:W("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Lu.displayName="DialogFooter";const Fu=f.forwardRef(({className:e,...t},n)=>d.jsx(es,{ref:n,className:W("text-lg font-semibold leading-none tracking-tight",e),...t}));Fu.displayName=es.displayName;const Wu=f.forwardRef(({className:e,...t},n)=>d.jsx(ts,{ref:n,className:W("text-sm text-muted-foreground",e),...t}));Wu.displayName=ts.displayName;const n1=f.forwardRef(({className:e,...t},n)=>d.jsx(Fe,{ref:n,className:W("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));n1.displayName=Fe.displayName;const Bu=f.forwardRef(({className:e,...t},n)=>d.jsxs("div",{className:"flex items-center h-auto px-3","cmdk-input-wrapper":"",children:[d.jsx(ac,{strokeWidth:1.25,className:"mr-2 h-4 w-4 shrink-0"}),d.jsx(Fe.Input,{ref:n,className:W("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-gray-400 disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Bu.displayName=Fe.Input.displayName;const Yu=f.forwardRef(({className:e,...t},n)=>d.jsx(Fe.List,{ref:n,className:W("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Yu.displayName=Fe.List.displayName;const r1=f.forwardRef((e,t)=>d.jsx(Fe.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));r1.displayName=Fe.Empty.displayName;const Hu=f.forwardRef(({className:e,...t},n)=>d.jsx(Fe.Group,{ref:n,className:W("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Hu.displayName=Fe.Group.displayName;const o1=f.forwardRef(({className:e,...t},n)=>d.jsx(Fe.Separator,{ref:n,className:W("-mx-1 h-px bg-border",e),...t}));o1.displayName=Fe.Separator.displayName;const zu=f.forwardRef(({className:e,...t},n)=>d.jsx(Fe.Item,{ref:n,className:W("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));zu.displayName=Fe.Item.displayName;function a1({className:e,...t}){return d.jsx("div",{className:W("animate-pulse rounded-md bg-muted",e),...t})}function s1(e="medium",t="white"){const n={small:"text-sm py-1 px-2 h-8",medium:"text-base py-2 px-3 h-10",large:"text-lg py-3 px-4 h-12"},r={white:"bg-background text-foreground border-border",grey:"bg-muted text-muted-foreground border-border"};return{sizeClasses:n[e],variantClasses:r[t],combined:`${n[e]} ${r[t]}`}}const i1=({options:e,placeholder:t,emptyMessage:n,value:r,onValueChange:o,disabled:a,isLoading:s=!1,className:i,size:l,variant:u})=>{const{variantClasses:m,combined:c}=s1(l,u),p=w.useRef(null),[h,b]=w.useState(!1),[g,v]=w.useState(r),[y,x]=w.useState((r==null?void 0:r.label)||""),S=w.useCallback(N=>{const M=p.current;if(M){if(h||b(!0),N.key==="Enter"&&M.value!==""){const E=e.find(L=>L.label===M.value);E&&(v(E),o==null||o(E))}N.key==="Escape"&&M.blur()}},[h,e,o]),D=w.useCallback(()=>{b(!1),x((g==null?void 0:g.label)||"")},[g]),C=w.useCallback(N=>{x(N.label),v(N),o==null||o(N),setTimeout(()=>{var M;(M=p==null?void 0:p.current)==null||M.blur()},0)},[o]);return d.jsxs(Fe,{onKeyDown:S,children:[d.jsxs("div",{className:W("rounded-full border bg-gray-100",m,i),children:[" ",d.jsx(Bu,{ref:p,value:y,onValueChange:s?void 0:x,onBlur:D,onFocus:()=>b(!0),placeholder:t,disabled:a,className:c})]}),d.jsx("div",{className:"relative mt-1",children:d.jsx("div",{className:W("animate-in fade-in-0 zoom-in-95 absolute top-0 z-10 w-full rounded-xl bg-white dark:bg-gray-800 outline-none",h?"block":"hidden",i),children:d.jsxs(Yu,{className:"rounded-lg ring-1 ring-slate-200 dark:ring-gray-700",children:[s?d.jsx(Fe.Loading,{children:d.jsx("div",{className:"p-1",children:d.jsx(a1,{className:"h-8 w-full"})})}):null,e.length>0&&!s?d.jsx(Hu,{children:e.map(N=>{const M=(g==null?void 0:g.value)===N.value;return d.jsxs(zu,{value:N.label,onMouseDown:E=>{E.preventDefault(),E.stopPropagation()},onSelect:()=>C(N),className:W("flex w-full items-center gap-2 dark:text-white",M?null:"pl-8"),children:[M?d.jsx(Jn,{className:"w-4"}):null,N.label]},N.value)})}):null,s?null:d.jsx(Fe.Empty,{className:"select-none rounded-sm px-2 py-3 text-center text-sm dark:text-gray-400",children:n})]})})})]})},c1=Zr("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l1({className:e,variant:t,...n}){return d.jsx("div",{className:W(c1({variant:t}),e),...n})}function u1({title:e,children:t,className:n}){return d.jsxs("section",{className:W("space-y-6",n),children:[d.jsx("div",{className:"border-b border-gray-200 pb-3",children:d.jsx("h2",{className:"text-sm font-semibold text-gray-900 tracking-wide uppercase",children:e})}),t]})}function d1({title:e,variant:t="primary",children:n,className:r}){return d.jsxs("div",{className:W("space-y-4",r),children:[d.jsx(l1,{variant:t==="primary"?"default":"secondary",className:W(t==="primary"&&"bg-black text-white hover:bg-black/90"),children:e}),n]})}const Gu=w.forwardRef(({className:e,label:t,helperText:n,error:r,startAdornment:o,endAdornment:a,required:s,id:i,onInput:l,...u},m)=>{const c=!!r,p=i||`currency-input-${Math.random().toString(36).substr(2,9)}`,h=b=>{var x;const g=b.currentTarget;let v=g.value;v=v.replace(/[^0-9.]/g,"");const y=v.split(".");y.length>2&&(v=y[0]+"."+y.slice(1).join("")),((x=y[1])==null?void 0:x.length)>2&&(v=y[0]+"."+y[1].substring(0,2)),g.value=v,l&&l(b)};return d.jsxs("div",{className:"flex flex-col space-y-1",children:[t&&d.jsxs("label",{htmlFor:p,className:"text-sm font-medium text-gray-700",children:[t,s&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs("div",{className:W("flex items-center h-10 w-full rounded-md border bg-background text-sm ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",c?"border-red-500 focus-within:ring-red-500":"border-input focus-within:ring-primary",e),children:[o&&d.jsx("span",{className:"px-3 text-sm text-muted-foreground",children:o}),d.jsx("input",{id:p,type:"text",inputMode:"decimal",pattern:"^\\d+(\\.\\d{0,2})?$",className:W("flex-1 px-3 py-2 rounded-md placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50",c?"focus:ring-red-500":"focus:ring-primary"),ref:m,onInput:h,...u}),a&&d.jsx("span",{className:"px-3 text-sm text-muted-foreground",children:a})]}),(n||r)&&d.jsx("span",{className:W("text-xs",c?"text-red-500":"text-muted-foreground"),children:r||n})]})});Gu.displayName="CurrencyInput";const Uu=w.memo(({className:e="",variant:t="default",children:n,...r})=>{const o={default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground border-border bg-background hover:bg-accent hover:text-accent-foreground"};return d.jsx("div",{className:`inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 ${o[t]} ${e}`,...r,children:n})});Uu.displayName="Badge";const f1={small:"h-8 text-xs px-2",medium:"h-10 text-sm px-3",large:"h-12 text-base px-4"},m1={outlined:"border border-input",filled:"border-0 bg-accent",standard:"border-0 border-b border-input rounded-none"},p1=e=>typeof e=="string"?e:e&&typeof e=="object"&&"label"in e?String(e.label)||"":String(e)||"",h1=e=>typeof e=="string"?e:e&&typeof e=="object"&&"value"in e&&e.value||e,g1=(e,t,n)=>{if(e===t)return!0;const r=n(e),o=n(t);return r===o},v1=(e,t,n)=>{if(!t.trim())return e;const r=t.toLowerCase().trim();return e.filter(o=>n(o).toLowerCase().includes(r))},Vu=e=>{const{option:t,index:n,isSelected:r,isHighlighted:o,onSelect:a,getOptionLabel:s,renderOption:i}=e,l=w.useCallback(u=>{u.preventDefault(),u.stopPropagation(),a(t)},[t,a]);return d.jsx("div",{onClick:l,className:`
182
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},I0="DialogDescriptionWarning",j0=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ku(I0).contentName}}.`;return f.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Qa=fu,Eu=pu,Ja=gu,po=vu,ho=yu,es=wu,ts=Su,ns=Mu,Fn='[cmdk-group=""]',zo='[cmdk-group-items=""]',$0='[cmdk-group-heading=""]',Nu='[cmdk-item=""]',xi=`${Nu}:not([aria-disabled="true"])`,va="cmdk-item-select",hn="data-value",L0=(e,t,n)=>E0(e,t,n),Ru=f.createContext(void 0),fr=()=>f.useContext(Ru),Tu=f.createContext(void 0),rs=()=>f.useContext(Tu),_u=f.createContext(void 0),Ou=f.forwardRef((e,t)=>{let n=gn(()=>{var I,j;return{search:"",value:(j=(I=e.value)!=null?I:e.defaultValue)!=null?j:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=gn(()=>new Set),o=gn(()=>new Map),a=gn(()=>new Map),s=gn(()=>new Set),i=Pu(e),{label:l,children:u,value:m,onValueChange:c,filter:p,shouldFilter:h,loop:b,disablePointerSelection:g=!1,vimBindings:v=!0,...y}=e,x=Ee(),S=Ee(),D=Ee(),C=f.useRef(null),N=K0();tn(()=>{if(m!==void 0){let I=m.trim();n.current.value=I,M.emit()}},[m]),tn(()=>{N(6,A)},[]);let M=f.useMemo(()=>({subscribe:I=>(s.current.add(I),()=>s.current.delete(I)),snapshot:()=>n.current,setState:(I,j,B)=>{var z,K,L,q;if(!Object.is(n.current[I],j)){if(n.current[I]=j,I==="search")U(),W(),N(1,Y);else if(I==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let X=document.getElementById(D);X?X.focus():(z=document.getElementById(x))==null||z.focus()}if(N(7,()=>{var X;n.current.selectedItemId=(X=T())==null?void 0:X.id,M.emit()}),B||N(5,A),((K=i.current)==null?void 0:K.value)!==void 0){let X=j??"";(q=(L=i.current).onValueChange)==null||q.call(L,X);return}}M.emit()}},emit:()=>{s.current.forEach(I=>I())}}),[]),E=f.useMemo(()=>({value:(I,j,B)=>{var z;j!==((z=a.current.get(I))==null?void 0:z.value)&&(a.current.set(I,{value:j,keywords:B}),n.current.filtered.items.set(I,$(j,B)),N(2,()=>{W(),M.emit()}))},item:(I,j)=>(r.current.add(I),j&&(o.current.has(j)?o.current.get(j).add(I):o.current.set(j,new Set([I]))),N(3,()=>{U(),W(),n.current.value||Y(),M.emit()}),()=>{a.current.delete(I),r.current.delete(I),n.current.filtered.items.delete(I);let B=T();N(4,()=>{U(),(B==null?void 0:B.getAttribute("id"))===I&&Y(),M.emit()})}),group:I=>(o.current.has(I)||o.current.set(I,new Set),()=>{a.current.delete(I),o.current.delete(I)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:x,inputId:D,labelId:S,listInnerRef:C}),[]);function $(I,j){var B,z;let K=(z=(B=i.current)==null?void 0:B.filter)!=null?z:L0;return I?K(I,n.current.search,j):0}function W(){if(!n.current.search||i.current.shouldFilter===!1)return;let I=n.current.filtered.items,j=[];n.current.filtered.groups.forEach(z=>{let K=o.current.get(z),L=0;K.forEach(q=>{let X=I.get(q);L=Math.max(X,L)}),j.push([z,L])});let B=C.current;_().sort((z,K)=>{var L,q;let X=z.getAttribute("id"),Q=K.getAttribute("id");return((L=I.get(Q))!=null?L:0)-((q=I.get(X))!=null?q:0)}).forEach(z=>{let K=z.closest(zo);K?K.appendChild(z.parentElement===K?z:z.closest(`${zo} > *`)):B.appendChild(z.parentElement===B?z:z.closest(`${zo} > *`))}),j.sort((z,K)=>K[1]-z[1]).forEach(z=>{var K;let L=(K=C.current)==null?void 0:K.querySelector(`${Fn}[${hn}="${encodeURIComponent(z[0])}"]`);L==null||L.parentElement.appendChild(L)})}function Y(){let I=_().find(B=>B.getAttribute("aria-disabled")!=="true"),j=I==null?void 0:I.getAttribute(hn);M.setState("value",j||void 0)}function U(){var I,j,B,z;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let K=0;for(let L of r.current){let q=(j=(I=a.current.get(L))==null?void 0:I.value)!=null?j:"",X=(z=(B=a.current.get(L))==null?void 0:B.keywords)!=null?z:[],Q=$(q,X);n.current.filtered.items.set(L,Q),Q>0&&K++}for(let[L,q]of o.current)for(let X of q)if(n.current.filtered.items.get(X)>0){n.current.filtered.groups.add(L);break}n.current.filtered.count=K}function A(){var I,j,B;let z=T();z&&(((I=z.parentElement)==null?void 0:I.firstChild)===z&&((B=(j=z.closest(Fn))==null?void 0:j.querySelector($0))==null||B.scrollIntoView({block:"nearest"})),z.scrollIntoView({block:"nearest"}))}function T(){var I;return(I=C.current)==null?void 0:I.querySelector(`${Nu}[aria-selected="true"]`)}function _(){var I;return Array.from(((I=C.current)==null?void 0:I.querySelectorAll(xi))||[])}function R(I){let j=_()[I];j&&M.setState("value",j.getAttribute(hn))}function P(I){var j;let B=T(),z=_(),K=z.findIndex(q=>q===B),L=z[K+I];(j=i.current)!=null&&j.loop&&(L=K+I<0?z[z.length-1]:K+I===z.length?z[0]:z[K+I]),L&&M.setState("value",L.getAttribute(hn))}function k(I){let j=T(),B=j==null?void 0:j.closest(Fn),z;for(;B&&!z;)B=I>0?q0(B,Fn):V0(B,Fn),z=B==null?void 0:B.querySelector(xi);z?M.setState("value",z.getAttribute(hn)):P(I)}let O=()=>R(_().length-1),H=I=>{I.preventDefault(),I.metaKey?O():I.altKey?k(1):P(1)},V=I=>{I.preventDefault(),I.metaKey?R(0):I.altKey?k(-1):P(-1)};return f.createElement(ee.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:I=>{var j;(j=y.onKeyDown)==null||j.call(y,I);let B=I.nativeEvent.isComposing||I.keyCode===229;if(!(I.defaultPrevented||B))switch(I.key){case"n":case"j":{v&&I.ctrlKey&&H(I);break}case"ArrowDown":{H(I);break}case"p":case"k":{v&&I.ctrlKey&&V(I);break}case"ArrowUp":{V(I);break}case"Home":{I.preventDefault(),R(0);break}case"End":{I.preventDefault(),O();break}case"Enter":{I.preventDefault();let z=T();if(z){let K=new Event(va);z.dispatchEvent(K)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:Z0},l),go(e,I=>f.createElement(Tu.Provider,{value:M},f.createElement(Ru.Provider,{value:E},I))))}),F0=f.forwardRef((e,t)=>{var n,r;let o=Ee(),a=f.useRef(null),s=f.useContext(_u),i=fr(),l=Pu(e),u=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;tn(()=>{if(!u)return i.item(o,s==null?void 0:s.id)},[u]);let m=Au(o,a,[e.value,e.children,a],e.keywords),c=rs(),p=Lt(N=>N.value&&N.value===m.current),h=Lt(N=>u||i.filter()===!1?!0:N.search?N.filtered.items.get(o)>0:!0);f.useEffect(()=>{let N=a.current;if(!(!N||e.disabled))return N.addEventListener(va,b),()=>N.removeEventListener(va,b)},[h,e.onSelect,e.disabled]);function b(){var N,M;g(),(M=(N=l.current).onSelect)==null||M.call(N,m.current)}function g(){c.setState("value",m.current,!0)}if(!h)return null;let{disabled:v,value:y,onSelect:x,forceMount:S,keywords:D,...C}=e;return f.createElement(ee.div,{ref:Mt(a,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||i.getDisablePointerSelection()?void 0:g,onClick:v?void 0:b},e.children)}),W0=f.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=Ee(),i=f.useRef(null),l=f.useRef(null),u=Ee(),m=fr(),c=Lt(h=>o||m.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);tn(()=>m.group(s),[]),Au(s,i,[e.value,e.heading,l]);let p=f.useMemo(()=>({id:s,forceMount:o}),[o]);return f.createElement(ee.div,{ref:Mt(i,t),...a,"cmdk-group":"",role:"presentation",hidden:c?void 0:!0},n&&f.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),go(e,h=>f.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f.createElement(_u.Provider,{value:p},h))))}),B0=f.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=f.useRef(null),a=Lt(s=>!s.search);return!n&&!a?null:f.createElement(ee.div,{ref:Mt(o,t),...r,"cmdk-separator":"",role:"separator"})}),Y0=f.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=rs(),s=Lt(u=>u.search),i=Lt(u=>u.selectedItemId),l=fr();return f.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),f.createElement(ee.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:o?e.value:s,onChange:u=>{o||a.setState("search",u.target.value),n==null||n(u.target.value)}})}),H0=f.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=f.useRef(null),s=f.useRef(null),i=Lt(u=>u.selectedItemId),l=fr();return f.useEffect(()=>{if(s.current&&a.current){let u=s.current,m=a.current,c,p=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let h=u.offsetHeight;m.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return p.observe(u),()=>{cancelAnimationFrame(c),p.unobserve(u)}}},[]),f.createElement(ee.div,{ref:Mt(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:l.listId},go(e,u=>f.createElement("div",{ref:Mt(s,l.listInnerRef),"cmdk-list-sizer":""},u)))}),z0=f.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return f.createElement(Qa,{open:n,onOpenChange:r},f.createElement(Ja,{container:s},f.createElement(po,{"cmdk-overlay":"",className:o}),f.createElement(ho,{"aria-label":e.label,"cmdk-dialog":"",className:a},f.createElement(Ou,{ref:t,...i}))))}),G0=f.forwardRef((e,t)=>Lt(n=>n.filtered.count===0)?f.createElement(ee.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),U0=f.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return f.createElement(ee.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},go(e,s=>f.createElement("div",{"aria-hidden":!0},s)))}),Le=Object.assign(Ou,{List:H0,Item:F0,Input:Y0,Group:W0,Separator:B0,Dialog:z0,Empty:G0,Loading:U0});function q0(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function V0(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Pu(e){let t=f.useRef(e);return tn(()=>{t.current=e}),t}var tn=typeof window>"u"?f.useEffect:f.useLayoutEffect;function gn(e){let t=f.useRef();return t.current===void 0&&(t.current=e()),t}function Lt(e){let t=rs(),n=()=>e(t.snapshot());return f.useSyncExternalStore(t.subscribe,n,n)}function Au(e,t,n,r=[]){let o=f.useRef(),a=fr();return tn(()=>{var s;let i=(()=>{var u;for(let m of n){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(u=m.current.textContent)==null?void 0:u.trim():o.current}})(),l=r.map(u=>u.trim());a.value(e,i,l),(s=t.current)==null||s.setAttribute(hn,i),o.current=i}),o}var K0=()=>{let[e,t]=f.useState(),n=gn(()=>new Map);return tn(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function X0(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function go({asChild:e,children:t},n){return e&&f.isValidElement(t)?f.cloneElement(X0(t),{ref:t.ref},n(t.props.children)):n(t)}var Z0={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Q0=Qa,J0=Eu,e1=Ja,t1=ns,Iu=f.forwardRef(({className:e,...t},n)=>d.jsx(po,{ref:n,className:F("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}));Iu.displayName=po.displayName;const ju=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(e1,{children:[d.jsx(Iu,{}),d.jsxs(ho,{ref:r,className:F("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,d.jsxs(ns,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[d.jsx(kn,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ju.displayName=ho.displayName;const $u=({className:e,...t})=>d.jsx("div",{className:F("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$u.displayName="DialogHeader";const Lu=({className:e,...t})=>d.jsx("div",{className:F("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Lu.displayName="DialogFooter";const Fu=f.forwardRef(({className:e,...t},n)=>d.jsx(es,{ref:n,className:F("text-lg font-semibold leading-none tracking-tight",e),...t}));Fu.displayName=es.displayName;const Wu=f.forwardRef(({className:e,...t},n)=>d.jsx(ts,{ref:n,className:F("text-sm text-muted-foreground",e),...t}));Wu.displayName=ts.displayName;const n1=f.forwardRef(({className:e,...t},n)=>d.jsx(Le,{ref:n,className:F("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));n1.displayName=Le.displayName;const Bu=f.forwardRef(({className:e,...t},n)=>d.jsxs("div",{className:"flex items-center h-auto px-3","cmdk-input-wrapper":"",children:[d.jsx(ac,{strokeWidth:1.25,className:"mr-2 h-4 w-4 shrink-0"}),d.jsx(Le.Input,{ref:n,className:F("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-gray-400 disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Bu.displayName=Le.Input.displayName;const Yu=f.forwardRef(({className:e,...t},n)=>d.jsx(Le.List,{ref:n,className:F("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Yu.displayName=Le.List.displayName;const r1=f.forwardRef((e,t)=>d.jsx(Le.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));r1.displayName=Le.Empty.displayName;const Hu=f.forwardRef(({className:e,...t},n)=>d.jsx(Le.Group,{ref:n,className:F("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Hu.displayName=Le.Group.displayName;const o1=f.forwardRef(({className:e,...t},n)=>d.jsx(Le.Separator,{ref:n,className:F("-mx-1 h-px bg-border",e),...t}));o1.displayName=Le.Separator.displayName;const zu=f.forwardRef(({className:e,...t},n)=>d.jsx(Le.Item,{ref:n,className:F("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));zu.displayName=Le.Item.displayName;function a1({className:e,...t}){return d.jsx("div",{className:F("animate-pulse rounded-md bg-muted",e),...t})}function s1(e="medium",t="white"){const n={small:"text-sm py-1 px-2 h-8",medium:"text-base py-2 px-3 h-10",large:"text-lg py-3 px-4 h-12"},r={white:"bg-background text-foreground border-border",grey:"bg-muted text-muted-foreground border-border"};return{sizeClasses:n[e],variantClasses:r[t],combined:`${n[e]} ${r[t]}`}}const i1=({options:e,placeholder:t,emptyMessage:n,value:r,onValueChange:o,disabled:a,isLoading:s=!1,className:i,size:l,variant:u})=>{const{variantClasses:m,combined:c}=s1(l,u),p=w.useRef(null),[h,b]=w.useState(!1),[g,v]=w.useState(r),[y,x]=w.useState((r==null?void 0:r.label)||""),S=w.useCallback(N=>{const M=p.current;if(M){if(h||b(!0),N.key==="Enter"&&M.value!==""){const E=e.find($=>$.label===M.value);E&&(v(E),o==null||o(E))}N.key==="Escape"&&M.blur()}},[h,e,o]),D=w.useCallback(()=>{b(!1),x((g==null?void 0:g.label)||"")},[g]),C=w.useCallback(N=>{x(N.label),v(N),o==null||o(N),setTimeout(()=>{var M;(M=p==null?void 0:p.current)==null||M.blur()},0)},[o]);return d.jsxs(Le,{onKeyDown:S,children:[d.jsxs("div",{className:F("rounded-full border bg-gray-100",m,i),children:[" ",d.jsx(Bu,{ref:p,value:y,onValueChange:s?void 0:x,onBlur:D,onFocus:()=>b(!0),placeholder:t,disabled:a,className:c})]}),d.jsx("div",{className:"relative mt-1",children:d.jsx("div",{className:F("animate-in fade-in-0 zoom-in-95 absolute top-0 z-10 w-full rounded-xl bg-white dark:bg-gray-800 outline-none",h?"block":"hidden",i),children:d.jsxs(Yu,{className:"rounded-lg ring-1 ring-slate-200 dark:ring-gray-700",children:[s?d.jsx(Le.Loading,{children:d.jsx("div",{className:"p-1",children:d.jsx(a1,{className:"h-8 w-full"})})}):null,e.length>0&&!s?d.jsx(Hu,{children:e.map(N=>{const M=(g==null?void 0:g.value)===N.value;return d.jsxs(zu,{value:N.label,onMouseDown:E=>{E.preventDefault(),E.stopPropagation()},onSelect:()=>C(N),className:F("flex w-full items-center gap-2 dark:text-white",M?null:"pl-8"),children:[M?d.jsx(Jn,{className:"w-4"}):null,N.label]},N.value)})}):null,s?null:d.jsx(Le.Empty,{className:"select-none rounded-sm px-2 py-3 text-center text-sm dark:text-gray-400",children:n})]})})})]})},c1=Zr("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l1({className:e,variant:t,...n}){return d.jsx("div",{className:F(c1({variant:t}),e),...n})}function u1({title:e,children:t,className:n}){return d.jsxs("section",{className:F("space-y-6",n),children:[d.jsx("div",{className:"border-b border-gray-200 pb-3",children:d.jsx("h2",{className:"text-sm font-semibold text-gray-900 tracking-wide uppercase",children:e})}),t]})}function d1({title:e,variant:t="primary",children:n,className:r}){return d.jsxs("div",{className:F("space-y-4",r),children:[d.jsx(l1,{variant:t==="primary"?"default":"secondary",className:F(t==="primary"&&"bg-black text-white hover:bg-black/90"),children:e}),n]})}const Gu=w.forwardRef(({className:e,label:t,helperText:n,error:r,startAdornment:o,endAdornment:a,required:s,id:i,onInput:l,...u},m)=>{const c=!!r,p=i||`currency-input-${Math.random().toString(36).substr(2,9)}`,h=b=>{var x;const g=b.currentTarget;let v=g.value;v=v.replace(/[^0-9.]/g,"");const y=v.split(".");y.length>2&&(v=y[0]+"."+y.slice(1).join("")),((x=y[1])==null?void 0:x.length)>2&&(v=y[0]+"."+y[1].substring(0,2)),g.value=v,l&&l(b)};return d.jsxs("div",{className:"flex flex-col space-y-1",children:[t&&d.jsxs("label",{htmlFor:p,className:"text-sm font-medium text-gray-700",children:[t,s&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs("div",{className:F("flex items-center h-10 w-full rounded-md border bg-background text-sm ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",c?"border-red-500 focus-within:ring-red-500":"border-input focus-within:ring-primary",e),children:[o&&d.jsx("span",{className:"px-3 text-sm text-muted-foreground",children:o}),d.jsx("input",{id:p,type:"text",inputMode:"decimal",pattern:"^\\d+(\\.\\d{0,2})?$",className:F("flex-1 px-3 py-2 rounded-md placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50",c?"focus:ring-red-500":"focus:ring-primary"),ref:m,onInput:h,...u}),a&&d.jsx("span",{className:"px-3 text-sm text-muted-foreground",children:a})]}),(n||r)&&d.jsx("span",{className:F("text-xs",c?"text-red-500":"text-muted-foreground"),children:r||n})]})});Gu.displayName="CurrencyInput";const Uu=w.memo(({className:e="",variant:t="default",children:n,...r})=>{const o={default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground border-border bg-background hover:bg-accent hover:text-accent-foreground"};return d.jsx("div",{className:`inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 ${o[t]} ${e}`,...r,children:n})});Uu.displayName="Badge";const f1={small:"h-8 text-xs px-2",medium:"h-10 text-sm px-3",large:"h-12 text-base px-4"},m1={outlined:"border border-input",filled:"border-0 bg-accent",standard:"border-0 border-b border-input rounded-none"},p1=e=>typeof e=="string"?e:(e==null?void 0:e.label)||"",h1=e=>typeof e=="string"?e:(e==null?void 0:e.value)||e,g1=(e,t,n)=>n(e)===n(t),v1=(e,t,n)=>{if(!t)return e;const r=t.toLowerCase();return e.filter(o=>n(o).toLowerCase().includes(r))},qu=e=>{const{option:t,index:n,isSelected:r,isHighlighted:o,onSelect:a,getOptionLabel:s,renderOption:i}=e,l=w.useCallback(()=>{a(t)},[t,a]);return d.jsx("div",{onClick:l,className:`
183
183
  px-3 py-2 cursor-pointer flex items-center justify-between
184
184
  text-sm transition-colors mb-[0.4vh]
185
185
  ${o?"bg-accent text-accent-foreground":""}
186
186
  ${r?"bg-primary/10":""}
187
187
  hover:bg-accent hover:text-accent-foreground
188
- `,children:i?i(t,n):d.jsxs(d.Fragment,{children:[d.jsx("span",{children:s(t)}),r&&d.jsx(Jn,{className:"h-4 w-4 text-primary"})]})})};Vu.displayName="AutocompleteOption";const qu=e=>{const{tag:t,index:n,getOptionLabel:r,onRemove:o}=e,a=w.useCallback(i=>{i.preventDefault(),i.stopPropagation(),o(t)},[t,o]),s=w.useCallback(()=>{if(typeof t=="string")return t;if(t&&typeof t=="object"){if("value"in t)return String(t.value);if("label"in t)return String(t.label)}return`tag-${n}`},[t,n]);return d.jsxs(Uu,{variant:"secondary",className:"text-xs",children:[r(t),d.jsx("button",{type:"button",onClick:a,className:"ml-1 hover:bg-secondary-foreground/20 rounded-full p-0.5",children:d.jsx(kn,{className:"h-3 w-3"})})]},s())};qu.displayName="AutocompleteTag";const y1=({options:e=[],value:t=null,onChange:n,onInputChange:r,placeholder:o="Search...",multiple:a=!1,freeSolo:s=!1,disabled:i=!1,loading:l=!1,size:u="medium",variant:m="outlined",label:c="",helperText:p="",error:h,required:b=!1,fullWidth:g=!0,clearable:v=!0,disableCloseOnSelect:y=!1,filterOptions:x,getOptionLabel:S=p1,getOptionValue:D=h1,isOptionEqualToValue:C,renderOption:N,renderTags:M,noOptionsText:E="No options",emptyMessage:L,className:B="",popupClassName:Y="",...V})=>{const[O,_]=w.useState(!1),[T,R]=w.useState(""),[A,k]=w.useState(-1),[P,z]=w.useState(!1),q=w.useRef(null),I=w.useRef(null),j=w.useRef(null),H=w.useId(),$=w.useMemo(()=>C||((Q,ee)=>g1(Q,ee,D)),[C,D]);w.useEffect(()=>{if(!P){if(!a&&t&&e.length>0){const Q=e.find(ee=>$(ee,t));if(Q){const ee=S(Q);console.log(`🔄 DoctAutocomplete Initialize (${c||o}):`,{selectedOption:Q,optionLabel:ee,setting:"inputValue to option label"}),R(ee)}}else!a&&!t&&(console.log(`🔄 DoctAutocomplete Initialize (${c||o}):`,{value:t,setting:"inputValue to empty"}),R(""));z(!0)}},[t,e,a,$,S,P,c,o]),w.useEffect(()=>{if(P&&!a){const Q=t&&e.length>0?e.find(ye=>$(ye,t)):null,ee=Q?S(Q):"";T!==ee&&(console.log(`🔄 DoctAutocomplete Sync (${c||o}):`,{currentValue:t,currentInputValue:T,expectedInputValue:ee,updating:"inputValue to match value"}),R(ee))}},[t,P,a,e,$,S,T,c,o]),w.useEffect(()=>{if(!a&&t&&P&&e.length>0&&T===""){const Q=e.find(ee=>$(ee,t));if(Q){const ee=S(Q);console.log(`📦 DoctAutocomplete Options Loaded (${c||o}):`,{foundOption:Q,settingInputTo:ee}),R(ee)}}},[e,t,P,a,$,S,T,c,o]);const K=w.useMemo(()=>{let Q=[...e];return a&&Array.isArray(t)&&t.length>0&&(Q=Q.filter(ee=>!t.some(ye=>$(ee,ye)))),x?x(Q,{inputValue:T}):v1(Q,T,S)},[e,t,T,x,S,a,$]),F=w.useCallback(Q=>{const ee=Q.target.value;console.log(`⌨️ DoctAutocomplete Input Change (${c||o}):`,{oldInputValue:T,newInputValue:ee,currentValue:t,wasOpen:O}),R(ee),r==null||r(Q,ee),k(-1),!O&&ee.trim()&&(console.log(" Opening dropdown due to input"),_(!0))},[O,r,T,t,c,o]),U=w.useCallback(Q=>{if(console.log(`🎯 DoctAutocomplete Option Select (${c||o}):`,{selectedOption:Q,multiple:a,currentValue:t,optionLabel:S(Q)}),a){const ee=Array.isArray(t)?t:[],ye=ee.some(We=>$(Q,We));console.log(" Multiple select - option exists:",ye);let De;ye?(De=ee.filter(We=>!$(Q,We)),console.log(" Removing option, new value:",De)):(De=[...ee,Q],console.log(" Adding option, new value:",De)),n==null||n(null,De),R(""),k(-1),y?setTimeout(()=>{var We;(We=q.current)==null||We.focus(),_(!0)},0):_(!1)}else{console.log(" Single select - setting value and inputValue");const ee=S(Q);console.log(" Setting inputValue to:",ee),n==null||n(null,Q),R(ee),_(!y),k(-1)}},[a,t,$,n,y,S,c,o]),X=w.useCallback(Q=>{if(console.log(`🏷️ DoctAutocomplete Tag Remove (${c||o}):`,{tagToRemove:Q,currentValue:t}),a&&Array.isArray(t)){const ee=t.filter(ye=>!$(Q,ye));console.log(" New value after tag removal:",ee),n==null||n(null,ee)}},[a,t,$,n,c,o]),J=w.useCallback(Q=>{console.log(`🧹 DoctAutocomplete Clear (${c||o}):`,{currentValue:t,currentInputValue:T,multiple:a}),Q.preventDefault(),Q.stopPropagation();const ee=a?[]:null;console.log(" Setting value to:",ee),n==null||n(null,ee),console.log(" Clearing inputValue"),R(""),k(-1),_(!1),setTimeout(()=>{q.current&&(q.current.value="",q.current.focus())},0)},[n,a,t,T,c,o]),ae=w.useCallback(Q=>{if(!O&&(Q.key==="ArrowDown"||Q.key==="ArrowUp")){Q.preventDefault(),_(!0),k(0);return}if(O)switch(Q.key){case"ArrowDown":Q.preventDefault(),k(ee=>ee<K.length-1?ee+1:0);break;case"ArrowUp":Q.preventDefault(),k(ee=>ee>0?ee-1:K.length-1);break;case"Enter":Q.preventDefault(),A>=0&&K[A]?U(K[A]):s&&T.trim()&&U(T.trim());break;case"Escape":if(Q.preventDefault(),_(!1),k(-1),!a&&t){const ee=e.find(ye=>$(ye,t));ee&&R(S(ee))}else!a&&!t&&R("");break;case"Tab":_(!1),k(-1);break;case"Backspace":if(a&&!T&&Array.isArray(t)&&t.length>0){Q.preventDefault();const ee=t[t.length-1];X(ee)}break}},[O,K,A,U,s,T,a,t,e,$,S,X]),ce=w.useCallback(Q=>{Q.preventDefault(),!i&&(_(!O),O||k(-1))},[O,i]),be=w.useCallback(()=>{i||_(!0)},[i]),te=w.useCallback(()=>{setTimeout(()=>{if(_(!1),k(-1),!a&&!s)if(t){const Q=e.find(ee=>$(ee,t));if(Q){const ee=S(Q);T!==ee&&(console.log(`🔄 DoctAutocomplete Blur Restore (${c||o}):`,{currentInput:T,correctLabel:ee,restoring:!0}),R(ee))}}else T&&(console.log(`🔄 DoctAutocomplete Blur Clear (${c||o}):`,{hadInput:T,clearing:!0}),R(""))},150)},[a,s,t,e,$,S,T,c,o]);w.useEffect(()=>{const Q=ee=>{j.current&&!j.current.contains(ee.target)&&(_(!1),k(-1))};if(O)return document.addEventListener("mousedown",Q),()=>document.removeEventListener("mousedown",Q)},[O]),w.useEffect(()=>{if(O&&A>=0&&I.current){const Q=I.current.children[A];Q&&Q.scrollIntoView({block:"nearest",behavior:"smooth"})}},[A,O]);const Pe=w.useMemo(()=>!a||!Array.isArray(t)||t.length===0?null:M?M(t,X):d.jsx("div",{className:"flex flex-wrap gap-1 mb-1",children:t.map((Q,ee)=>d.jsx(qu,{tag:Q,index:ee,getOptionLabel:S,onRemove:X},`tag-${ee}`))}),[a,t,M,X,S]),Ae=w.useMemo(()=>a?Array.isArray(t)&&t.length>0:t!=null,[a,t]),ke=v&&Ae&&!i,Ge=w.useMemo(()=>`
188
+ `,children:i?i(t,n):d.jsxs(d.Fragment,{children:[d.jsx("span",{children:s(t)}),r&&d.jsx(Jn,{className:"h-4 w-4 text-primary"})]})})};qu.displayName="AutocompleteOption";const Vu=e=>{const{tag:t,index:n,getOptionLabel:r,onRemove:o}=e,a=w.useCallback(()=>{o(t)},[t,o]);return d.jsxs(Uu,{variant:"secondary",className:"text-xs",children:[r(t),d.jsx("button",{type:"button",onClick:a,className:"ml-1 hover:bg-secondary-foreground/20 rounded-full p-0.5",children:d.jsx(kn,{className:"h-3 w-3"})})]},n)};Vu.displayName="AutocompleteTag";const y1=({options:e=[],value:t=null,onChange:n,onInputChange:r,placeholder:o="Search...",multiple:a=!1,freeSolo:s=!1,disabled:i=!1,loading:l=!1,size:u="medium",variant:m="outlined",label:c="",helperText:p="",error:h,required:b=!1,fullWidth:g=!0,clearable:v=!0,disableCloseOnSelect:y=!1,filterOptions:x,getOptionLabel:S=p1,getOptionValue:D=h1,isOptionEqualToValue:C,renderOption:N,renderTags:M,noOptionsText:E="No options",emptyMessage:$,className:W="",popupClassName:Y="",...U})=>{const[A,T]=w.useState(!1),[_,R]=w.useState(""),[P,k]=w.useState(-1),O=w.useRef(null),H=w.useRef(null),V=w.useRef(null),I=w.useId(),j=w.useMemo(()=>C||((oe,me)=>g1(oe,me,D)),[C,D]),B=w.useMemo(()=>{let oe=e;return a&&Array.isArray(t)&&(oe=e.filter(me=>!t.some(be=>j(me,be)))),x?x(oe,{inputValue:_}):v1(oe,_,S)},[e,t,_,x,S,a,j]),z=w.useCallback(oe=>{const me=oe.target.value;R(me),r==null||r(oe,me),!A&&me&&T(!0)},[A,r]),K=w.useCallback(oe=>{if(a){const me=Array.isArray(t)?t:[],be=me.some(He=>j(oe,He));let $e;be?$e=me.filter(He=>!j(oe,He)):$e=[...me,oe],n==null||n(null,$e),R(""),setTimeout(()=>{var He;(He=O.current)==null||He.focus(),T(!0)},0)}else n==null||n(null,oe),R(S(oe)),T(!1);k(-1)},[a,t,j,n,y,S]),L=w.useCallback(oe=>{if(a&&Array.isArray(t)){const me=t.filter(be=>!j(oe,be));n==null||n(null,me)}},[a,t,j,n]),q=w.useCallback(oe=>{oe.stopPropagation(),n==null||n(null,a?[]:null),R(""),setTimeout(()=>{O.current&&(O.current.value="",O.current.focus())},0),T(!1)},[n,a]),X=w.useCallback(oe=>{if(!A&&(oe.key==="ArrowDown"||oe.key==="ArrowUp")){T(!0);return}if(A)switch(oe.key){case"ArrowDown":oe.preventDefault(),k(me=>me<B.length-1?me+1:0);break;case"ArrowUp":oe.preventDefault(),k(me=>me>0?me-1:B.length-1);break;case"Enter":oe.preventDefault(),P>=0&&B[P]?K(B[P]):s&&_&&K(_);break;case"Escape":T(!1),k(-1);break;case"Tab":T(!1);break}},[A,B,P,K,s,_]),Q=w.useCallback(()=>{T(!A)},[A]),re=w.useCallback(()=>{T(!0)},[]);w.useEffect(()=>{const oe=me=>{V.current&&!V.current.contains(me.target)&&T(!1)};return document.addEventListener("mousedown",oe),()=>document.removeEventListener("mousedown",oe)},[]),w.useEffect(()=>{if(t&&!a){const oe=S(t);R(oe)}else t||R("")},[t,a,S]),w.useEffect(()=>{if(A&&P>=0&&H.current){const oe=H.current.children[P];oe&&oe.scrollIntoView({block:"nearest"})}},[P,A]);const ie=w.useMemo(()=>!a||!Array.isArray(t)||t.length===0?null:M?M(t,L):d.jsx("div",{className:"flex flex-wrap gap-1 mb-1",children:t.map((oe,me)=>d.jsx(Vu,{tag:oe,index:me,getOptionLabel:S,onRemove:L},me))}),[a,t,M,L,S]),ye=w.useMemo(()=>a?Array.isArray(t)&&t.length>0:t!=null,[a,t]),J=v&&ye&&!i,Te=w.useMemo(()=>`
189
189
  relative flex items-center rounded-md
190
190
  ${m1[m]}
191
191
  ${f1[u]}
192
- ${h?"border-red-500 focus-within:ring-red-500":""}
192
+ ${h&&"border border-red-500 focus-visible:ring-red-500"}
193
193
  ${i?"opacity-50 cursor-not-allowed":"cursor-text"}
194
- ${h?"":"focus-within:ring-1 focus-within:ring-ring focus-within:ring-offset-2"}
194
+ focus-within:ring-1 focus-within:ring-ring focus-within:ring-offset-2
195
195
  transition-colors
196
- `.trim().replace(/\s+/g," "),[m,u,h,i]),Me=L??E;return d.jsxs("div",{className:`relative ${g?"w-full":"w-auto"} ${B}`,ref:j,children:[c&&d.jsxs("label",{htmlFor:H,className:"block text-sm font-medium mb-1",children:[c,b&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsxs("div",{className:"relative",children:[Pe,d.jsxs("div",{className:Ge,children:[d.jsx(nn,{id:H,ref:q,value:T,onChange:F,onKeyDown:ae,onFocus:be,onBlur:te,placeholder:o,disabled:i,className:"px-0 border-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 bg-transparent rounded-md",autoComplete:"off",...V}),d.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[l&&d.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-muted-foreground border-t-transparent"}),ke&&d.jsx("button",{type:"button",onClick:J,className:"p-1 hover:bg-accent rounded-sm transition-colors",tabIndex:-1,children:d.jsx(kn,{className:"h-4 w-4 text-muted-foreground"})}),d.jsx("button",{type:"button",onClick:ce,className:"p-1 hover:bg-accent rounded-sm transition-colors",tabIndex:-1,disabled:i,children:d.jsx(er,{className:`h-4 w-4 text-muted-foreground transition-transform ${O?"rotate-180":""}`})})]})]}),O&&!i&&d.jsx("div",{className:`
196
+ `,[m,u,h,i]),_e=$??E;return d.jsxs("div",{className:`relative ${g?"w-full":"w-auto"} ${W}`,ref:V,children:[c&&d.jsxs("label",{htmlFor:I,className:"block text-sm font-medium mb-1",children:[c,b&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsxs("div",{className:"relative",children:[ie,d.jsxs("div",{className:Te,children:[d.jsx(nn,{id:I,ref:O,value:_,onChange:z,onKeyDown:X,onFocus:re,placeholder:o,disabled:i,className:"px-0 border-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 bg-transparent rounded-md",...U}),d.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[l&&d.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-muted-foreground border-t-transparent"}),J&&d.jsx("button",{type:"button",onClick:q,className:"p-1 hover:bg-accent rounded-sm transition-colors",tabIndex:-1,children:d.jsx(kn,{className:"h-4 w-4 text-muted-foreground"})}),d.jsx("button",{type:"button",onClick:Q,className:"p-1 hover:bg-accent rounded-sm transition-colors",tabIndex:-1,children:d.jsx(er,{className:`h-4 w-4 text-muted-foreground transition-transform ${A?"rotate-180":""}`})})]})]}),A&&d.jsx("div",{className:`
197
197
  absolute top-full left-0 right-0 z-50 mt-1
198
198
  bg-popover border border-border rounded-md shadow-lg
199
199
  max-h-60 overflow-auto
200
200
  ${Y}
201
- `,ref:I,children:K.length===0?d.jsx("div",{className:"p-3 text-sm text-muted-foreground text-center",children:Me}):K.map((Q,ee)=>{const ye=a?Array.isArray(t)&&t.some(We=>$(Q,We)):t!=null&&$(Q,t),De=ee===A;return d.jsx(Vu,{option:Q,index:ee,isSelected:ye,isHighlighted:De,onSelect:U,getOptionLabel:S,renderOption:N},`option-${ee}`)})})]}),(p||h)&&d.jsx("p",{className:`mt-1 text-xs ${h?"text-destructive":"text-muted-foreground"}`,children:h||p})]})};var vo="Collapsible",[b1,hD]=Ye(vo),[w1,os]=b1(vo),Ku=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[l,u]=nt({prop:r,defaultProp:o??!1,onChange:s,caller:vo});return d.jsx(w1,{scope:n,disabled:a,contentId:Te(),open:l,onOpenToggle:f.useCallback(()=>u(m=>!m),[u]),children:d.jsx(ne.div,{"data-state":ss(l),"data-disabled":a?"":void 0,...i,ref:t})})});Ku.displayName=vo;var Xu="CollapsibleTrigger",Zu=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=os(Xu,n);return d.jsx(ne.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ss(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:Z(e.onClick,o.onOpenToggle)})});Zu.displayName=Xu;var as="CollapsibleContent",Qu=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=os(as,e.__scopeCollapsible);return d.jsx(ze,{present:n||o.open,children:({present:a})=>d.jsx(x1,{...r,ref:t,present:a})})});Qu.displayName=as;var x1=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=os(as,n),[i,l]=f.useState(r),u=f.useRef(null),m=he(t,u),c=f.useRef(0),p=c.current,h=f.useRef(0),b=h.current,g=s.open||i,v=f.useRef(g),y=f.useRef(void 0);return f.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),Oe(()=>{const x=u.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const S=x.getBoundingClientRect();c.current=S.height,h.current=S.width,v.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(r)}},[s.open,r]),d.jsx(ne.div,{"data-state":ss(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...a,ref:m,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:g&&o})});function ss(e){return e?"open":"closed"}var S1=Ku,C1=Zu,M1=Qu;function D1({title:e,content:t,defaultOpen:n=!1}){const[r,o]=f.useState(n),a=()=>o(s=>!s);return d.jsxs(S1,{open:r,onOpenChange:o,className:"rounded-md border p-4 shadow-sm w-full min-w-[40vw] max-w-lg cursor-pointer",onClick:a,children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h3",{className:"text-lg font-medium",children:e}),d.jsx(C1,{asChild:!0,children:d.jsx("button",{onClick:s=>s.stopPropagation(),className:W("transition-transform duration-200",r?"rotate-180":"rotate-0"),children:d.jsx(er,{className:"h-5 w-5"})})})]}),d.jsx(M1,{className:"mt-4 CollapsibleContent data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",children:d.jsx("div",{className:"text-sm text-muted-foreground",children:t})})]})}const k1=Zr("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ju=f.forwardRef(({className:e,variant:t,...n},r)=>d.jsx("div",{ref:r,role:"alert",className:W(k1({variant:t}),e),...n}));Ju.displayName="Alert";const ed=f.forwardRef(({className:e,...t},n)=>d.jsx("h5",{ref:n,className:W("mb-1 font-medium leading-none tracking-tight",e),...t}));ed.displayName="AlertTitle";const td=f.forwardRef(({className:e,...t},n)=>d.jsx("p",{ref:n,className:W("text-sm [&_p]:leading-relaxed",e),...t}));td.displayName="AlertDescription";var kr={exports:{}},Go={};/**
201
+ `,ref:H,children:B.length===0?d.jsx("div",{className:"p-3 text-sm text-muted-foreground text-center",children:_e}):B.map((oe,me)=>{const be=a?Array.isArray(t)&&t.some(He=>j(oe,He)):j(oe,t),$e=me===P;return d.jsx(qu,{option:oe,index:me,isSelected:be,isHighlighted:$e,onSelect:K,getOptionLabel:S,renderOption:N},me)})})]}),(p||h)&&d.jsx("p",{className:`mt-1 text-xs ${h?"text-destructive":"text-muted-foreground"}`,children:h||p})]})};var vo="Collapsible",[b1,hD]=Be(vo),[w1,os]=b1(vo),Ku=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[l,u]=tt({prop:r,defaultProp:o??!1,onChange:s,caller:vo});return d.jsx(w1,{scope:n,disabled:a,contentId:Ee(),open:l,onOpenToggle:f.useCallback(()=>u(m=>!m),[u]),children:d.jsx(ee.div,{"data-state":ss(l),"data-disabled":a?"":void 0,...i,ref:t})})});Ku.displayName=vo;var Xu="CollapsibleTrigger",Zu=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=os(Xu,n);return d.jsx(ee.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ss(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:Z(e.onClick,o.onOpenToggle)})});Zu.displayName=Xu;var as="CollapsibleContent",Qu=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=os(as,e.__scopeCollapsible);return d.jsx(ze,{present:n||o.open,children:({present:a})=>d.jsx(x1,{...r,ref:t,present:a})})});Qu.displayName=as;var x1=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=os(as,n),[i,l]=f.useState(r),u=f.useRef(null),m=he(t,u),c=f.useRef(0),p=c.current,h=f.useRef(0),b=h.current,g=s.open||i,v=f.useRef(g),y=f.useRef(void 0);return f.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),Re(()=>{const x=u.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const S=x.getBoundingClientRect();c.current=S.height,h.current=S.width,v.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(r)}},[s.open,r]),d.jsx(ee.div,{"data-state":ss(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...a,ref:m,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:g&&o})});function ss(e){return e?"open":"closed"}var S1=Ku,C1=Zu,M1=Qu;function D1({title:e,content:t,defaultOpen:n=!1}){const[r,o]=f.useState(n),a=()=>o(s=>!s);return d.jsxs(S1,{open:r,onOpenChange:o,className:"rounded-md border p-4 shadow-sm w-full min-w-[40vw] max-w-lg cursor-pointer",onClick:a,children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h3",{className:"text-lg font-medium",children:e}),d.jsx(C1,{asChild:!0,children:d.jsx("button",{onClick:s=>s.stopPropagation(),className:F("transition-transform duration-200",r?"rotate-180":"rotate-0"),children:d.jsx(er,{className:"h-5 w-5"})})})]}),d.jsx(M1,{className:"mt-4 CollapsibleContent data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",children:d.jsx("div",{className:"text-sm text-muted-foreground",children:t})})]})}const k1=Zr("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ju=f.forwardRef(({className:e,variant:t,...n},r)=>d.jsx("div",{ref:r,role:"alert",className:F(k1({variant:t}),e),...n}));Ju.displayName="Alert";const ed=f.forwardRef(({className:e,...t},n)=>d.jsx("h5",{ref:n,className:F("mb-1 font-medium leading-none tracking-tight",e),...t}));ed.displayName="AlertTitle";const td=f.forwardRef(({className:e,...t},n)=>d.jsx("p",{ref:n,className:F("text-sm [&_p]:leading-relaxed",e),...t}));td.displayName="AlertDescription";var kr={exports:{}},Go={};/**
202
202
  * @license React
203
203
  * use-sync-external-store-shim.production.js
204
204
  *
@@ -214,15 +214,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
214
214
  *
215
215
  * This source code is licensed under the MIT license found in the
216
216
  * LICENSE file in the root directory of this source tree.
217
- */var Ci;function N1(){return Ci||(Ci=1,process.env.NODE_ENV!=="production"&&function(){function e(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}function t(h,b){m||o.startTransition===void 0||(m=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=b();if(!c){var v=b();a(g,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}v=s({inst:{value:g,getSnapshot:b}});var y=v[0].inst,x=v[1];return l(function(){y.value=g,y.getSnapshot=b,n(y)&&x({inst:y})},[h,g,b]),i(function(){return n(y)&&x({inst:y}),h(function(){n(y)&&x({inst:y})})},[h]),u(g),g}function n(h){var b=h.getSnapshot;h=h.value;try{var g=b();return!a(h,g)}catch{return!0}}function r(h,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=w,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,m=!1,c=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Uo.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Uo}var Mi;function R1(){return Mi||(Mi=1,process.env.NODE_ENV==="production"?kr.exports=E1():kr.exports=N1()),kr.exports}var T1=R1();function _1(){return T1.useSyncExternalStore(O1,()=>!0,()=>!1)}function O1(){return()=>{}}var is="Avatar",[P1,gD]=Ye(is),[A1,nd]=P1(is),rd=f.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=f.useState("idle");return d.jsx(A1,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:d.jsx(ne.span,{...r,ref:t})})});rd.displayName=is;var od="AvatarImage",ad=f.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=nd(od,n),i=I1(r,a),l=tt(u=>{o(u),s.onImageLoadingStatusChange(u)});return Oe(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?d.jsx(ne.img,{...a,ref:t,src:r}):null});ad.displayName=od;var sd="AvatarFallback",id=f.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=nd(sd,n),[s,i]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?d.jsx(ne.span,{...o,ref:t}):null});id.displayName=sd;function Di(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function I1(e,{referrerPolicy:t,crossOrigin:n}){const r=_1(),o=f.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=f.useState(()=>Di(a,e));return Oe(()=>{i(Di(a,e))},[a,e]),Oe(()=>{const l=c=>()=>{i(c)};if(!a)return;const u=l("loaded"),m=l("error");return a.addEventListener("load",u),a.addEventListener("error",m),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",m)}},[a,n,t]),s}var cd=rd,ld=ad,ud=id;const dd=f.forwardRef(({className:e,...t},n)=>d.jsx(cd,{ref:n,className:W("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));dd.displayName=cd.displayName;const fd=f.forwardRef(({className:e,...t},n)=>d.jsx(ld,{ref:n,className:W("aspect-square h-full w-full",e),...t}));fd.displayName=ld.displayName;const md=f.forwardRef(({className:e,...t},n)=>d.jsx(ud,{ref:n,className:W("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));md.displayName=ud.displayName;var yo="Checkbox",[j1,vD]=Ye(yo),[$1,cs]=j1(yo);function L1(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:s,name:i,onCheckedChange:l,required:u,value:m="on",internal_do_not_use_render:c}=e,[p,h]=nt({prop:n,defaultProp:o??!1,onChange:l,caller:yo}),[b,g]=f.useState(null),[v,y]=f.useState(null),x=f.useRef(!1),S=b?!!s||!!b.closest("form"):!0,D={checked:p,disabled:a,setChecked:h,control:b,setControl:g,name:i,form:s,value:m,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:It(o)?!1:o,isFormControl:S,bubbleInput:v,setBubbleInput:y};return d.jsx($1,{scope:t,...D,children:F1(c)?c(D):r})}var pd="CheckboxTrigger",hd=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:s,disabled:i,checked:l,required:u,setControl:m,setChecked:c,hasConsumerStoppedPropagationRef:p,isFormControl:h,bubbleInput:b}=cs(pd,e),g=he(o,m),v=f.useRef(l);return f.useEffect(()=>{const y=a==null?void 0:a.form;if(y){const x=()=>c(v.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[a,c]),d.jsx(ne.button,{type:"button",role:"checkbox","aria-checked":It(l)?"mixed":l,"aria-required":u,"data-state":wd(l),"data-disabled":i?"":void 0,disabled:i,value:s,...r,ref:g,onKeyDown:Z(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:Z(n,y=>{c(x=>It(x)?!0:!x),b&&h&&(p.current=y.isPropagationStopped(),p.current||y.stopPropagation())})})});hd.displayName=pd;var ls=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:l,onCheckedChange:u,form:m,...c}=e;return d.jsx(L1,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:i,required:s,onCheckedChange:u,name:r,form:m,value:l,internal_do_not_use_render:({isFormControl:p})=>d.jsxs(d.Fragment,{children:[d.jsx(hd,{...c,ref:t,__scopeCheckbox:n}),p&&d.jsx(bd,{__scopeCheckbox:n})]})})});ls.displayName=yo;var gd="CheckboxIndicator",vd=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=cs(gd,n);return d.jsx(ze,{present:r||It(a.checked)||a.checked===!0,children:d.jsx(ne.span,{"data-state":wd(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});vd.displayName=gd;var yd="CheckboxBubbleInput",bd=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:i,disabled:l,name:u,value:m,form:c,bubbleInput:p,setBubbleInput:h}=cs(yd,e),b=he(n,h),g=Ha(a),v=ja(r);f.useEffect(()=>{const x=p;if(!x)return;const S=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(S,"checked").set,N=!o.current;if(g!==a&&C){const M=new Event("click",{bubbles:N});x.indeterminate=It(a),C.call(x,It(a)?!1:a),x.dispatchEvent(M)}},[p,g,a,o]);const y=f.useRef(It(a)?!1:a);return d.jsx(ne.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??y.current,required:i,disabled:l,name:u,value:m,form:c,...t,tabIndex:-1,ref:b,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});bd.displayName=yd;function F1(e){return typeof e=="function"}function It(e){return e==="indeterminate"}function wd(e){return It(e)?"indeterminate":e?"checked":"unchecked"}const xd=f.forwardRef(({className:e,color:t="#029cfd",...n},r)=>d.jsx(ls,{ref:r,className:W("peer h-4 w-4 shrink-0 rounded-sm border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:text-white",e),style:{borderColor:t,backgroundColor:n.checked?t:"transparent"},...n,children:d.jsx(vd,{className:"flex items-center justify-center text-current",children:n.checked==="indeterminate"?d.jsx(hh,{className:"h-4 w-4 text-white"}):d.jsx(Jn,{className:"h-4 w-4"})})}));xd.displayName=ls.displayName;function W1(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 Sd=w.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),mr=()=>{const e=w.useContext(Sd);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};W1(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
217
+ */var Ci;function N1(){return Ci||(Ci=1,process.env.NODE_ENV!=="production"&&function(){function e(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}function t(h,b){m||o.startTransition===void 0||(m=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=b();if(!c){var v=b();a(g,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}v=s({inst:{value:g,getSnapshot:b}});var y=v[0].inst,x=v[1];return l(function(){y.value=g,y.getSnapshot=b,n(y)&&x({inst:y})},[h,g,b]),i(function(){return n(y)&&x({inst:y}),h(function(){n(y)&&x({inst:y})})},[h]),u(g),g}function n(h){var b=h.getSnapshot;h=h.value;try{var g=b();return!a(h,g)}catch{return!0}}function r(h,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=w,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,m=!1,c=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Uo.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Uo}var Mi;function R1(){return Mi||(Mi=1,process.env.NODE_ENV==="production"?kr.exports=E1():kr.exports=N1()),kr.exports}var T1=R1();function _1(){return T1.useSyncExternalStore(O1,()=>!0,()=>!1)}function O1(){return()=>{}}var is="Avatar",[P1,gD]=Be(is),[A1,nd]=P1(is),rd=f.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=f.useState("idle");return d.jsx(A1,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:d.jsx(ee.span,{...r,ref:t})})});rd.displayName=is;var od="AvatarImage",ad=f.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=nd(od,n),i=I1(r,a),l=et(u=>{o(u),s.onImageLoadingStatusChange(u)});return Re(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?d.jsx(ee.img,{...a,ref:t,src:r}):null});ad.displayName=od;var sd="AvatarFallback",id=f.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=nd(sd,n),[s,i]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?d.jsx(ee.span,{...o,ref:t}):null});id.displayName=sd;function Di(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function I1(e,{referrerPolicy:t,crossOrigin:n}){const r=_1(),o=f.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=f.useState(()=>Di(a,e));return Re(()=>{i(Di(a,e))},[a,e]),Re(()=>{const l=c=>()=>{i(c)};if(!a)return;const u=l("loaded"),m=l("error");return a.addEventListener("load",u),a.addEventListener("error",m),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",m)}},[a,n,t]),s}var cd=rd,ld=ad,ud=id;const dd=f.forwardRef(({className:e,...t},n)=>d.jsx(cd,{ref:n,className:F("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));dd.displayName=cd.displayName;const fd=f.forwardRef(({className:e,...t},n)=>d.jsx(ld,{ref:n,className:F("aspect-square h-full w-full",e),...t}));fd.displayName=ld.displayName;const md=f.forwardRef(({className:e,...t},n)=>d.jsx(ud,{ref:n,className:F("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));md.displayName=ud.displayName;var yo="Checkbox",[j1,vD]=Be(yo),[$1,cs]=j1(yo);function L1(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:s,name:i,onCheckedChange:l,required:u,value:m="on",internal_do_not_use_render:c}=e,[p,h]=tt({prop:n,defaultProp:o??!1,onChange:l,caller:yo}),[b,g]=f.useState(null),[v,y]=f.useState(null),x=f.useRef(!1),S=b?!!s||!!b.closest("form"):!0,D={checked:p,disabled:a,setChecked:h,control:b,setControl:g,name:i,form:s,value:m,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:At(o)?!1:o,isFormControl:S,bubbleInput:v,setBubbleInput:y};return d.jsx($1,{scope:t,...D,children:F1(c)?c(D):r})}var pd="CheckboxTrigger",hd=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:s,disabled:i,checked:l,required:u,setControl:m,setChecked:c,hasConsumerStoppedPropagationRef:p,isFormControl:h,bubbleInput:b}=cs(pd,e),g=he(o,m),v=f.useRef(l);return f.useEffect(()=>{const y=a==null?void 0:a.form;if(y){const x=()=>c(v.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[a,c]),d.jsx(ee.button,{type:"button",role:"checkbox","aria-checked":At(l)?"mixed":l,"aria-required":u,"data-state":wd(l),"data-disabled":i?"":void 0,disabled:i,value:s,...r,ref:g,onKeyDown:Z(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:Z(n,y=>{c(x=>At(x)?!0:!x),b&&h&&(p.current=y.isPropagationStopped(),p.current||y.stopPropagation())})})});hd.displayName=pd;var ls=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:l,onCheckedChange:u,form:m,...c}=e;return d.jsx(L1,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:i,required:s,onCheckedChange:u,name:r,form:m,value:l,internal_do_not_use_render:({isFormControl:p})=>d.jsxs(d.Fragment,{children:[d.jsx(hd,{...c,ref:t,__scopeCheckbox:n}),p&&d.jsx(bd,{__scopeCheckbox:n})]})})});ls.displayName=yo;var gd="CheckboxIndicator",vd=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=cs(gd,n);return d.jsx(ze,{present:r||At(a.checked)||a.checked===!0,children:d.jsx(ee.span,{"data-state":wd(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});vd.displayName=gd;var yd="CheckboxBubbleInput",bd=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:i,disabled:l,name:u,value:m,form:c,bubbleInput:p,setBubbleInput:h}=cs(yd,e),b=he(n,h),g=Ha(a),v=ja(r);f.useEffect(()=>{const x=p;if(!x)return;const S=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(S,"checked").set,N=!o.current;if(g!==a&&C){const M=new Event("click",{bubbles:N});x.indeterminate=At(a),C.call(x,At(a)?!1:a),x.dispatchEvent(M)}},[p,g,a,o]);const y=f.useRef(At(a)?!1:a);return d.jsx(ee.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??y.current,required:i,disabled:l,name:u,value:m,form:c,...t,tabIndex:-1,ref:b,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});bd.displayName=yd;function F1(e){return typeof e=="function"}function At(e){return e==="indeterminate"}function wd(e){return At(e)?"indeterminate":e?"checked":"unchecked"}const xd=f.forwardRef(({className:e,color:t="#029cfd",...n},r)=>d.jsx(ls,{ref:r,className:F("peer h-4 w-4 shrink-0 rounded-sm border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:text-white",e),style:{borderColor:t,backgroundColor:n.checked?t:"transparent"},...n,children:d.jsx(vd,{className:"flex items-center justify-center text-current",children:n.checked==="indeterminate"?d.jsx(hh,{className:"h-4 w-4 text-white"}):d.jsx(Jn,{className:"h-4 w-4"})})}));xd.displayName=ls.displayName;function W1(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 Sd=w.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),mr=()=>{const e=w.useContext(Sd);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};W1(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
218
218
  [data-state=closed]
219
- ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function B1(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Y1(){return us(/^Mac/)}function H1(){return us(/^iPhone/)}function ki(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function z1(){return us(/^iPad/)||Y1()&&navigator.maxTouchPoints>1}function Cd(){return H1()||z1()}function us(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const G1=24,U1=typeof window<"u"?w.useLayoutEffect:w.useEffect;function Ei(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Vo=typeof document<"u"&&window.visualViewport;function Ni(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Md(e){for(Ni(e)&&(e=e.parentElement);e&&!Ni(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const V1=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Er=0,qo;function q1(e={}){let{isDisabled:t}=e;U1(()=>{if(!t)return Er++,Er===1&&Cd()&&(qo=K1()),()=>{Er--,Er===0&&(qo==null||qo())}},[t])}function K1(){let e,t=0,n=c=>{e=Md(c.target),!(e===document.documentElement&&e===document.body)&&(t=c.changedTouches[0].pageY)},r=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}let p=c.changedTouches[0].pageY,h=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((h<=0&&p>t||h>=b&&p<t)&&c.preventDefault(),t=p)},o=c=>{let p=c.target;ya(p)&&p!==document.activeElement&&(c.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=c=>{let p=c.target;ya(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Vo&&(Vo.height<window.innerHeight?requestAnimationFrame(()=>{Ri(p)}):Vo.addEventListener("resize",()=>Ri(p),{once:!0}))}))},s=()=>{window.scrollTo(0,0)},i=window.pageXOffset,l=window.pageYOffset,u=Ei(X1(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let m=Ei(Wn(document,"touchstart",n,{passive:!1,capture:!0}),Wn(document,"touchmove",r,{passive:!1,capture:!0}),Wn(document,"touchend",o,{passive:!1,capture:!0}),Wn(document,"focus",a,!0),Wn(window,"scroll",s));return()=>{u(),m(),window.scrollTo(i,l)}}function X1(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Wn(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Ri(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Md(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const s=n.getBoundingClientRect().bottom+G1;a>s&&(n.scrollTop+=o-r)}e=n.parentElement}}function ya(e){return e instanceof HTMLInputElement&&!V1.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Z1(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Q1(...e){return t=>e.forEach(n=>Z1(n,t))}function Dd(...e){return f.useCallback(Q1(...e),e)}const kd=new WeakMap;function je(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&kd.set(e,r)}function J1(e,t){if(!e||!(e instanceof HTMLElement))return;let n=kd.get(e);n&&(e.style[t]=n[t])}const _e=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Nr(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[_e(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[_e(t)?5:4]):null)}function eS(e){return 8*(Math.log(e+1)-2)}function Ko(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function tS(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const Ee={DURATION:.5,EASE:[.32,.72,0,1]},Ed=.4,nS=.25,rS=100,Nd=8,Kt=16,ba=26,Xo="vaul-dragging";function Rd(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function oS({defaultProp:e,onChange:t}){const n=w.useState(e),[r]=n,o=w.useRef(r),a=Rd(t);return w.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function Td({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=oS({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,i=Rd(n),l=w.useCallback(u=>{if(a){const c=typeof u=="function"?u(e):u;c!==e&&i(c)}else o(u)},[a,e,o,i]);return[s,l]}function aS({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:s,direction:i="bottom",container:l,snapToSequentialPoint:u}){const[m,c]=Td({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[p,h]=w.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);w.useEffect(()=>{function M(){h({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[]);const b=w.useMemo(()=>m===(n==null?void 0:n[n.length-1])||null,[n,m]),g=w.useMemo(()=>{var M;return(M=n==null?void 0:n.findIndex(E=>E===m))!=null?M:null},[n,m]),v=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===m||!n,y=w.useMemo(()=>{const M=l?{width:l.getBoundingClientRect().width,height:l.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var E;return(E=n==null?void 0:n.map(L=>{const B=typeof L=="string";let Y=0;if(B&&(Y=parseInt(L,10)),_e(i)){const O=B?Y:p?L*M.height:0;return p?i==="bottom"?M.height-O:-M.height+O:O}const V=B?Y:p?L*M.width:0;return p?i==="right"?M.width-V:-M.width+V:V}))!=null?E:[]},[n,p,l]),x=w.useMemo(()=>g!==null?y==null?void 0:y[g]:null,[y,g]),S=w.useCallback(M=>{var E;const L=(E=y==null?void 0:y.findIndex(B=>B===M))!=null?E:null;s(L),je(r.current,{transition:`transform ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`,transform:_e(i)?`translate3d(0, ${M}px, 0)`:`translate3d(${M}px, 0, 0)`}),y&&L!==y.length-1&&a!==void 0&&L!==a&&L<a?je(o.current,{transition:`opacity ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`,opacity:"0"}):je(o.current,{transition:`opacity ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`,opacity:"1"}),c(n==null?void 0:n[Math.max(L,0)])},[r.current,n,y,a,o,c]);w.useEffect(()=>{if(m||e){var M;const E=(M=n==null?void 0:n.findIndex(L=>L===e||L===m))!=null?M:-1;y&&E!==-1&&typeof y[E]=="number"&&S(y[E])}},[m,e,n,y,S]);function D({draggedDistance:M,closeDrawer:E,velocity:L,dismissible:B}){if(a===void 0)return;const Y=i==="bottom"||i==="right"?(x??0)-M:(x??0)+M,V=g===a-1,O=g===0,_=M>0;if(V&&je(o.current,{transition:`opacity ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`}),!u&&L>2&&!_){B?E():S(y[0]);return}if(!u&&L>2&&_&&y&&n){S(y[n.length-1]);return}const T=y==null?void 0:y.reduce((A,k)=>typeof A!="number"||typeof k!="number"?A:Math.abs(k-Y)<Math.abs(A-Y)?k:A),R=_e(i)?window.innerHeight:window.innerWidth;if(L>Ed&&Math.abs(M)<R*.4){const A=_?1:-1;if(A>0&&b&&n){S(y[n.length-1]);return}if(O&&A<0&&B&&E(),g===null)return;S(y[g+A]);return}S(T)}function C({draggedDistance:M}){if(x===null)return;const E=i==="bottom"||i==="right"?x-M:x+M;(i==="bottom"||i==="right")&&E<y[y.length-1]||(i==="top"||i==="left")&&E>y[y.length-1]||je(r.current,{transform:_e(i)?`translate3d(0, ${E}px, 0)`:`translate3d(${E}px, 0, 0)`})}function N(M,E){if(!n||typeof g!="number"||!y||a===void 0)return null;const L=g===a-1;if(g>=a&&E)return 0;if(L&&!E)return 1;if(!v&&!L)return null;const Y=L?g+1:g-1,V=L?y[Y]-y[Y-1]:y[Y+1]-y[Y],O=M/Math.abs(V);return L?1-O:O}return{isLastSnapPoint:b,activeSnapPoint:m,shouldFade:v,getPercentageDragged:N,setActiveSnapPoint:c,activeSnapPointIndex:g,onRelease:D,onDrag:C,snapPointsOffset:y}}const sS=()=>()=>{};function iS(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=mr(),a=w.useRef(null),s=w.useMemo(()=>document.body.style.backgroundColor,[]);function i(){return(window.innerWidth-ba)/window.innerWidth}w.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;tS(r&&!o?Ko(document.body,{background:"black"}):sS,Ko(l,{transformOrigin:_e(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Ee.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ee.EASE.join(",")})`}));const u=Ko(l,{borderRadius:`${Nd}px`,overflow:"hidden",..._e(e)?{transform:`scale(${i()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${i()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),a.current=window.setTimeout(()=>{s?document.body.style.background=s:document.body.style.removeProperty("background")},Ee.DURATION*1e3)}}},[t,n,s])}let Bn=null;function cS({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:a}){const[s,i]=w.useState(()=>typeof window<"u"?window.location.href:""),l=w.useRef(0),u=w.useCallback(()=>{if(ki()&&Bn===null&&e&&!a){Bn={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:c,innerHeight:p}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-c}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const h=p-window.innerHeight;h&&l.current>=p&&(document.body.style.top=`${-(l.current+h)}px`)}),300)}},[e]),m=w.useCallback(()=>{if(ki()&&Bn!==null&&!a){const c=-parseInt(document.body.style.top,10),p=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Bn),window.requestAnimationFrame(()=>{if(o&&s!==window.location.href){i(window.location.href);return}window.scrollTo(p,c)}),Bn=null}},[s]);return w.useEffect(()=>{function c(){l.current=window.scrollY}return c(),window.addEventListener("scroll",c),()=>{window.removeEventListener("scroll",c)}},[]),w.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||m()}},[t,m]),w.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{m()},500)):m())},[e,r,s,t,n,u,m]),{restorePositionSetting:m}}function lS({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:a,shouldScaleBackground:s=!1,setBackgroundColorOnScale:i=!0,closeThreshold:l=nS,scrollLockTimeout:u=rS,dismissible:m=!0,handleOnly:c=!1,fadeFromIndex:p=a&&a.length-1,activeSnapPoint:h,setActiveSnapPoint:b,fixed:g,modal:v=!0,onClose:y,nested:x,noBodyStyles:S=!1,direction:D="bottom",defaultOpen:C=!1,disablePreventScroll:N=!0,snapToSequentialPoint:M=!1,preventScrollRestoration:E=!1,repositionInputs:L=!0,onAnimationEnd:B,container:Y,autoFocus:V=!1}){var O,_;const[T=!1,R]=Td({defaultProp:C,prop:e,onChange:G=>{t==null||t(G),!G&&!x&&Pn(),setTimeout(()=>{B==null||B(G)},Ee.DURATION*1e3),G&&!v&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),G||(document.body.style.pointerEvents="auto")}}),[A,k]=w.useState(!1),[P,z]=w.useState(!1),[q,I]=w.useState(!1),j=w.useRef(null),H=w.useRef(null),$=w.useRef(null),K=w.useRef(null),F=w.useRef(null),U=w.useRef(!1),X=w.useRef(null),J=w.useRef(0),ae=w.useRef(!1),ce=w.useRef(!C),be=w.useRef(0),te=w.useRef(null),Pe=w.useRef(((O=te.current)==null?void 0:O.getBoundingClientRect().height)||0),Ae=w.useRef(((_=te.current)==null?void 0:_.getBoundingClientRect().width)||0),ke=w.useRef(0),Ge=w.useCallback(G=>{a&&G===De.length-1&&(H.current=new Date)},[]),{activeSnapPoint:Me,activeSnapPointIndex:Q,setActiveSnapPoint:ee,onRelease:ye,snapPointsOffset:De,onDrag:We,shouldFade:an,getPercentageDragged:Tt}=aS({snapPoints:a,activeSnapPointProp:h,setActiveSnapPointProp:b,drawerRef:te,fadeFromIndex:p,overlayRef:j,onSnapPointChange:Ge,direction:D,container:Y,snapToSequentialPoint:M});q1({isDisabled:!T||P||!v||q||!A||!L||!N});const{restorePositionSetting:Pn}=cS({isOpen:T,modal:v,nested:x??!1,hasBeenOpened:A,preventScrollRestoration:E,noBodyStyles:S});function wt(){return(window.innerWidth-ba)/window.innerWidth}function Gt(G){var le,ie;!m&&!a||te.current&&!te.current.contains(G.target)||(Pe.current=((le=te.current)==null?void 0:le.getBoundingClientRect().height)||0,Ae.current=((ie=te.current)==null?void 0:ie.getBoundingClientRect().width)||0,z(!0),$.current=new Date,Cd()&&window.addEventListener("touchend",()=>U.current=!1,{once:!0}),G.target.setPointerCapture(G.pointerId),J.current=_e(D)?G.pageY:G.pageX)}function rt(G,le){var ie;let me=G;const ge=(ie=window.getSelection())==null?void 0:ie.toString(),se=te.current?Nr(te.current,D):null,fe=new Date;if(me.tagName==="SELECT"||me.hasAttribute("data-vaul-no-drag")||me.closest("[data-vaul-no-drag]"))return!1;if(D==="right"||D==="left")return!0;if(H.current&&fe.getTime()-H.current.getTime()<500)return!1;if(se!==null&&(D==="bottom"?se>0:se<0))return!0;if(ge&&ge.length>0)return!1;if(F.current&&fe.getTime()-F.current.getTime()<u&&se===0||le)return F.current=fe,!1;for(;me;){if(me.scrollHeight>me.clientHeight){if(me.scrollTop!==0)return F.current=new Date,!1;if(me.getAttribute("role")==="dialog")return!0}me=me.parentNode}return!0}function sn(G){if(te.current&&P){const le=D==="bottom"||D==="right"?1:-1,ie=(J.current-(_e(D)?G.pageY:G.pageX))*le,me=ie>0,ge=a&&!m&&!me;if(ge&&Q===0)return;const se=Math.abs(ie),fe=document.querySelector("[data-vaul-drawer-wrapper]"),ve=D==="bottom"||D==="top"?Pe.current:Ae.current;let de=se/ve;const Ve=Tt(se,me);if(Ve!==null&&(de=Ve),ge&&de>=1||!U.current&&!rt(G.target,me))return;if(te.current.classList.add(Xo),U.current=!0,je(te.current,{transition:"none"}),je(j.current,{transition:"none"}),a&&We({draggedDistance:ie}),me&&!a){const Ce=eS(ie),Ke=Math.min(Ce*-1,0)*le;je(te.current,{transform:_e(D)?`translate3d(0, ${Ke}px, 0)`:`translate3d(${Ke}px, 0, 0)`});return}const xe=1-de;if((an||p&&Q===p-1)&&(r==null||r(G,de),je(j.current,{opacity:`${xe}`,transition:"none"},!0)),fe&&j.current&&s){const Ce=Math.min(wt()+de*(1-wt()),1),Ke=8-de*8,Le=Math.max(0,14-de*14);je(fe,{borderRadius:`${Ke}px`,transform:_e(D)?`scale(${Ce}) translate3d(0, ${Le}px, 0)`:`scale(${Ce}) translate3d(${Le}px, 0, 0)`,transition:"none"},!0)}if(!a){const Ce=se*le;je(te.current,{transform:_e(D)?`translate3d(0, ${Ce}px, 0)`:`translate3d(${Ce}px, 0, 0)`})}}}w.useEffect(()=>{window.requestAnimationFrame(()=>{ce.current=!0})},[]),w.useEffect(()=>{var G;function le(){if(!te.current||!L)return;const ie=document.activeElement;if(ya(ie)||ae.current){var me;const ge=((me=window.visualViewport)==null?void 0:me.height)||0,se=window.innerHeight;let fe=se-ge;const ve=te.current.getBoundingClientRect().height||0,de=ve>se*.8;ke.current||(ke.current=ve);const Ve=te.current.getBoundingClientRect().top;if(Math.abs(be.current-fe)>60&&(ae.current=!ae.current),a&&a.length>0&&De&&Q){const xe=De[Q]||0;fe+=xe}if(be.current=fe,ve>ge||ae.current){const xe=te.current.getBoundingClientRect().height;let Ce=xe;xe>ge&&(Ce=ge-(de?Ve:ba)),g?te.current.style.height=`${xe-Math.max(fe,0)}px`:te.current.style.height=`${Math.max(Ce,ge-Ve)}px`}else B1()||(te.current.style.height=`${ke.current}px`);a&&a.length>0&&!ae.current?te.current.style.bottom="0px":te.current.style.bottom=`${Math.max(fe,0)}px`}}return(G=window.visualViewport)==null||G.addEventListener("resize",le),()=>{var ie;return(ie=window.visualViewport)==null?void 0:ie.removeEventListener("resize",le)}},[Q,a,De]);function Ue(G){An(),y==null||y(),G||R(!1),setTimeout(()=>{a&&ee(a[0])},Ee.DURATION*1e3)}function cn(){if(!te.current)return;const G=document.querySelector("[data-vaul-drawer-wrapper]"),le=Nr(te.current,D);je(te.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`}),je(j.current,{transition:`opacity ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`,opacity:"1"}),s&&le&&le>0&&T&&je(G,{borderRadius:`${Nd}px`,overflow:"hidden",..._e(D)?{transform:`scale(${wt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${wt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ee.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ee.EASE.join(",")})`},!0)}function An(){!P||!te.current||(te.current.classList.remove(Xo),U.current=!1,z(!1),K.current=new Date)}function ln(G){if(!P||!te.current)return;te.current.classList.remove(Xo),U.current=!1,z(!1),K.current=new Date;const le=Nr(te.current,D);if(!G||!rt(G.target,!1)||!le||Number.isNaN(le)||$.current===null)return;const ie=K.current.getTime()-$.current.getTime(),me=J.current-(_e(D)?G.pageY:G.pageX),ge=Math.abs(me)/ie;if(ge>.05&&(I(!0),setTimeout(()=>{I(!1)},200)),a){ye({draggedDistance:me*(D==="bottom"||D==="right"?1:-1),closeDrawer:Ue,velocity:ge,dismissible:m}),o==null||o(G,!0);return}if(D==="bottom"||D==="right"?me>0:me<0){cn(),o==null||o(G,!0);return}if(ge>Ed){Ue(),o==null||o(G,!1);return}var se;const fe=Math.min((se=te.current.getBoundingClientRect().height)!=null?se:0,window.innerHeight);var ve;const de=Math.min((ve=te.current.getBoundingClientRect().width)!=null?ve:0,window.innerWidth),Ve=D==="left"||D==="right";if(Math.abs(le)>=(Ve?de:fe)*l){Ue(),o==null||o(G,!1);return}o==null||o(G,!0),cn()}w.useEffect(()=>(T&&(je(document.documentElement,{scrollBehavior:"auto"}),H.current=new Date),()=>{J1(document.documentElement,"scrollBehavior")}),[T]);function Ut(G){const le=G?(window.innerWidth-Kt)/window.innerWidth:1,ie=G?-Kt:0;X.current&&window.clearTimeout(X.current),je(te.current,{transition:`transform ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`,transform:_e(D)?`scale(${le}) translate3d(0, ${ie}px, 0)`:`scale(${le}) translate3d(${ie}px, 0, 0)`}),!G&&te.current&&(X.current=setTimeout(()=>{const me=Nr(te.current,D);je(te.current,{transition:"none",transform:_e(D)?`translate3d(0, ${me}px, 0)`:`translate3d(${me}px, 0, 0)`})},500))}function In(G,le){if(le<0)return;const ie=(window.innerWidth-Kt)/window.innerWidth,me=ie+le*(1-ie),ge=-Kt+le*Kt;je(te.current,{transform:_e(D)?`scale(${me}) translate3d(0, ${ge}px, 0)`:`scale(${me}) translate3d(${ge}px, 0, 0)`,transition:"none"})}function _t(G,le){const ie=_e(D)?window.innerHeight:window.innerWidth,me=le?(ie-Kt)/ie:1,ge=le?-Kt:0;le&&je(te.current,{transition:`transform ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`,transform:_e(D)?`scale(${me}) translate3d(0, ${ge}px, 0)`:`scale(${me}) translate3d(${ge}px, 0, 0)`})}return w.useEffect(()=>{v||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[v]),w.createElement(Qa,{defaultOpen:C,onOpenChange:G=>{!m&&!G||(G?k(!0):Ue(!0),R(G))},open:T},w.createElement(Sd.Provider,{value:{activeSnapPoint:Me,snapPoints:a,setActiveSnapPoint:ee,drawerRef:te,overlayRef:j,onOpenChange:t,onPress:Gt,onRelease:ln,onDrag:sn,dismissible:m,shouldAnimate:ce,handleOnly:c,isOpen:T,isDragging:P,shouldFade:an,closeDrawer:Ue,onNestedDrag:In,onNestedOpenChange:Ut,onNestedRelease:_t,keyboardIsOpen:ae,modal:v,snapPointsOffset:De,activeSnapPointIndex:Q,direction:D,shouldScaleBackground:s,setBackgroundColorOnScale:i,noBodyStyles:S,container:Y,autoFocus:V}},n))}const _d=w.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:a,isOpen:s,modal:i,shouldAnimate:l}=mr(),u=Dd(t,n),m=r&&r.length>0;if(!i)return null;const c=w.useCallback(p=>o(p),[o]);return w.createElement(po,{onMouseUp:c,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":s&&m?"true":"false","data-vaul-snap-points-overlay":s&&a?"true":"false","data-vaul-animate":l!=null&&l.current?"true":"false",...e})});_d.displayName="Drawer.Overlay";const Od=w.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:a,onPress:s,onRelease:i,onDrag:l,keyboardIsOpen:u,snapPointsOffset:m,activeSnapPointIndex:c,modal:p,isOpen:h,direction:b,snapPoints:g,container:v,handleOnly:y,shouldAnimate:x,autoFocus:S}=mr(),[D,C]=w.useState(!1),N=Dd(o,a),M=w.useRef(null),E=w.useRef(null),L=w.useRef(!1),B=g&&g.length>0;iS();const Y=(O,_,T=0)=>{if(L.current)return!0;const R=Math.abs(O.y),A=Math.abs(O.x),k=A>R,P=["bottom","right"].includes(_)?1:-1;if(_==="left"||_==="right"){if(!(O.x*P<0)&&A>=0&&A<=T)return k}else if(!(O.y*P<0)&&R>=0&&R<=T)return!k;return L.current=!0,!0};w.useEffect(()=>{B&&window.requestAnimationFrame(()=>{C(!0)})},[]);function V(O){M.current=null,L.current=!1,i(O)}return w.createElement(ho,{"data-vaul-drawer-direction":b,"data-vaul-drawer":"","data-vaul-delayed-snap-points":D?"true":"false","data-vaul-snap-points":h&&B?"true":"false","data-vaul-custom-container":v?"true":"false","data-vaul-animate":x!=null&&x.current?"true":"false",...r,ref:N,style:m&&m.length>0?{"--snap-point-height":`${m[c??0]}px`,...t}:t,onPointerDown:O=>{y||(r.onPointerDown==null||r.onPointerDown.call(r,O),M.current={x:O.pageX,y:O.pageY},s(O))},onOpenAutoFocus:O=>{n==null||n(O),S||O.preventDefault()},onPointerDownOutside:O=>{if(e==null||e(O),!p||O.defaultPrevented){O.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:O=>{if(!p){O.preventDefault();return}},onPointerMove:O=>{if(E.current=O,y||(r.onPointerMove==null||r.onPointerMove.call(r,O),!M.current))return;const _=O.pageY-M.current.y,T=O.pageX-M.current.x,R=O.pointerType==="touch"?10:2;Y({x:T,y:_},b,R)?l(O):(Math.abs(T)>R||Math.abs(_)>R)&&(M.current=null)},onPointerUp:O=>{r.onPointerUp==null||r.onPointerUp.call(r,O),M.current=null,L.current=!1,i(O)},onPointerOut:O=>{r.onPointerOut==null||r.onPointerOut.call(r,O),V(E.current)},onContextMenu:O=>{r.onContextMenu==null||r.onContextMenu.call(r,O),E.current&&V(E.current)}})});Od.displayName="Drawer.Content";const uS=250,dS=120,fS=w.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:a,snapPoints:s,activeSnapPoint:i,setActiveSnapPoint:l,dismissible:u,handleOnly:m,isOpen:c,onPress:p,onDrag:h}=mr(),b=w.useRef(null),g=w.useRef(!1);function v(){if(g.current){S();return}window.setTimeout(()=>{y()},dS)}function y(){if(a||e||g.current){S();return}if(S(),!s||s.length===0){u||o();return}if(i===s[s.length-1]&&u){o();return}const C=s.findIndex(M=>M===i);if(C===-1)return;const N=s[C+1];l(N)}function x(){b.current=window.setTimeout(()=>{g.current=!0},uS)}function S(){b.current&&window.clearTimeout(b.current),g.current=!1}return w.createElement("div",{onClick:v,onPointerCancel:S,onPointerDown:D=>{m&&p(D),x()},onPointerMove:D=>{m&&h(D)},ref:r,"data-vaul-drawer-visible":c?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},w.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});fS.displayName="Drawer.Handle";function mS(e){const t=mr(),{container:n=t.container,...r}=e;return w.createElement(Ja,{container:n,...r})}const ut={Root:lS,Content:Od,Overlay:_d,Trigger:Eu,Portal:mS,Close:ns,Title:es,Description:ts},Pd=({shouldScaleBackground:e=!0,...t})=>d.jsx(ut.Root,{shouldScaleBackground:e,...t});Pd.displayName="Drawer";const pS=ut.Trigger,hS=ut.Portal,gS=ut.Close,Ad=f.forwardRef(({className:e,...t},n)=>d.jsx(ut.Overlay,{ref:n,className:W("fixed inset-0 z-50 bg-black/80",e),...t}));Ad.displayName=ut.Overlay.displayName;const Id=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(hS,{children:[d.jsx(Ad,{}),d.jsxs(ut.Content,{ref:r,className:W("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[d.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Id.displayName="DrawerContent";const jd=({className:e,...t})=>d.jsx("div",{className:W("grid gap-1.5 p-4 text-center sm:text-left",e),...t});jd.displayName="DrawerHeader";const $d=({className:e,...t})=>d.jsx("div",{className:W("mt-auto flex flex-col gap-2 p-4",e),...t});$d.displayName="DrawerFooter";const Ld=f.forwardRef(({className:e,...t},n)=>d.jsx(ut.Title,{ref:n,className:W("text-lg font-semibold leading-none tracking-tight",e),...t}));Ld.displayName=ut.Title.displayName;const Fd=f.forwardRef(({className:e,...t},n)=>d.jsx(ut.Description,{ref:n,className:W("text-sm text-muted-foreground",e),...t}));Fd.displayName=ut.Description.displayName;var Zo="rovingFocusGroup.onEntryFocus",vS={bubbles:!1,cancelable:!0},pr="RovingFocusGroup",[wa,Wd,yS]=Ya(pr),[bS,On]=Ye(pr,[yS]),[wS,xS]=bS(pr),Bd=f.forwardRef((e,t)=>d.jsx(wa.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(wa.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(SS,{...e,ref:t})})}));Bd.displayName=pr;var SS=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:m=!1,...c}=e,p=f.useRef(null),h=he(t,p),b=cr(a),[g,v]=nt({prop:s,defaultProp:i??null,onChange:l,caller:pr}),[y,x]=f.useState(!1),S=tt(u),D=Wd(n),C=f.useRef(!1),[N,M]=f.useState(0);return f.useEffect(()=>{const E=p.current;if(E)return E.addEventListener(Zo,S),()=>E.removeEventListener(Zo,S)},[S]),d.jsx(wS,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:g,onItemFocus:f.useCallback(E=>v(E),[v]),onItemShiftTab:f.useCallback(()=>x(!0),[]),onFocusableItemAdd:f.useCallback(()=>M(E=>E+1),[]),onFocusableItemRemove:f.useCallback(()=>M(E=>E-1),[]),children:d.jsx(ne.div,{tabIndex:y||N===0?-1:0,"data-orientation":r,...c,ref:h,style:{outline:"none",...e.style},onMouseDown:Z(e.onMouseDown,()=>{C.current=!0}),onFocus:Z(e.onFocus,E=>{const L=!C.current;if(E.target===E.currentTarget&&L&&!y){const B=new CustomEvent(Zo,vS);if(E.currentTarget.dispatchEvent(B),!B.defaultPrevented){const Y=D().filter(R=>R.focusable),V=Y.find(R=>R.active),O=Y.find(R=>R.id===g),T=[V,O,...Y].filter(Boolean).map(R=>R.ref.current);zd(T,m)}}C.current=!1}),onBlur:Z(e.onBlur,()=>x(!1))})})}),Yd="RovingFocusGroupItem",Hd=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=Te(),u=a||l,m=xS(Yd,n),c=m.currentTabStopId===u,p=Wd(n),{onFocusableItemAdd:h,onFocusableItemRemove:b,currentTabStopId:g}=m;return f.useEffect(()=>{if(r)return h(),()=>b()},[r,h,b]),d.jsx(wa.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:d.jsx(ne.span,{tabIndex:c?0:-1,"data-orientation":m.orientation,...i,ref:t,onMouseDown:Z(e.onMouseDown,v=>{r?m.onItemFocus(u):v.preventDefault()}),onFocus:Z(e.onFocus,()=>m.onItemFocus(u)),onKeyDown:Z(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){m.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=DS(v,m.orientation,m.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let S=p().filter(D=>D.focusable).map(D=>D.ref.current);if(y==="last")S.reverse();else if(y==="prev"||y==="next"){y==="prev"&&S.reverse();const D=S.indexOf(v.currentTarget);S=m.loop?kS(S,D+1):S.slice(D+1)}setTimeout(()=>zd(S))}}),children:typeof s=="function"?s({isCurrentTabStop:c,hasTabStop:g!=null}):s})})});Hd.displayName=Yd;var CS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function MS(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function DS(e,t,n){const r=MS(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return CS[r]}function zd(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function kS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ds=Bd,fs=Hd,xa=["Enter"," "],ES=["ArrowDown","PageUp","Home"],Gd=["ArrowUp","PageDown","End"],NS=[...ES,...Gd],RS={ltr:[...xa,"ArrowRight"],rtl:[...xa,"ArrowLeft"]},TS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},hr="Menu",[Xn,_S,OS]=Ya(hr),[on,Ud]=Ye(hr,[OS,Wt,On]),gr=Wt(),Vd=On(),[qd,zt]=on(hr),[PS,vr]=on(hr),Kd=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=gr(t),[l,u]=f.useState(null),m=f.useRef(!1),c=tt(a),p=cr(o);return f.useEffect(()=>{const h=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),d.jsx(rr,{...i,children:d.jsx(qd,{scope:t,open:n,onOpenChange:c,content:l,onContentChange:u,children:d.jsx(PS,{scope:t,onClose:f.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:m,dir:p,modal:s,children:r})})})};Kd.displayName=hr;var AS="MenuAnchor",ms=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=gr(n);return d.jsx(or,{...o,...r,ref:t})});ms.displayName=AS;var ps="MenuPortal",[IS,Xd]=on(ps,{forceMount:void 0}),Zd=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=zt(ps,t);return d.jsx(IS,{scope:t,forceMount:n,children:d.jsx(ze,{present:n||a.open,children:d.jsx(ar,{asChild:!0,container:o,children:r})})})};Zd.displayName=ps;var et="MenuContent",[jS,hs]=on(et),Qd=f.forwardRef((e,t)=>{const n=Xd(et,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=zt(et,e.__scopeMenu),s=vr(et,e.__scopeMenu);return d.jsx(Xn.Provider,{scope:e.__scopeMenu,children:d.jsx(ze,{present:r||a.open,children:d.jsx(Xn.Slot,{scope:e.__scopeMenu,children:s.modal?d.jsx($S,{...o,ref:t}):d.jsx(LS,{...o,ref:t})})})})}),$S=f.forwardRef((e,t)=>{const n=zt(et,e.__scopeMenu),r=f.useRef(null),o=he(t,r);return f.useEffect(()=>{const a=r.current;if(a)return oo(a)},[]),d.jsx(gs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Z(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),LS=f.forwardRef((e,t)=>{const n=zt(et,e.__scopeMenu);return d.jsx(gs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),FS=jt("MenuContent.ScrollLock"),gs=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:c,onInteractOutside:p,onDismiss:h,disableOutsideScroll:b,...g}=e,v=zt(et,n),y=vr(et,n),x=gr(n),S=Vd(n),D=_S(n),[C,N]=f.useState(null),M=f.useRef(null),E=he(t,M,v.onContentChange),L=f.useRef(0),B=f.useRef(""),Y=f.useRef(0),V=f.useRef(null),O=f.useRef("right"),_=f.useRef(0),T=b?sr:f.Fragment,R=b?{as:FS,allowPinchZoom:!0}:void 0,A=P=>{var F,U;const z=B.current+P,q=D().filter(X=>!X.disabled),I=document.activeElement,j=(F=q.find(X=>X.ref.current===I))==null?void 0:F.textValue,H=q.map(X=>X.textValue),$=ZS(H,z,j),K=(U=q.find(X=>X.textValue===$))==null?void 0:U.ref.current;(function X(J){B.current=J,window.clearTimeout(L.current),J!==""&&(L.current=window.setTimeout(()=>X(""),1e3))})(z),K&&setTimeout(()=>K.focus())};f.useEffect(()=>()=>window.clearTimeout(L.current),[]),Qr();const k=f.useCallback(P=>{var q,I;return O.current===((q=V.current)==null?void 0:q.side)&&JS(P,(I=V.current)==null?void 0:I.area)},[]);return d.jsx(jS,{scope:n,searchRef:B,onItemEnter:f.useCallback(P=>{k(P)&&P.preventDefault()},[k]),onItemLeave:f.useCallback(P=>{var z;k(P)||((z=M.current)==null||z.focus(),N(null))},[k]),onTriggerLeave:f.useCallback(P=>{k(P)&&P.preventDefault()},[k]),pointerGraceTimerRef:Y,onPointerGraceIntentChange:f.useCallback(P=>{V.current=P},[]),children:d.jsx(T,{...R,children:d.jsx(tr,{asChild:!0,trapped:o,onMountAutoFocus:Z(a,P=>{var z;P.preventDefault(),(z=M.current)==null||z.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:d.jsx(En,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:c,onInteractOutside:p,onDismiss:h,children:d.jsx(ds,{asChild:!0,...S,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:N,onEntryFocus:Z(l,P=>{y.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(no,{role:"menu","aria-orientation":"vertical","data-state":gf(v.open),"data-radix-menu-content":"",dir:y.dir,...x,...g,ref:E,style:{outline:"none",...g.style},onKeyDown:Z(g.onKeyDown,P=>{const q=P.target.closest("[data-radix-menu-content]")===P.currentTarget,I=P.ctrlKey||P.altKey||P.metaKey,j=P.key.length===1;q&&(P.key==="Tab"&&P.preventDefault(),!I&&j&&A(P.key));const H=M.current;if(P.target!==H||!NS.includes(P.key))return;P.preventDefault();const K=D().filter(F=>!F.disabled).map(F=>F.ref.current);Gd.includes(P.key)&&K.reverse(),KS(K)}),onBlur:Z(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(L.current),B.current="")}),onPointerMove:Z(e.onPointerMove,Zn(P=>{const z=P.target,q=_.current!==P.clientX;if(P.currentTarget.contains(z)&&q){const I=P.clientX>_.current?"right":"left";O.current=I,_.current=P.clientX}}))})})})})})})});Qd.displayName=et;var WS="MenuGroup",vs=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(ne.div,{role:"group",...r,ref:t})});vs.displayName=WS;var BS="MenuLabel",Jd=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(ne.div,{...r,ref:t})});Jd.displayName=BS;var Vr="MenuItem",Ti="menu.itemSelect",bo=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=f.useRef(null),s=vr(Vr,e.__scopeMenu),i=hs(Vr,e.__scopeMenu),l=he(t,a),u=f.useRef(!1),m=()=>{const c=a.current;if(!n&&c){const p=new CustomEvent(Ti,{bubbles:!0,cancelable:!0});c.addEventListener(Ti,h=>r==null?void 0:r(h),{once:!0}),Zi(c,p),p.defaultPrevented?u.current=!1:s.onClose()}};return d.jsx(ef,{...o,ref:l,disabled:n,onClick:Z(e.onClick,m),onPointerDown:c=>{var p;(p=e.onPointerDown)==null||p.call(e,c),u.current=!0},onPointerUp:Z(e.onPointerUp,c=>{var p;u.current||(p=c.currentTarget)==null||p.click()}),onKeyDown:Z(e.onKeyDown,c=>{const p=i.searchRef.current!=="";n||p&&c.key===" "||xa.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});bo.displayName=Vr;var ef=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=hs(Vr,n),i=Vd(n),l=f.useRef(null),u=he(t,l),[m,c]=f.useState(!1),[p,h]=f.useState("");return f.useEffect(()=>{const b=l.current;b&&h((b.textContent??"").trim())},[a.children]),d.jsx(Xn.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:d.jsx(fs,{asChild:!0,...i,focusable:!r,children:d.jsx(ne.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:Z(e.onPointerMove,Zn(b=>{r?s.onItemLeave(b):(s.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Z(e.onPointerLeave,Zn(b=>s.onItemLeave(b))),onFocus:Z(e.onFocus,()=>c(!0)),onBlur:Z(e.onBlur,()=>c(!1))})})})}),YS="MenuCheckboxItem",tf=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return d.jsx(sf,{scope:e.__scopeMenu,checked:n,children:d.jsx(bo,{role:"menuitemcheckbox","aria-checked":qr(n)?"mixed":n,...o,ref:t,"data-state":ws(n),onSelect:Z(o.onSelect,()=>r==null?void 0:r(qr(n)?!0:!n),{checkForDefaultPrevented:!1})})})});tf.displayName=YS;var nf="MenuRadioGroup",[HS,zS]=on(nf,{value:void 0,onValueChange:()=>{}}),rf=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=tt(r);return d.jsx(HS,{scope:e.__scopeMenu,value:n,onValueChange:a,children:d.jsx(vs,{...o,ref:t})})});rf.displayName=nf;var of="MenuRadioItem",af=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=zS(of,e.__scopeMenu),a=n===o.value;return d.jsx(sf,{scope:e.__scopeMenu,checked:a,children:d.jsx(bo,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":ws(a),onSelect:Z(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});af.displayName=of;var ys="MenuItemIndicator",[sf,GS]=on(ys,{checked:!1}),cf=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=GS(ys,n);return d.jsx(ze,{present:r||qr(a.checked)||a.checked===!0,children:d.jsx(ne.span,{...o,ref:t,"data-state":ws(a.checked)})})});cf.displayName=ys;var US="MenuSeparator",lf=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});lf.displayName=US;var VS="MenuArrow",uf=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=gr(n);return d.jsx(ro,{...o,...r,ref:t})});uf.displayName=VS;var bs="MenuSub",[qS,df]=on(bs),ff=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=zt(bs,t),s=gr(t),[i,l]=f.useState(null),[u,m]=f.useState(null),c=tt(o);return f.useEffect(()=>(a.open===!1&&c(!1),()=>c(!1)),[a.open,c]),d.jsx(rr,{...s,children:d.jsx(qd,{scope:t,open:r,onOpenChange:c,content:u,onContentChange:m,children:d.jsx(qS,{scope:t,contentId:Te(),triggerId:Te(),trigger:i,onTriggerChange:l,children:n})})})};ff.displayName=bs;var zn="MenuSubTrigger",mf=f.forwardRef((e,t)=>{const n=zt(zn,e.__scopeMenu),r=vr(zn,e.__scopeMenu),o=df(zn,e.__scopeMenu),a=hs(zn,e.__scopeMenu),s=f.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},m=f.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return f.useEffect(()=>m,[m]),f.useEffect(()=>{const c=i.current;return()=>{window.clearTimeout(c),l(null)}},[i,l]),d.jsx(ms,{asChild:!0,...u,children:d.jsx(ef,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":gf(n.open),...e,ref:Dt(t,o.onTriggerChange),onClick:c=>{var p;(p=e.onClick)==null||p.call(e,c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Z(e.onPointerMove,Zn(c=>{a.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:Z(e.onPointerLeave,Zn(c=>{var h,b;m();const p=(h=n.content)==null?void 0:h.getBoundingClientRect();if(p){const g=(b=n.content)==null?void 0:b.dataset.side,v=g==="right",y=v?-5:5,x=p[v?"left":"right"],S=p[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:c.clientX+y,y:c.clientY},{x,y:p.top},{x:S,y:p.top},{x:S,y:p.bottom},{x,y:p.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(c),c.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Z(e.onKeyDown,c=>{var h;const p=a.searchRef.current!=="";e.disabled||p&&c.key===" "||RS[r.dir].includes(c.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),c.preventDefault())})})})});mf.displayName=zn;var pf="MenuSubContent",hf=f.forwardRef((e,t)=>{const n=Xd(et,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=zt(et,e.__scopeMenu),s=vr(et,e.__scopeMenu),i=df(pf,e.__scopeMenu),l=f.useRef(null),u=he(t,l);return d.jsx(Xn.Provider,{scope:e.__scopeMenu,children:d.jsx(ze,{present:r||a.open,children:d.jsx(Xn.Slot,{scope:e.__scopeMenu,children:d.jsx(gs,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var c;s.isUsingKeyboardRef.current&&((c=l.current)==null||c.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:Z(e.onFocusOutside,m=>{m.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Z(e.onEscapeKeyDown,m=>{s.onClose(),m.preventDefault()}),onKeyDown:Z(e.onKeyDown,m=>{var h;const c=m.currentTarget.contains(m.target),p=TS[s.dir].includes(m.key);c&&p&&(a.onOpenChange(!1),(h=i.trigger)==null||h.focus(),m.preventDefault())})})})})})});hf.displayName=pf;function gf(e){return e?"open":"closed"}function qr(e){return e==="indeterminate"}function ws(e){return qr(e)?"indeterminate":e?"checked":"unchecked"}function KS(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function XS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function ZS(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=XS(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function QS(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],u=i.x,m=i.y,c=l.x,p=l.y;m>r!=p>r&&n<(c-u)*(r-m)/(p-m)+u&&(o=!o)}return o}function JS(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return QS(n,t)}function Zn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var eC=Kd,tC=ms,nC=Zd,rC=Qd,oC=vs,aC=Jd,sC=bo,iC=tf,cC=rf,lC=af,uC=cf,dC=lf,fC=uf,mC=ff,pC=mf,hC=hf,wo="DropdownMenu",[gC,yD]=Ye(wo,[Ud]),He=Ud(),[vC,vf]=gC(wo),yf=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=He(t),u=f.useRef(null),[m,c]=nt({prop:o,defaultProp:a??!1,onChange:s,caller:wo});return d.jsx(vC,{scope:t,triggerId:Te(),triggerRef:u,contentId:Te(),open:m,onOpenChange:c,onOpenToggle:f.useCallback(()=>c(p=>!p),[c]),modal:i,children:d.jsx(eC,{...l,open:m,onOpenChange:c,dir:r,modal:i,children:n})})};yf.displayName=wo;var bf="DropdownMenuTrigger",wf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=vf(bf,n),s=He(n);return d.jsx(tC,{asChild:!0,...s,children:d.jsx(ne.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Dt(t,a.triggerRef),onPointerDown:Z(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:Z(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});wf.displayName=bf;var yC="DropdownMenuPortal",xf=e=>{const{__scopeDropdownMenu:t,...n}=e,r=He(t);return d.jsx(nC,{...r,...n})};xf.displayName=yC;var Sf="DropdownMenuContent",Cf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=vf(Sf,n),a=He(n),s=f.useRef(!1);return d.jsx(rC,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:Z(e.onCloseAutoFocus,i=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:Z(e.onInteractOutside,i=>{const l=i.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,m=l.button===2||u;(!o.modal||m)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Cf.displayName=Sf;var bC="DropdownMenuGroup",Mf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return d.jsx(oC,{...o,...r,ref:t})});Mf.displayName=bC;var wC="DropdownMenuLabel",Df=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return d.jsx(aC,{...o,...r,ref:t})});Df.displayName=wC;var xC="DropdownMenuItem",kf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return d.jsx(sC,{...o,...r,ref:t})});kf.displayName=xC;var SC="DropdownMenuCheckboxItem",Ef=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return d.jsx(iC,{...o,...r,ref:t})});Ef.displayName=SC;var CC="DropdownMenuRadioGroup",Nf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return d.jsx(cC,{...o,...r,ref:t})});Nf.displayName=CC;var MC="DropdownMenuRadioItem",Rf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return d.jsx(lC,{...o,...r,ref:t})});Rf.displayName=MC;var DC="DropdownMenuItemIndicator",Tf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return d.jsx(uC,{...o,...r,ref:t})});Tf.displayName=DC;var kC="DropdownMenuSeparator",_f=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return d.jsx(dC,{...o,...r,ref:t})});_f.displayName=kC;var EC="DropdownMenuArrow",NC=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return d.jsx(fC,{...o,...r,ref:t})});NC.displayName=EC;var RC=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=He(t),[i,l]=nt({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return d.jsx(mC,{...s,open:i,onOpenChange:l,children:n})},TC="DropdownMenuSubTrigger",Of=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return d.jsx(pC,{...o,...r,ref:t})});Of.displayName=TC;var _C="DropdownMenuSubContent",Pf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return d.jsx(hC,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pf.displayName=_C;var OC=yf,PC=wf,AC=xf,Af=Cf,IC=Mf,If=Df,jf=kf,$f=Ef,jC=Nf,Lf=Rf,Ff=Tf,Wf=_f,$C=RC,Bf=Of,Yf=Pf;const LC=OC,FC=PC,WC=IC,BC=$C,YC=jC,Hf=f.forwardRef(({className:e,inset:t,children:n,...r},o)=>d.jsxs(Bf,{ref:o,className:W("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,d.jsx(Ea,{className:"ml-auto"})]}));Hf.displayName=Bf.displayName;const zf=f.forwardRef(({className:e,...t},n)=>d.jsx(Yf,{ref:n,className:W("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));zf.displayName=Yf.displayName;const Gf=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(AC,{children:d.jsx(Af,{ref:r,sideOffset:t,className:W("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n})}));Gf.displayName=Af.displayName;const Uf=f.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(jf,{ref:r,className:W("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n}));Uf.displayName=jf.displayName;const Vf=f.forwardRef(({className:e,children:t,checked:n,...r},o)=>d.jsxs($f,{ref:o,className:W("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Ff,{children:d.jsx(Jn,{className:"h-4 w-4"})})}),t]}));Vf.displayName=$f.displayName;const qf=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Lf,{ref:r,className:W("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Ff,{children:d.jsx(rc,{className:"h-2 w-2 fill-current"})})}),t]}));qf.displayName=Lf.displayName;const Kf=f.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(If,{ref:r,className:W("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Kf.displayName=If.displayName;const Xf=f.forwardRef(({className:e,...t},n)=>d.jsx(Wf,{ref:n,className:W("-mx-1 my-1 h-px bg-muted",e),...t}));Xf.displayName=Wf.displayName;const Zf=({className:e,...t})=>d.jsx("span",{className:W("ml-auto text-xs tracking-widest opacity-60",e),...t});Zf.displayName="DropdownMenuShortcut";var xs="Radio",[HC,Qf]=Ye(xs),[zC,GC]=HC(xs),Jf=f.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:l,form:u,...m}=e,[c,p]=f.useState(null),h=he(t,v=>p(v)),b=f.useRef(!1),g=c?u||!!c.closest("form"):!0;return d.jsxs(zC,{scope:n,checked:o,disabled:s,children:[d.jsx(ne.button,{type:"button",role:"radio","aria-checked":o,"data-state":rm(o),"data-disabled":s?"":void 0,disabled:s,value:i,...m,ref:h,onClick:Z(e.onClick,v=>{o||l==null||l(),g&&(b.current=v.isPropagationStopped(),b.current||v.stopPropagation())})}),g&&d.jsx(nm,{control:c,bubbles:!b.current,name:r,value:i,checked:o,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});Jf.displayName=xs;var em="RadioIndicator",tm=f.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=GC(em,n);return d.jsx(ze,{present:r||a.checked,children:d.jsx(ne.span,{"data-state":rm(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});tm.displayName=em;var UC="RadioBubbleInput",nm=f.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=f.useRef(null),i=he(s,a),l=Ha(n),u=ja(t);return f.useEffect(()=>{const m=s.current;if(!m)return;const c=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(c,"checked").set;if(l!==n&&h){const b=new Event("click",{bubbles:r});h.call(m,n),m.dispatchEvent(b)}},[l,n,r]),d.jsx(ne.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});nm.displayName=UC;function rm(e){return e?"checked":"unchecked"}var VC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],xo="RadioGroup",[qC,bD]=Ye(xo,[On,Qf]),om=On(),am=Qf(),[KC,XC]=qC(xo),sm=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:l,dir:u,loop:m=!0,onValueChange:c,...p}=e,h=om(n),b=cr(u),[g,v]=nt({prop:a,defaultProp:o??null,onChange:c,caller:xo});return d.jsx(KC,{scope:n,name:r,required:s,disabled:i,value:g,onValueChange:v,children:d.jsx(ds,{asChild:!0,...h,orientation:l,dir:b,loop:m,children:d.jsx(ne.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":i?"":void 0,dir:b,...p,ref:t})})})});sm.displayName=xo;var im="RadioGroupItem",cm=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=XC(im,n),s=a.disabled||r,i=om(n),l=am(n),u=f.useRef(null),m=he(t,u),c=a.value===o.value,p=f.useRef(!1);return f.useEffect(()=>{const h=g=>{VC.includes(g.key)&&(p.current=!0)},b=()=>p.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",b)}},[]),d.jsx(fs,{asChild:!0,...i,focusable:!s,active:c,children:d.jsx(Jf,{disabled:s,required:a.required,checked:c,...l,...o,name:a.name,ref:m,onCheck:()=>a.onValueChange(o.value),onKeyDown:Z(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:Z(o.onFocus,()=>{var h;p.current&&((h=u.current)==null||h.click())})})})});cm.displayName=im;var ZC="RadioGroupIndicator",lm=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=am(n);return d.jsx(tm,{...o,...r,ref:t})});lm.displayName=ZC;var um=sm,dm=cm,QC=lm;const fm=f.forwardRef(({className:e,...t},n)=>d.jsx(um,{ref:n,className:W("grid gap-2",e),...t}));fm.displayName=um.displayName;const mm=f.forwardRef(({className:e,...t},n)=>d.jsx(dm,{ref:n,className:W(`
219
+ ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function B1(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Y1(){return us(/^Mac/)}function H1(){return us(/^iPhone/)}function ki(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function z1(){return us(/^iPad/)||Y1()&&navigator.maxTouchPoints>1}function Cd(){return H1()||z1()}function us(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const G1=24,U1=typeof window<"u"?w.useLayoutEffect:w.useEffect;function Ei(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const qo=typeof document<"u"&&window.visualViewport;function Ni(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Md(e){for(Ni(e)&&(e=e.parentElement);e&&!Ni(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const q1=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Er=0,Vo;function V1(e={}){let{isDisabled:t}=e;U1(()=>{if(!t)return Er++,Er===1&&Cd()&&(Vo=K1()),()=>{Er--,Er===0&&(Vo==null||Vo())}},[t])}function K1(){let e,t=0,n=c=>{e=Md(c.target),!(e===document.documentElement&&e===document.body)&&(t=c.changedTouches[0].pageY)},r=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}let p=c.changedTouches[0].pageY,h=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((h<=0&&p>t||h>=b&&p<t)&&c.preventDefault(),t=p)},o=c=>{let p=c.target;ya(p)&&p!==document.activeElement&&(c.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=c=>{let p=c.target;ya(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",qo&&(qo.height<window.innerHeight?requestAnimationFrame(()=>{Ri(p)}):qo.addEventListener("resize",()=>Ri(p),{once:!0}))}))},s=()=>{window.scrollTo(0,0)},i=window.pageXOffset,l=window.pageYOffset,u=Ei(X1(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let m=Ei(Wn(document,"touchstart",n,{passive:!1,capture:!0}),Wn(document,"touchmove",r,{passive:!1,capture:!0}),Wn(document,"touchend",o,{passive:!1,capture:!0}),Wn(document,"focus",a,!0),Wn(window,"scroll",s));return()=>{u(),m(),window.scrollTo(i,l)}}function X1(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Wn(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Ri(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Md(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const s=n.getBoundingClientRect().bottom+G1;a>s&&(n.scrollTop+=o-r)}e=n.parentElement}}function ya(e){return e instanceof HTMLInputElement&&!q1.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Z1(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Q1(...e){return t=>e.forEach(n=>Z1(n,t))}function Dd(...e){return f.useCallback(Q1(...e),e)}const kd=new WeakMap;function Pe(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&kd.set(e,r)}function J1(e,t){if(!e||!(e instanceof HTMLElement))return;let n=kd.get(e);n&&(e.style[t]=n[t])}const Ne=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Nr(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Ne(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Ne(t)?5:4]):null)}function eS(e){return 8*(Math.log(e+1)-2)}function Ko(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function tS(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const Me={DURATION:.5,EASE:[.32,.72,0,1]},Ed=.4,nS=.25,rS=100,Nd=8,Kt=16,ba=26,Xo="vaul-dragging";function Rd(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function oS({defaultProp:e,onChange:t}){const n=w.useState(e),[r]=n,o=w.useRef(r),a=Rd(t);return w.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function Td({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=oS({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,i=Rd(n),l=w.useCallback(u=>{if(a){const c=typeof u=="function"?u(e):u;c!==e&&i(c)}else o(u)},[a,e,o,i]);return[s,l]}function aS({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:s,direction:i="bottom",container:l,snapToSequentialPoint:u}){const[m,c]=Td({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[p,h]=w.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);w.useEffect(()=>{function M(){h({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[]);const b=w.useMemo(()=>m===(n==null?void 0:n[n.length-1])||null,[n,m]),g=w.useMemo(()=>{var M;return(M=n==null?void 0:n.findIndex(E=>E===m))!=null?M:null},[n,m]),v=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===m||!n,y=w.useMemo(()=>{const M=l?{width:l.getBoundingClientRect().width,height:l.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var E;return(E=n==null?void 0:n.map($=>{const W=typeof $=="string";let Y=0;if(W&&(Y=parseInt($,10)),Ne(i)){const A=W?Y:p?$*M.height:0;return p?i==="bottom"?M.height-A:-M.height+A:A}const U=W?Y:p?$*M.width:0;return p?i==="right"?M.width-U:-M.width+U:U}))!=null?E:[]},[n,p,l]),x=w.useMemo(()=>g!==null?y==null?void 0:y[g]:null,[y,g]),S=w.useCallback(M=>{var E;const $=(E=y==null?void 0:y.findIndex(W=>W===M))!=null?E:null;s($),Pe(r.current,{transition:`transform ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`,transform:Ne(i)?`translate3d(0, ${M}px, 0)`:`translate3d(${M}px, 0, 0)`}),y&&$!==y.length-1&&a!==void 0&&$!==a&&$<a?Pe(o.current,{transition:`opacity ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`,opacity:"0"}):Pe(o.current,{transition:`opacity ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`,opacity:"1"}),c(n==null?void 0:n[Math.max($,0)])},[r.current,n,y,a,o,c]);w.useEffect(()=>{if(m||e){var M;const E=(M=n==null?void 0:n.findIndex($=>$===e||$===m))!=null?M:-1;y&&E!==-1&&typeof y[E]=="number"&&S(y[E])}},[m,e,n,y,S]);function D({draggedDistance:M,closeDrawer:E,velocity:$,dismissible:W}){if(a===void 0)return;const Y=i==="bottom"||i==="right"?(x??0)-M:(x??0)+M,U=g===a-1,A=g===0,T=M>0;if(U&&Pe(o.current,{transition:`opacity ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`}),!u&&$>2&&!T){W?E():S(y[0]);return}if(!u&&$>2&&T&&y&&n){S(y[n.length-1]);return}const _=y==null?void 0:y.reduce((P,k)=>typeof P!="number"||typeof k!="number"?P:Math.abs(k-Y)<Math.abs(P-Y)?k:P),R=Ne(i)?window.innerHeight:window.innerWidth;if($>Ed&&Math.abs(M)<R*.4){const P=T?1:-1;if(P>0&&b&&n){S(y[n.length-1]);return}if(A&&P<0&&W&&E(),g===null)return;S(y[g+P]);return}S(_)}function C({draggedDistance:M}){if(x===null)return;const E=i==="bottom"||i==="right"?x-M:x+M;(i==="bottom"||i==="right")&&E<y[y.length-1]||(i==="top"||i==="left")&&E>y[y.length-1]||Pe(r.current,{transform:Ne(i)?`translate3d(0, ${E}px, 0)`:`translate3d(${E}px, 0, 0)`})}function N(M,E){if(!n||typeof g!="number"||!y||a===void 0)return null;const $=g===a-1;if(g>=a&&E)return 0;if($&&!E)return 1;if(!v&&!$)return null;const Y=$?g+1:g-1,U=$?y[Y]-y[Y-1]:y[Y+1]-y[Y],A=M/Math.abs(U);return $?1-A:A}return{isLastSnapPoint:b,activeSnapPoint:m,shouldFade:v,getPercentageDragged:N,setActiveSnapPoint:c,activeSnapPointIndex:g,onRelease:D,onDrag:C,snapPointsOffset:y}}const sS=()=>()=>{};function iS(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=mr(),a=w.useRef(null),s=w.useMemo(()=>document.body.style.backgroundColor,[]);function i(){return(window.innerWidth-ba)/window.innerWidth}w.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;tS(r&&!o?Ko(document.body,{background:"black"}):sS,Ko(l,{transformOrigin:Ne(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Me.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Me.EASE.join(",")})`}));const u=Ko(l,{borderRadius:`${Nd}px`,overflow:"hidden",...Ne(e)?{transform:`scale(${i()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${i()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),a.current=window.setTimeout(()=>{s?document.body.style.background=s:document.body.style.removeProperty("background")},Me.DURATION*1e3)}}},[t,n,s])}let Bn=null;function cS({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:a}){const[s,i]=w.useState(()=>typeof window<"u"?window.location.href:""),l=w.useRef(0),u=w.useCallback(()=>{if(ki()&&Bn===null&&e&&!a){Bn={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:c,innerHeight:p}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-c}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const h=p-window.innerHeight;h&&l.current>=p&&(document.body.style.top=`${-(l.current+h)}px`)}),300)}},[e]),m=w.useCallback(()=>{if(ki()&&Bn!==null&&!a){const c=-parseInt(document.body.style.top,10),p=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Bn),window.requestAnimationFrame(()=>{if(o&&s!==window.location.href){i(window.location.href);return}window.scrollTo(p,c)}),Bn=null}},[s]);return w.useEffect(()=>{function c(){l.current=window.scrollY}return c(),window.addEventListener("scroll",c),()=>{window.removeEventListener("scroll",c)}},[]),w.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||m()}},[t,m]),w.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{m()},500)):m())},[e,r,s,t,n,u,m]),{restorePositionSetting:m}}function lS({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:a,shouldScaleBackground:s=!1,setBackgroundColorOnScale:i=!0,closeThreshold:l=nS,scrollLockTimeout:u=rS,dismissible:m=!0,handleOnly:c=!1,fadeFromIndex:p=a&&a.length-1,activeSnapPoint:h,setActiveSnapPoint:b,fixed:g,modal:v=!0,onClose:y,nested:x,noBodyStyles:S=!1,direction:D="bottom",defaultOpen:C=!1,disablePreventScroll:N=!0,snapToSequentialPoint:M=!1,preventScrollRestoration:E=!1,repositionInputs:$=!0,onAnimationEnd:W,container:Y,autoFocus:U=!1}){var A,T;const[_=!1,R]=Td({defaultProp:C,prop:e,onChange:G=>{t==null||t(G),!G&&!x&&Pn(),setTimeout(()=>{W==null||W(G)},Me.DURATION*1e3),G&&!v&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),G||(document.body.style.pointerEvents="auto")}}),[P,k]=w.useState(!1),[O,H]=w.useState(!1),[V,I]=w.useState(!1),j=w.useRef(null),B=w.useRef(null),z=w.useRef(null),K=w.useRef(null),L=w.useRef(null),q=w.useRef(!1),X=w.useRef(null),Q=w.useRef(0),re=w.useRef(!1),ie=w.useRef(!C),ye=w.useRef(0),J=w.useRef(null),Te=w.useRef(((A=J.current)==null?void 0:A.getBoundingClientRect().height)||0),_e=w.useRef(((T=J.current)==null?void 0:T.getBoundingClientRect().width)||0),oe=w.useRef(0),me=w.useCallback(G=>{a&&G===Fe.length-1&&(B.current=new Date)},[]),{activeSnapPoint:be,activeSnapPointIndex:$e,setActiveSnapPoint:He,onRelease:Ie,snapPointsOffset:Fe,onDrag:zt,shouldFade:an,getPercentageDragged:Rt}=aS({snapPoints:a,activeSnapPointProp:h,setActiveSnapPointProp:b,drawerRef:J,fadeFromIndex:p,overlayRef:j,onSnapPointChange:me,direction:D,container:Y,snapToSequentialPoint:M});V1({isDisabled:!_||O||!v||V||!P||!$||!N});const{restorePositionSetting:Pn}=cS({isOpen:_,modal:v,nested:x??!1,hasBeenOpened:P,preventScrollRestoration:E,noBodyStyles:S});function bt(){return(window.innerWidth-ba)/window.innerWidth}function Gt(G){var ce,se;!m&&!a||J.current&&!J.current.contains(G.target)||(Te.current=((ce=J.current)==null?void 0:ce.getBoundingClientRect().height)||0,_e.current=((se=J.current)==null?void 0:se.getBoundingClientRect().width)||0,H(!0),z.current=new Date,Cd()&&window.addEventListener("touchend",()=>q.current=!1,{once:!0}),G.target.setPointerCapture(G.pointerId),Q.current=Ne(D)?G.pageY:G.pageX)}function nt(G,ce){var se;let fe=G;const ge=(se=window.getSelection())==null?void 0:se.toString(),ae=J.current?Nr(J.current,D):null,de=new Date;if(fe.tagName==="SELECT"||fe.hasAttribute("data-vaul-no-drag")||fe.closest("[data-vaul-no-drag]"))return!1;if(D==="right"||D==="left")return!0;if(B.current&&de.getTime()-B.current.getTime()<500)return!1;if(ae!==null&&(D==="bottom"?ae>0:ae<0))return!0;if(ge&&ge.length>0)return!1;if(L.current&&de.getTime()-L.current.getTime()<u&&ae===0||ce)return L.current=de,!1;for(;fe;){if(fe.scrollHeight>fe.clientHeight){if(fe.scrollTop!==0)return L.current=new Date,!1;if(fe.getAttribute("role")==="dialog")return!0}fe=fe.parentNode}return!0}function sn(G){if(J.current&&O){const ce=D==="bottom"||D==="right"?1:-1,se=(Q.current-(Ne(D)?G.pageY:G.pageX))*ce,fe=se>0,ge=a&&!m&&!fe;if(ge&&$e===0)return;const ae=Math.abs(se),de=document.querySelector("[data-vaul-drawer-wrapper]"),ve=D==="bottom"||D==="top"?Te.current:_e.current;let ue=ae/ve;const Ue=Rt(ae,fe);if(Ue!==null&&(ue=Ue),ge&&ue>=1||!q.current&&!nt(G.target,fe))return;if(J.current.classList.add(Xo),q.current=!0,Pe(J.current,{transition:"none"}),Pe(j.current,{transition:"none"}),a&&zt({draggedDistance:se}),fe&&!a){const Ce=eS(se),Ve=Math.min(Ce*-1,0)*ce;Pe(J.current,{transform:Ne(D)?`translate3d(0, ${Ve}px, 0)`:`translate3d(${Ve}px, 0, 0)`});return}const xe=1-ue;if((an||p&&$e===p-1)&&(r==null||r(G,ue),Pe(j.current,{opacity:`${xe}`,transition:"none"},!0)),de&&j.current&&s){const Ce=Math.min(bt()+ue*(1-bt()),1),Ve=8-ue*8,je=Math.max(0,14-ue*14);Pe(de,{borderRadius:`${Ve}px`,transform:Ne(D)?`scale(${Ce}) translate3d(0, ${je}px, 0)`:`scale(${Ce}) translate3d(${je}px, 0, 0)`,transition:"none"},!0)}if(!a){const Ce=ae*ce;Pe(J.current,{transform:Ne(D)?`translate3d(0, ${Ce}px, 0)`:`translate3d(${Ce}px, 0, 0)`})}}}w.useEffect(()=>{window.requestAnimationFrame(()=>{ie.current=!0})},[]),w.useEffect(()=>{var G;function ce(){if(!J.current||!$)return;const se=document.activeElement;if(ya(se)||re.current){var fe;const ge=((fe=window.visualViewport)==null?void 0:fe.height)||0,ae=window.innerHeight;let de=ae-ge;const ve=J.current.getBoundingClientRect().height||0,ue=ve>ae*.8;oe.current||(oe.current=ve);const Ue=J.current.getBoundingClientRect().top;if(Math.abs(ye.current-de)>60&&(re.current=!re.current),a&&a.length>0&&Fe&&$e){const xe=Fe[$e]||0;de+=xe}if(ye.current=de,ve>ge||re.current){const xe=J.current.getBoundingClientRect().height;let Ce=xe;xe>ge&&(Ce=ge-(ue?Ue:ba)),g?J.current.style.height=`${xe-Math.max(de,0)}px`:J.current.style.height=`${Math.max(Ce,ge-Ue)}px`}else B1()||(J.current.style.height=`${oe.current}px`);a&&a.length>0&&!re.current?J.current.style.bottom="0px":J.current.style.bottom=`${Math.max(de,0)}px`}}return(G=window.visualViewport)==null||G.addEventListener("resize",ce),()=>{var se;return(se=window.visualViewport)==null?void 0:se.removeEventListener("resize",ce)}},[$e,a,Fe]);function Ge(G){An(),y==null||y(),G||R(!1),setTimeout(()=>{a&&He(a[0])},Me.DURATION*1e3)}function cn(){if(!J.current)return;const G=document.querySelector("[data-vaul-drawer-wrapper]"),ce=Nr(J.current,D);Pe(J.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`}),Pe(j.current,{transition:`opacity ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`,opacity:"1"}),s&&ce&&ce>0&&_&&Pe(G,{borderRadius:`${Nd}px`,overflow:"hidden",...Ne(D)?{transform:`scale(${bt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${bt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Me.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Me.EASE.join(",")})`},!0)}function An(){!O||!J.current||(J.current.classList.remove(Xo),q.current=!1,H(!1),K.current=new Date)}function ln(G){if(!O||!J.current)return;J.current.classList.remove(Xo),q.current=!1,H(!1),K.current=new Date;const ce=Nr(J.current,D);if(!G||!nt(G.target,!1)||!ce||Number.isNaN(ce)||z.current===null)return;const se=K.current.getTime()-z.current.getTime(),fe=Q.current-(Ne(D)?G.pageY:G.pageX),ge=Math.abs(fe)/se;if(ge>.05&&(I(!0),setTimeout(()=>{I(!1)},200)),a){Ie({draggedDistance:fe*(D==="bottom"||D==="right"?1:-1),closeDrawer:Ge,velocity:ge,dismissible:m}),o==null||o(G,!0);return}if(D==="bottom"||D==="right"?fe>0:fe<0){cn(),o==null||o(G,!0);return}if(ge>Ed){Ge(),o==null||o(G,!1);return}var ae;const de=Math.min((ae=J.current.getBoundingClientRect().height)!=null?ae:0,window.innerHeight);var ve;const ue=Math.min((ve=J.current.getBoundingClientRect().width)!=null?ve:0,window.innerWidth),Ue=D==="left"||D==="right";if(Math.abs(ce)>=(Ue?ue:de)*l){Ge(),o==null||o(G,!1);return}o==null||o(G,!0),cn()}w.useEffect(()=>(_&&(Pe(document.documentElement,{scrollBehavior:"auto"}),B.current=new Date),()=>{J1(document.documentElement,"scrollBehavior")}),[_]);function Ut(G){const ce=G?(window.innerWidth-Kt)/window.innerWidth:1,se=G?-Kt:0;X.current&&window.clearTimeout(X.current),Pe(J.current,{transition:`transform ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`,transform:Ne(D)?`scale(${ce}) translate3d(0, ${se}px, 0)`:`scale(${ce}) translate3d(${se}px, 0, 0)`}),!G&&J.current&&(X.current=setTimeout(()=>{const fe=Nr(J.current,D);Pe(J.current,{transition:"none",transform:Ne(D)?`translate3d(0, ${fe}px, 0)`:`translate3d(${fe}px, 0, 0)`})},500))}function In(G,ce){if(ce<0)return;const se=(window.innerWidth-Kt)/window.innerWidth,fe=se+ce*(1-se),ge=-Kt+ce*Kt;Pe(J.current,{transform:Ne(D)?`scale(${fe}) translate3d(0, ${ge}px, 0)`:`scale(${fe}) translate3d(${ge}px, 0, 0)`,transition:"none"})}function Tt(G,ce){const se=Ne(D)?window.innerHeight:window.innerWidth,fe=ce?(se-Kt)/se:1,ge=ce?-Kt:0;ce&&Pe(J.current,{transition:`transform ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`,transform:Ne(D)?`scale(${fe}) translate3d(0, ${ge}px, 0)`:`scale(${fe}) translate3d(${ge}px, 0, 0)`})}return w.useEffect(()=>{v||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[v]),w.createElement(Qa,{defaultOpen:C,onOpenChange:G=>{!m&&!G||(G?k(!0):Ge(!0),R(G))},open:_},w.createElement(Sd.Provider,{value:{activeSnapPoint:be,snapPoints:a,setActiveSnapPoint:He,drawerRef:J,overlayRef:j,onOpenChange:t,onPress:Gt,onRelease:ln,onDrag:sn,dismissible:m,shouldAnimate:ie,handleOnly:c,isOpen:_,isDragging:O,shouldFade:an,closeDrawer:Ge,onNestedDrag:In,onNestedOpenChange:Ut,onNestedRelease:Tt,keyboardIsOpen:re,modal:v,snapPointsOffset:Fe,activeSnapPointIndex:$e,direction:D,shouldScaleBackground:s,setBackgroundColorOnScale:i,noBodyStyles:S,container:Y,autoFocus:U}},n))}const _d=w.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:a,isOpen:s,modal:i,shouldAnimate:l}=mr(),u=Dd(t,n),m=r&&r.length>0;if(!i)return null;const c=w.useCallback(p=>o(p),[o]);return w.createElement(po,{onMouseUp:c,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":s&&m?"true":"false","data-vaul-snap-points-overlay":s&&a?"true":"false","data-vaul-animate":l!=null&&l.current?"true":"false",...e})});_d.displayName="Drawer.Overlay";const Od=w.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:a,onPress:s,onRelease:i,onDrag:l,keyboardIsOpen:u,snapPointsOffset:m,activeSnapPointIndex:c,modal:p,isOpen:h,direction:b,snapPoints:g,container:v,handleOnly:y,shouldAnimate:x,autoFocus:S}=mr(),[D,C]=w.useState(!1),N=Dd(o,a),M=w.useRef(null),E=w.useRef(null),$=w.useRef(!1),W=g&&g.length>0;iS();const Y=(A,T,_=0)=>{if($.current)return!0;const R=Math.abs(A.y),P=Math.abs(A.x),k=P>R,O=["bottom","right"].includes(T)?1:-1;if(T==="left"||T==="right"){if(!(A.x*O<0)&&P>=0&&P<=_)return k}else if(!(A.y*O<0)&&R>=0&&R<=_)return!k;return $.current=!0,!0};w.useEffect(()=>{W&&window.requestAnimationFrame(()=>{C(!0)})},[]);function U(A){M.current=null,$.current=!1,i(A)}return w.createElement(ho,{"data-vaul-drawer-direction":b,"data-vaul-drawer":"","data-vaul-delayed-snap-points":D?"true":"false","data-vaul-snap-points":h&&W?"true":"false","data-vaul-custom-container":v?"true":"false","data-vaul-animate":x!=null&&x.current?"true":"false",...r,ref:N,style:m&&m.length>0?{"--snap-point-height":`${m[c??0]}px`,...t}:t,onPointerDown:A=>{y||(r.onPointerDown==null||r.onPointerDown.call(r,A),M.current={x:A.pageX,y:A.pageY},s(A))},onOpenAutoFocus:A=>{n==null||n(A),S||A.preventDefault()},onPointerDownOutside:A=>{if(e==null||e(A),!p||A.defaultPrevented){A.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:A=>{if(!p){A.preventDefault();return}},onPointerMove:A=>{if(E.current=A,y||(r.onPointerMove==null||r.onPointerMove.call(r,A),!M.current))return;const T=A.pageY-M.current.y,_=A.pageX-M.current.x,R=A.pointerType==="touch"?10:2;Y({x:_,y:T},b,R)?l(A):(Math.abs(_)>R||Math.abs(T)>R)&&(M.current=null)},onPointerUp:A=>{r.onPointerUp==null||r.onPointerUp.call(r,A),M.current=null,$.current=!1,i(A)},onPointerOut:A=>{r.onPointerOut==null||r.onPointerOut.call(r,A),U(E.current)},onContextMenu:A=>{r.onContextMenu==null||r.onContextMenu.call(r,A),E.current&&U(E.current)}})});Od.displayName="Drawer.Content";const uS=250,dS=120,fS=w.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:a,snapPoints:s,activeSnapPoint:i,setActiveSnapPoint:l,dismissible:u,handleOnly:m,isOpen:c,onPress:p,onDrag:h}=mr(),b=w.useRef(null),g=w.useRef(!1);function v(){if(g.current){S();return}window.setTimeout(()=>{y()},dS)}function y(){if(a||e||g.current){S();return}if(S(),!s||s.length===0){u||o();return}if(i===s[s.length-1]&&u){o();return}const C=s.findIndex(M=>M===i);if(C===-1)return;const N=s[C+1];l(N)}function x(){b.current=window.setTimeout(()=>{g.current=!0},uS)}function S(){b.current&&window.clearTimeout(b.current),g.current=!1}return w.createElement("div",{onClick:v,onPointerCancel:S,onPointerDown:D=>{m&&p(D),x()},onPointerMove:D=>{m&&h(D)},ref:r,"data-vaul-drawer-visible":c?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},w.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});fS.displayName="Drawer.Handle";function mS(e){const t=mr(),{container:n=t.container,...r}=e;return w.createElement(Ja,{container:n,...r})}const lt={Root:lS,Content:Od,Overlay:_d,Trigger:Eu,Portal:mS,Close:ns,Title:es,Description:ts},Pd=({shouldScaleBackground:e=!0,...t})=>d.jsx(lt.Root,{shouldScaleBackground:e,...t});Pd.displayName="Drawer";const pS=lt.Trigger,hS=lt.Portal,gS=lt.Close,Ad=f.forwardRef(({className:e,...t},n)=>d.jsx(lt.Overlay,{ref:n,className:F("fixed inset-0 z-50 bg-black/80",e),...t}));Ad.displayName=lt.Overlay.displayName;const Id=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(hS,{children:[d.jsx(Ad,{}),d.jsxs(lt.Content,{ref:r,className:F("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[d.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Id.displayName="DrawerContent";const jd=({className:e,...t})=>d.jsx("div",{className:F("grid gap-1.5 p-4 text-center sm:text-left",e),...t});jd.displayName="DrawerHeader";const $d=({className:e,...t})=>d.jsx("div",{className:F("mt-auto flex flex-col gap-2 p-4",e),...t});$d.displayName="DrawerFooter";const Ld=f.forwardRef(({className:e,...t},n)=>d.jsx(lt.Title,{ref:n,className:F("text-lg font-semibold leading-none tracking-tight",e),...t}));Ld.displayName=lt.Title.displayName;const Fd=f.forwardRef(({className:e,...t},n)=>d.jsx(lt.Description,{ref:n,className:F("text-sm text-muted-foreground",e),...t}));Fd.displayName=lt.Description.displayName;var Zo="rovingFocusGroup.onEntryFocus",vS={bubbles:!1,cancelable:!0},pr="RovingFocusGroup",[wa,Wd,yS]=Ya(pr),[bS,On]=Be(pr,[yS]),[wS,xS]=bS(pr),Bd=f.forwardRef((e,t)=>d.jsx(wa.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(wa.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(SS,{...e,ref:t})})}));Bd.displayName=pr;var SS=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:m=!1,...c}=e,p=f.useRef(null),h=he(t,p),b=cr(a),[g,v]=tt({prop:s,defaultProp:i??null,onChange:l,caller:pr}),[y,x]=f.useState(!1),S=et(u),D=Wd(n),C=f.useRef(!1),[N,M]=f.useState(0);return f.useEffect(()=>{const E=p.current;if(E)return E.addEventListener(Zo,S),()=>E.removeEventListener(Zo,S)},[S]),d.jsx(wS,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:g,onItemFocus:f.useCallback(E=>v(E),[v]),onItemShiftTab:f.useCallback(()=>x(!0),[]),onFocusableItemAdd:f.useCallback(()=>M(E=>E+1),[]),onFocusableItemRemove:f.useCallback(()=>M(E=>E-1),[]),children:d.jsx(ee.div,{tabIndex:y||N===0?-1:0,"data-orientation":r,...c,ref:h,style:{outline:"none",...e.style},onMouseDown:Z(e.onMouseDown,()=>{C.current=!0}),onFocus:Z(e.onFocus,E=>{const $=!C.current;if(E.target===E.currentTarget&&$&&!y){const W=new CustomEvent(Zo,vS);if(E.currentTarget.dispatchEvent(W),!W.defaultPrevented){const Y=D().filter(R=>R.focusable),U=Y.find(R=>R.active),A=Y.find(R=>R.id===g),_=[U,A,...Y].filter(Boolean).map(R=>R.ref.current);zd(_,m)}}C.current=!1}),onBlur:Z(e.onBlur,()=>x(!1))})})}),Yd="RovingFocusGroupItem",Hd=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=Ee(),u=a||l,m=xS(Yd,n),c=m.currentTabStopId===u,p=Wd(n),{onFocusableItemAdd:h,onFocusableItemRemove:b,currentTabStopId:g}=m;return f.useEffect(()=>{if(r)return h(),()=>b()},[r,h,b]),d.jsx(wa.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:d.jsx(ee.span,{tabIndex:c?0:-1,"data-orientation":m.orientation,...i,ref:t,onMouseDown:Z(e.onMouseDown,v=>{r?m.onItemFocus(u):v.preventDefault()}),onFocus:Z(e.onFocus,()=>m.onItemFocus(u)),onKeyDown:Z(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){m.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=DS(v,m.orientation,m.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let S=p().filter(D=>D.focusable).map(D=>D.ref.current);if(y==="last")S.reverse();else if(y==="prev"||y==="next"){y==="prev"&&S.reverse();const D=S.indexOf(v.currentTarget);S=m.loop?kS(S,D+1):S.slice(D+1)}setTimeout(()=>zd(S))}}),children:typeof s=="function"?s({isCurrentTabStop:c,hasTabStop:g!=null}):s})})});Hd.displayName=Yd;var CS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function MS(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function DS(e,t,n){const r=MS(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return CS[r]}function zd(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function kS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ds=Bd,fs=Hd,xa=["Enter"," "],ES=["ArrowDown","PageUp","Home"],Gd=["ArrowUp","PageDown","End"],NS=[...ES,...Gd],RS={ltr:[...xa,"ArrowRight"],rtl:[...xa,"ArrowLeft"]},TS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},hr="Menu",[Xn,_S,OS]=Ya(hr),[on,Ud]=Be(hr,[OS,Ft,On]),gr=Ft(),qd=On(),[Vd,Ht]=on(hr),[PS,vr]=on(hr),Kd=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=gr(t),[l,u]=f.useState(null),m=f.useRef(!1),c=et(a),p=cr(o);return f.useEffect(()=>{const h=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),d.jsx(rr,{...i,children:d.jsx(Vd,{scope:t,open:n,onOpenChange:c,content:l,onContentChange:u,children:d.jsx(PS,{scope:t,onClose:f.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:m,dir:p,modal:s,children:r})})})};Kd.displayName=hr;var AS="MenuAnchor",ms=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=gr(n);return d.jsx(or,{...o,...r,ref:t})});ms.displayName=AS;var ps="MenuPortal",[IS,Xd]=on(ps,{forceMount:void 0}),Zd=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ht(ps,t);return d.jsx(IS,{scope:t,forceMount:n,children:d.jsx(ze,{present:n||a.open,children:d.jsx(ar,{asChild:!0,container:o,children:r})})})};Zd.displayName=ps;var Je="MenuContent",[jS,hs]=on(Je),Qd=f.forwardRef((e,t)=>{const n=Xd(Je,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ht(Je,e.__scopeMenu),s=vr(Je,e.__scopeMenu);return d.jsx(Xn.Provider,{scope:e.__scopeMenu,children:d.jsx(ze,{present:r||a.open,children:d.jsx(Xn.Slot,{scope:e.__scopeMenu,children:s.modal?d.jsx($S,{...o,ref:t}):d.jsx(LS,{...o,ref:t})})})})}),$S=f.forwardRef((e,t)=>{const n=Ht(Je,e.__scopeMenu),r=f.useRef(null),o=he(t,r);return f.useEffect(()=>{const a=r.current;if(a)return oo(a)},[]),d.jsx(gs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Z(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),LS=f.forwardRef((e,t)=>{const n=Ht(Je,e.__scopeMenu);return d.jsx(gs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),FS=It("MenuContent.ScrollLock"),gs=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:c,onInteractOutside:p,onDismiss:h,disableOutsideScroll:b,...g}=e,v=Ht(Je,n),y=vr(Je,n),x=gr(n),S=qd(n),D=_S(n),[C,N]=f.useState(null),M=f.useRef(null),E=he(t,M,v.onContentChange),$=f.useRef(0),W=f.useRef(""),Y=f.useRef(0),U=f.useRef(null),A=f.useRef("right"),T=f.useRef(0),_=b?sr:f.Fragment,R=b?{as:FS,allowPinchZoom:!0}:void 0,P=O=>{var L,q;const H=W.current+O,V=D().filter(X=>!X.disabled),I=document.activeElement,j=(L=V.find(X=>X.ref.current===I))==null?void 0:L.textValue,B=V.map(X=>X.textValue),z=ZS(B,H,j),K=(q=V.find(X=>X.textValue===z))==null?void 0:q.ref.current;(function X(Q){W.current=Q,window.clearTimeout($.current),Q!==""&&($.current=window.setTimeout(()=>X(""),1e3))})(H),K&&setTimeout(()=>K.focus())};f.useEffect(()=>()=>window.clearTimeout($.current),[]),Qr();const k=f.useCallback(O=>{var V,I;return A.current===((V=U.current)==null?void 0:V.side)&&JS(O,(I=U.current)==null?void 0:I.area)},[]);return d.jsx(jS,{scope:n,searchRef:W,onItemEnter:f.useCallback(O=>{k(O)&&O.preventDefault()},[k]),onItemLeave:f.useCallback(O=>{var H;k(O)||((H=M.current)==null||H.focus(),N(null))},[k]),onTriggerLeave:f.useCallback(O=>{k(O)&&O.preventDefault()},[k]),pointerGraceTimerRef:Y,onPointerGraceIntentChange:f.useCallback(O=>{U.current=O},[]),children:d.jsx(_,{...R,children:d.jsx(tr,{asChild:!0,trapped:o,onMountAutoFocus:Z(a,O=>{var H;O.preventDefault(),(H=M.current)==null||H.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:d.jsx(En,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:c,onInteractOutside:p,onDismiss:h,children:d.jsx(ds,{asChild:!0,...S,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:N,onEntryFocus:Z(l,O=>{y.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(no,{role:"menu","aria-orientation":"vertical","data-state":gf(v.open),"data-radix-menu-content":"",dir:y.dir,...x,...g,ref:E,style:{outline:"none",...g.style},onKeyDown:Z(g.onKeyDown,O=>{const V=O.target.closest("[data-radix-menu-content]")===O.currentTarget,I=O.ctrlKey||O.altKey||O.metaKey,j=O.key.length===1;V&&(O.key==="Tab"&&O.preventDefault(),!I&&j&&P(O.key));const B=M.current;if(O.target!==B||!NS.includes(O.key))return;O.preventDefault();const K=D().filter(L=>!L.disabled).map(L=>L.ref.current);Gd.includes(O.key)&&K.reverse(),KS(K)}),onBlur:Z(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout($.current),W.current="")}),onPointerMove:Z(e.onPointerMove,Zn(O=>{const H=O.target,V=T.current!==O.clientX;if(O.currentTarget.contains(H)&&V){const I=O.clientX>T.current?"right":"left";A.current=I,T.current=O.clientX}}))})})})})})})});Qd.displayName=Je;var WS="MenuGroup",vs=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(ee.div,{role:"group",...r,ref:t})});vs.displayName=WS;var BS="MenuLabel",Jd=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(ee.div,{...r,ref:t})});Jd.displayName=BS;var qr="MenuItem",Ti="menu.itemSelect",bo=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=f.useRef(null),s=vr(qr,e.__scopeMenu),i=hs(qr,e.__scopeMenu),l=he(t,a),u=f.useRef(!1),m=()=>{const c=a.current;if(!n&&c){const p=new CustomEvent(Ti,{bubbles:!0,cancelable:!0});c.addEventListener(Ti,h=>r==null?void 0:r(h),{once:!0}),Zi(c,p),p.defaultPrevented?u.current=!1:s.onClose()}};return d.jsx(ef,{...o,ref:l,disabled:n,onClick:Z(e.onClick,m),onPointerDown:c=>{var p;(p=e.onPointerDown)==null||p.call(e,c),u.current=!0},onPointerUp:Z(e.onPointerUp,c=>{var p;u.current||(p=c.currentTarget)==null||p.click()}),onKeyDown:Z(e.onKeyDown,c=>{const p=i.searchRef.current!=="";n||p&&c.key===" "||xa.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});bo.displayName=qr;var ef=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=hs(qr,n),i=qd(n),l=f.useRef(null),u=he(t,l),[m,c]=f.useState(!1),[p,h]=f.useState("");return f.useEffect(()=>{const b=l.current;b&&h((b.textContent??"").trim())},[a.children]),d.jsx(Xn.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:d.jsx(fs,{asChild:!0,...i,focusable:!r,children:d.jsx(ee.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:Z(e.onPointerMove,Zn(b=>{r?s.onItemLeave(b):(s.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Z(e.onPointerLeave,Zn(b=>s.onItemLeave(b))),onFocus:Z(e.onFocus,()=>c(!0)),onBlur:Z(e.onBlur,()=>c(!1))})})})}),YS="MenuCheckboxItem",tf=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return d.jsx(sf,{scope:e.__scopeMenu,checked:n,children:d.jsx(bo,{role:"menuitemcheckbox","aria-checked":Vr(n)?"mixed":n,...o,ref:t,"data-state":ws(n),onSelect:Z(o.onSelect,()=>r==null?void 0:r(Vr(n)?!0:!n),{checkForDefaultPrevented:!1})})})});tf.displayName=YS;var nf="MenuRadioGroup",[HS,zS]=on(nf,{value:void 0,onValueChange:()=>{}}),rf=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=et(r);return d.jsx(HS,{scope:e.__scopeMenu,value:n,onValueChange:a,children:d.jsx(vs,{...o,ref:t})})});rf.displayName=nf;var of="MenuRadioItem",af=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=zS(of,e.__scopeMenu),a=n===o.value;return d.jsx(sf,{scope:e.__scopeMenu,checked:a,children:d.jsx(bo,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":ws(a),onSelect:Z(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});af.displayName=of;var ys="MenuItemIndicator",[sf,GS]=on(ys,{checked:!1}),cf=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=GS(ys,n);return d.jsx(ze,{present:r||Vr(a.checked)||a.checked===!0,children:d.jsx(ee.span,{...o,ref:t,"data-state":ws(a.checked)})})});cf.displayName=ys;var US="MenuSeparator",lf=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(ee.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});lf.displayName=US;var qS="MenuArrow",uf=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=gr(n);return d.jsx(ro,{...o,...r,ref:t})});uf.displayName=qS;var bs="MenuSub",[VS,df]=on(bs),ff=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ht(bs,t),s=gr(t),[i,l]=f.useState(null),[u,m]=f.useState(null),c=et(o);return f.useEffect(()=>(a.open===!1&&c(!1),()=>c(!1)),[a.open,c]),d.jsx(rr,{...s,children:d.jsx(Vd,{scope:t,open:r,onOpenChange:c,content:u,onContentChange:m,children:d.jsx(VS,{scope:t,contentId:Ee(),triggerId:Ee(),trigger:i,onTriggerChange:l,children:n})})})};ff.displayName=bs;var zn="MenuSubTrigger",mf=f.forwardRef((e,t)=>{const n=Ht(zn,e.__scopeMenu),r=vr(zn,e.__scopeMenu),o=df(zn,e.__scopeMenu),a=hs(zn,e.__scopeMenu),s=f.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},m=f.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return f.useEffect(()=>m,[m]),f.useEffect(()=>{const c=i.current;return()=>{window.clearTimeout(c),l(null)}},[i,l]),d.jsx(ms,{asChild:!0,...u,children:d.jsx(ef,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":gf(n.open),...e,ref:Mt(t,o.onTriggerChange),onClick:c=>{var p;(p=e.onClick)==null||p.call(e,c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Z(e.onPointerMove,Zn(c=>{a.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:Z(e.onPointerLeave,Zn(c=>{var h,b;m();const p=(h=n.content)==null?void 0:h.getBoundingClientRect();if(p){const g=(b=n.content)==null?void 0:b.dataset.side,v=g==="right",y=v?-5:5,x=p[v?"left":"right"],S=p[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:c.clientX+y,y:c.clientY},{x,y:p.top},{x:S,y:p.top},{x:S,y:p.bottom},{x,y:p.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(c),c.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Z(e.onKeyDown,c=>{var h;const p=a.searchRef.current!=="";e.disabled||p&&c.key===" "||RS[r.dir].includes(c.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),c.preventDefault())})})})});mf.displayName=zn;var pf="MenuSubContent",hf=f.forwardRef((e,t)=>{const n=Xd(Je,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ht(Je,e.__scopeMenu),s=vr(Je,e.__scopeMenu),i=df(pf,e.__scopeMenu),l=f.useRef(null),u=he(t,l);return d.jsx(Xn.Provider,{scope:e.__scopeMenu,children:d.jsx(ze,{present:r||a.open,children:d.jsx(Xn.Slot,{scope:e.__scopeMenu,children:d.jsx(gs,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var c;s.isUsingKeyboardRef.current&&((c=l.current)==null||c.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:Z(e.onFocusOutside,m=>{m.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Z(e.onEscapeKeyDown,m=>{s.onClose(),m.preventDefault()}),onKeyDown:Z(e.onKeyDown,m=>{var h;const c=m.currentTarget.contains(m.target),p=TS[s.dir].includes(m.key);c&&p&&(a.onOpenChange(!1),(h=i.trigger)==null||h.focus(),m.preventDefault())})})})})})});hf.displayName=pf;function gf(e){return e?"open":"closed"}function Vr(e){return e==="indeterminate"}function ws(e){return Vr(e)?"indeterminate":e?"checked":"unchecked"}function KS(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function XS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function ZS(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=XS(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function QS(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],u=i.x,m=i.y,c=l.x,p=l.y;m>r!=p>r&&n<(c-u)*(r-m)/(p-m)+u&&(o=!o)}return o}function JS(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return QS(n,t)}function Zn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var eC=Kd,tC=ms,nC=Zd,rC=Qd,oC=vs,aC=Jd,sC=bo,iC=tf,cC=rf,lC=af,uC=cf,dC=lf,fC=uf,mC=ff,pC=mf,hC=hf,wo="DropdownMenu",[gC,yD]=Be(wo,[Ud]),Ye=Ud(),[vC,vf]=gC(wo),yf=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=Ye(t),u=f.useRef(null),[m,c]=tt({prop:o,defaultProp:a??!1,onChange:s,caller:wo});return d.jsx(vC,{scope:t,triggerId:Ee(),triggerRef:u,contentId:Ee(),open:m,onOpenChange:c,onOpenToggle:f.useCallback(()=>c(p=>!p),[c]),modal:i,children:d.jsx(eC,{...l,open:m,onOpenChange:c,dir:r,modal:i,children:n})})};yf.displayName=wo;var bf="DropdownMenuTrigger",wf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=vf(bf,n),s=Ye(n);return d.jsx(tC,{asChild:!0,...s,children:d.jsx(ee.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Mt(t,a.triggerRef),onPointerDown:Z(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:Z(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});wf.displayName=bf;var yC="DropdownMenuPortal",xf=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ye(t);return d.jsx(nC,{...r,...n})};xf.displayName=yC;var Sf="DropdownMenuContent",Cf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=vf(Sf,n),a=Ye(n),s=f.useRef(!1);return d.jsx(rC,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:Z(e.onCloseAutoFocus,i=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:Z(e.onInteractOutside,i=>{const l=i.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,m=l.button===2||u;(!o.modal||m)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Cf.displayName=Sf;var bC="DropdownMenuGroup",Mf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ye(n);return d.jsx(oC,{...o,...r,ref:t})});Mf.displayName=bC;var wC="DropdownMenuLabel",Df=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ye(n);return d.jsx(aC,{...o,...r,ref:t})});Df.displayName=wC;var xC="DropdownMenuItem",kf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ye(n);return d.jsx(sC,{...o,...r,ref:t})});kf.displayName=xC;var SC="DropdownMenuCheckboxItem",Ef=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ye(n);return d.jsx(iC,{...o,...r,ref:t})});Ef.displayName=SC;var CC="DropdownMenuRadioGroup",Nf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ye(n);return d.jsx(cC,{...o,...r,ref:t})});Nf.displayName=CC;var MC="DropdownMenuRadioItem",Rf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ye(n);return d.jsx(lC,{...o,...r,ref:t})});Rf.displayName=MC;var DC="DropdownMenuItemIndicator",Tf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ye(n);return d.jsx(uC,{...o,...r,ref:t})});Tf.displayName=DC;var kC="DropdownMenuSeparator",_f=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ye(n);return d.jsx(dC,{...o,...r,ref:t})});_f.displayName=kC;var EC="DropdownMenuArrow",NC=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ye(n);return d.jsx(fC,{...o,...r,ref:t})});NC.displayName=EC;var RC=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=Ye(t),[i,l]=tt({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return d.jsx(mC,{...s,open:i,onOpenChange:l,children:n})},TC="DropdownMenuSubTrigger",Of=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ye(n);return d.jsx(pC,{...o,...r,ref:t})});Of.displayName=TC;var _C="DropdownMenuSubContent",Pf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ye(n);return d.jsx(hC,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pf.displayName=_C;var OC=yf,PC=wf,AC=xf,Af=Cf,IC=Mf,If=Df,jf=kf,$f=Ef,jC=Nf,Lf=Rf,Ff=Tf,Wf=_f,$C=RC,Bf=Of,Yf=Pf;const LC=OC,FC=PC,WC=IC,BC=$C,YC=jC,Hf=f.forwardRef(({className:e,inset:t,children:n,...r},o)=>d.jsxs(Bf,{ref:o,className:F("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,d.jsx(Ea,{className:"ml-auto"})]}));Hf.displayName=Bf.displayName;const zf=f.forwardRef(({className:e,...t},n)=>d.jsx(Yf,{ref:n,className:F("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));zf.displayName=Yf.displayName;const Gf=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(AC,{children:d.jsx(Af,{ref:r,sideOffset:t,className:F("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n})}));Gf.displayName=Af.displayName;const Uf=f.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(jf,{ref:r,className:F("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n}));Uf.displayName=jf.displayName;const qf=f.forwardRef(({className:e,children:t,checked:n,...r},o)=>d.jsxs($f,{ref:o,className:F("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Ff,{children:d.jsx(Jn,{className:"h-4 w-4"})})}),t]}));qf.displayName=$f.displayName;const Vf=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Lf,{ref:r,className:F("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Ff,{children:d.jsx(rc,{className:"h-2 w-2 fill-current"})})}),t]}));Vf.displayName=Lf.displayName;const Kf=f.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(If,{ref:r,className:F("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Kf.displayName=If.displayName;const Xf=f.forwardRef(({className:e,...t},n)=>d.jsx(Wf,{ref:n,className:F("-mx-1 my-1 h-px bg-muted",e),...t}));Xf.displayName=Wf.displayName;const Zf=({className:e,...t})=>d.jsx("span",{className:F("ml-auto text-xs tracking-widest opacity-60",e),...t});Zf.displayName="DropdownMenuShortcut";var xs="Radio",[HC,Qf]=Be(xs),[zC,GC]=HC(xs),Jf=f.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:l,form:u,...m}=e,[c,p]=f.useState(null),h=he(t,v=>p(v)),b=f.useRef(!1),g=c?u||!!c.closest("form"):!0;return d.jsxs(zC,{scope:n,checked:o,disabled:s,children:[d.jsx(ee.button,{type:"button",role:"radio","aria-checked":o,"data-state":rm(o),"data-disabled":s?"":void 0,disabled:s,value:i,...m,ref:h,onClick:Z(e.onClick,v=>{o||l==null||l(),g&&(b.current=v.isPropagationStopped(),b.current||v.stopPropagation())})}),g&&d.jsx(nm,{control:c,bubbles:!b.current,name:r,value:i,checked:o,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});Jf.displayName=xs;var em="RadioIndicator",tm=f.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=GC(em,n);return d.jsx(ze,{present:r||a.checked,children:d.jsx(ee.span,{"data-state":rm(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});tm.displayName=em;var UC="RadioBubbleInput",nm=f.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=f.useRef(null),i=he(s,a),l=Ha(n),u=ja(t);return f.useEffect(()=>{const m=s.current;if(!m)return;const c=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(c,"checked").set;if(l!==n&&h){const b=new Event("click",{bubbles:r});h.call(m,n),m.dispatchEvent(b)}},[l,n,r]),d.jsx(ee.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});nm.displayName=UC;function rm(e){return e?"checked":"unchecked"}var qC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],xo="RadioGroup",[VC,bD]=Be(xo,[On,Qf]),om=On(),am=Qf(),[KC,XC]=VC(xo),sm=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:l,dir:u,loop:m=!0,onValueChange:c,...p}=e,h=om(n),b=cr(u),[g,v]=tt({prop:a,defaultProp:o??null,onChange:c,caller:xo});return d.jsx(KC,{scope:n,name:r,required:s,disabled:i,value:g,onValueChange:v,children:d.jsx(ds,{asChild:!0,...h,orientation:l,dir:b,loop:m,children:d.jsx(ee.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":i?"":void 0,dir:b,...p,ref:t})})})});sm.displayName=xo;var im="RadioGroupItem",cm=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=XC(im,n),s=a.disabled||r,i=om(n),l=am(n),u=f.useRef(null),m=he(t,u),c=a.value===o.value,p=f.useRef(!1);return f.useEffect(()=>{const h=g=>{qC.includes(g.key)&&(p.current=!0)},b=()=>p.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",b)}},[]),d.jsx(fs,{asChild:!0,...i,focusable:!s,active:c,children:d.jsx(Jf,{disabled:s,required:a.required,checked:c,...l,...o,name:a.name,ref:m,onCheck:()=>a.onValueChange(o.value),onKeyDown:Z(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:Z(o.onFocus,()=>{var h;p.current&&((h=u.current)==null||h.click())})})})});cm.displayName=im;var ZC="RadioGroupIndicator",lm=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=am(n);return d.jsx(tm,{...o,...r,ref:t})});lm.displayName=ZC;var um=sm,dm=cm,QC=lm;const fm=f.forwardRef(({className:e,...t},n)=>d.jsx(um,{ref:n,className:F("grid gap-2",e),...t}));fm.displayName=um.displayName;const mm=f.forwardRef(({className:e,...t},n)=>d.jsx(dm,{ref:n,className:F(`
220
220
  aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background
221
221
  focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
222
222
  disabled:cursor-not-allowed disabled:opacity-50
223
- `,e),...t,children:d.jsx(QC,{className:"flex items-center justify-center",children:d.jsx(rc,{className:"h-2.5 w-2.5 fill-current text-current"})})}));mm.displayName=dm.displayName;var So="Tabs",[JC,wD]=Ye(So,[On]),pm=On(),[eM,Ss]=JC(So),hm=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...u}=e,m=cr(i),[c,p]=nt({prop:r,onChange:o,defaultProp:a??"",caller:So});return d.jsx(eM,{scope:n,baseId:Te(),value:c,onValueChange:p,orientation:s,dir:m,activationMode:l,children:d.jsx(ne.div,{dir:m,"data-orientation":s,...u,ref:t})})});hm.displayName=So;var gm="TabsList",vm=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Ss(gm,n),s=pm(n);return d.jsx(ds,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:d.jsx(ne.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});vm.displayName=gm;var ym="TabsTrigger",bm=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=Ss(ym,n),i=pm(n),l=Sm(s.baseId,r),u=Cm(s.baseId,r),m=r===s.value;return d.jsx(fs,{asChild:!0,...i,focusable:!o,active:m,children:d.jsx(ne.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":u,"data-state":m?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:Z(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?s.onValueChange(r):c.preventDefault()}),onKeyDown:Z(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(r)}),onFocus:Z(e.onFocus,()=>{const c=s.activationMode!=="manual";!m&&!o&&c&&s.onValueChange(r)})})})});bm.displayName=ym;var wm="TabsContent",xm=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,i=Ss(wm,n),l=Sm(i.baseId,r),u=Cm(i.baseId,r),m=r===i.value,c=f.useRef(m);return f.useEffect(()=>{const p=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(p)},[]),d.jsx(ze,{present:o||m,children:({present:p})=>d.jsx(ne.div,{"data-state":m?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!p,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0},children:p&&a})})});xm.displayName=wm;function Sm(e,t){return`${e}-trigger-${t}`}function Cm(e,t){return`${e}-content-${t}`}var tM=hm,Mm=vm,Dm=bm,km=xm;const nM=tM,Em=f.forwardRef(({className:e,...t},n)=>d.jsx(Mm,{ref:n,className:W("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Em.displayName=Mm.displayName;const Nm=f.forwardRef(({className:e,...t},n)=>d.jsx(Dm,{ref:n,className:W("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Nm.displayName=Dm.displayName;const Rm=f.forwardRef(({className:e,...t},n)=>d.jsx(km,{ref:n,className:W("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Rm.displayName=km.displayName;var Cs="Progress",Ms=100,[rM,xD]=Ye(Cs),[oM,aM]=rM(Cs),Tm=f.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=sM,...s}=e;(o||o===0)&&!_i(o)&&console.error(iM(`${o}`,"Progress"));const i=_i(o)?o:Ms;r!==null&&!Oi(r,i)&&console.error(cM(`${r}`,"Progress"));const l=Oi(r,i)?r:null,u=Kr(l)?a(l,i):void 0;return d.jsx(oM,{scope:n,value:l,max:i,children:d.jsx(ne.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":Kr(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":Pm(l,i),"data-value":l??void 0,"data-max":i,...s,ref:t})})});Tm.displayName=Cs;var _m="ProgressIndicator",Om=f.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=aM(_m,n);return d.jsx(ne.div,{"data-state":Pm(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});Om.displayName=_m;function sM(e,t){return`${Math.round(e/t*100)}%`}function Pm(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Kr(e){return typeof e=="number"}function _i(e){return Kr(e)&&!isNaN(e)&&e>0}function Oi(e,t){return Kr(e)&&!isNaN(e)&&e<=t&&e>=0}function iM(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ms}\`.`}function cM(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
223
+ `,e),...t,children:d.jsx(QC,{className:"flex items-center justify-center",children:d.jsx(rc,{className:"h-2.5 w-2.5 fill-current text-current"})})}));mm.displayName=dm.displayName;var So="Tabs",[JC,wD]=Be(So,[On]),pm=On(),[eM,Ss]=JC(So),hm=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...u}=e,m=cr(i),[c,p]=tt({prop:r,onChange:o,defaultProp:a??"",caller:So});return d.jsx(eM,{scope:n,baseId:Ee(),value:c,onValueChange:p,orientation:s,dir:m,activationMode:l,children:d.jsx(ee.div,{dir:m,"data-orientation":s,...u,ref:t})})});hm.displayName=So;var gm="TabsList",vm=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Ss(gm,n),s=pm(n);return d.jsx(ds,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:d.jsx(ee.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});vm.displayName=gm;var ym="TabsTrigger",bm=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=Ss(ym,n),i=pm(n),l=Sm(s.baseId,r),u=Cm(s.baseId,r),m=r===s.value;return d.jsx(fs,{asChild:!0,...i,focusable:!o,active:m,children:d.jsx(ee.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":u,"data-state":m?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:Z(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?s.onValueChange(r):c.preventDefault()}),onKeyDown:Z(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(r)}),onFocus:Z(e.onFocus,()=>{const c=s.activationMode!=="manual";!m&&!o&&c&&s.onValueChange(r)})})})});bm.displayName=ym;var wm="TabsContent",xm=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,i=Ss(wm,n),l=Sm(i.baseId,r),u=Cm(i.baseId,r),m=r===i.value,c=f.useRef(m);return f.useEffect(()=>{const p=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(p)},[]),d.jsx(ze,{present:o||m,children:({present:p})=>d.jsx(ee.div,{"data-state":m?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!p,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0},children:p&&a})})});xm.displayName=wm;function Sm(e,t){return`${e}-trigger-${t}`}function Cm(e,t){return`${e}-content-${t}`}var tM=hm,Mm=vm,Dm=bm,km=xm;const nM=tM,Em=f.forwardRef(({className:e,...t},n)=>d.jsx(Mm,{ref:n,className:F("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Em.displayName=Mm.displayName;const Nm=f.forwardRef(({className:e,...t},n)=>d.jsx(Dm,{ref:n,className:F("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Nm.displayName=Dm.displayName;const Rm=f.forwardRef(({className:e,...t},n)=>d.jsx(km,{ref:n,className:F("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Rm.displayName=km.displayName;var Cs="Progress",Ms=100,[rM,xD]=Be(Cs),[oM,aM]=rM(Cs),Tm=f.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=sM,...s}=e;(o||o===0)&&!_i(o)&&console.error(iM(`${o}`,"Progress"));const i=_i(o)?o:Ms;r!==null&&!Oi(r,i)&&console.error(cM(`${r}`,"Progress"));const l=Oi(r,i)?r:null,u=Kr(l)?a(l,i):void 0;return d.jsx(oM,{scope:n,value:l,max:i,children:d.jsx(ee.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":Kr(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":Pm(l,i),"data-value":l??void 0,"data-max":i,...s,ref:t})})});Tm.displayName=Cs;var _m="ProgressIndicator",Om=f.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=aM(_m,n);return d.jsx(ee.div,{"data-state":Pm(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});Om.displayName=_m;function sM(e,t){return`${Math.round(e/t*100)}%`}function Pm(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Kr(e){return typeof e=="number"}function _i(e){return Kr(e)&&!isNaN(e)&&e>0}function Oi(e,t){return Kr(e)&&!isNaN(e)&&e<=t&&e>=0}function iM(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ms}\`.`}function cM(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
224
224
  - a positive number
225
225
  - less than the value passed to \`max\` (or ${Ms} if no \`max\` prop is set)
226
226
  - \`null\` or \`undefined\` if the progress is indeterminate.
227
227
 
228
- Defaulting to \`null\`.`}var Am=Tm,lM=Om;const Im=f.forwardRef(({className:e,value:t,...n},r)=>d.jsx(Am,{ref:r,className:W("relative h-1.5 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:d.jsx(lM,{className:"h-full w-full flex-1 bg-brandBlue transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Im.displayName=Am.displayName;function uM(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 dM=e=>{switch(e){case"success":return pM;case"info":return gM;case"warning":return hM;case"error":return vM;default:return null}},fM=Array(12).fill(0),mM=({visible:e,className:t})=>w.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},w.createElement("div",{className:"sonner-spinner"},fM.map((n,r)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),pM=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),hM=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),gM=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),vM=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),yM=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},w.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),bM=()=>{const[e,t]=w.useState(document.hidden);return w.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Sa=1;class wM{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,a=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Sa++,s=this.toasts.find(l=>l.id===a),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),s?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...t,id:a,title:r}),{...l,...t,id:a,dismissible:i,title:r}):l):this.addToast({title:r,...o,dismissible:i,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,s;const i=o.then(async u=>{if(s=["resolve",u],w.isValidElement(u))a=!1,this.create({id:r,type:"default",message:u});else if(SM(u)&&!u.ok){a=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,p=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,b=typeof c=="object"&&!w.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...b})}else if(u instanceof Error){a=!1;const c=typeof n.error=="function"?await n.error(u):n.error,p=typeof n.description=="function"?await n.description(u):n.description,b=typeof c=="object"&&!w.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...b})}else if(n.success!==void 0){a=!1;const c=typeof n.success=="function"?await n.success(u):n.success,p=typeof n.description=="function"?await n.description(u):n.description,b=typeof c=="object"&&!w.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:p,...b})}}).catch(async u=>{if(s=["reject",u],n.error!==void 0){a=!1;const m=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,h=typeof m=="object"&&!w.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:c,...h})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,m)=>i.then(()=>s[0]==="reject"?m(s[1]):u(s[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Sa++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qe=new wM,xM=(e,t)=>{const n=(t==null?void 0:t.id)||Sa++;return qe.addToast({title:e,...t,id:n}),n},SM=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",CM=xM,MM=()=>qe.toasts,DM=()=>qe.getActiveToasts(),Pi=Object.assign(CM,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:MM,getToasts:DM});uM("[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 Rr(e){return e.label!==void 0}const kM=3,EM="24px",NM="16px",Ai=4e3,RM=356,TM=14,_M=45,OM=200;function dt(...e){return e.filter(Boolean).join(" ")}function PM(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const AM=e=>{var t,n,r,o,a,s,i,l,u;const{invert:m,toast:c,unstyled:p,interacting:h,setHeights:b,visibleToasts:g,heights:v,index:y,toasts:x,expanded:S,removeToast:D,defaultRichColors:C,closeButton:N,style:M,cancelButtonStyle:E,actionButtonStyle:L,className:B="",descriptionClassName:Y="",duration:V,position:O,gap:_,expandByDefault:T,classNames:R,icons:A,closeButtonAriaLabel:k="Close toast"}=e,[P,z]=w.useState(null),[q,I]=w.useState(null),[j,H]=w.useState(!1),[$,K]=w.useState(!1),[F,U]=w.useState(!1),[X,J]=w.useState(!1),[ae,ce]=w.useState(!1),[be,te]=w.useState(0),[Pe,Ae]=w.useState(0),ke=w.useRef(c.duration||V||Ai),Ge=w.useRef(null),Me=w.useRef(null),Q=y===0,ee=y+1<=g,ye=c.type,De=c.dismissible!==!1,We=c.className||"",an=c.descriptionClassName||"",Tt=w.useMemo(()=>v.findIndex(se=>se.toastId===c.id)||0,[v,c.id]),Pn=w.useMemo(()=>{var se;return(se=c.closeButton)!=null?se:N},[c.closeButton,N]),wt=w.useMemo(()=>c.duration||V||Ai,[c.duration,V]),Gt=w.useRef(0),rt=w.useRef(0),sn=w.useRef(0),Ue=w.useRef(null),[cn,An]=O.split("-"),ln=w.useMemo(()=>v.reduce((se,fe,ve)=>ve>=Tt?se:se+fe.height,0),[v,Tt]),Ut=bM(),In=c.invert||m,_t=ye==="loading";rt.current=w.useMemo(()=>Tt*_+ln,[Tt,ln]),w.useEffect(()=>{ke.current=wt},[wt]),w.useEffect(()=>{H(!0)},[]),w.useEffect(()=>{const se=Me.current;if(se){const fe=se.getBoundingClientRect().height;return Ae(fe),b(ve=>[{toastId:c.id,height:fe,position:c.position},...ve]),()=>b(ve=>ve.filter(de=>de.toastId!==c.id))}},[b,c.id]),w.useLayoutEffect(()=>{if(!j)return;const se=Me.current,fe=se.style.height;se.style.height="auto";const ve=se.getBoundingClientRect().height;se.style.height=fe,Ae(ve),b(de=>de.find(xe=>xe.toastId===c.id)?de.map(xe=>xe.toastId===c.id?{...xe,height:ve}:xe):[{toastId:c.id,height:ve,position:c.position},...de])},[j,c.title,c.description,b,c.id,c.jsx,c.action,c.cancel]);const G=w.useCallback(()=>{K(!0),te(rt.current),b(se=>se.filter(fe=>fe.toastId!==c.id)),setTimeout(()=>{D(c)},OM)},[c,D,b,rt]);w.useEffect(()=>{if(c.promise&&ye==="loading"||c.duration===1/0||c.type==="loading")return;let se;return S||h||Ut?(()=>{if(sn.current<Gt.current){const de=new Date().getTime()-Gt.current;ke.current=ke.current-de}sn.current=new Date().getTime()})():(()=>{ke.current!==1/0&&(Gt.current=new Date().getTime(),se=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),G()},ke.current))})(),()=>clearTimeout(se)},[S,h,c,ye,Ut,G]),w.useEffect(()=>{c.delete&&(G(),c.onDismiss==null||c.onDismiss.call(c,c))},[G,c.delete]);function le(){var se;if(A!=null&&A.loading){var fe;return w.createElement("div",{className:dt(R==null?void 0:R.loader,c==null||(fe=c.classNames)==null?void 0:fe.loader,"sonner-loader"),"data-visible":ye==="loading"},A.loading)}return w.createElement(mM,{className:dt(R==null?void 0:R.loader,c==null||(se=c.classNames)==null?void 0:se.loader),visible:ye==="loading"})}const ie=c.icon||(A==null?void 0:A[ye])||dM(ye);var me,ge;return w.createElement("li",{tabIndex:0,ref:Me,className:dt(B,We,R==null?void 0:R.toast,c==null||(t=c.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[ye],c==null||(n=c.classNames)==null?void 0:n[ye]),"data-sonner-toast":"","data-rich-colors":(me=c.richColors)!=null?me:C,"data-styled":!(c.jsx||c.unstyled||p),"data-mounted":j,"data-promise":!!c.promise,"data-swiped":ae,"data-removed":$,"data-visible":ee,"data-y-position":cn,"data-x-position":An,"data-index":y,"data-front":Q,"data-swiping":F,"data-dismissible":De,"data-type":ye,"data-invert":In,"data-swipe-out":X,"data-swipe-direction":q,"data-expanded":!!(S||T&&j),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":x.length-y,"--offset":`${$?be:rt.current}px`,"--initial-height":T?"auto":`${Pe}px`,...M,...c.style},onDragEnd:()=>{U(!1),z(null),Ue.current=null},onPointerDown:se=>{se.button!==2&&(_t||!De||(Ge.current=new Date,te(rt.current),se.target.setPointerCapture(se.pointerId),se.target.tagName!=="BUTTON"&&(U(!0),Ue.current={x:se.clientX,y:se.clientY})))},onPointerUp:()=>{var se,fe,ve;if(X||!De)return;Ue.current=null;const de=Number(((se=Me.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ve=Number(((fe=Me.current)==null?void 0:fe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),xe=new Date().getTime()-((ve=Ge.current)==null?void 0:ve.getTime()),Ce=P==="x"?de:Ve,Ke=Math.abs(Ce)/xe;if(Math.abs(Ce)>=_M||Ke>.11){te(rt.current),c.onDismiss==null||c.onDismiss.call(c,c),I(P==="x"?de>0?"right":"left":Ve>0?"down":"up"),G(),J(!0);return}else{var Le,ot;(Le=Me.current)==null||Le.style.setProperty("--swipe-amount-x","0px"),(ot=Me.current)==null||ot.style.setProperty("--swipe-amount-y","0px")}ce(!1),U(!1),z(null)},onPointerMove:se=>{var fe,ve,de;if(!Ue.current||!De||((fe=window.getSelection())==null?void 0:fe.toString().length)>0)return;const xe=se.clientY-Ue.current.y,Ce=se.clientX-Ue.current.x;var Ke;const Le=(Ke=e.swipeDirections)!=null?Ke:PM(O);!P&&(Math.abs(Ce)>1||Math.abs(xe)>1)&&z(Math.abs(Ce)>Math.abs(xe)?"x":"y");let ot={x:0,y:0};const ks=Vt=>1/(1.5+Math.abs(Vt)/20);if(P==="y"){if(Le.includes("top")||Le.includes("bottom"))if(Le.includes("top")&&xe<0||Le.includes("bottom")&&xe>0)ot.y=xe;else{const Vt=xe*ks(xe);ot.y=Math.abs(Vt)<Math.abs(xe)?Vt:xe}}else if(P==="x"&&(Le.includes("left")||Le.includes("right")))if(Le.includes("left")&&Ce<0||Le.includes("right")&&Ce>0)ot.x=Ce;else{const Vt=Ce*ks(Ce);ot.x=Math.abs(Vt)<Math.abs(Ce)?Vt:Ce}(Math.abs(ot.x)>0||Math.abs(ot.y)>0)&&ce(!0),(ve=Me.current)==null||ve.style.setProperty("--swipe-amount-x",`${ot.x}px`),(de=Me.current)==null||de.style.setProperty("--swipe-amount-y",`${ot.y}px`)}},Pn&&!c.jsx&&ye!=="loading"?w.createElement("button",{"aria-label":k,"data-disabled":_t,"data-close-button":!0,onClick:_t||!De?()=>{}:()=>{G(),c.onDismiss==null||c.onDismiss.call(c,c)},className:dt(R==null?void 0:R.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(ge=A==null?void 0:A.close)!=null?ge:yM):null,(ye||c.icon||c.promise)&&c.icon!==null&&((A==null?void 0:A[ye])!==null||c.icon)?w.createElement("div",{"data-icon":"",className:dt(R==null?void 0:R.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||le():null,c.type!=="loading"?ie:null):null,w.createElement("div",{"data-content":"",className:dt(R==null?void 0:R.content,c==null||(a=c.classNames)==null?void 0:a.content)},w.createElement("div",{"data-title":"",className:dt(R==null?void 0:R.title,c==null||(s=c.classNames)==null?void 0:s.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?w.createElement("div",{"data-description":"",className:dt(Y,an,R==null?void 0:R.description,c==null||(i=c.classNames)==null?void 0:i.description)},typeof c.description=="function"?c.description():c.description):null),w.isValidElement(c.cancel)?c.cancel:c.cancel&&Rr(c.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||E,onClick:se=>{Rr(c.cancel)&&De&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,se),G())},className:dt(R==null?void 0:R.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,w.isValidElement(c.action)?c.action:c.action&&Rr(c.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||L,onClick:se=>{Rr(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,se),!se.defaultPrevented&&G())},className:dt(R==null?void 0:R.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Ii(){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 IM(e,t){const n={};return[e,t].forEach((r,o)=>{const a=o===1,s=a?"--mobile-offset":"--offset",i=a?NM:EM;function l(u){["top","right","bottom","left"].forEach(m=>{n[`${s}-${m}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=i:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(i)}),n}const jM=w.forwardRef(function(t,n){const{id:r,invert:o,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:l,className:u,offset:m,mobileOffset:c,theme:p="light",richColors:h,duration:b,style:g,visibleToasts:v=kM,toastOptions:y,dir:x=Ii(),gap:S=TM,icons:D,containerAriaLabel:C="Notifications"}=t,[N,M]=w.useState([]),E=w.useMemo(()=>r?N.filter(j=>j.toasterId===r):N.filter(j=>!j.toasterId),[N,r]),L=w.useMemo(()=>Array.from(new Set([a].concat(E.filter(j=>j.position).map(j=>j.position)))),[E,a]),[B,Y]=w.useState([]),[V,O]=w.useState(!1),[_,T]=w.useState(!1),[R,A]=w.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),k=w.useRef(null),P=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=w.useRef(null),q=w.useRef(!1),I=w.useCallback(j=>{M(H=>{var $;return($=H.find(K=>K.id===j.id))!=null&&$.delete||qe.dismiss(j.id),H.filter(({id:K})=>K!==j.id)})},[]);return w.useEffect(()=>qe.subscribe(j=>{if(j.dismiss){requestAnimationFrame(()=>{M(H=>H.map($=>$.id===j.id?{...$,delete:!0}:$))});return}setTimeout(()=>{Da.flushSync(()=>{M(H=>{const $=H.findIndex(K=>K.id===j.id);return $!==-1?[...H.slice(0,$),{...H[$],...j},...H.slice($+1)]:[j,...H]})})})}),[N]),w.useEffect(()=>{if(p!=="system"){A(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?A("dark"):A("light")),typeof window>"u")return;const j=window.matchMedia("(prefers-color-scheme: dark)");try{j.addEventListener("change",({matches:H})=>{A(H?"dark":"light")})}catch{j.addListener(({matches:$})=>{try{A($?"dark":"light")}catch(K){console.error(K)}})}},[p]),w.useEffect(()=>{N.length<=1&&O(!1)},[N]),w.useEffect(()=>{const j=H=>{var $;if(s.every(U=>H[U]||H.code===U)){var F;O(!0),(F=k.current)==null||F.focus()}H.code==="Escape"&&(document.activeElement===k.current||($=k.current)!=null&&$.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[s]),w.useEffect(()=>{if(k.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,q.current=!1)}},[k.current]),w.createElement("section",{ref:n,"aria-label":`${C} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((j,H)=>{var $;const[K,F]=j.split("-");return E.length?w.createElement("ol",{key:j,dir:x==="auto"?Ii():x,tabIndex:-1,ref:k,className:u,"data-sonner-toaster":!0,"data-sonner-theme":R,"data-y-position":K,"data-x-position":F,style:{"--front-toast-height":`${(($=B[0])==null?void 0:$.height)||0}px`,"--width":`${RM}px`,"--gap":`${S}px`,...g,...IM(m,c)},onBlur:U=>{q.current&&!U.currentTarget.contains(U.relatedTarget)&&(q.current=!1,z.current&&(z.current.focus({preventScroll:!0}),z.current=null))},onFocus:U=>{U.target instanceof HTMLElement&&U.target.dataset.dismissible==="false"||q.current||(q.current=!0,z.current=U.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{_||O(!1)},onDragEnd:()=>O(!1),onPointerDown:U=>{U.target instanceof HTMLElement&&U.target.dataset.dismissible==="false"||T(!0)},onPointerUp:()=>T(!1)},E.filter(U=>!U.position&&H===0||U.position===j).map((U,X)=>{var J,ae;return w.createElement(AM,{key:U.id,icons:D,index:X,toast:U,defaultRichColors:h,duration:(J=y==null?void 0:y.duration)!=null?J:b,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:o,visibleToasts:v,closeButton:(ae=y==null?void 0:y.closeButton)!=null?ae:l,interacting:_,position:j,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,closeButtonAriaLabel:y==null?void 0:y.closeButtonAriaLabel,removeToast:I,toasts:E.filter(ce=>ce.position==U.position),heights:B.filter(ce=>ce.position==U.position),setHeights:Y,expandByDefault:i,gap:S,expanded:V,swipeDirections:t.swipeDirections})})):null}))}),$M={error:"bg-red-500 text-white",info:"bg-blue-500 text-white",warning:"bg-amber-500 text-white",success:"bg-green-500 text-white"},LM={error:5e3,info:4e3,warning:5e3,success:4e3},FM={error:d.jsx(th,{className:"w-4 h-4 text-white"}),info:d.jsx(uh,{className:"w-4 h-4 text-white"}),warning:d.jsx(wh,{className:"w-4 h-4 text-white"}),success:d.jsx(Jp,{className:"w-4 h-4 text-white"})},WM=(e,t)=>{const n=(t==null?void 0:t.variant)||"info",r=$M[n],o=(t==null?void 0:t.icon)??FM[n],a=(t==null?void 0:t.iconPosition)??"left",s=l=>d.jsxs("div",{className:`flex items-center justify-between w-full p-3 rounded-md shadow-md ${r}`,children:[d.jsxs("div",{className:"flex items-center",children:[o&&a==="left"&&d.jsx("div",{className:"mr-3",children:o}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-semibold",children:e}),(t==null?void 0:t.description)&&d.jsx("p",{className:"text-sm text-white/90",children:t.description})]})]}),d.jsxs("div",{className:"flex items-center",children:[o&&a==="right"&&d.jsx("div",{className:"ml-3",children:o}),(t==null?void 0:t.action)&&d.jsx(kt,{variant:"ghost",size:"small",className:"ml-3 text-white hover:text-black/80",onClick:t.action.onClick,children:t.action.label}),d.jsx(kt,{variant:"ghost",size:"icon.large",className:"ml-3 text-white hover:text-black/80",onClick:()=>Pi.dismiss(l),children:d.jsx(kn,{className:"w-4 h-4",strokeWidth:2.5})})]})]}),i={unstyled:!0,duration:(t==null?void 0:t.duration)||LM[n],style:{padding:0,margin:0,border:"none",background:"none"}};return Pi.custom(s,i)};function BM(e){return d.jsx(jM,{...e})}var[Co,SD]=Ye("Tooltip",[Wt]),Mo=Wt(),jm="TooltipProvider",YM=700,Ca="tooltip.open",[HM,Ds]=Co(jm),$m=e=>{const{__scopeTooltip:t,delayDuration:n=YM,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=f.useRef(!0),i=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),d.jsx(HM,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:f.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:a})};$m.displayName=jm;var Qn="Tooltip",[zM,Do]=Co(Qn),Lm=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=Ds(Qn,e.__scopeTooltip),u=Mo(t),[m,c]=f.useState(null),p=Te(),h=f.useRef(0),b=s??l.disableHoverableContent,g=i??l.delayDuration,v=f.useRef(!1),[y,x]=nt({prop:r,defaultProp:o??!1,onChange:M=>{M?(l.onOpen(),document.dispatchEvent(new CustomEvent(Ca))):l.onClose(),a==null||a(M)},caller:Qn}),S=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),D=f.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,x(!0)},[x]),C=f.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),N=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,x(!0),h.current=0},g)},[g,x]);return f.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),d.jsx(rr,{...u,children:d.jsx(zM,{scope:t,contentId:p,open:y,stateAttribute:S,trigger:m,onTriggerChange:c,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?N():D()},[l.isOpenDelayedRef,N,D]),onTriggerLeave:f.useCallback(()=>{b?C():(window.clearTimeout(h.current),h.current=0)},[C,b]),onOpen:D,onClose:C,disableHoverableContent:b,children:n})})};Lm.displayName=Qn;var Ma="TooltipTrigger",Fm=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Do(Ma,n),a=Ds(Ma,n),s=Mo(n),i=f.useRef(null),l=he(t,i,o.onTriggerChange),u=f.useRef(!1),m=f.useRef(!1),c=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),d.jsx(or,{asChild:!0,...s,children:d.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:Z(e.onPointerMove,p=>{p.pointerType!=="touch"&&!m.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),m.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),m.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Z(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});Fm.displayName=Ma;var GM="TooltipPortal",[CD,UM]=Co(GM,{forceMount:void 0}),Cn="TooltipContent",Wm=f.forwardRef((e,t)=>{const n=UM(Cn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=Do(Cn,e.__scopeTooltip);return d.jsx(ze,{present:r||s.open,children:s.disableHoverableContent?d.jsx(Bm,{side:o,...a,ref:t}):d.jsx(VM,{side:o,...a,ref:t})})}),VM=f.forwardRef((e,t)=>{const n=Do(Cn,e.__scopeTooltip),r=Ds(Cn,e.__scopeTooltip),o=f.useRef(null),a=he(t,o),[s,i]=f.useState(null),{trigger:l,onClose:u}=n,m=o.current,{onPointerInTransitChange:c}=r,p=f.useCallback(()=>{i(null),c(!1)},[c]),h=f.useCallback((b,g)=>{const v=b.currentTarget,y={x:b.clientX,y:b.clientY},x=ZM(y,v.getBoundingClientRect()),S=QM(y,x),D=JM(g.getBoundingClientRect()),C=tD([...S,...D]);i(C),c(!0)},[c]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(l&&m){const b=v=>h(v,m),g=v=>h(v,l);return l.addEventListener("pointerleave",b),m.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),m.removeEventListener("pointerleave",g)}}},[l,m,h,p]),f.useEffect(()=>{if(s){const b=g=>{const v=g.target,y={x:g.clientX,y:g.clientY},x=(l==null?void 0:l.contains(v))||(m==null?void 0:m.contains(v)),S=!eD(y,s);x?p():S&&(p(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,m,s,u,p]),d.jsx(Bm,{...e,ref:a})}),[qM,KM]=Co(Qn,{isInside:!1}),XM=qm("TooltipContent"),Bm=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=Do(Cn,n),u=Mo(n),{onClose:m}=l;return f.useEffect(()=>(document.addEventListener(Ca,m),()=>document.removeEventListener(Ca,m)),[m]),f.useEffect(()=>{if(l.trigger){const c=p=>{const h=p.target;h!=null&&h.contains(l.trigger)&&m()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,m]),d.jsx(En,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c=>c.preventDefault(),onDismiss:m,children:d.jsxs(no,{"data-state":l.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(XM,{children:r}),d.jsx(qM,{scope:n,isInside:!0,children:d.jsx(py,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Wm.displayName=Cn;var Ym="TooltipArrow",Hm=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Mo(n);return KM(Ym,n).isInside?null:d.jsx(ro,{...o,...r,ref:t})});Hm.displayName=Ym;function ZM(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function QM(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function JM(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function eD(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],u=i.x,m=i.y,c=l.x,p=l.y;m>r!=p>r&&n<(c-u)*(r-m)/(p-m)+u&&(o=!o)}return o}function tD(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),nD(t)}function nD(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var rD=$m,oD=Lm,aD=Fm,zm=Wm,sD=Hm;const iD=rD,cD=oD,lD=aD,Gm=f.forwardRef(({className:e,sideOffset:t=4,children:n,...r},o)=>d.jsxs(zm,{ref:o,sideOffset:t,className:W("z-50 rounded-xl border border-border bg-background px-3 py-1.5 text-sm text-foreground shadow-xl transition-all","animate-in fade-in zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2","origin-[--radix-tooltip-content-transform-origin]",e),...r,children:[n,d.jsx(sD,{className:"fill-background stroke-border h-2 w-4"})]}));Gm.displayName=zm.displayName;exports.ComponentVariant=d1;exports.DoctAddressFormSection=g0;exports.DoctAlert=Ju;exports.DoctAlertDescription=td;exports.DoctAlertTitle=ed;exports.DoctAnimationLoader=Ip;exports.DoctAutoComplete=i1;exports.DoctAutocomplete=y1;exports.DoctAvatar=dd;exports.DoctAvatarFallback=md;exports.DoctAvatarImage=fd;exports.DoctButton=kt;exports.DoctCheckbox=xd;exports.DoctChip=i0;exports.DoctCircularProgress=Xi;exports.DoctComponentSection=u1;exports.DoctContactFormSection=y0;exports.DoctCurrencyInput=Gu;exports.DoctDatePickerField=Gr;exports.DoctDialog=Q0;exports.DoctDialogClose=t1;exports.DoctDialogContent=ju;exports.DoctDialogDescription=Wu;exports.DoctDialogFooter=Lu;exports.DoctDialogHeader=$u;exports.DoctDialogTitle=Fu;exports.DoctDialogTrigger=J0;exports.DoctDrawer=Pd;exports.DoctDrawerClose=gS;exports.DoctDrawerContent=Id;exports.DoctDrawerDescription=Fd;exports.DoctDrawerFooter=$d;exports.DoctDrawerHeader=jd;exports.DoctDrawerTitle=Ld;exports.DoctDrawerTrigger=pS;exports.DoctDropdownMenu=LC;exports.DoctDropdownMenuCheckboxItem=Vf;exports.DoctDropdownMenuContent=Gf;exports.DoctDropdownMenuGroup=WC;exports.DoctDropdownMenuItem=Uf;exports.DoctDropdownMenuLabel=Kf;exports.DoctDropdownMenuRadioGroup=YC;exports.DoctDropdownMenuRadioItem=qf;exports.DoctDropdownMenuSeparator=Xf;exports.DoctDropdownMenuShortcut=Zf;exports.DoctDropdownMenuSub=BC;exports.DoctDropdownMenuSubContent=zf;exports.DoctDropdownMenuSubTrigger=Hf;exports.DoctDropdownMenuTrigger=FC;exports.DoctExpandableCard=D1;exports.DoctLabeledInput=Je;exports.DoctManualDatePickerField=s0;exports.DoctOtpInput=Fp;exports.DoctPasswordInput=na;exports.DoctPopover=Wa;exports.DoctPopoverContent=io;exports.DoctPopoverTrigger=Ba;exports.DoctProgress=Im;exports.DoctRadioGroup=fm;exports.DoctRadioGroupItem=mm;exports.DoctSearchFilterSection=f0;exports.DoctSearchInput=lu;exports.DoctSelectField=Sn;exports.DoctTabs=nM;exports.DoctTabsContent=Rm;exports.DoctTabsList=Em;exports.DoctTabsTrigger=Nm;exports.DoctTextareaField=Na;exports.DoctToaster=BM;exports.DoctTooltip=cD;exports.DoctTooltipContent=Gm;exports.DoctTooltipProvider=iD;exports.DoctTooltipTrigger=lD;exports.DoctTypography=Ap;exports.DoctUserRegistrationSection=p0;exports.doctToast=WM;
228
+ Defaulting to \`null\`.`}var Am=Tm,lM=Om;const Im=f.forwardRef(({className:e,value:t,...n},r)=>d.jsx(Am,{ref:r,className:F("relative h-1.5 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:d.jsx(lM,{className:"h-full w-full flex-1 bg-brandBlue transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Im.displayName=Am.displayName;function uM(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 dM=e=>{switch(e){case"success":return pM;case"info":return gM;case"warning":return hM;case"error":return vM;default:return null}},fM=Array(12).fill(0),mM=({visible:e,className:t})=>w.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},w.createElement("div",{className:"sonner-spinner"},fM.map((n,r)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),pM=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),hM=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),gM=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),vM=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),yM=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},w.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),bM=()=>{const[e,t]=w.useState(document.hidden);return w.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Sa=1;class wM{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,a=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Sa++,s=this.toasts.find(l=>l.id===a),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),s?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...t,id:a,title:r}),{...l,...t,id:a,dismissible:i,title:r}):l):this.addToast({title:r,...o,dismissible:i,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,s;const i=o.then(async u=>{if(s=["resolve",u],w.isValidElement(u))a=!1,this.create({id:r,type:"default",message:u});else if(SM(u)&&!u.ok){a=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,p=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,b=typeof c=="object"&&!w.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...b})}else if(u instanceof Error){a=!1;const c=typeof n.error=="function"?await n.error(u):n.error,p=typeof n.description=="function"?await n.description(u):n.description,b=typeof c=="object"&&!w.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...b})}else if(n.success!==void 0){a=!1;const c=typeof n.success=="function"?await n.success(u):n.success,p=typeof n.description=="function"?await n.description(u):n.description,b=typeof c=="object"&&!w.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:p,...b})}}).catch(async u=>{if(s=["reject",u],n.error!==void 0){a=!1;const m=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,h=typeof m=="object"&&!w.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:c,...h})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,m)=>i.then(()=>s[0]==="reject"?m(s[1]):u(s[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Sa++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qe=new wM,xM=(e,t)=>{const n=(t==null?void 0:t.id)||Sa++;return qe.addToast({title:e,...t,id:n}),n},SM=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",CM=xM,MM=()=>qe.toasts,DM=()=>qe.getActiveToasts(),Pi=Object.assign(CM,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:MM,getToasts:DM});uM("[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 Rr(e){return e.label!==void 0}const kM=3,EM="24px",NM="16px",Ai=4e3,RM=356,TM=14,_M=45,OM=200;function ut(...e){return e.filter(Boolean).join(" ")}function PM(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const AM=e=>{var t,n,r,o,a,s,i,l,u;const{invert:m,toast:c,unstyled:p,interacting:h,setHeights:b,visibleToasts:g,heights:v,index:y,toasts:x,expanded:S,removeToast:D,defaultRichColors:C,closeButton:N,style:M,cancelButtonStyle:E,actionButtonStyle:$,className:W="",descriptionClassName:Y="",duration:U,position:A,gap:T,expandByDefault:_,classNames:R,icons:P,closeButtonAriaLabel:k="Close toast"}=e,[O,H]=w.useState(null),[V,I]=w.useState(null),[j,B]=w.useState(!1),[z,K]=w.useState(!1),[L,q]=w.useState(!1),[X,Q]=w.useState(!1),[re,ie]=w.useState(!1),[ye,J]=w.useState(0),[Te,_e]=w.useState(0),oe=w.useRef(c.duration||U||Ai),me=w.useRef(null),be=w.useRef(null),$e=y===0,He=y+1<=g,Ie=c.type,Fe=c.dismissible!==!1,zt=c.className||"",an=c.descriptionClassName||"",Rt=w.useMemo(()=>v.findIndex(ae=>ae.toastId===c.id)||0,[v,c.id]),Pn=w.useMemo(()=>{var ae;return(ae=c.closeButton)!=null?ae:N},[c.closeButton,N]),bt=w.useMemo(()=>c.duration||U||Ai,[c.duration,U]),Gt=w.useRef(0),nt=w.useRef(0),sn=w.useRef(0),Ge=w.useRef(null),[cn,An]=A.split("-"),ln=w.useMemo(()=>v.reduce((ae,de,ve)=>ve>=Rt?ae:ae+de.height,0),[v,Rt]),Ut=bM(),In=c.invert||m,Tt=Ie==="loading";nt.current=w.useMemo(()=>Rt*T+ln,[Rt,ln]),w.useEffect(()=>{oe.current=bt},[bt]),w.useEffect(()=>{B(!0)},[]),w.useEffect(()=>{const ae=be.current;if(ae){const de=ae.getBoundingClientRect().height;return _e(de),b(ve=>[{toastId:c.id,height:de,position:c.position},...ve]),()=>b(ve=>ve.filter(ue=>ue.toastId!==c.id))}},[b,c.id]),w.useLayoutEffect(()=>{if(!j)return;const ae=be.current,de=ae.style.height;ae.style.height="auto";const ve=ae.getBoundingClientRect().height;ae.style.height=de,_e(ve),b(ue=>ue.find(xe=>xe.toastId===c.id)?ue.map(xe=>xe.toastId===c.id?{...xe,height:ve}:xe):[{toastId:c.id,height:ve,position:c.position},...ue])},[j,c.title,c.description,b,c.id,c.jsx,c.action,c.cancel]);const G=w.useCallback(()=>{K(!0),J(nt.current),b(ae=>ae.filter(de=>de.toastId!==c.id)),setTimeout(()=>{D(c)},OM)},[c,D,b,nt]);w.useEffect(()=>{if(c.promise&&Ie==="loading"||c.duration===1/0||c.type==="loading")return;let ae;return S||h||Ut?(()=>{if(sn.current<Gt.current){const ue=new Date().getTime()-Gt.current;oe.current=oe.current-ue}sn.current=new Date().getTime()})():(()=>{oe.current!==1/0&&(Gt.current=new Date().getTime(),ae=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),G()},oe.current))})(),()=>clearTimeout(ae)},[S,h,c,Ie,Ut,G]),w.useEffect(()=>{c.delete&&(G(),c.onDismiss==null||c.onDismiss.call(c,c))},[G,c.delete]);function ce(){var ae;if(P!=null&&P.loading){var de;return w.createElement("div",{className:ut(R==null?void 0:R.loader,c==null||(de=c.classNames)==null?void 0:de.loader,"sonner-loader"),"data-visible":Ie==="loading"},P.loading)}return w.createElement(mM,{className:ut(R==null?void 0:R.loader,c==null||(ae=c.classNames)==null?void 0:ae.loader),visible:Ie==="loading"})}const se=c.icon||(P==null?void 0:P[Ie])||dM(Ie);var fe,ge;return w.createElement("li",{tabIndex:0,ref:be,className:ut(W,zt,R==null?void 0:R.toast,c==null||(t=c.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[Ie],c==null||(n=c.classNames)==null?void 0:n[Ie]),"data-sonner-toast":"","data-rich-colors":(fe=c.richColors)!=null?fe:C,"data-styled":!(c.jsx||c.unstyled||p),"data-mounted":j,"data-promise":!!c.promise,"data-swiped":re,"data-removed":z,"data-visible":He,"data-y-position":cn,"data-x-position":An,"data-index":y,"data-front":$e,"data-swiping":L,"data-dismissible":Fe,"data-type":Ie,"data-invert":In,"data-swipe-out":X,"data-swipe-direction":V,"data-expanded":!!(S||_&&j),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":x.length-y,"--offset":`${z?ye:nt.current}px`,"--initial-height":_?"auto":`${Te}px`,...M,...c.style},onDragEnd:()=>{q(!1),H(null),Ge.current=null},onPointerDown:ae=>{ae.button!==2&&(Tt||!Fe||(me.current=new Date,J(nt.current),ae.target.setPointerCapture(ae.pointerId),ae.target.tagName!=="BUTTON"&&(q(!0),Ge.current={x:ae.clientX,y:ae.clientY})))},onPointerUp:()=>{var ae,de,ve;if(X||!Fe)return;Ge.current=null;const ue=Number(((ae=be.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ue=Number(((de=be.current)==null?void 0:de.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),xe=new Date().getTime()-((ve=me.current)==null?void 0:ve.getTime()),Ce=O==="x"?ue:Ue,Ve=Math.abs(Ce)/xe;if(Math.abs(Ce)>=_M||Ve>.11){J(nt.current),c.onDismiss==null||c.onDismiss.call(c,c),I(O==="x"?ue>0?"right":"left":Ue>0?"down":"up"),G(),Q(!0);return}else{var je,rt;(je=be.current)==null||je.style.setProperty("--swipe-amount-x","0px"),(rt=be.current)==null||rt.style.setProperty("--swipe-amount-y","0px")}ie(!1),q(!1),H(null)},onPointerMove:ae=>{var de,ve,ue;if(!Ge.current||!Fe||((de=window.getSelection())==null?void 0:de.toString().length)>0)return;const xe=ae.clientY-Ge.current.y,Ce=ae.clientX-Ge.current.x;var Ve;const je=(Ve=e.swipeDirections)!=null?Ve:PM(A);!O&&(Math.abs(Ce)>1||Math.abs(xe)>1)&&H(Math.abs(Ce)>Math.abs(xe)?"x":"y");let rt={x:0,y:0};const ks=qt=>1/(1.5+Math.abs(qt)/20);if(O==="y"){if(je.includes("top")||je.includes("bottom"))if(je.includes("top")&&xe<0||je.includes("bottom")&&xe>0)rt.y=xe;else{const qt=xe*ks(xe);rt.y=Math.abs(qt)<Math.abs(xe)?qt:xe}}else if(O==="x"&&(je.includes("left")||je.includes("right")))if(je.includes("left")&&Ce<0||je.includes("right")&&Ce>0)rt.x=Ce;else{const qt=Ce*ks(Ce);rt.x=Math.abs(qt)<Math.abs(Ce)?qt:Ce}(Math.abs(rt.x)>0||Math.abs(rt.y)>0)&&ie(!0),(ve=be.current)==null||ve.style.setProperty("--swipe-amount-x",`${rt.x}px`),(ue=be.current)==null||ue.style.setProperty("--swipe-amount-y",`${rt.y}px`)}},Pn&&!c.jsx&&Ie!=="loading"?w.createElement("button",{"aria-label":k,"data-disabled":Tt,"data-close-button":!0,onClick:Tt||!Fe?()=>{}:()=>{G(),c.onDismiss==null||c.onDismiss.call(c,c)},className:ut(R==null?void 0:R.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(ge=P==null?void 0:P.close)!=null?ge:yM):null,(Ie||c.icon||c.promise)&&c.icon!==null&&((P==null?void 0:P[Ie])!==null||c.icon)?w.createElement("div",{"data-icon":"",className:ut(R==null?void 0:R.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||ce():null,c.type!=="loading"?se:null):null,w.createElement("div",{"data-content":"",className:ut(R==null?void 0:R.content,c==null||(a=c.classNames)==null?void 0:a.content)},w.createElement("div",{"data-title":"",className:ut(R==null?void 0:R.title,c==null||(s=c.classNames)==null?void 0:s.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?w.createElement("div",{"data-description":"",className:ut(Y,an,R==null?void 0:R.description,c==null||(i=c.classNames)==null?void 0:i.description)},typeof c.description=="function"?c.description():c.description):null),w.isValidElement(c.cancel)?c.cancel:c.cancel&&Rr(c.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||E,onClick:ae=>{Rr(c.cancel)&&Fe&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ae),G())},className:ut(R==null?void 0:R.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,w.isValidElement(c.action)?c.action:c.action&&Rr(c.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||$,onClick:ae=>{Rr(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ae),!ae.defaultPrevented&&G())},className:ut(R==null?void 0:R.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Ii(){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 IM(e,t){const n={};return[e,t].forEach((r,o)=>{const a=o===1,s=a?"--mobile-offset":"--offset",i=a?NM:EM;function l(u){["top","right","bottom","left"].forEach(m=>{n[`${s}-${m}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=i:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(i)}),n}const jM=w.forwardRef(function(t,n){const{id:r,invert:o,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:l,className:u,offset:m,mobileOffset:c,theme:p="light",richColors:h,duration:b,style:g,visibleToasts:v=kM,toastOptions:y,dir:x=Ii(),gap:S=TM,icons:D,containerAriaLabel:C="Notifications"}=t,[N,M]=w.useState([]),E=w.useMemo(()=>r?N.filter(j=>j.toasterId===r):N.filter(j=>!j.toasterId),[N,r]),$=w.useMemo(()=>Array.from(new Set([a].concat(E.filter(j=>j.position).map(j=>j.position)))),[E,a]),[W,Y]=w.useState([]),[U,A]=w.useState(!1),[T,_]=w.useState(!1),[R,P]=w.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),k=w.useRef(null),O=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=w.useRef(null),V=w.useRef(!1),I=w.useCallback(j=>{M(B=>{var z;return(z=B.find(K=>K.id===j.id))!=null&&z.delete||qe.dismiss(j.id),B.filter(({id:K})=>K!==j.id)})},[]);return w.useEffect(()=>qe.subscribe(j=>{if(j.dismiss){requestAnimationFrame(()=>{M(B=>B.map(z=>z.id===j.id?{...z,delete:!0}:z))});return}setTimeout(()=>{Da.flushSync(()=>{M(B=>{const z=B.findIndex(K=>K.id===j.id);return z!==-1?[...B.slice(0,z),{...B[z],...j},...B.slice(z+1)]:[j,...B]})})})}),[N]),w.useEffect(()=>{if(p!=="system"){P(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?P("dark"):P("light")),typeof window>"u")return;const j=window.matchMedia("(prefers-color-scheme: dark)");try{j.addEventListener("change",({matches:B})=>{P(B?"dark":"light")})}catch{j.addListener(({matches:z})=>{try{P(z?"dark":"light")}catch(K){console.error(K)}})}},[p]),w.useEffect(()=>{N.length<=1&&A(!1)},[N]),w.useEffect(()=>{const j=B=>{var z;if(s.every(q=>B[q]||B.code===q)){var L;A(!0),(L=k.current)==null||L.focus()}B.code==="Escape"&&(document.activeElement===k.current||(z=k.current)!=null&&z.contains(document.activeElement))&&A(!1)};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[s]),w.useEffect(()=>{if(k.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,V.current=!1)}},[k.current]),w.createElement("section",{ref:n,"aria-label":`${C} ${O}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},$.map((j,B)=>{var z;const[K,L]=j.split("-");return E.length?w.createElement("ol",{key:j,dir:x==="auto"?Ii():x,tabIndex:-1,ref:k,className:u,"data-sonner-toaster":!0,"data-sonner-theme":R,"data-y-position":K,"data-x-position":L,style:{"--front-toast-height":`${((z=W[0])==null?void 0:z.height)||0}px`,"--width":`${RM}px`,"--gap":`${S}px`,...g,...IM(m,c)},onBlur:q=>{V.current&&!q.currentTarget.contains(q.relatedTarget)&&(V.current=!1,H.current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||V.current||(V.current=!0,H.current=q.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{T||A(!1)},onDragEnd:()=>A(!1),onPointerDown:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||_(!0)},onPointerUp:()=>_(!1)},E.filter(q=>!q.position&&B===0||q.position===j).map((q,X)=>{var Q,re;return w.createElement(AM,{key:q.id,icons:D,index:X,toast:q,defaultRichColors:h,duration:(Q=y==null?void 0:y.duration)!=null?Q:b,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:o,visibleToasts:v,closeButton:(re=y==null?void 0:y.closeButton)!=null?re:l,interacting:T,position:j,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,closeButtonAriaLabel:y==null?void 0:y.closeButtonAriaLabel,removeToast:I,toasts:E.filter(ie=>ie.position==q.position),heights:W.filter(ie=>ie.position==q.position),setHeights:Y,expandByDefault:i,gap:S,expanded:U,swipeDirections:t.swipeDirections})})):null}))}),$M={error:"bg-red-500 text-white",info:"bg-blue-500 text-white",warning:"bg-amber-500 text-white",success:"bg-green-500 text-white"},LM={error:5e3,info:4e3,warning:5e3,success:4e3},FM={error:d.jsx(th,{className:"w-4 h-4 text-white"}),info:d.jsx(uh,{className:"w-4 h-4 text-white"}),warning:d.jsx(wh,{className:"w-4 h-4 text-white"}),success:d.jsx(Jp,{className:"w-4 h-4 text-white"})},WM=(e,t)=>{const n=(t==null?void 0:t.variant)||"info",r=$M[n],o=(t==null?void 0:t.icon)??FM[n],a=(t==null?void 0:t.iconPosition)??"left",s=l=>d.jsxs("div",{className:`flex items-center justify-between w-full p-3 rounded-md shadow-md ${r}`,children:[d.jsxs("div",{className:"flex items-center",children:[o&&a==="left"&&d.jsx("div",{className:"mr-3",children:o}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-semibold",children:e}),(t==null?void 0:t.description)&&d.jsx("p",{className:"text-sm text-white/90",children:t.description})]})]}),d.jsxs("div",{className:"flex items-center",children:[o&&a==="right"&&d.jsx("div",{className:"ml-3",children:o}),(t==null?void 0:t.action)&&d.jsx(Dt,{variant:"ghost",size:"small",className:"ml-3 text-white hover:text-black/80",onClick:t.action.onClick,children:t.action.label}),d.jsx(Dt,{variant:"ghost",size:"icon.large",className:"ml-3 text-white hover:text-black/80",onClick:()=>Pi.dismiss(l),children:d.jsx(kn,{className:"w-4 h-4",strokeWidth:2.5})})]})]}),i={unstyled:!0,duration:(t==null?void 0:t.duration)||LM[n],style:{padding:0,margin:0,border:"none",background:"none"}};return Pi.custom(s,i)};function BM(e){return d.jsx(jM,{...e})}var[Co,SD]=Be("Tooltip",[Ft]),Mo=Ft(),jm="TooltipProvider",YM=700,Ca="tooltip.open",[HM,Ds]=Co(jm),$m=e=>{const{__scopeTooltip:t,delayDuration:n=YM,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=f.useRef(!0),i=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),d.jsx(HM,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:f.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:a})};$m.displayName=jm;var Qn="Tooltip",[zM,Do]=Co(Qn),Lm=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=Ds(Qn,e.__scopeTooltip),u=Mo(t),[m,c]=f.useState(null),p=Ee(),h=f.useRef(0),b=s??l.disableHoverableContent,g=i??l.delayDuration,v=f.useRef(!1),[y,x]=tt({prop:r,defaultProp:o??!1,onChange:M=>{M?(l.onOpen(),document.dispatchEvent(new CustomEvent(Ca))):l.onClose(),a==null||a(M)},caller:Qn}),S=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),D=f.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,x(!0)},[x]),C=f.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),N=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,x(!0),h.current=0},g)},[g,x]);return f.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),d.jsx(rr,{...u,children:d.jsx(zM,{scope:t,contentId:p,open:y,stateAttribute:S,trigger:m,onTriggerChange:c,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?N():D()},[l.isOpenDelayedRef,N,D]),onTriggerLeave:f.useCallback(()=>{b?C():(window.clearTimeout(h.current),h.current=0)},[C,b]),onOpen:D,onClose:C,disableHoverableContent:b,children:n})})};Lm.displayName=Qn;var Ma="TooltipTrigger",Fm=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Do(Ma,n),a=Ds(Ma,n),s=Mo(n),i=f.useRef(null),l=he(t,i,o.onTriggerChange),u=f.useRef(!1),m=f.useRef(!1),c=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),d.jsx(or,{asChild:!0,...s,children:d.jsx(ee.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:Z(e.onPointerMove,p=>{p.pointerType!=="touch"&&!m.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),m.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),m.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Z(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});Fm.displayName=Ma;var GM="TooltipPortal",[CD,UM]=Co(GM,{forceMount:void 0}),Cn="TooltipContent",Wm=f.forwardRef((e,t)=>{const n=UM(Cn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=Do(Cn,e.__scopeTooltip);return d.jsx(ze,{present:r||s.open,children:s.disableHoverableContent?d.jsx(Bm,{side:o,...a,ref:t}):d.jsx(qM,{side:o,...a,ref:t})})}),qM=f.forwardRef((e,t)=>{const n=Do(Cn,e.__scopeTooltip),r=Ds(Cn,e.__scopeTooltip),o=f.useRef(null),a=he(t,o),[s,i]=f.useState(null),{trigger:l,onClose:u}=n,m=o.current,{onPointerInTransitChange:c}=r,p=f.useCallback(()=>{i(null),c(!1)},[c]),h=f.useCallback((b,g)=>{const v=b.currentTarget,y={x:b.clientX,y:b.clientY},x=ZM(y,v.getBoundingClientRect()),S=QM(y,x),D=JM(g.getBoundingClientRect()),C=tD([...S,...D]);i(C),c(!0)},[c]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(l&&m){const b=v=>h(v,m),g=v=>h(v,l);return l.addEventListener("pointerleave",b),m.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),m.removeEventListener("pointerleave",g)}}},[l,m,h,p]),f.useEffect(()=>{if(s){const b=g=>{const v=g.target,y={x:g.clientX,y:g.clientY},x=(l==null?void 0:l.contains(v))||(m==null?void 0:m.contains(v)),S=!eD(y,s);x?p():S&&(p(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,m,s,u,p]),d.jsx(Bm,{...e,ref:a})}),[VM,KM]=Co(Qn,{isInside:!1}),XM=Vm("TooltipContent"),Bm=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=Do(Cn,n),u=Mo(n),{onClose:m}=l;return f.useEffect(()=>(document.addEventListener(Ca,m),()=>document.removeEventListener(Ca,m)),[m]),f.useEffect(()=>{if(l.trigger){const c=p=>{const h=p.target;h!=null&&h.contains(l.trigger)&&m()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,m]),d.jsx(En,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c=>c.preventDefault(),onDismiss:m,children:d.jsxs(no,{"data-state":l.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(XM,{children:r}),d.jsx(VM,{scope:n,isInside:!0,children:d.jsx(py,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Wm.displayName=Cn;var Ym="TooltipArrow",Hm=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Mo(n);return KM(Ym,n).isInside?null:d.jsx(ro,{...o,...r,ref:t})});Hm.displayName=Ym;function ZM(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function QM(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function JM(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function eD(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],u=i.x,m=i.y,c=l.x,p=l.y;m>r!=p>r&&n<(c-u)*(r-m)/(p-m)+u&&(o=!o)}return o}function tD(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),nD(t)}function nD(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var rD=$m,oD=Lm,aD=Fm,zm=Wm,sD=Hm;const iD=rD,cD=oD,lD=aD,Gm=f.forwardRef(({className:e,sideOffset:t=4,children:n,...r},o)=>d.jsxs(zm,{ref:o,sideOffset:t,className:F("z-50 rounded-xl border border-border bg-background px-3 py-1.5 text-sm text-foreground shadow-xl transition-all","animate-in fade-in zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2","origin-[--radix-tooltip-content-transform-origin]",e),...r,children:[n,d.jsx(sD,{className:"fill-background stroke-border h-2 w-4"})]}));Gm.displayName=zm.displayName;exports.ComponentVariant=d1;exports.DoctAddressFormSection=g0;exports.DoctAlert=Ju;exports.DoctAlertDescription=td;exports.DoctAlertTitle=ed;exports.DoctAnimationLoader=Ip;exports.DoctAutoComplete=i1;exports.DoctAutocomplete=y1;exports.DoctAvatar=dd;exports.DoctAvatarFallback=md;exports.DoctAvatarImage=fd;exports.DoctButton=Dt;exports.DoctCheckbox=xd;exports.DoctChip=i0;exports.DoctCircularProgress=Xi;exports.DoctComponentSection=u1;exports.DoctContactFormSection=y0;exports.DoctCurrencyInput=Gu;exports.DoctDatePickerField=Gr;exports.DoctDialog=Q0;exports.DoctDialogClose=t1;exports.DoctDialogContent=ju;exports.DoctDialogDescription=Wu;exports.DoctDialogFooter=Lu;exports.DoctDialogHeader=$u;exports.DoctDialogTitle=Fu;exports.DoctDialogTrigger=J0;exports.DoctDrawer=Pd;exports.DoctDrawerClose=gS;exports.DoctDrawerContent=Id;exports.DoctDrawerDescription=Fd;exports.DoctDrawerFooter=$d;exports.DoctDrawerHeader=jd;exports.DoctDrawerTitle=Ld;exports.DoctDrawerTrigger=pS;exports.DoctDropdownMenu=LC;exports.DoctDropdownMenuCheckboxItem=qf;exports.DoctDropdownMenuContent=Gf;exports.DoctDropdownMenuGroup=WC;exports.DoctDropdownMenuItem=Uf;exports.DoctDropdownMenuLabel=Kf;exports.DoctDropdownMenuRadioGroup=YC;exports.DoctDropdownMenuRadioItem=Vf;exports.DoctDropdownMenuSeparator=Xf;exports.DoctDropdownMenuShortcut=Zf;exports.DoctDropdownMenuSub=BC;exports.DoctDropdownMenuSubContent=zf;exports.DoctDropdownMenuSubTrigger=Hf;exports.DoctDropdownMenuTrigger=FC;exports.DoctExpandableCard=D1;exports.DoctLabeledInput=Qe;exports.DoctManualDatePickerField=s0;exports.DoctOtpInput=Fp;exports.DoctPasswordInput=na;exports.DoctPopover=Wa;exports.DoctPopoverContent=io;exports.DoctPopoverTrigger=Ba;exports.DoctProgress=Im;exports.DoctRadioGroup=fm;exports.DoctRadioGroupItem=mm;exports.DoctSearchFilterSection=f0;exports.DoctSearchInput=lu;exports.DoctSelectField=Sn;exports.DoctTabs=nM;exports.DoctTabsContent=Rm;exports.DoctTabsList=Em;exports.DoctTabsTrigger=Nm;exports.DoctTextareaField=Na;exports.DoctToaster=BM;exports.DoctTooltip=cD;exports.DoctTooltipContent=Gm;exports.DoctTooltipProvider=iD;exports.DoctTooltipTrigger=lD;exports.DoctTypography=Ap;exports.DoctUserRegistrationSection=p0;exports.doctToast=WM;