docthub-core-components 2.3.0 → 2.3.4

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.
Files changed (62) hide show
  1. package/dist/docthub-core-components.css +1 -1
  2. package/dist/index.esm.js +3493 -16644
  3. package/dist/registry/@docthub/alert.json +1 -1
  4. package/dist/registry/@docthub/auto-complete-component.test.json +2 -5
  5. package/dist/registry/@docthub/avatar.json +3 -3
  6. package/dist/registry/@docthub/badge.json +1 -1
  7. package/dist/registry/@docthub/button.json +3 -3
  8. package/dist/registry/@docthub/button.test.json +2 -5
  9. package/dist/registry/@docthub/calendar.json +2 -2
  10. package/dist/registry/@docthub/checkbox.json +3 -3
  11. package/dist/registry/@docthub/command.json +3 -3
  12. package/dist/registry/@docthub/dialog.json +1 -1
  13. package/dist/registry/@docthub/drawer.json +1 -1
  14. package/dist/registry/@docthub/dropdown-menu.json +3 -3
  15. package/dist/registry/@docthub/index.json +105 -105
  16. package/dist/registry/@docthub/input.json +1 -1
  17. package/dist/registry/@docthub/label.json +3 -3
  18. package/dist/registry/@docthub/popover.json +3 -3
  19. package/dist/registry/@docthub/progress.json +3 -3
  20. package/dist/registry/@docthub/radio-group.json +3 -3
  21. package/dist/registry/@docthub/select.json +3 -3
  22. package/dist/registry/@docthub/skeleton.json +1 -1
  23. package/dist/registry/@docthub/tabs.json +3 -3
  24. package/dist/registry/@docthub/textarea.json +1 -1
  25. package/dist/registry/@docthub/toast.json +1 -1
  26. package/dist/registry/@docthub/toast.test.json +2 -4
  27. package/dist/registry/@docthub/tooltip.json +3 -3
  28. package/dist/registry/@docthub/typography.json +2 -2
  29. package/dist/registry/@docthub/typography.test.json +2 -5
  30. package/dist/src/components/overrides/ui/auto-complete.d.ts +5 -1
  31. package/dist/src/components/overrides/ui/autocomplete-checkbox.d.ts +44 -0
  32. package/dist/src/components/overrides/ui/chips/doct-chip.d.ts +10 -4
  33. package/dist/src/components/overrides/ui/expandable-card.d.ts +6 -1
  34. package/dist/src/components/overrides/ui/inputs/labeled-input.d.ts +8 -3
  35. package/dist/src/components/overrides/ui/inputs/otp-input.d.ts +4 -0
  36. package/dist/src/components/overrides/ui/inputs/password-input.d.ts +6 -2
  37. package/dist/src/components/overrides/ui/pickers/date-picker-field.d.ts +9 -9
  38. package/dist/src/components/overrides/ui/pickers/select-field.d.ts +13 -4
  39. package/dist/src/components/ui/alert.d.ts +14 -3
  40. package/dist/src/components/ui/avatar.d.ts +8 -2
  41. package/dist/src/components/ui/breadcrumb.d.ts +19 -0
  42. package/dist/src/components/ui/button.d.ts +1 -1
  43. package/dist/src/components/ui/checkbox.d.ts +1 -1
  44. package/dist/src/components/ui/dialog.d.ts +18 -0
  45. package/dist/src/components/ui/dropdown-menu.d.ts +1 -1
  46. package/dist/src/components/ui/input.d.ts +5 -1
  47. package/dist/src/components/ui/label.d.ts +1 -1
  48. package/dist/src/components/ui/popover.d.ts +1 -1
  49. package/dist/src/components/ui/progress.d.ts +20 -2
  50. package/dist/src/components/ui/radio-group.d.ts +1 -1
  51. package/dist/src/components/ui/select.d.ts +1 -1
  52. package/dist/src/components/ui/skeleton.d.ts +14 -1
  53. package/dist/src/components/ui/tabs.d.ts +8 -3
  54. package/dist/src/components/ui/textarea.d.ts +5 -0
  55. package/dist/src/components/ui/timeline.d.ts +41 -0
  56. package/dist/src/components/ui/tooltip.d.ts +6 -2
  57. package/dist/src/components/ui/typography.d.ts +3 -1
  58. package/dist/src/hooks/useAutocompleteCheckbox.d.ts +55 -0
  59. package/dist/src/index.d.ts +7 -1
  60. package/package.json +89 -26
  61. package/dist/index.cjs.js +0 -225
  62. package/dist/src/components/overrides/ui/pickers/manual-date-picker-field.d.ts +0 -20
package/dist/index.cjs.js DELETED
@@ -1,225 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),x=require("react"),Xr=require("react-dom");function Fi(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=Fi(x),Zr=Fi(Xr);function Wi(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=Wi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bi(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Wi(e))&&(r&&(r+=" "),r+=t);return r}const Na="-",Xm=e=>{const t=Qm(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(Na);return s[0]===""&&s.length!==1&&s.shift(),Yi(s,t)||Zm(i)},getConflictingClassGroupIds:(i,s)=>{const c=n[i]||[];return s&&r[i]?[...c,...r[i]]:c}}},Yi=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Yi(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Na);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},Ns=/^\[(.+)\]$/,Zm=e=>{if(Ns.test(e)){const t=Ns.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Qm=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)ea(n[o],r,o,t);return r},ea=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Rs(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Jm(o)){ea(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{ea(i,Rs(t,a),n,r)})})},Rs=(e,t)=>{let n=e;return t.split(Na).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Jm=e=>e.isThemeGetter,ep=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},ta="!",na=":",tp=na.length,np=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,s=0,c=0,u;for(let b=0;b<o.length;b++){let g=o[b];if(i===0&&s===0){if(g===na){a.push(o.slice(c,b)),c=b+tp;continue}if(g==="/"){u=b;continue}}g==="["?i++:g==="]"?i--:g==="("?s++:g===")"&&s--}const m=a.length===0?o:o.substring(c),l=rp(m),p=l!==m,h=u&&u>c?u-c:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:l,maybePostfixModifierPosition:h}};if(t){const o=t+na,a=r;r=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},rp=e=>e.endsWith(ta)?e.substring(0,e.length-1):e.startsWith(ta)?e.substring(1):e,op=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(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},ap=e=>({cache:ep(e.cacheSize),parseClassName:np(e),sortModifiers:op(e),...Xm(e)}),sp=/\s+/,ip=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(sp);let c="";for(let u=s.length-1;u>=0;u-=1){const m=s[u],{isExternal:l,modifiers:p,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:g}=n(m);if(l){c=m+(c.length>0?" "+c:c);continue}let v=!!g,y=r(v?b.substring(0,g):b);if(!y){if(!v){c=m+(c.length>0?" "+c:c);continue}if(y=r(b),!y){c=m+(c.length>0?" "+c:c);continue}v=!1}const w=a(p).join(":"),S=h?w+ta:w,E=S+y;if(i.includes(E))continue;i.push(E);const C=o(y,v);for(let N=0;N<C.length;++N){const k=C[N];i.push(S+k)}c=m+(c.length>0?" "+c:c)}return c};function cp(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Hi(t))&&(r&&(r+=" "),r+=n);return r}const Hi=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Hi(e[r]))&&(n&&(n+=" "),n+=t);return n};function lp(e,...t){let n,r,o,a=i;function i(c){const u=t.reduce((m,l)=>l(m),e());return n=ap(u),r=n.cache.get,o=n.cache.set,a=s,s(c)}function s(c){const u=r(c);if(u)return u;const m=ip(c,n);return o(c,m),m}return function(){return a(cp.apply(null,arguments))}}const $e=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},zi=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Gi=/^\((?:(\w[\w-]*):)?(.+)\)$/i,up=/^\d+\/\d+$/,dp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fp=/\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$/,mp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fn=e=>up.test(e),pe=e=>!!e&&!Number.isNaN(Number(e)),jt=e=>!!e&&Number.isInteger(Number(e)),No=e=>e.endsWith("%")&&pe(e.slice(0,-1)),Ct=e=>dp.test(e),gp=()=>!0,vp=e=>fp.test(e)&&!mp.test(e),Ui=()=>!1,bp=e=>pp.test(e),yp=e=>hp.test(e),wp=e=>!ne(e)&&!re(e),xp=e=>kn(e,Ki,Ui),ne=e=>zi.test(e),Zt=e=>kn(e,Xi,vp),Ro=e=>kn(e,kp,pe),_s=e=>kn(e,qi,Ui),Sp=e=>kn(e,Vi,yp),br=e=>kn(e,Zi,bp),re=e=>Gi.test(e),jn=e=>En(e,Xi),Cp=e=>En(e,Ep),Os=e=>En(e,qi),Mp=e=>En(e,Ki),Dp=e=>En(e,Vi),yr=e=>En(e,Zi,!0),kn=(e,t,n)=>{const r=zi.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},En=(e,t,n=!1)=>{const r=Gi.exec(e);return r?r[1]?t(r[1]):n:!1},qi=e=>e==="position"||e==="percentage",Vi=e=>e==="image"||e==="url",Ki=e=>e==="length"||e==="size"||e==="bg-size",Xi=e=>e==="length",kp=e=>e==="number",Ep=e=>e==="family-name",Zi=e=>e==="shadow",Np=()=>{const e=$e("color"),t=$e("font"),n=$e("text"),r=$e("font-weight"),o=$e("tracking"),a=$e("leading"),i=$e("breakpoint"),s=$e("container"),c=$e("spacing"),u=$e("radius"),m=$e("shadow"),l=$e("inset-shadow"),p=$e("text-shadow"),h=$e("drop-shadow"),b=$e("blur"),g=$e("perspective"),v=$e("aspect"),y=$e("ease"),w=$e("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...E(),re,ne],N=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],R=()=>[re,ne,c],j=()=>[fn,"full","auto",...R()],$=()=>[jt,"none","subgrid",re,ne],W=()=>["auto",{span:["full",jt,re,ne]},jt,re,ne],U=()=>[jt,"auto",re,ne],B=()=>["auto","min","max","fr",re,ne],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...R()],P=()=>[fn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],D=()=>[e,re,ne],T=()=>[...E(),Os,_s,{position:[re,ne]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",Mp,xp,{size:[re,ne]}],O=()=>[No,jn,Zt],A=()=>["","none","full",u,re,ne],H=()=>["",pe,jn,Zt],G=()=>["solid","dashed","dotted","double"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>[pe,No,Os,_s],K=()=>["","none",b,re,ne],X=()=>["none",pe,re,ne],Q=()=>["none",pe,re,ne],J=()=>[pe,re,ne],ae=()=>[fn,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ct],breakpoint:[Ct],color:[gp],container:[Ct],"drop-shadow":[Ct],ease:["in","out","in-out"],font:[wp],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ct],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ct],shadow:[Ct],spacing:["px",pe],text:[Ct],"text-shadow":[Ct],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fn,ne,re,v]}],container:["container"],columns:[{columns:[pe,ne,re,s]}],"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:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{start:j()}],end:[{end:j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[jt,"auto",re,ne]}],basis:[{basis:[fn,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,fn,"auto","initial","none",ne]}],grow:[{grow:["",pe,re,ne]}],shrink:[{shrink:["",pe,re,ne]}],order:[{order:[jt,"first","last","none",re,ne]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:W()}],"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":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[s,"screen",...P()]}],"min-w":[{"min-w":[s,"screen","none",...P()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...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,Zt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,re,Ro]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",No,ne]}],"font-family":[{font:[Cp,ne,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,re,ne]}],"line-clamp":[{"line-clamp":[pe,"none",re,Ro]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",re,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",re,Zt]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[pe,"auto",re,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,ne]}],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",re,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jt,re,ne],radial:["",re,ne],conic:[jt,re,ne]},Dp,Sp]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"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:[...G(),"hidden","none"]}],"divide-style":[{divide:[...G(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...G(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,re,ne]}],"outline-w":[{outline:["",pe,jn,Zt]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",m,yr,br]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",l,yr,br]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[pe,Zt]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",p,yr,br]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[pe,re,ne]}],"mix-blend":[{"mix-blend":[...q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":q()}],"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":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"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":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"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":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"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":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"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":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"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":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"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":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[re,ne]}],"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":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"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":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,ne]}],filter:[{filter:["","none",re,ne]}],blur:[{blur:K()}],brightness:[{brightness:[pe,re,ne]}],contrast:[{contrast:[pe,re,ne]}],"drop-shadow":[{"drop-shadow":["","none",h,yr,br]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",pe,re,ne]}],"hue-rotate":[{"hue-rotate":[pe,re,ne]}],invert:[{invert:["",pe,re,ne]}],saturate:[{saturate:[pe,re,ne]}],sepia:[{sepia:["",pe,re,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",re,ne]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[pe,re,ne]}],"backdrop-contrast":[{"backdrop-contrast":[pe,re,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,re,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,re,ne]}],"backdrop-invert":[{"backdrop-invert":["",pe,re,ne]}],"backdrop-opacity":[{"backdrop-opacity":[pe,re,ne]}],"backdrop-saturate":[{"backdrop-saturate":[pe,re,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,re,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",re,ne]}],ease:[{ease:["linear","initial",y,re,ne]}],delay:[{delay:[pe,re,ne]}],animate:[{animate:["none",w,re,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,re,ne]}],"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:J()}],"skew-x":[{"skew-x":J()}],"skew-y":[{"skew-y":J()}],transform:[{transform:[re,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re,ne]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",re,ne]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[pe,jn,Zt,Ro]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Rp=lp(Np);function L(...e){return Rp(Bi(e))}const Qi=f.forwardRef(({size:e=48,strokeWidth:t=4,className:n,colorClassName:r="text-current",...o},a)=>{const i=Math.max((e-t)/2,0),s=2*Math.PI*i;return d.jsxs("svg",{ref:a,width:e,height:e,viewBox:`0 0 ${e} ${e}`,className:L("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:i,stroke:"currentColor",strokeWidth:t,fill:"none"}),d.jsx("circle",{className:L(r),cx:e/2,cy:e/2,r:i,stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:s,strokeDashoffset:s*.75,fill:"none"})]})});Qi.displayName="CircularProgress";function _p(){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 Ts=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ps=Bi,Qr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ps(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const m=n==null?void 0:n[u],l=a==null?void 0:a[u];if(m===null)return null;const p=Ts(m)||Ts(l);return o[u][p]}),s=n&&Object.entries(n).reduce((u,m)=>{let[l,p]=m;return p===void 0||(u[l]=p),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,m)=>{let{class:l,className:p,...h}=m;return Object.entries(h).every(b=>{let[g,v]=b;return Array.isArray(v)?v.includes({...a,...s}[g]):{...a,...s}[g]===v})?[...u,l,p]:u},[]);return Ps(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)};function As(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Et(...e){return t=>{let n=!1;const r=e.map(o=>{const a=As(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():As(e[o],null)}}}}function he(...e){return f.useCallback(Et(...e),e)}function Wt(e){const t=Tp(e),n=f.forwardRef((r,o)=>{const{children:a,...i}=r,s=f.Children.toArray(a),c=s.find(Ap);if(c){const u=c.props.children,m=s.map(l=>l===c?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:l);return d.jsx(t,{...i,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,m):null})}return d.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Op=Wt("Slot");function Tp(e){const t=f.forwardRef((n,r)=>{const{children:o,...a}=n;if(f.isValidElement(o)){const i=jp(o),s=Ip(a,o.props);return o.type!==f.Fragment&&(s.ref=r?Et(r,i):i),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ji=Symbol("radix.slottable");function Pp(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ji,t}function Ap(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ji}function Ip(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]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function jp(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 $p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],te=$p.reduce((e,t)=>{const n=Wt(`Primitive.${t}`),r=f.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ec(e,t){e&&Zr.flushSync(()=>e.dispatchEvent(t))}var tc=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"}),Lp="VisuallyHidden",nc=f.forwardRef((e,t)=>d.jsx(te.span,{...e,ref:t,style:{...tc,...e.style}}));nc.displayName=Lp;var Fp=nc;function Wp(e,t){const n=f.createContext(t),r=a=>{const{children:i,...s}=a,c=f.useMemo(()=>s,Object.values(s));return d.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(a){const i=f.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ge(e,t=[]){let n=[];function r(a,i){const s=f.createContext(i),c=n.length;n=[...n,i];const u=l=>{var y;const{scope:p,children:h,...b}=l,g=((y=p==null?void 0:p[e])==null?void 0:y[c])||s,v=f.useMemo(()=>b,Object.values(b));return d.jsx(g.Provider,{value:v,children:h})};u.displayName=a+"Provider";function m(l,p){var g;const h=((g=p==null?void 0:p[e])==null?void 0:g[c])||s,b=f.useContext(h);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${l}\` must be used within \`${a}\``)}return[u,m]}const o=()=>{const a=n.map(i=>f.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,Bp(o,...t)]}function Bp(...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 i=r.reduce((s,{useScope:c,scopeName:u})=>{const l=c(a)[`__scope${u}`];return{...s,...l}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ra(e){const t=e+"CollectionProvider",[n,r]=Ge(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:v,children:y}=g,w=x.useRef(null),S=x.useRef(new Map).current;return d.jsx(o,{scope:v,itemMap:S,collectionRef:w,children:y})};i.displayName=t;const s=e+"CollectionSlot",c=Wt(s),u=x.forwardRef((g,v)=>{const{scope:y,children:w}=g,S=a(s,y),E=he(v,S.collectionRef);return d.jsx(c,{ref:E,children:w})});u.displayName=s;const m=e+"CollectionItemSlot",l="data-radix-collection-item",p=Wt(m),h=x.forwardRef((g,v)=>{const{scope:y,children:w,...S}=g,E=x.useRef(null),C=he(v,E),N=a(m,y);return x.useEffect(()=>(N.itemMap.set(E,{ref:E,...S}),()=>void N.itemMap.delete(E))),d.jsx(p,{[l]:"",ref:C,children:w})});h.displayName=m;function b(g){const v=a(e+"CollectionConsumer",g);return x.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const S=Array.from(w.querySelectorAll(`[${l}]`));return Array.from(v.itemMap.values()).sort((N,k)=>S.indexOf(N.ref.current)-S.indexOf(k.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},b,r]}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)}}var Ie=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Yp=f[" useInsertionEffect ".trim().toString()]||Ie;function ot({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=Hp({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:o;{const m=f.useRef(e!==void 0);f.useEffect(()=>{const l=m.current;l!==s&&console.warn(`${r} is changing from ${l?"controlled":"uncontrolled"} to ${s?"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=s},[s,r])}const u=f.useCallback(m=>{var l;if(s){const p=zp(m)?m(e):m;p!==e&&((l=i.current)==null||l.call(i,p))}else a(m)},[s,e,a,i]);return[c,u]}function Hp({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),a=f.useRef(t);return Yp(()=>{a.current=t},[t]),f.useEffect(()=>{var i;o.current!==n&&((i=a.current)==null||i.call(a,n),o.current=n)},[n,o]),[n,r,a]}function zp(e){return typeof e=="function"}function Gp(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var qe=e=>{const{present:t,children:n}=e,r=Up(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),a=he(r.ref,qp(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:a}):null};qe.displayName="Presence";function Up(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),i=e?"mounted":"unmounted",[s,c]=Gp(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=wr(r.current);a.current=s==="mounted"?u:"none"},[s]),Ie(()=>{const u=r.current,m=o.current;if(m!==e){const p=a.current,h=wr(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(m&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ie(()=>{if(t){let u;const m=t.ownerDocument.defaultView??window,l=h=>{const g=wr(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(c("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=wr(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{m.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function wr(e){return(e==null?void 0:e.animationName)||"none"}function qp(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 Vp=f[" useId ".trim().toString()]||(()=>{}),Kp=0;function Oe(e){const[t,n]=f.useState(Vp());return Ie(()=>{n(r=>r??String(Kp++))},[e]),e||(t?`radix-${t}`:"")}var Jr="Collapsible",[Xp,mD]=Ge(Jr),[Zp,_a]=Xp(Jr),rc=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[c,u]=ot({prop:r,defaultProp:o??!1,onChange:i,caller:Jr});return d.jsx(Zp,{scope:n,disabled:a,contentId:Oe(),open:c,onOpenToggle:f.useCallback(()=>u(m=>!m),[u]),children:d.jsx(te.div,{"data-state":Ta(c),"data-disabled":a?"":void 0,...s,ref:t})})});rc.displayName=Jr;var oc="CollapsibleTrigger",ac=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=_a(oc,n);return d.jsx(te.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ta(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:Z(e.onClick,o.onOpenToggle)})});ac.displayName=oc;var Oa="CollapsibleContent",sc=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=_a(Oa,e.__scopeCollapsible);return d.jsx(qe,{present:n||o.open,children:({present:a})=>d.jsx(Qp,{...r,ref:t,present:a})})});sc.displayName=Oa;var Qp=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=_a(Oa,n),[s,c]=f.useState(r),u=f.useRef(null),m=he(t,u),l=f.useRef(0),p=l.current,h=f.useRef(0),b=h.current,g=i.open||s,v=f.useRef(g),y=f.useRef(void 0);return f.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),Ie(()=>{const w=u.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const S=w.getBoundingClientRect();l.current=S.height,h.current=S.width,v.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),c(r)}},[i.open,r]),d.jsx(te.div,{"data-state":Ta(i.open),"data-disabled":i.disabled?"":void 0,id:i.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 Ta(e){return e?"open":"closed"}var Jp=rc,eh=ac,th=sc,nh=f.createContext(void 0);function Jn(e){const t=f.useContext(nh);return e||t||"ltr"}function at(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 rh(e,t=globalThis==null?void 0:globalThis.document){const n=at(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 oh="DismissableLayer",ra="dismissableLayer.update",ah="dismissableLayer.pointerDownOutside",sh="dismissableLayer.focusOutside",Is,ic=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nn=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,u=f.useContext(ic),[m,l]=f.useState(null),p=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=f.useState({}),b=he(t,k=>l(k)),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),w=m?g.indexOf(m):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,C=lh(k=>{const R=k.target,j=[...u.branches].some($=>$.contains(R));!E||j||(o==null||o(k),i==null||i(k),k.defaultPrevented||s==null||s())},p),N=uh(k=>{const R=k.target;[...u.branches].some($=>$.contains(R))||(a==null||a(k),i==null||i(k),k.defaultPrevented||s==null||s())},p);return rh(k=>{w===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&s&&(k.preventDefault(),s()))},p),f.useEffect(()=>{if(m)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Is=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(m)),u.layers.add(m),js(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Is)}},[m,p,n,u]),f.useEffect(()=>()=>{m&&(u.layers.delete(m),u.layersWithOutsidePointerEventsDisabled.delete(m),js())},[m,u]),f.useEffect(()=>{const k=()=>h({});return document.addEventListener(ra,k),()=>document.removeEventListener(ra,k)},[]),d.jsx(te.div,{...c,ref:b,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,C.onPointerDownCapture)})});Nn.displayName=oh;var ih="DismissableLayerBranch",ch=f.forwardRef((e,t)=>{const n=f.useContext(ic),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(te.div,{...e,ref:o})});ch.displayName=ih;function lh(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let c=function(){cc(ah,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function uh(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!r.current&&cc(sh,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 js(){const e=new CustomEvent(ra);document.dispatchEvent(e)}function cc(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?ec(o,a):o.dispatchEvent(a)}var _o="focusScope.autoFocusOnMount",Oo="focusScope.autoFocusOnUnmount",$s={bubbles:!1,cancelable:!0},dh="FocusScope",er=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=f.useState(null),u=at(o),m=at(a),l=f.useRef(null),p=he(t,g=>c(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||!s)return;const E=S.target;s.contains(E)?l.current=E:Lt(l.current,{select:!0})},v=function(S){if(h.paused||!s)return;const E=S.relatedTarget;E!==null&&(s.contains(E)||Lt(l.current,{select:!0}))},y=function(S){if(document.activeElement===document.body)for(const C of S)C.removedNodes.length>0&&Lt(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const w=new MutationObserver(y);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),w.disconnect()}}},[r,s,h.paused]),f.useEffect(()=>{if(s){Fs.add(h);const g=document.activeElement;if(!s.contains(g)){const y=new CustomEvent(_o,$s);s.addEventListener(_o,u),s.dispatchEvent(y),y.defaultPrevented||(fh(vh(lc(s)),{select:!0}),document.activeElement===g&&Lt(s))}return()=>{s.removeEventListener(_o,u),setTimeout(()=>{const y=new CustomEvent(Oo,$s);s.addEventListener(Oo,m),s.dispatchEvent(y),y.defaultPrevented||Lt(g??document.body,{select:!0}),s.removeEventListener(Oo,m),Fs.remove(h)},0)}}},[s,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 w=g.currentTarget,[S,E]=mh(w);S&&E?!g.shiftKey&&y===E?(g.preventDefault(),n&&Lt(S,{select:!0})):g.shiftKey&&y===S&&(g.preventDefault(),n&&Lt(E,{select:!0})):y===w&&g.preventDefault()}},[n,r,h.paused]);return d.jsx(te.div,{tabIndex:-1,...i,ref:p,onKeyDown:b})});er.displayName=dh;function fh(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Lt(r,{select:t}),document.activeElement!==n)return}function mh(e){const t=lc(e),n=Ls(t,e),r=Ls(t.reverse(),e);return[n,r]}function lc(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(!ph(n,{upTo:t}))return n}function ph(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 hh(e){return e instanceof HTMLInputElement&&"select"in e}function Lt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&hh(e)&&t&&e.select()}}var Fs=gh();function gh(){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 vh(e){return e.filter(t=>t.tagName!=="A")}var bh="Portal",tr=f.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=f.useState(!1);Ie(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Xr.createPortal(d.jsx(te.div,{...r,ref:t}),i):null});tr.displayName=bh;var To=0;function eo(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Bs()),document.body.insertAdjacentElement("beforeend",e[1]??Bs()),To++,()=>{To===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),To--}},[])}function Bs(){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 ht=function(){return ht=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},ht.apply(this,arguments)};function uc(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 yh(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",wh="with-scroll-bars-hidden",xh="--removed-body-scroll-bar-size";function Po(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Sh(e,t){var n=x.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 Ch=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ys=new WeakMap;function Mh(e,t){var n=Sh(null,function(r){return e.forEach(function(o){return Po(o,r)})});return Ch(function(){var r=Ys.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||Po(s,null)}),a.forEach(function(s){o.has(s)||Po(s,i)})}Ys.set(n,e)},[e]),n}function Dh(e){return e}function kh(e,t){t===void 0&&(t=Dh);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 i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var c=function(){var m=i;i=[],m.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(m){i.push(m),u()},filter:function(m){return i=i.filter(m),n}}}};return o}function Eh(e){e===void 0&&(e={});var t=kh(null);return t.options=ht({async:!0,ssr:!1},e),t}var dc=function(e){var t=e.sideCar,n=uc(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,ht({},n))};dc.isSideCarExport=!0;function Nh(e,t){return e.useMedium(t),dc}var fc=Eh(),Ao=function(){},to=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Ao,onWheelCapture:Ao,onTouchMoveCapture:Ao}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,m=e.enabled,l=e.shards,p=e.sideCar,h=e.noRelative,b=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,S=e.gapMode,E=uc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,N=Mh([n,t]),k=ht(ht({},E),o);return f.createElement(f.Fragment,null,m&&f.createElement(C,{sideCar:fc,removeScrollBar:u,shards:l,noRelative:h,noIsolation:b,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:S}),i?f.cloneElement(f.Children.only(s),ht(ht({},k),{ref:N})):f.createElement(w,ht({},k,{className:c,ref:N}),s))});to.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};to.classNames={fullWidth:Or,zeroRight:_r};var Rh=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _h(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Rh();return t&&e.setAttribute("nonce",t),e}function Oh(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Th(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ph=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_h())&&(Oh(t,n),Th(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ah=function(){var e=Ph();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},mc=function(){var e=Ah(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ih={left:0,top:0,right:0,gap:0},Io=function(e){return parseInt(e||"",10)||0},jh=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[Io(n),Io(r),Io(o)]},$h=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ih;var t=jh(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])}},Lh=mc(),yn="data-scroll-locked",Fh=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(wh,` {
3
- overflow: hidden `).concat(r,`;
4
- padding-right: `).concat(s,"px ").concat(r,`;
5
- }
6
- body[`).concat(yn,`] {
7
- overflow: hidden `).concat(r,`;
8
- overscroll-behavior: contain;
9
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
- padding-left: `.concat(o,`px;
11
- padding-top: `).concat(a,`px;
12
- padding-right: `).concat(i,`px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: `).concat(s,"px ").concat(r,`;
16
- `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
17
- }
18
-
19
- .`).concat(_r,` {
20
- right: `).concat(s,"px ").concat(r,`;
21
- }
22
-
23
- .`).concat(Or,` {
24
- margin-right: `).concat(s,"px ").concat(r,`;
25
- }
26
-
27
- .`).concat(_r," .").concat(_r,` {
28
- right: 0 `).concat(r,`;
29
- }
30
-
31
- .`).concat(Or," .").concat(Or,` {
32
- margin-right: 0 `).concat(r,`;
33
- }
34
-
35
- body[`).concat(yn,`] {
36
- `).concat(xh,": ").concat(s,`px;
37
- }
38
- `)},Hs=function(){var e=parseInt(document.body.getAttribute(yn)||"0",10);return isFinite(e)?e:0},Wh=function(){f.useEffect(function(){return document.body.setAttribute(yn,(Hs()+1).toString()),function(){var e=Hs()-1;e<=0?document.body.removeAttribute(yn):document.body.setAttribute(yn,e.toString())}},[])},Bh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Wh();var a=f.useMemo(function(){return $h(o)},[o]);return f.createElement(Lh,{styles:Fh(a,!t,o,n?"":"!important")})},oa=!1;if(typeof window<"u")try{var xr=Object.defineProperty({},"passive",{get:function(){return oa=!0,!0}});window.addEventListener("test",xr,xr),window.removeEventListener("test",xr,xr)}catch{oa=!1}var mn=oa?{passive:!1}:!1,Yh=function(e){return e.tagName==="TEXTAREA"},pc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Yh(e)&&n[t]==="visible")},Hh=function(e){return pc(e,"overflowY")},zh=function(e){return pc(e,"overflowX")},zs=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=hc(e,r);if(o){var a=gc(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Gh=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Uh=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},hc=function(e,t){return e==="v"?Hh(t):zh(t)},gc=function(e,t){return e==="v"?Gh(t):Uh(t)},qh=function(e,t){return e==="h"&&t==="rtl"?-1:1},Vh=function(e,t,n,r,o){var a=qh(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,c=t.contains(s),u=!1,m=i>0,l=0,p=0;do{if(!s)break;var h=gc(e,s),b=h[0],g=h[1],v=h[2],y=g-v-a*b;(b||y)&&hc(e,s)&&(l+=y,p+=b);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(m&&Math.abs(l)<1||!m&&Math.abs(p)<1)&&(u=!0),u},Sr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gs=function(e){return[e.deltaX,e.deltaY]},Us=function(e){return e&&"current"in e?e.current:e},Kh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Xh=function(e){return`
39
- .block-interactivity-`.concat(e,` {pointer-events: none;}
40
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},Zh=0,pn=[];function Qh(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Zh++)[0],a=f.useState(mc)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=yh([e.lockRef.current],(e.shards||[]).map(Us),!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 s=f.useCallback(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var y=Sr(g),w=n.current,S="deltaX"in g?g.deltaX:w[0]-y[0],E="deltaY"in g?g.deltaY:w[1]-y[1],C,N=g.target,k=Math.abs(S)>Math.abs(E)?"h":"v";if("touches"in g&&k==="h"&&N.type==="range")return!1;var R=zs(k,N);if(!R)return!0;if(R?C=k:(C=k==="v"?"h":"v",R=zs(k,N)),!R)return!1;if(!r.current&&"changedTouches"in g&&(S||E)&&(r.current=C),!C)return!0;var j=r.current||C;return Vh(j,v,g,j==="h"?S:E)},[]),c=f.useCallback(function(g){var v=g;if(!(!pn.length||pn[pn.length-1]!==a)){var y="deltaY"in v?Gs(v):Sr(v),w=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&Kh(C.delta,y)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var S=(i.current.shards||[]).map(Us).filter(Boolean).filter(function(C){return C.contains(v.target)}),E=S.length>0?s(v,S[0]):!i.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),u=f.useCallback(function(g,v,y,w){var S={name:g,delta:v,target:y,should:w,shadowParent:Jh(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),m=f.useCallback(function(g){n.current=Sr(g),r.current=void 0},[]),l=f.useCallback(function(g){u(g.type,Gs(g),g.target,s(g,e.lockRef.current))},[]),p=f.useCallback(function(g){u(g.type,Sr(g),g.target,s(g,e.lockRef.current))},[]);f.useEffect(function(){return pn.push(a),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:p}),document.addEventListener("wheel",c,mn),document.addEventListener("touchmove",c,mn),document.addEventListener("touchstart",m,mn),function(){pn=pn.filter(function(g){return g!==a}),document.removeEventListener("wheel",c,mn),document.removeEventListener("touchmove",c,mn),document.removeEventListener("touchstart",m,mn)}},[]);var h=e.removeScrollBar,b=e.inert;return f.createElement(f.Fragment,null,b?f.createElement(a,{styles:Xh(o)}):null,h?f.createElement(Bh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Jh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const eg=Nh(fc,Qh);var nr=f.forwardRef(function(e,t){return f.createElement(to,ht({},e,{ref:t,sideCar:eg}))});nr.classNames=to.classNames;var tg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},hn=new WeakMap,Cr=new WeakMap,Mr={},jo=0,vc=function(e){return e&&(e.host||vc(e.parentNode))},ng=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=vc(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})},rg=function(e,t,n,r){var o=ng(t,Array.isArray(e)?e:[e]);Mr[n]||(Mr[n]=new WeakMap);var a=Mr[n],i=[],s=new Set,c=new Set(o),u=function(l){!l||s.has(l)||(s.add(l),u(l.parentNode))};o.forEach(u);var m=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(p){if(s.has(p))m(p);else try{var h=p.getAttribute(r),b=h!==null&&h!=="false",g=(hn.get(p)||0)+1,v=(a.get(p)||0)+1;hn.set(p,g),a.set(p,v),i.push(p),g===1&&b&&Cr.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),s.clear(),jo++,function(){i.forEach(function(l){var p=hn.get(l)-1,h=a.get(l)-1;hn.set(l,p),a.set(l,h),p||(Cr.has(l)||l.removeAttribute(r),Cr.delete(l)),h||l.removeAttribute(n)}),jo--,jo||(hn=new WeakMap,hn=new WeakMap,Cr=new WeakMap,Mr={})}},no=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=tg(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),rg(r,o,n,"aria-hidden")):function(){return null}},ro="Dialog",[bc,pD]=Ge(ro),[og,dt]=bc(ro),yc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=f.useRef(null),c=f.useRef(null),[u,m]=ot({prop:r,defaultProp:o??!1,onChange:a,caller:ro});return d.jsx(og,{scope:t,triggerRef:s,contentRef:c,contentId:Oe(),titleId:Oe(),descriptionId:Oe(),open:u,onOpenChange:m,onOpenToggle:f.useCallback(()=>m(l=>!l),[m]),modal:i,children:n})};yc.displayName=ro;var wc="DialogTrigger",xc=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=dt(wc,n),a=he(t,o.triggerRef);return d.jsx(te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ia(o.open),...r,ref:a,onClick:Z(e.onClick,o.onOpenToggle)})});xc.displayName=wc;var Pa="DialogPortal",[ag,Sc]=bc(Pa,{forceMount:void 0}),Cc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=dt(Pa,t);return d.jsx(ag,{scope:t,forceMount:n,children:f.Children.map(r,i=>d.jsx(qe,{present:n||a.open,children:d.jsx(tr,{asChild:!0,container:o,children:i})}))})};Cc.displayName=Pa;var $r="DialogOverlay",Mc=f.forwardRef((e,t)=>{const n=Sc($r,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=dt($r,e.__scopeDialog);return a.modal?d.jsx(qe,{present:r||a.open,children:d.jsx(ig,{...o,ref:t})}):null});Mc.displayName=$r;var sg=Wt("DialogOverlay.RemoveScroll"),ig=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=dt($r,n);return d.jsx(nr,{as:sg,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(te.div,{"data-state":Ia(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),en="DialogContent",Dc=f.forwardRef((e,t)=>{const n=Sc(en,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=dt(en,e.__scopeDialog);return d.jsx(qe,{present:r||a.open,children:a.modal?d.jsx(cg,{...o,ref:t}):d.jsx(lg,{...o,ref:t})})});Dc.displayName=en;var cg=f.forwardRef((e,t)=>{const n=dt(en,e.__scopeDialog),r=f.useRef(null),o=he(t,n.contentRef,r);return f.useEffect(()=>{const a=r.current;if(a)return no(a)},[]),d.jsx(kc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,a=>a.preventDefault())})}),lg=f.forwardRef((e,t)=>{const n=dt(en,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return d.jsx(kc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),kc=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=dt(en,n),c=f.useRef(null),u=he(t,c);return eo(),d.jsxs(d.Fragment,{children:[d.jsx(er,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(Nn,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Ia(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(ug,{titleId:s.titleId}),d.jsx(fg,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Aa="DialogTitle",Ec=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=dt(Aa,n);return d.jsx(te.h2,{id:o.titleId,...r,ref:t})});Ec.displayName=Aa;var Nc="DialogDescription",Rc=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=dt(Nc,n);return d.jsx(te.p,{id:o.descriptionId,...r,ref:t})});Rc.displayName=Nc;var _c="DialogClose",Oc=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=dt(_c,n);return d.jsx(te.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});Oc.displayName=_c;function Ia(e){return e?"open":"closed"}var Tc="DialogTitleWarning",[hD,Pc]=Wp(Tc,{contentName:en,titleName:Aa,docsSlug:"dialog"}),ug=({titleId:e})=>{const t=Pc(Tc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
-
43
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
-
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},dg="DialogDescriptionWarning",fg=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pc(dg).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},ja=yc,Ac=xc,$a=Cc,oo=Mc,ao=Dc,La=Ec,Fa=Rc,Wa=Oc;function Ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dr={exports:{}},$o={};/**
46
- * @license React
47
- * use-sync-external-store-shim.production.js
48
- *
49
- * Copyright (c) Meta Platforms, Inc. and affiliates.
50
- *
51
- * This source code is licensed under the MIT license found in the
52
- * LICENSE file in the root directory of this source tree.
53
- */var qs;function mg(){if(qs)return $o;qs=1;var e=x;function t(l,p){return l===p&&(l!==0||1/l===1/p)||l!==l&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(l,p){var h=p(),b=r({inst:{value:h,getSnapshot:p}}),g=b[0].inst,v=b[1];return a(function(){g.value=h,g.getSnapshot=p,c(g)&&v({inst:g})},[l,h,p]),o(function(){return c(g)&&v({inst:g}),l(function(){c(g)&&v({inst:g})})},[l]),i(h),h}function c(l){var p=l.getSnapshot;l=l.value;try{var h=p();return!n(l,h)}catch{return!0}}function u(l,p){return p()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return $o.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,$o}var Lo={};/**
54
- * @license React
55
- * use-sync-external-store-shim.development.js
56
- *
57
- * Copyright (c) Meta Platforms, Inc. and affiliates.
58
- *
59
- * This source code is licensed under the MIT license found in the
60
- * LICENSE file in the root directory of this source tree.
61
- */var Vs;function pg(){return Vs||(Vs=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(!l){var v=b();a(g,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}v=i({inst:{value:g,getSnapshot:b}});var y=v[0].inst,w=v[1];return c(function(){y.value=g,y.getSnapshot=b,n(y)&&w({inst:y})},[h,g,b]),s(function(){return n(y)&&w({inst:y}),h(function(){n(y)&&w({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=x,a=typeof Object.is=="function"?Object.is:e,i=o.useState,s=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,m=!1,l=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Lo.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())}()),Lo}var Ks;function hg(){return Ks||(Ks=1,process.env.NODE_ENV==="production"?Dr.exports=mg():Dr.exports=pg()),Dr.exports}var gg=hg();function vg(){return gg.useSyncExternalStore(bg,()=>!0,()=>!1)}function bg(){return()=>{}}var Ya="Avatar",[yg,gD]=Ge(Ya),[wg,Ic]=yg(Ya),jc=f.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=f.useState("idle");return d.jsx(wg,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:d.jsx(te.span,{...r,ref:t})})});jc.displayName=Ya;var $c="AvatarImage",Lc=f.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=Ic($c,n),s=xg(r,a),c=at(u=>{o(u),i.onImageLoadingStatusChange(u)});return Ie(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?d.jsx(te.img,{...a,ref:t,src:r}):null});Lc.displayName=$c;var Fc="AvatarFallback",Wc=f.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Ic(Fc,n),[i,s]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(c)}},[r]),i&&a.imageLoadingStatus!=="loaded"?d.jsx(te.span,{...o,ref:t}):null});Wc.displayName=Fc;function Xs(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function xg(e,{referrerPolicy:t,crossOrigin:n}){const r=vg(),o=f.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[i,s]=f.useState(()=>Xs(a,e));return Ie(()=>{s(Xs(a,e))},[a,e]),Ie(()=>{const c=l=>()=>{s(l)};if(!a)return;const u=c("loaded"),m=c("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]),i}var Bc=jc,Yc=Lc,Hc=Wc;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])}function za(e){const[t,n]=f.useState(void 0);return Ie(()=>{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 i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,s=u.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var so="Checkbox",[Sg,vD]=Ge(so),[Cg,Ga]=Sg(so);function Mg(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:c,required:u,value:m="on",internal_do_not_use_render:l}=e,[p,h]=ot({prop:n,defaultProp:o??!1,onChange:c,caller:so}),[b,g]=f.useState(null),[v,y]=f.useState(null),w=f.useRef(!1),S=b?!!i||!!b.closest("form"):!0,E={checked:p,disabled:a,setChecked:h,control:b,setControl:g,name:s,form:i,value:m,hasConsumerStoppedPropagationRef:w,required:u,defaultChecked:Ft(o)?!1:o,isFormControl:S,bubbleInput:v,setBubbleInput:y};return d.jsx(Cg,{scope:t,...E,children:Dg(l)?l(E):r})}var zc="CheckboxTrigger",Gc=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:i,disabled:s,checked:c,required:u,setControl:m,setChecked:l,hasConsumerStoppedPropagationRef:p,isFormControl:h,bubbleInput:b}=Ga(zc,e),g=he(o,m),v=f.useRef(c);return f.useEffect(()=>{const y=a==null?void 0:a.form;if(y){const w=()=>l(v.current);return y.addEventListener("reset",w),()=>y.removeEventListener("reset",w)}},[a,l]),d.jsx(te.button,{type:"button",role:"checkbox","aria-checked":Ft(c)?"mixed":c,"aria-required":u,"data-state":Xc(c),"data-disabled":s?"":void 0,disabled:s,value:i,...r,ref:g,onKeyDown:Z(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:Z(n,y=>{l(w=>Ft(w)?!0:!w),b&&h&&(p.current=y.isPropagationStopped(),p.current||y.stopPropagation())})})});Gc.displayName=zc;var Ua=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:c,onCheckedChange:u,form:m,...l}=e;return d.jsx(Mg,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:u,name:r,form:m,value:c,internal_do_not_use_render:({isFormControl:p})=>d.jsxs(d.Fragment,{children:[d.jsx(Gc,{...l,ref:t,__scopeCheckbox:n}),p&&d.jsx(Kc,{__scopeCheckbox:n})]})})});Ua.displayName=so;var Uc="CheckboxIndicator",qc=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Ga(Uc,n);return d.jsx(qe,{present:r||Ft(a.checked)||a.checked===!0,children:d.jsx(te.span,{"data-state":Xc(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});qc.displayName=Uc;var Vc="CheckboxBubbleInput",Kc=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:c,name:u,value:m,form:l,bubbleInput:p,setBubbleInput:h}=Ga(Vc,e),b=he(n,h),g=Ha(a),v=za(r);f.useEffect(()=>{const w=p;if(!w)return;const S=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(S,"checked").set,N=!o.current;if(g!==a&&C){const k=new Event("click",{bubbles:N});w.indeterminate=Ft(a),C.call(w,Ft(a)?!1:a),w.dispatchEvent(k)}},[p,g,a,o]);const y=f.useRef(Ft(a)?!1:a);return d.jsx(te.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??y.current,required:s,disabled:c,name:u,value:m,form:l,...t,tabIndex:-1,ref:b,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Kc.displayName=Vc;function Dg(e){return typeof e=="function"}function Ft(e){return e==="indeterminate"}function Xc(e){return Ft(e)?"indeterminate":e?"checked":"unchecked"}const kg=["top","right","bottom","left"],Bt=Math.min,et=Math.max,Lr=Math.round,kr=Math.floor,bt=e=>({x:e,y:e}),Eg={left:"right",right:"left",bottom:"top",top:"bottom"},Ng={start:"end",end:"start"};function aa(e,t,n){return et(e,Bt(t,n))}function Nt(e,t){return typeof e=="function"?e(t):e}function Rt(e){return e.split("-")[0]}function Rn(e){return e.split("-")[1]}function qa(e){return e==="x"?"y":"x"}function Va(e){return e==="y"?"height":"width"}const Rg=new Set(["top","bottom"]);function gt(e){return Rg.has(Rt(e))?"y":"x"}function Ka(e){return qa(gt(e))}function _g(e,t,n){n===void 0&&(n=!1);const r=Rn(e),o=Ka(e),a=Va(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Fr(i)),[i,Fr(i)]}function Og(e){const t=Fr(e);return[sa(e),t,sa(t)]}function sa(e){return e.replace(/start|end/g,t=>Ng[t])}const Zs=["left","right"],Qs=["right","left"],Tg=["top","bottom"],Pg=["bottom","top"];function Ag(e,t,n){switch(e){case"top":case"bottom":return n?t?Qs:Zs:t?Zs:Qs;case"left":case"right":return t?Tg:Pg;default:return[]}}function Ig(e,t,n,r){const o=Rn(e);let a=Ag(Rt(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(sa)))),a}function Fr(e){return e.replace(/left|right|bottom|top/g,t=>Eg[t])}function jg(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zc(e){return typeof e!="number"?jg(e):{top:e,right:e,bottom:e,left:e}}function Wr(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 Js(e,t,n){let{reference:r,floating:o}=e;const a=gt(t),i=Ka(t),s=Va(i),c=Rt(t),u=a==="y",m=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let h;switch(c){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:l};break;case"left":h={x:r.x-o.width,y:l};break;default:h={x:r.x,y:r.y}}switch(Rn(t)){case"start":h[i]-=p*(n&&u?-1:1);break;case"end":h[i]+=p*(n&&u?-1:1);break}return h}const $g=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:l}=Js(u,r,c),p=r,h={},b=0;for(let g=0;g<s.length;g++){const{name:v,fn:y}=s[g],{x:w,y:S,data:E,reset:C}=await y({x:m,y:l,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});m=w??m,l=S??l,h={...h,[v]:{...h[v],...E}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:m,y:l}=Js(u,p,c)),g=-1)}return{x:m,y:l,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:i,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:l="floating",altBoundary:p=!1,padding:h=0}=Nt(t,e),b=Zc(h),v=s[p?l==="floating"?"reference":"floating":l],y=Wr(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(s.floating)),boundary:u,rootBoundary:m,strategy:c})),w=l==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),E=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=Wr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:S,strategy:c}):w);return{top:(y.top-C.top+b.top)/E.y,bottom:(C.bottom-y.bottom+b.bottom)/E.y,left:(y.left-C.left+b.left)/E.x,right:(C.right-y.right+b.right)/E.x}}const Lg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:u,padding:m=0}=Nt(e,t)||{};if(u==null)return{};const l=Zc(m),p={x:n,y:r},h=Ka(o),b=Va(h),g=await i.getDimensions(u),v=h==="y",y=v?"top":"left",w=v?"bottom":"right",S=v?"clientHeight":"clientWidth",E=a.reference[b]+a.reference[h]-p[h]-a.floating[b],C=p[h]-a.reference[h],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let k=N?N[S]:0;(!k||!await(i.isElement==null?void 0:i.isElement(N)))&&(k=s.floating[S]||a.floating[b]);const R=E/2-C/2,j=k/2-g[b]/2-1,$=Bt(l[y],j),W=Bt(l[w],j),U=$,B=k-g[b]-W,I=k/2-g[b]/2+R,_=aa(U,I,B),M=!c.arrow&&Rn(o)!=null&&I!==_&&a.reference[b]/2-(I<U?$:W)-g[b]/2<0,P=M?I<U?I-U:I-B:0;return{[h]:p[h]+P,data:{[h]:_,centerOffset:I-_-P,...M&&{alignmentOffset:P}},reset:M}}}),Fg=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:m=!0,crossAxis:l=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...v}=Nt(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Rt(o),w=gt(s),S=Rt(s)===s,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),C=p||(S||!g?[Fr(s)]:Og(s)),N=b!=="none";!p&&N&&C.push(...Ig(s,g,b,E));const k=[s,...C],R=await Un(t,v),j=[];let $=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&j.push(R[y]),l){const I=_g(o,i,E);j.push(R[I[0]],R[I[1]])}if($=[...$,{placement:o,overflows:j}],!j.every(I=>I<=0)){var W,U;const I=(((W=a.flip)==null?void 0:W.index)||0)+1,_=k[I];if(_&&(!(l==="alignment"?w!==gt(_):!1)||$.every(D=>gt(D.placement)===w?D.overflows[0]>0:!0)))return{data:{index:I,overflows:$},reset:{placement:_}};let M=(U=$.filter(P=>P.overflows[0]<=0).sort((P,D)=>P.overflows[1]-D.overflows[1])[0])==null?void 0:U.placement;if(!M)switch(h){case"bestFit":{var B;const P=(B=$.filter(D=>{if(N){const T=gt(D.placement);return T===w||T==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(T=>T>0).reduce((T,Y)=>T+Y,0)]).sort((D,T)=>D[1]-T[1])[0])==null?void 0:B[0];P&&(M=P);break}case"initialPlacement":M=s;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function ei(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ti(e){return kg.some(t=>e[t]>=0)}const Wg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Nt(e,t);switch(r){case"referenceHidden":{const a=await Un(t,{...o,elementContext:"reference"}),i=ei(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ti(i)}}}case"escaped":{const a=await Un(t,{...o,altBoundary:!0}),i=ei(a,n.floating);return{data:{escapedOffsets:i,escaped:ti(i)}}}default:return{}}}}},Qc=new Set(["left","top"]);async function Bg(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Rt(n),s=Rn(n),c=gt(n)==="y",u=Qc.has(i)?-1:1,m=a&&c?-1:1,l=Nt(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:b}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return s&&typeof b=="number"&&(h=s==="end"?b*-1:b),c?{x:h*m,y:p*u}:{x:p*u,y:h*m}}const Yg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await Bg(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},Hg=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:i=!1,limiter:s={fn:v=>{let{x:y,y:w}=v;return{x:y,y:w}}},...c}=Nt(e,t),u={x:n,y:r},m=await Un(t,c),l=gt(Rt(o)),p=qa(l);let h=u[p],b=u[l];if(a){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=h+m[v],S=h-m[y];h=aa(w,h,S)}if(i){const v=l==="y"?"top":"left",y=l==="y"?"bottom":"right",w=b+m[v],S=b-m[y];b=aa(w,b,S)}const g=s.fn({...t,[p]:h,[l]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:a,[l]:i}}}}}},zg=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=Nt(e,t),m={x:n,y:r},l=gt(o),p=qa(l);let h=m[p],b=m[l];const g=Nt(s,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const S=p==="y"?"height":"width",E=a.reference[p]-a.floating[S]+v.mainAxis,C=a.reference[p]+a.reference[S]-v.mainAxis;h<E?h=E:h>C&&(h=C)}if(u){var y,w;const S=p==="y"?"width":"height",E=Qc.has(Rt(o)),C=a.reference[l]-a.floating[S]+(E&&((y=i.offset)==null?void 0:y[l])||0)+(E?0:v.crossAxis),N=a.reference[l]+a.reference[S]+(E?0:((w=i.offset)==null?void 0:w[l])||0)-(E?v.crossAxis:0);b<C?b=C:b>N&&(b=N)}return{[p]:h,[l]:b}}}},Gg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...u}=Nt(e,t),m=await Un(t,u),l=Rt(o),p=Rn(o),h=gt(o)==="y",{width:b,height:g}=a.floating;let v,y;l==="top"||l==="bottom"?(v=l,y=p===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=l,v=p==="end"?"top":"bottom");const w=g-m.top-m.bottom,S=b-m.left-m.right,E=Bt(g-m[v],w),C=Bt(b-m[y],S),N=!t.middlewareData.shift;let k=E,R=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=w),N&&!p){const $=et(m.left,0),W=et(m.right,0),U=et(m.top,0),B=et(m.bottom,0);h?R=b-2*($!==0||W!==0?$+W:et(m.left,m.right)):k=g-2*(U!==0||B!==0?U+B:et(m.top,m.bottom))}await c({...t,availableWidth:R,availableHeight:k});const j=await i.getDimensions(s.floating);return b!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}};function io(){return typeof window<"u"}function _n(e){return Jc(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wt(e){var t;return(t=(Jc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jc(e){return io()?e instanceof Node||e instanceof tt(e).Node:!1}function lt(e){return io()?e instanceof Element||e instanceof tt(e).Element:!1}function yt(e){return io()?e instanceof HTMLElement||e instanceof tt(e).HTMLElement:!1}function ni(e){return!io()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}const Ug=new Set(["inline","contents"]);function rr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ug.has(o)}const qg=new Set(["table","td","th"]);function Vg(e){return qg.has(_n(e))}const Kg=[":popover-open",":modal"];function co(e){return Kg.some(t=>{try{return e.matches(t)}catch{return!1}})}const Xg=["transform","translate","scale","rotate","perspective"],Zg=["transform","translate","scale","rotate","perspective","filter"],Qg=["paint","layout","strict","content"];function Xa(e){const t=Za(),n=lt(e)?ut(e):e;return Xg.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)||Zg.some(r=>(n.willChange||"").includes(r))||Qg.some(r=>(n.contain||"").includes(r))}function Jg(e){let t=Yt(e);for(;yt(t)&&!xn(t);){if(Xa(t))return t;if(co(t))return null;t=Yt(t)}return null}function Za(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ev=new Set(["html","body","#document"]);function xn(e){return ev.has(_n(e))}function ut(e){return tt(e).getComputedStyle(e)}function lo(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yt(e){if(_n(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ni(e)&&e.host||wt(e);return ni(t)?t.host:t}function el(e){const t=Yt(e);return xn(t)?e.ownerDocument?e.ownerDocument.body:e.body:yt(t)&&rr(t)?t:el(t)}function qn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=el(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=tt(o);if(a){const s=ia(i);return t.concat(i,i.visualViewport||[],rr(o)?o:[],s&&n?qn(s):[])}return t.concat(o,qn(o,[],n))}function ia(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tl(e){const t=ut(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=yt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Lr(n)!==a||Lr(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Qa(e){return lt(e)?e:e.contextElement}function wn(e){const t=Qa(e);if(!yt(t))return bt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=tl(t);let i=(a?Lr(n.width):n.width)/r,s=(a?Lr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const tv=bt(0);function nl(e){const t=tt(e);return!Za()||!t.visualViewport?tv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tt(e)?!1:t}function tn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Qa(e);let i=bt(1);t&&(r?lt(r)&&(i=wn(r)):i=wn(e));const s=nv(a,n,r)?nl(a):bt(0);let c=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,m=o.width/i.x,l=o.height/i.y;if(a){const p=tt(a),h=r&&lt(r)?tt(r):r;let b=p,g=ia(b);for(;g&&r&&h!==b;){const v=wn(g),y=g.getBoundingClientRect(),w=ut(g),S=y.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,E=y.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;c*=v.x,u*=v.y,m*=v.x,l*=v.y,c+=S,u+=E,b=tt(g),g=ia(b)}}return Wr({width:m,height:l,x:c,y:u})}function uo(e,t){const n=lo(e).scrollLeft;return t?t.left+n:tn(wt(e)).left+n}function rl(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-uo(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function rv(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=wt(r),s=t?co(t.floating):!1;if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},u=bt(1);const m=bt(0),l=yt(r);if((l||!l&&!a)&&((_n(r)!=="body"||rr(i))&&(c=lo(r)),yt(r))){const h=tn(r);u=wn(r),m.x=h.x+r.clientLeft,m.y=h.y+r.clientTop}const p=i&&!l&&!a?rl(i,c):bt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+m.x+p.x,y:n.y*u.y-c.scrollTop*u.y+m.y+p.y}}function ov(e){return Array.from(e.getClientRects())}function av(e){const t=wt(e),n=lo(e),r=e.ownerDocument.body,o=et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+uo(e);const s=-n.scrollTop;return ut(r).direction==="rtl"&&(i+=et(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}const ri=25;function sv(e,t){const n=tt(e),r=wt(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const m=Za();(!m||m&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const u=uo(r);if(u<=0){const m=r.ownerDocument,l=m.body,p=getComputedStyle(l),h=m.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(r.clientWidth-l.clientWidth-h);b<=ri&&(a-=b)}else u<=ri&&(a+=u);return{width:a,height:i,x:s,y:c}}const iv=new Set(["absolute","fixed"]);function cv(e,t){const n=tn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=yt(e)?wn(e):bt(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,u=r*a.y;return{width:i,height:s,x:c,y:u}}function oi(e,t,n){let r;if(t==="viewport")r=sv(e,n);else if(t==="document")r=av(wt(e));else if(lt(t))r=cv(t,n);else{const o=nl(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Wr(r)}function ol(e,t){const n=Yt(e);return n===t||!lt(n)||xn(n)?!1:ut(n).position==="fixed"||ol(n,t)}function lv(e,t){const n=t.get(e);if(n)return n;let r=qn(e,[],!1).filter(s=>lt(s)&&_n(s)!=="body"),o=null;const a=ut(e).position==="fixed";let i=a?Yt(e):e;for(;lt(i)&&!xn(i);){const s=ut(i),c=Xa(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&iv.has(o.position)||rr(i)&&!c&&ol(e,i))?r=r.filter(m=>m!==i):o=s,i=Yt(i)}return t.set(e,r),r}function uv(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?co(t)?[]:lv(t,this._c):[].concat(n),r],s=i[0],c=i.reduce((u,m)=>{const l=oi(t,m,o);return u.top=et(l.top,u.top),u.right=Bt(l.right,u.right),u.bottom=Bt(l.bottom,u.bottom),u.left=et(l.left,u.left),u},oi(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function dv(e){const{width:t,height:n}=tl(e);return{width:t,height:n}}function fv(e,t,n){const r=yt(t),o=wt(t),a=n==="fixed",i=tn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=bt(0);function u(){c.x=uo(o)}if(r||!r&&!a)if((_n(t)!=="body"||rr(o))&&(s=lo(t)),r){const h=tn(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&u();a&&!r&&o&&u();const m=o&&!r&&!a?rl(o,s):bt(0),l=i.left+s.scrollLeft-c.x-m.x,p=i.top+s.scrollTop-c.y-m.y;return{x:l,y:p,width:i.width,height:i.height}}function Fo(e){return ut(e).position==="static"}function ai(e,t){if(!yt(e)||ut(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return wt(e)===n&&(n=n.ownerDocument.body),n}function al(e,t){const n=tt(e);if(co(e))return n;if(!yt(e)){let o=Yt(e);for(;o&&!xn(o);){if(lt(o)&&!Fo(o))return o;o=Yt(o)}return n}let r=ai(e,t);for(;r&&Vg(r)&&Fo(r);)r=ai(r,t);return r&&xn(r)&&Fo(r)&&!Xa(r)?n:r||Jg(e)||n}const mv=async function(e){const t=this.getOffsetParent||al,n=this.getDimensions,r=await n(e.floating);return{reference:fv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pv(e){return ut(e).direction==="rtl"}const hv={convertOffsetParentRelativeRectToViewportRelativeRect:rv,getDocumentElement:wt,getClippingRect:uv,getOffsetParent:al,getElementRects:mv,getClientRects:ov,getDimensions:dv,getScale:wn,isElement:lt,isRTL:pv};function sl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gv(e,t){let n=null,r;const o=wt(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:m,top:l,width:p,height:h}=u;if(s||t(),!p||!h)return;const b=kr(l),g=kr(o.clientWidth-(m+p)),v=kr(o.clientHeight-(l+h)),y=kr(m),S={rootMargin:-b+"px "+-g+"px "+-v+"px "+-y+"px",threshold:et(0,Bt(1,c))||1};let E=!0;function C(N){const k=N[0].intersectionRatio;if(k!==c){if(!E)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!sl(u,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(C,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,S)}n.observe(e)}return i(!0),a}function vv(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Qa(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 l=u&&s?gv(u,n):null;let p=-1,h=null;i&&(h=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let b,g=c?tn(e):null;c&&v();function v(){const y=tn(e);g&&!sl(g,y)&&n(),g=y,b=requestAnimationFrame(v)}return n(),()=>{var y;m.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),l==null||l(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(b)}}const bv=Yg,yv=Hg,wv=Fg,xv=Gg,Sv=Wg,si=Lg,Cv=zg,Mv=(e,t,n)=>{const r=new Map,o={platform:hv,...n},a={...o.platform,_c:r};return $g(e,t,{...o,platform:a})};var Dv=typeof document<"u",kv=function(){},Tr=Dv?x.useLayoutEffect:kv;function Br(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(!Br(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)&&!Br(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function il(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ii(e,t){const n=il(e);return Math.round(t*n)/n}function Wo(e){const t=f.useRef(e);return Tr(()=>{t.current=e}),t}function Ev(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[m,l]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=f.useState(r);Br(p,r)||h(r);const[b,g]=f.useState(null),[v,y]=f.useState(null),w=f.useCallback(D=>{D!==N.current&&(N.current=D,g(D))},[]),S=f.useCallback(D=>{D!==k.current&&(k.current=D,y(D))},[]),E=a||b,C=i||v,N=f.useRef(null),k=f.useRef(null),R=f.useRef(m),j=c!=null,$=Wo(c),W=Wo(o),U=Wo(u),B=f.useCallback(()=>{if(!N.current||!k.current)return;const D={placement:t,strategy:n,middleware:p};W.current&&(D.platform=W.current),Mv(N.current,k.current,D).then(T=>{const Y={...T,isPositioned:U.current!==!1};I.current&&!Br(R.current,Y)&&(R.current=Y,Zr.flushSync(()=>{l(Y)}))})},[p,t,n,W,U]);Tr(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,l(D=>({...D,isPositioned:!1})))},[u]);const I=f.useRef(!1);Tr(()=>(I.current=!0,()=>{I.current=!1}),[]),Tr(()=>{if(E&&(N.current=E),C&&(k.current=C),E&&C){if($.current)return $.current(E,C,B);B()}},[E,C,B,$,j]);const _=f.useMemo(()=>({reference:N,floating:k,setReference:w,setFloating:S}),[w,S]),M=f.useMemo(()=>({reference:E,floating:C}),[E,C]),P=f.useMemo(()=>{const D={position:n,left:0,top:0};if(!M.floating)return D;const T=ii(M.floating,m.x),Y=ii(M.floating,m.y);return s?{...D,transform:"translate("+T+"px, "+Y+"px)",...il(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:Y}},[n,s,M.floating,m.x,m.y]);return f.useMemo(()=>({...m,update:B,refs:_,elements:M,floatingStyles:P}),[m,B,_,M,P])}const Nv=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?si({element:r.current,padding:o}).fn(n):{}:r?si({element:r,padding:o}).fn(n):{}}}},Rv=(e,t)=>({...bv(e),options:[e,t]}),_v=(e,t)=>({...yv(e),options:[e,t]}),Ov=(e,t)=>({...Cv(e),options:[e,t]}),Tv=(e,t)=>({...wv(e),options:[e,t]}),Pv=(e,t)=>({...xv(e),options:[e,t]}),Av=(e,t)=>({...Sv(e),options:[e,t]}),Iv=(e,t)=>({...Nv(e),options:[e,t]});var jv="Arrow",cl=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(te.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"})})});cl.displayName=jv;var $v=cl,Ja="Popper",[ll,zt]=Ge(Ja),[Lv,ul]=ll(Ja),dl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return d.jsx(Lv,{scope:t,anchor:r,onAnchorChange:o,children:n})};dl.displayName=Ja;var fl="PopperAnchor",ml=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ul(fl,n),i=f.useRef(null),s=he(t,i),c=f.useRef(null);return f.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||i.current,u!==c.current&&a.onAnchorChange(c.current)}),r?null:d.jsx(te.div,{...o,ref:s})});ml.displayName=fl;var es="PopperContent",[Fv,Wv]=ll(es),pl=f.forwardRef((e,t)=>{var F,K,X,Q,J,ae;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:m=0,sticky:l="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:b,...g}=e,v=ul(es,n),[y,w]=f.useState(null),S=he(t,be=>w(be)),[E,C]=f.useState(null),N=za(E),k=(N==null?void 0:N.width)??0,R=(N==null?void 0:N.height)??0,j=r+(a!=="center"?"-"+a:""),$=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},W=Array.isArray(u)?u:[u],U=W.length>0,B={padding:$,boundary:W.filter(Yv),altBoundary:U},{refs:I,floatingStyles:_,placement:M,isPositioned:P,middlewareData:D}=Ev({strategy:"fixed",placement:j,whileElementsMounted:(...be)=>vv(...be,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[Rv({mainAxis:o+R,alignmentAxis:i}),c&&_v({mainAxis:!0,crossAxis:!1,limiter:l==="partial"?Ov():void 0,...B}),c&&Tv({...B}),Pv({...B,apply:({elements:be,rects:ee,availableWidth:_e,availableHeight:je})=>{const{width:Me,height:Ve}=ee.reference,De=be.floating.style;De.setProperty("--radix-popper-available-width",`${_e}px`),De.setProperty("--radix-popper-available-height",`${je}px`),De.setProperty("--radix-popper-anchor-width",`${Me}px`),De.setProperty("--radix-popper-anchor-height",`${Ve}px`)}}),E&&Iv({element:E,padding:s}),Hv({arrowWidth:k,arrowHeight:R}),p&&Av({strategy:"referenceHidden",...B})]}),[T,Y]=vl(M),z=at(b);Ie(()=>{P&&(z==null||z())},[P,z]);const O=(F=D.arrow)==null?void 0:F.x,A=(K=D.arrow)==null?void 0:K.y,H=((X=D.arrow)==null?void 0:X.centerOffset)!==0,[G,q]=f.useState();return Ie(()=>{y&&q(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:P?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[(Q=D.transformOrigin)==null?void 0:Q.x,(J=D.transformOrigin)==null?void 0:J.y].join(" "),...((ae=D.hide)==null?void 0:ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Fv,{scope:n,placedSide:T,onArrowChange:C,arrowX:O,arrowY:A,shouldHideArrow:H,children:d.jsx(te.div,{"data-side":T,"data-align":Y,...g,ref:S,style:{...g.style,animation:P?void 0:"none"}})})})});pl.displayName=es;var hl="PopperArrow",Bv={top:"bottom",right:"left",bottom:"top",left:"right"},gl=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Wv(hl,r),i=Bv[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]: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($v,{...o,ref:n,style:{...o.style,display:"block"}})})});gl.displayName=hl;function Yv(e){return e!==null}var Hv=e=>({name:"transformOrigin",options:e,fn(t){var v,y,w;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,m]=vl(n),l={start:"0%",center:"50%",end:"100%"}[m],p=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let b="",g="";return u==="bottom"?(b=i?l:`${p}px`,g=`${-c}px`):u==="top"?(b=i?l:`${p}px`,g=`${r.floating.height+c}px`):u==="right"?(b=`${-c}px`,g=i?l:`${h}px`):u==="left"&&(b=`${r.floating.width+c}px`,g=i?l:`${h}px`),{data:{x:b,y:g}}}});function vl(e){const[t,n="center"]=e.split("-");return[t,n]}var or=dl,ar=ml,fo=pl,mo=gl,Bo="rovingFocusGroup.onEntryFocus",zv={bubbles:!1,cancelable:!0},sr="RovingFocusGroup",[ca,bl,Gv]=Ra(sr),[Uv,On]=Ge(sr,[Gv]),[qv,Vv]=Uv(sr),yl=f.forwardRef((e,t)=>d.jsx(ca.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(ca.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Kv,{...e,ref:t})})}));yl.displayName=sr;var Kv=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:m=!1,...l}=e,p=f.useRef(null),h=he(t,p),b=Jn(a),[g,v]=ot({prop:i,defaultProp:s??null,onChange:c,caller:sr}),[y,w]=f.useState(!1),S=at(u),E=bl(n),C=f.useRef(!1),[N,k]=f.useState(0);return f.useEffect(()=>{const R=p.current;if(R)return R.addEventListener(Bo,S),()=>R.removeEventListener(Bo,S)},[S]),d.jsx(qv,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:g,onItemFocus:f.useCallback(R=>v(R),[v]),onItemShiftTab:f.useCallback(()=>w(!0),[]),onFocusableItemAdd:f.useCallback(()=>k(R=>R+1),[]),onFocusableItemRemove:f.useCallback(()=>k(R=>R-1),[]),children:d.jsx(te.div,{tabIndex:y||N===0?-1:0,"data-orientation":r,...l,ref:h,style:{outline:"none",...e.style},onMouseDown:Z(e.onMouseDown,()=>{C.current=!0}),onFocus:Z(e.onFocus,R=>{const j=!C.current;if(R.target===R.currentTarget&&j&&!y){const $=new CustomEvent(Bo,zv);if(R.currentTarget.dispatchEvent($),!$.defaultPrevented){const W=E().filter(M=>M.focusable),U=W.find(M=>M.active),B=W.find(M=>M.id===g),_=[U,B,...W].filter(Boolean).map(M=>M.ref.current);Sl(_,m)}}C.current=!1}),onBlur:Z(e.onBlur,()=>w(!1))})})}),wl="RovingFocusGroupItem",xl=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,c=Oe(),u=a||c,m=Vv(wl,n),l=m.currentTabStopId===u,p=bl(n),{onFocusableItemAdd:h,onFocusableItemRemove:b,currentTabStopId:g}=m;return f.useEffect(()=>{if(r)return h(),()=>b()},[r,h,b]),d.jsx(ca.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:d.jsx(te.span,{tabIndex:l?0:-1,"data-orientation":m.orientation,...s,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=Qv(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(E=>E.focusable).map(E=>E.ref.current);if(y==="last")S.reverse();else if(y==="prev"||y==="next"){y==="prev"&&S.reverse();const E=S.indexOf(v.currentTarget);S=m.loop?Jv(S,E+1):S.slice(E+1)}setTimeout(()=>Sl(S))}}),children:typeof i=="function"?i({isCurrentTabStop:l,hasTabStop:g!=null}):i})})});xl.displayName=wl;var Xv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Zv(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Qv(e,t,n){const r=Zv(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Xv[r]}function Sl(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Jv(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ts=yl,ns=xl,la=["Enter"," "],eb=["ArrowDown","PageUp","Home"],Cl=["ArrowUp","PageDown","End"],tb=[...eb,...Cl],nb={ltr:[...la,"ArrowRight"],rtl:[...la,"ArrowLeft"]},rb={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ir="Menu",[Vn,ob,ab]=Ra(ir),[an,Ml]=Ge(ir,[ab,zt,On]),cr=zt(),Dl=On(),[kl,Gt]=an(ir),[sb,lr]=an(ir),El=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=cr(t),[c,u]=f.useState(null),m=f.useRef(!1),l=at(a),p=Jn(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(or,{...s,children:d.jsx(kl,{scope:t,open:n,onOpenChange:l,content:c,onContentChange:u,children:d.jsx(sb,{scope:t,onClose:f.useCallback(()=>l(!1),[l]),isUsingKeyboardRef:m,dir:p,modal:i,children:r})})})};El.displayName=ir;var ib="MenuAnchor",rs=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=cr(n);return d.jsx(ar,{...o,...r,ref:t})});rs.displayName=ib;var os="MenuPortal",[cb,Nl]=an(os,{forceMount:void 0}),Rl=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Gt(os,t);return d.jsx(cb,{scope:t,forceMount:n,children:d.jsx(qe,{present:n||a.open,children:d.jsx(tr,{asChild:!0,container:o,children:r})})})};Rl.displayName=os;var rt="MenuContent",[lb,as]=an(rt),_l=f.forwardRef((e,t)=>{const n=Nl(rt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Gt(rt,e.__scopeMenu),i=lr(rt,e.__scopeMenu);return d.jsx(Vn.Provider,{scope:e.__scopeMenu,children:d.jsx(qe,{present:r||a.open,children:d.jsx(Vn.Slot,{scope:e.__scopeMenu,children:i.modal?d.jsx(ub,{...o,ref:t}):d.jsx(db,{...o,ref:t})})})})}),ub=f.forwardRef((e,t)=>{const n=Gt(rt,e.__scopeMenu),r=f.useRef(null),o=he(t,r);return f.useEffect(()=>{const a=r.current;if(a)return no(a)},[]),d.jsx(ss,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Z(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),db=f.forwardRef((e,t)=>{const n=Gt(rt,e.__scopeMenu);return d.jsx(ss,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),fb=Wt("MenuContent.ScrollLock"),ss=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:l,onInteractOutside:p,onDismiss:h,disableOutsideScroll:b,...g}=e,v=Gt(rt,n),y=lr(rt,n),w=cr(n),S=Dl(n),E=ob(n),[C,N]=f.useState(null),k=f.useRef(null),R=he(t,k,v.onContentChange),j=f.useRef(0),$=f.useRef(""),W=f.useRef(0),U=f.useRef(null),B=f.useRef("right"),I=f.useRef(0),_=b?nr:f.Fragment,M=b?{as:fb,allowPinchZoom:!0}:void 0,P=T=>{var F,K;const Y=$.current+T,z=E().filter(X=>!X.disabled),O=document.activeElement,A=(F=z.find(X=>X.ref.current===O))==null?void 0:F.textValue,H=z.map(X=>X.textValue),G=Mb(H,Y,A),q=(K=z.find(X=>X.textValue===G))==null?void 0:K.ref.current;(function X(Q){$.current=Q,window.clearTimeout(j.current),Q!==""&&(j.current=window.setTimeout(()=>X(""),1e3))})(Y),q&&setTimeout(()=>q.focus())};f.useEffect(()=>()=>window.clearTimeout(j.current),[]),eo();const D=f.useCallback(T=>{var z,O;return B.current===((z=U.current)==null?void 0:z.side)&&kb(T,(O=U.current)==null?void 0:O.area)},[]);return d.jsx(lb,{scope:n,searchRef:$,onItemEnter:f.useCallback(T=>{D(T)&&T.preventDefault()},[D]),onItemLeave:f.useCallback(T=>{var Y;D(T)||((Y=k.current)==null||Y.focus(),N(null))},[D]),onTriggerLeave:f.useCallback(T=>{D(T)&&T.preventDefault()},[D]),pointerGraceTimerRef:W,onPointerGraceIntentChange:f.useCallback(T=>{U.current=T},[]),children:d.jsx(_,{...M,children:d.jsx(er,{asChild:!0,trapped:o,onMountAutoFocus:Z(a,T=>{var Y;T.preventDefault(),(Y=k.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:d.jsx(Nn,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:l,onInteractOutside:p,onDismiss:h,children:d.jsx(ts,{asChild:!0,...S,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:N,onEntryFocus:Z(c,T=>{y.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(fo,{role:"menu","aria-orientation":"vertical","data-state":ql(v.open),"data-radix-menu-content":"",dir:y.dir,...w,...g,ref:R,style:{outline:"none",...g.style},onKeyDown:Z(g.onKeyDown,T=>{const z=T.target.closest("[data-radix-menu-content]")===T.currentTarget,O=T.ctrlKey||T.altKey||T.metaKey,A=T.key.length===1;z&&(T.key==="Tab"&&T.preventDefault(),!O&&A&&P(T.key));const H=k.current;if(T.target!==H||!tb.includes(T.key))return;T.preventDefault();const q=E().filter(F=>!F.disabled).map(F=>F.ref.current);Cl.includes(T.key)&&q.reverse(),Sb(q)}),onBlur:Z(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(j.current),$.current="")}),onPointerMove:Z(e.onPointerMove,Kn(T=>{const Y=T.target,z=I.current!==T.clientX;if(T.currentTarget.contains(Y)&&z){const O=T.clientX>I.current?"right":"left";B.current=O,I.current=T.clientX}}))})})})})})})});_l.displayName=rt;var mb="MenuGroup",is=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(te.div,{role:"group",...r,ref:t})});is.displayName=mb;var pb="MenuLabel",Ol=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(te.div,{...r,ref:t})});Ol.displayName=pb;var Yr="MenuItem",ci="menu.itemSelect",po=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=f.useRef(null),i=lr(Yr,e.__scopeMenu),s=as(Yr,e.__scopeMenu),c=he(t,a),u=f.useRef(!1),m=()=>{const l=a.current;if(!n&&l){const p=new CustomEvent(ci,{bubbles:!0,cancelable:!0});l.addEventListener(ci,h=>r==null?void 0:r(h),{once:!0}),ec(l,p),p.defaultPrevented?u.current=!1:i.onClose()}};return d.jsx(Tl,{...o,ref:c,disabled:n,onClick:Z(e.onClick,m),onPointerDown:l=>{var p;(p=e.onPointerDown)==null||p.call(e,l),u.current=!0},onPointerUp:Z(e.onPointerUp,l=>{var p;u.current||(p=l.currentTarget)==null||p.click()}),onKeyDown:Z(e.onKeyDown,l=>{const p=s.searchRef.current!=="";n||p&&l.key===" "||la.includes(l.key)&&(l.currentTarget.click(),l.preventDefault())})})});po.displayName=Yr;var Tl=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=as(Yr,n),s=Dl(n),c=f.useRef(null),u=he(t,c),[m,l]=f.useState(!1),[p,h]=f.useState("");return f.useEffect(()=>{const b=c.current;b&&h((b.textContent??"").trim())},[a.children]),d.jsx(Vn.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:d.jsx(ns,{asChild:!0,...s,focusable:!r,children:d.jsx(te.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,Kn(b=>{r?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Z(e.onPointerLeave,Kn(b=>i.onItemLeave(b))),onFocus:Z(e.onFocus,()=>l(!0)),onBlur:Z(e.onBlur,()=>l(!1))})})})}),hb="MenuCheckboxItem",Pl=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return d.jsx(Ll,{scope:e.__scopeMenu,checked:n,children:d.jsx(po,{role:"menuitemcheckbox","aria-checked":Hr(n)?"mixed":n,...o,ref:t,"data-state":us(n),onSelect:Z(o.onSelect,()=>r==null?void 0:r(Hr(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Pl.displayName=hb;var Al="MenuRadioGroup",[gb,vb]=an(Al,{value:void 0,onValueChange:()=>{}}),Il=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=at(r);return d.jsx(gb,{scope:e.__scopeMenu,value:n,onValueChange:a,children:d.jsx(is,{...o,ref:t})})});Il.displayName=Al;var jl="MenuRadioItem",$l=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=vb(jl,e.__scopeMenu),a=n===o.value;return d.jsx(Ll,{scope:e.__scopeMenu,checked:a,children:d.jsx(po,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":us(a),onSelect:Z(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});$l.displayName=jl;var cs="MenuItemIndicator",[Ll,bb]=an(cs,{checked:!1}),Fl=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=bb(cs,n);return d.jsx(qe,{present:r||Hr(a.checked)||a.checked===!0,children:d.jsx(te.span,{...o,ref:t,"data-state":us(a.checked)})})});Fl.displayName=cs;var yb="MenuSeparator",Wl=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(te.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Wl.displayName=yb;var wb="MenuArrow",Bl=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=cr(n);return d.jsx(mo,{...o,...r,ref:t})});Bl.displayName=wb;var ls="MenuSub",[xb,Yl]=an(ls),Hl=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Gt(ls,t),i=cr(t),[s,c]=f.useState(null),[u,m]=f.useState(null),l=at(o);return f.useEffect(()=>(a.open===!1&&l(!1),()=>l(!1)),[a.open,l]),d.jsx(or,{...i,children:d.jsx(kl,{scope:t,open:r,onOpenChange:l,content:u,onContentChange:m,children:d.jsx(xb,{scope:t,contentId:Oe(),triggerId:Oe(),trigger:s,onTriggerChange:c,children:n})})})};Hl.displayName=ls;var Yn="MenuSubTrigger",zl=f.forwardRef((e,t)=>{const n=Gt(Yn,e.__scopeMenu),r=lr(Yn,e.__scopeMenu),o=Yl(Yn,e.__scopeMenu),a=as(Yn,e.__scopeMenu),i=f.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,u={__scopeMenu:e.__scopeMenu},m=f.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return f.useEffect(()=>m,[m]),f.useEffect(()=>{const l=s.current;return()=>{window.clearTimeout(l),c(null)}},[s,c]),d.jsx(rs,{asChild:!0,...u,children:d.jsx(Tl,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":ql(n.open),...e,ref:Et(t,o.onTriggerChange),onClick:l=>{var p;(p=e.onClick)==null||p.call(e,l),!(e.disabled||l.defaultPrevented)&&(l.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Z(e.onPointerMove,Kn(l=>{a.onItemEnter(l),!l.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:Z(e.onPointerLeave,Kn(l=>{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,w=p[v?"left":"right"],S=p[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:l.clientX+y,y:l.clientY},{x:w,y:p.top},{x:S,y:p.top},{x:S,y:p.bottom},{x:w,y:p.bottom}],side:g}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(l),l.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Z(e.onKeyDown,l=>{var h;const p=a.searchRef.current!=="";e.disabled||p&&l.key===" "||nb[r.dir].includes(l.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),l.preventDefault())})})})});zl.displayName=Yn;var Gl="MenuSubContent",Ul=f.forwardRef((e,t)=>{const n=Nl(rt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Gt(rt,e.__scopeMenu),i=lr(rt,e.__scopeMenu),s=Yl(Gl,e.__scopeMenu),c=f.useRef(null),u=he(t,c);return d.jsx(Vn.Provider,{scope:e.__scopeMenu,children:d.jsx(qe,{present:r||a.open,children:d.jsx(Vn.Slot,{scope:e.__scopeMenu,children:d.jsx(ss,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var l;i.isUsingKeyboardRef.current&&((l=c.current)==null||l.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:Z(e.onFocusOutside,m=>{m.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Z(e.onEscapeKeyDown,m=>{i.onClose(),m.preventDefault()}),onKeyDown:Z(e.onKeyDown,m=>{var h;const l=m.currentTarget.contains(m.target),p=rb[i.dir].includes(m.key);l&&p&&(a.onOpenChange(!1),(h=s.trigger)==null||h.focus(),m.preventDefault())})})})})})});Ul.displayName=Gl;function ql(e){return e?"open":"closed"}function Hr(e){return e==="indeterminate"}function us(e){return Hr(e)?"indeterminate":e?"checked":"unchecked"}function Sb(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Cb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Mb(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 i=Cb(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const c=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Db(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],c=t[i],u=s.x,m=s.y,l=c.x,p=c.y;m>r!=p>r&&n<(l-u)*(r-m)/(p-m)+u&&(o=!o)}return o}function kb(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Db(n,t)}function Kn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Eb=El,Nb=rs,Rb=Rl,_b=_l,Ob=is,Tb=Ol,Pb=po,Ab=Pl,Ib=Il,jb=$l,$b=Fl,Lb=Wl,Fb=Bl,Wb=Hl,Bb=zl,Yb=Ul,ho="DropdownMenu",[Hb,bD]=Ge(ho,[Ml]),Ue=Ml(),[zb,Vl]=Hb(ho),Kl=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,c=Ue(t),u=f.useRef(null),[m,l]=ot({prop:o,defaultProp:a??!1,onChange:i,caller:ho});return d.jsx(zb,{scope:t,triggerId:Oe(),triggerRef:u,contentId:Oe(),open:m,onOpenChange:l,onOpenToggle:f.useCallback(()=>l(p=>!p),[l]),modal:s,children:d.jsx(Eb,{...c,open:m,onOpenChange:l,dir:r,modal:s,children:n})})};Kl.displayName=ho;var Xl="DropdownMenuTrigger",Zl=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Vl(Xl,n),i=Ue(n);return d.jsx(Nb,{asChild:!0,...i,children:d.jsx(te.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:Et(t,a.triggerRef),onPointerDown:Z(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:Z(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Zl.displayName=Xl;var Gb="DropdownMenuPortal",Ql=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ue(t);return d.jsx(Rb,{...r,...n})};Ql.displayName=Gb;var Jl="DropdownMenuContent",eu=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Vl(Jl,n),a=Ue(n),i=f.useRef(!1);return d.jsx(_b,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:Z(e.onCloseAutoFocus,s=>{var c;i.current||(c=o.triggerRef.current)==null||c.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:Z(e.onInteractOutside,s=>{const c=s.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,m=c.button===2||u;(!o.modal||m)&&(i.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)"}})});eu.displayName=Jl;var Ub="DropdownMenuGroup",tu=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ue(n);return d.jsx(Ob,{...o,...r,ref:t})});tu.displayName=Ub;var qb="DropdownMenuLabel",nu=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ue(n);return d.jsx(Tb,{...o,...r,ref:t})});nu.displayName=qb;var Vb="DropdownMenuItem",ru=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ue(n);return d.jsx(Pb,{...o,...r,ref:t})});ru.displayName=Vb;var Kb="DropdownMenuCheckboxItem",ou=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ue(n);return d.jsx(Ab,{...o,...r,ref:t})});ou.displayName=Kb;var Xb="DropdownMenuRadioGroup",au=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ue(n);return d.jsx(Ib,{...o,...r,ref:t})});au.displayName=Xb;var Zb="DropdownMenuRadioItem",su=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ue(n);return d.jsx(jb,{...o,...r,ref:t})});su.displayName=Zb;var Qb="DropdownMenuItemIndicator",iu=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ue(n);return d.jsx($b,{...o,...r,ref:t})});iu.displayName=Qb;var Jb="DropdownMenuSeparator",cu=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ue(n);return d.jsx(Lb,{...o,...r,ref:t})});cu.displayName=Jb;var ey="DropdownMenuArrow",ty=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ue(n);return d.jsx(Fb,{...o,...r,ref:t})});ty.displayName=ey;var ny=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=Ue(t),[s,c]=ot({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return d.jsx(Wb,{...i,open:s,onOpenChange:c,children:n})},ry="DropdownMenuSubTrigger",lu=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ue(n);return d.jsx(Bb,{...o,...r,ref:t})});lu.displayName=ry;var oy="DropdownMenuSubContent",uu=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ue(n);return d.jsx(Yb,{...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)"}})});uu.displayName=oy;var ay=Kl,du=Zl,sy=Ql,fu=eu,iy=tu,mu=nu,pu=ru,hu=ou,cy=au,gu=su,vu=iu,bu=cu,ly=ny,yu=lu,wu=uu,uy="Label",xu=f.forwardRef((e,t)=>d.jsx(te.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())}}));xu.displayName=uy;var Su=xu;function li(e,[t,n]){return Math.min(n,Math.max(t,e))}var go="Popover",[Cu,yD]=Ge(go,[zt]),ur=zt(),[dy,Ut]=Cu(go),Mu=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=ur(t),c=f.useRef(null),[u,m]=f.useState(!1),[l,p]=ot({prop:r,defaultProp:o??!1,onChange:a,caller:go});return d.jsx(or,{...s,children:d.jsx(dy,{scope:t,contentId:Oe(),triggerRef:c,open:l,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(h=>!h),[p]),hasCustomAnchor:u,onCustomAnchorAdd:f.useCallback(()=>m(!0),[]),onCustomAnchorRemove:f.useCallback(()=>m(!1),[]),modal:i,children:n})})};Mu.displayName=go;var Du="PopoverAnchor",fy=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ut(Du,n),a=ur(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return f.useEffect(()=>(i(),()=>s()),[i,s]),d.jsx(ar,{...a,...r,ref:t})});fy.displayName=Du;var ku="PopoverTrigger",Eu=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ut(ku,n),a=ur(n),i=he(t,o.triggerRef),s=d.jsx(te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Tu(o.open),...r,ref:i,onClick:Z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:d.jsx(ar,{asChild:!0,...a,children:s})});Eu.displayName=ku;var ds="PopoverPortal",[my,py]=Cu(ds,{forceMount:void 0}),Nu=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Ut(ds,t);return d.jsx(my,{scope:t,forceMount:n,children:d.jsx(qe,{present:n||a.open,children:d.jsx(tr,{asChild:!0,container:o,children:r})})})};Nu.displayName=ds;var Sn="PopoverContent",Ru=f.forwardRef((e,t)=>{const n=py(Sn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Ut(Sn,e.__scopePopover);return d.jsx(qe,{present:r||a.open,children:a.modal?d.jsx(gy,{...o,ref:t}):d.jsx(vy,{...o,ref:t})})});Ru.displayName=Sn;var hy=Wt("PopoverContent.RemoveScroll"),gy=f.forwardRef((e,t)=>{const n=Ut(Sn,e.__scopePopover),r=f.useRef(null),o=he(t,r),a=f.useRef(!1);return f.useEffect(()=>{const i=r.current;if(i)return no(i)},[]),d.jsx(nr,{as:hy,allowPinchZoom:!0,children:d.jsx(_u,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,u=s.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),vy=f.forwardRef((e,t)=>{const n=Ut(Sn,e.__scopePopover),r=f.useRef(!1),o=f.useRef(!1);return d.jsx(_u,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),_u=f.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:m,...l}=e,p=Ut(Sn,n),h=ur(n);return eo(),d.jsx(er,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(Nn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:m,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),children:d.jsx(fo,{"data-state":Tu(p.open),role:"dialog",id:p.contentId,...h,...l,ref:t,style:{...l.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)"}})})})}),Ou="PopoverClose",by=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ut(Ou,n);return d.jsx(te.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});by.displayName=Ou;var yy="PopoverArrow",wy=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ur(n);return d.jsx(mo,{...o,...r,ref:t})});wy.displayName=yy;function Tu(e){return e?"open":"closed"}var xy=Mu,Sy=Eu,Cy=Nu,Pu=Ru,fs="Progress",ms=100,[My,wD]=Ge(fs),[Dy,ky]=My(fs),Au=f.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=Ey,...i}=e;(o||o===0)&&!ui(o)&&console.error(Ny(`${o}`,"Progress"));const s=ui(o)?o:ms;r!==null&&!di(r,s)&&console.error(Ry(`${r}`,"Progress"));const c=di(r,s)?r:null,u=zr(c)?a(c,s):void 0;return d.jsx(Dy,{scope:n,value:c,max:s,children:d.jsx(te.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":zr(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":$u(c,s),"data-value":c??void 0,"data-max":s,...i,ref:t})})});Au.displayName=fs;var Iu="ProgressIndicator",ju=f.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=ky(Iu,n);return d.jsx(te.div,{"data-state":$u(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});ju.displayName=Iu;function Ey(e,t){return`${Math.round(e/t*100)}%`}function $u(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function zr(e){return typeof e=="number"}function ui(e){return zr(e)&&!isNaN(e)&&e>0}function di(e,t){return zr(e)&&!isNaN(e)&&e<=t&&e>=0}function Ny(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 Ry(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
62
- - a positive number
63
- - less than the value passed to \`max\` (or ${ms} if no \`max\` prop is set)
64
- - \`null\` or \`undefined\` if the progress is indeterminate.
65
-
66
- Defaulting to \`null\`.`}var Lu=Au,_y=ju,ps="Radio",[Oy,Fu]=Ge(ps),[Ty,Py]=Oy(ps),Wu=f.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:s="on",onCheck:c,form:u,...m}=e,[l,p]=f.useState(null),h=he(t,v=>p(v)),b=f.useRef(!1),g=l?u||!!l.closest("form"):!0;return d.jsxs(Ty,{scope:n,checked:o,disabled:i,children:[d.jsx(te.button,{type:"button",role:"radio","aria-checked":o,"data-state":zu(o),"data-disabled":i?"":void 0,disabled:i,value:s,...m,ref:h,onClick:Z(e.onClick,v=>{o||c==null||c(),g&&(b.current=v.isPropagationStopped(),b.current||v.stopPropagation())})}),g&&d.jsx(Hu,{control:l,bubbles:!b.current,name:r,value:s,checked:o,required:a,disabled:i,form:u,style:{transform:"translateX(-100%)"}})]})});Wu.displayName=ps;var Bu="RadioIndicator",Yu=f.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=Py(Bu,n);return d.jsx(qe,{present:r||a.checked,children:d.jsx(te.span,{"data-state":zu(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});Yu.displayName=Bu;var Ay="RadioBubbleInput",Hu=f.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const i=f.useRef(null),s=he(i,a),c=Ha(n),u=za(t);return f.useEffect(()=>{const m=i.current;if(!m)return;const l=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(l,"checked").set;if(c!==n&&h){const b=new Event("click",{bubbles:r});h.call(m,n),m.dispatchEvent(b)}},[c,n,r]),d.jsx(te.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Hu.displayName=Ay;function zu(e){return e?"checked":"unchecked"}var Iy=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],vo="RadioGroup",[jy,xD]=Ge(vo,[On,Fu]),Gu=On(),Uu=Fu(),[$y,Ly]=jy(vo),qu=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:s=!1,orientation:c,dir:u,loop:m=!0,onValueChange:l,...p}=e,h=Gu(n),b=Jn(u),[g,v]=ot({prop:a,defaultProp:o??null,onChange:l,caller:vo});return d.jsx($y,{scope:n,name:r,required:i,disabled:s,value:g,onValueChange:v,children:d.jsx(ts,{asChild:!0,...h,orientation:c,dir:b,loop:m,children:d.jsx(te.div,{role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":s?"":void 0,dir:b,...p,ref:t})})})});qu.displayName=vo;var Vu="RadioGroupItem",Ku=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=Ly(Vu,n),i=a.disabled||r,s=Gu(n),c=Uu(n),u=f.useRef(null),m=he(t,u),l=a.value===o.value,p=f.useRef(!1);return f.useEffect(()=>{const h=g=>{Iy.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(ns,{asChild:!0,...s,focusable:!i,active:l,children:d.jsx(Wu,{disabled:i,required:a.required,checked:l,...c,...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())})})})});Ku.displayName=Vu;var Fy="RadioGroupIndicator",Xu=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Uu(n);return d.jsx(Yu,{...o,...r,ref:t})});Xu.displayName=Fy;var Zu=qu,Qu=Ku,Wy=Xu,By=[" ","Enter","ArrowUp","ArrowDown"],Yy=[" ","Enter"],nn="Select",[bo,yo,Hy]=Ra(nn),[Tn,SD]=Ge(nn,[Hy,zt]),wo=zt(),[zy,qt]=Tn(nn),[Gy,Uy]=Tn(nn),Ju=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:c,dir:u,name:m,autoComplete:l,disabled:p,required:h,form:b}=e,g=wo(t),[v,y]=f.useState(null),[w,S]=f.useState(null),[E,C]=f.useState(!1),N=Jn(u),[k,R]=ot({prop:r,defaultProp:o??!1,onChange:a,caller:nn}),[j,$]=ot({prop:i,defaultProp:s,onChange:c,caller:nn}),W=f.useRef(null),U=v?b||!!v.closest("form"):!0,[B,I]=f.useState(new Set),_=Array.from(B).map(M=>M.props.value).join(";");return d.jsx(or,{...g,children:d.jsxs(zy,{required:h,scope:t,trigger:v,onTriggerChange:y,valueNode:w,onValueNodeChange:S,valueNodeHasChildren:E,onValueNodeHasChildrenChange:C,contentId:Oe(),value:j,onValueChange:$,open:k,onOpenChange:R,dir:N,triggerPointerDownPosRef:W,disabled:p,children:[d.jsx(bo.Provider,{scope:t,children:d.jsx(Gy,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(M=>{I(P=>new Set(P).add(M))},[]),onNativeOptionRemove:f.useCallback(M=>{I(P=>{const D=new Set(P);return D.delete(M),D})},[]),children:n})}),U?d.jsxs(Cd,{"aria-hidden":!0,required:h,tabIndex:-1,name:m,autoComplete:l,value:j,onChange:M=>$(M.target.value),disabled:p,form:b,children:[j===void 0?d.jsx("option",{value:""}):null,Array.from(B)]},_):null]})})};Ju.displayName=nn;var ed="SelectTrigger",td=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=wo(n),i=qt(ed,n),s=i.disabled||r,c=he(t,i.onTriggerChange),u=yo(n),m=f.useRef("touch"),[l,p,h]=Dd(g=>{const v=u().filter(S=>!S.disabled),y=v.find(S=>S.value===i.value),w=kd(v,g,y);w!==void 0&&i.onValueChange(w.value)}),b=g=>{s||(i.onOpenChange(!0),h()),g&&(i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return d.jsx(ar,{asChild:!0,...a,children:d.jsx(te.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Md(i.value)?"":void 0,...o,ref:c,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=l.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&p(g.key),!(v&&g.key===" ")&&By.includes(g.key)&&(b(),g.preventDefault())})})})});td.displayName=ed;var nd="SelectValue",rd=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,c=qt(nd,n),{onValueNodeHasChildrenChange:u}=c,m=a!==void 0,l=he(t,c.onValueNodeChange);return Ie(()=>{u(m)},[u,m]),d.jsx(te.span,{...s,ref:l,style:{pointerEvents:"none"},children:Md(c.value)?d.jsx(d.Fragment,{children:i}):a})});rd.displayName=nd;var qy="SelectIcon",od=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(te.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});od.displayName=qy;var Vy="SelectPortal",ad=e=>d.jsx(tr,{asChild:!0,...e});ad.displayName=Vy;var rn="SelectContent",sd=f.forwardRef((e,t)=>{const n=qt(rn,e.__scopeSelect),[r,o]=f.useState();if(Ie(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?Zr.createPortal(d.jsx(id,{scope:e.__scopeSelect,children:d.jsx(bo.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(cd,{...e,ref:t})});sd.displayName=rn;var it=10,[id,Vt]=Tn(rn),Ky="SelectContentImpl",Xy=Wt("SelectContent.RemoveScroll"),cd=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:c,align:u,alignOffset:m,arrowPadding:l,collisionBoundary:p,collisionPadding:h,sticky:b,hideWhenDetached:g,avoidCollisions:v,...y}=e,w=qt(rn,n),[S,E]=f.useState(null),[C,N]=f.useState(null),k=he(t,F=>E(F)),[R,j]=f.useState(null),[$,W]=f.useState(null),U=yo(n),[B,I]=f.useState(!1),_=f.useRef(!1);f.useEffect(()=>{if(S)return no(S)},[S]),eo();const M=f.useCallback(F=>{const[K,...X]=U().map(ae=>ae.ref.current),[Q]=X.slice(-1),J=document.activeElement;for(const ae of F)if(ae===J||(ae==null||ae.scrollIntoView({block:"nearest"}),ae===K&&C&&(C.scrollTop=0),ae===Q&&C&&(C.scrollTop=C.scrollHeight),ae==null||ae.focus(),document.activeElement!==J))return},[U,C]),P=f.useCallback(()=>M([R,S]),[M,R,S]);f.useEffect(()=>{B&&P()},[B,P]);const{onOpenChange:D,triggerPointerDownPosRef:T}=w;f.useEffect(()=>{if(S){let F={x:0,y:0};const K=Q=>{var J,ae;F={x:Math.abs(Math.round(Q.pageX)-(((J=T.current)==null?void 0:J.x)??0)),y:Math.abs(Math.round(Q.pageY)-(((ae=T.current)==null?void 0:ae.y)??0))}},X=Q=>{F.x<=10&&F.y<=10?Q.preventDefault():S.contains(Q.target)||D(!1),document.removeEventListener("pointermove",K),T.current=null};return T.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",X,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",X,{capture:!0})}}},[S,D,T]),f.useEffect(()=>{const F=()=>D(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[D]);const[Y,z]=Dd(F=>{const K=U().filter(J=>!J.disabled),X=K.find(J=>J.ref.current===document.activeElement),Q=kd(K,F,X);Q&&setTimeout(()=>Q.ref.current.focus())}),O=f.useCallback((F,K,X)=>{const Q=!_.current&&!X;(w.value!==void 0&&w.value===K||Q)&&(j(F),Q&&(_.current=!0))},[w.value]),A=f.useCallback(()=>S==null?void 0:S.focus(),[S]),H=f.useCallback((F,K,X)=>{const Q=!_.current&&!X;(w.value!==void 0&&w.value===K||Q)&&W(F)},[w.value]),G=r==="popper"?ua:ld,q=G===ua?{side:s,sideOffset:c,align:u,alignOffset:m,arrowPadding:l,collisionBoundary:p,collisionPadding:h,sticky:b,hideWhenDetached:g,avoidCollisions:v}:{};return d.jsx(id,{scope:n,content:S,viewport:C,onViewportChange:N,itemRefCallback:O,selectedItem:R,onItemLeave:A,itemTextRefCallback:H,focusSelectedItem:P,selectedItemText:$,position:r,isPositioned:B,searchRef:Y,children:d.jsx(nr,{as:Xy,allowPinchZoom:!0,children:d.jsx(er,{asChild:!0,trapped:w.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:Z(o,F=>{var K;(K=w.trigger)==null||K.focus({preventScroll:!0}),F.preventDefault()}),children:d.jsx(Nn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:d.jsx(G,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:F=>F.preventDefault(),...y,...q,onPlaced:()=>I(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Z(y.onKeyDown,F=>{const K=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!K&&F.key.length===1&&z(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let Q=U().filter(J=>!J.disabled).map(J=>J.ref.current);if(["ArrowUp","End"].includes(F.key)&&(Q=Q.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const J=F.target,ae=Q.indexOf(J);Q=Q.slice(ae+1)}setTimeout(()=>M(Q)),F.preventDefault()}})})})})})})});cd.displayName=Ky;var Zy="SelectItemAlignedPosition",ld=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=qt(rn,n),i=Vt(rn,n),[s,c]=f.useState(null),[u,m]=f.useState(null),l=he(t,k=>m(k)),p=yo(n),h=f.useRef(!1),b=f.useRef(!0),{viewport:g,selectedItem:v,selectedItemText:y,focusSelectedItem:w}=i,S=f.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&g&&v&&y){const k=a.trigger.getBoundingClientRect(),R=u.getBoundingClientRect(),j=a.valueNode.getBoundingClientRect(),$=y.getBoundingClientRect();if(a.dir!=="rtl"){const J=$.left-R.left,ae=j.left-J,be=k.left-ae,ee=k.width+be,_e=Math.max(ee,R.width),je=window.innerWidth-it,Me=li(ae,[it,Math.max(it,je-_e)]);s.style.minWidth=ee+"px",s.style.left=Me+"px"}else{const J=R.right-$.right,ae=window.innerWidth-j.right-J,be=window.innerWidth-k.right-ae,ee=k.width+be,_e=Math.max(ee,R.width),je=window.innerWidth-it,Me=li(ae,[it,Math.max(it,je-_e)]);s.style.minWidth=ee+"px",s.style.right=Me+"px"}const W=p(),U=window.innerHeight-it*2,B=g.scrollHeight,I=window.getComputedStyle(u),_=parseInt(I.borderTopWidth,10),M=parseInt(I.paddingTop,10),P=parseInt(I.borderBottomWidth,10),D=parseInt(I.paddingBottom,10),T=_+M+B+D+P,Y=Math.min(v.offsetHeight*5,T),z=window.getComputedStyle(g),O=parseInt(z.paddingTop,10),A=parseInt(z.paddingBottom,10),H=k.top+k.height/2-it,G=U-H,q=v.offsetHeight/2,F=v.offsetTop+q,K=_+M+F,X=T-K;if(K<=H){const J=W.length>0&&v===W[W.length-1].ref.current;s.style.bottom="0px";const ae=u.clientHeight-g.offsetTop-g.offsetHeight,be=Math.max(G,q+(J?A:0)+ae+P),ee=K+be;s.style.height=ee+"px"}else{const J=W.length>0&&v===W[0].ref.current;s.style.top="0px";const be=Math.max(H,_+g.offsetTop+(J?O:0)+q)+X;s.style.height=be+"px",g.scrollTop=K-H+g.offsetTop}s.style.margin=`${it}px 0`,s.style.minHeight=Y+"px",s.style.maxHeight=U+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[p,a.trigger,a.valueNode,s,u,g,v,y,a.dir,r]);Ie(()=>S(),[S]);const[E,C]=f.useState();Ie(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const N=f.useCallback(k=>{k&&b.current===!0&&(S(),w==null||w(),b.current=!1)},[S,w]);return d.jsx(Jy,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:d.jsx(te.div,{...o,ref:l,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ld.displayName=Zy;var Qy="SelectPopperPosition",ua=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=it,...a}=e,i=wo(n);return d.jsx(fo,{...i,...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)"}})});ua.displayName=Qy;var[Jy,hs]=Tn(rn,{}),da="SelectViewport",ud=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Vt(da,n),i=hs(da,n),s=he(t,a.onViewportChange),c=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(bo.Slot,{scope:n,children:d.jsx(te.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,u=>{const m=u.currentTarget,{contentWrapper:l,shouldExpandOnScrollRef:p}=i;if(p!=null&&p.current&&l){const h=Math.abs(c.current-m.scrollTop);if(h>0){const b=window.innerHeight-it*2,g=parseFloat(l.style.minHeight),v=parseFloat(l.style.height),y=Math.max(g,v);if(y<b){const w=y+h,S=Math.min(b,w),E=w-S;l.style.height=S+"px",l.style.bottom==="0px"&&(m.scrollTop=E>0?E:0,l.style.justifyContent="flex-end")}}}c.current=m.scrollTop})})})]})});ud.displayName=da;var dd="SelectGroup",[ew,tw]=Tn(dd),nw=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Oe();return d.jsx(ew,{scope:n,id:o,children:d.jsx(te.div,{role:"group","aria-labelledby":o,...r,ref:t})})});nw.displayName=dd;var fd="SelectLabel",md=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=tw(fd,n);return d.jsx(te.div,{id:o.id,...r,ref:t})});md.displayName=fd;var Gr="SelectItem",[rw,pd]=Tn(Gr),hd=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=qt(Gr,n),c=Vt(Gr,n),u=s.value===r,[m,l]=f.useState(a??""),[p,h]=f.useState(!1),b=he(t,w=>{var S;return(S=c.itemRefCallback)==null?void 0:S.call(c,w,r,o)}),g=Oe(),v=f.useRef("touch"),y=()=>{o||(s.onValueChange(r),s.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(rw,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:f.useCallback(w=>{l(S=>S||((w==null?void 0:w.textContent)??"").trim())},[]),children:d.jsx(bo.ItemSlot,{scope:n,value:r,disabled:o,textValue:m,children:d.jsx(te.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,...i,ref:b,onFocus:Z(i.onFocus,()=>h(!0)),onBlur:Z(i.onBlur,()=>h(!1)),onClick:Z(i.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:Z(i.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:Z(i.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:Z(i.onPointerMove,w=>{var S;v.current=w.pointerType,o?(S=c.onItemLeave)==null||S.call(c):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(i.onPointerLeave,w=>{var S;w.currentTarget===document.activeElement&&((S=c.onItemLeave)==null||S.call(c))}),onKeyDown:Z(i.onKeyDown,w=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&w.key===" "||(Yy.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});hd.displayName=Gr;var Hn="SelectItemText",gd=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=qt(Hn,n),s=Vt(Hn,n),c=pd(Hn,n),u=Uy(Hn,n),[m,l]=f.useState(null),p=he(t,y=>l(y),c.onItemTextChange,y=>{var w;return(w=s.itemTextRefCallback)==null?void 0:w.call(s,y,c.value,c.disabled)}),h=m==null?void 0:m.textContent,b=f.useMemo(()=>d.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=u;return Ie(()=>(g(b),()=>v(b)),[g,v,b]),d.jsxs(d.Fragment,{children:[d.jsx(te.span,{id:c.textId,...a,ref:p}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Zr.createPortal(a.children,i.valueNode):null]})});gd.displayName=Hn;var vd="SelectItemIndicator",bd=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return pd(vd,n).isSelected?d.jsx(te.span,{"aria-hidden":!0,...r,ref:t}):null});bd.displayName=vd;var fa="SelectScrollUpButton",yd=f.forwardRef((e,t)=>{const n=Vt(fa,e.__scopeSelect),r=hs(fa,e.__scopeSelect),[o,a]=f.useState(!1),i=he(t,r.onScrollButtonChange);return Ie(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollTop>0;a(u)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?d.jsx(xd,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});yd.displayName=fa;var ma="SelectScrollDownButton",wd=f.forwardRef((e,t)=>{const n=Vt(ma,e.__scopeSelect),r=hs(ma,e.__scopeSelect),[o,a]=f.useState(!1),i=he(t,r.onScrollButtonChange);return Ie(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,m=Math.ceil(c.scrollTop)<u;a(m)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?d.jsx(xd,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});wd.displayName=ma;var xd=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Vt("SelectScrollButton",n),i=f.useRef(null),s=yo(n),c=f.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return f.useEffect(()=>()=>c(),[c]),Ie(()=>{var m;const u=s().find(l=>l.ref.current===document.activeElement);(m=u==null?void 0:u.ref.current)==null||m.scrollIntoView({block:"nearest"})},[s]),d.jsx(te.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{c()})})}),ow="SelectSeparator",Sd=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(te.div,{"aria-hidden":!0,...r,ref:t})});Sd.displayName=ow;var pa="SelectArrow",aw=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=wo(n),a=qt(pa,n),i=Vt(pa,n);return a.open&&i.position==="popper"?d.jsx(mo,{...o,...r,ref:t}):null});aw.displayName=pa;var sw="SelectBubbleInput",Cd=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),a=he(r,o),i=Ha(t);return f.useEffect(()=>{const s=o.current;if(!s)return;const c=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&m){const l=new Event("change",{bubbles:!0});m.call(s,t),s.dispatchEvent(l)}},[i,t]),d.jsx(te.select,{...n,style:{...tc,...n.style},ref:a,defaultValue:t})});Cd.displayName=sw;function Md(e){return e===""||e===void 0}function Dd(e){const t=at(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(i=>{const s=n.current+i;t(s),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),a=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function kd(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 i=iw(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const c=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function iw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var cw=Ju,Ed=td,lw=rd,uw=od,dw=ad,Nd=sd,fw=ud,Rd=md,_d=hd,mw=gd,pw=bd,Od=yd,Td=wd,Pd=Sd,xo="Tabs",[hw,CD]=Ge(xo,[On]),Ad=On(),[gw,gs]=hw(xo),Id=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:c="automatic",...u}=e,m=Jn(s),[l,p]=ot({prop:r,onChange:o,defaultProp:a??"",caller:xo});return d.jsx(gw,{scope:n,baseId:Oe(),value:l,onValueChange:p,orientation:i,dir:m,activationMode:c,children:d.jsx(te.div,{dir:m,"data-orientation":i,...u,ref:t})})});Id.displayName=xo;var jd="TabsList",$d=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=gs(jd,n),i=Ad(n);return d.jsx(ts,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:d.jsx(te.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});$d.displayName=jd;var Ld="TabsTrigger",Fd=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=gs(Ld,n),s=Ad(n),c=Yd(i.baseId,r),u=Hd(i.baseId,r),m=r===i.value;return d.jsx(ns,{asChild:!0,...s,focusable:!o,active:m,children:d.jsx(te.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":u,"data-state":m?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:Z(e.onMouseDown,l=>{!o&&l.button===0&&l.ctrlKey===!1?i.onValueChange(r):l.preventDefault()}),onKeyDown:Z(e.onKeyDown,l=>{[" ","Enter"].includes(l.key)&&i.onValueChange(r)}),onFocus:Z(e.onFocus,()=>{const l=i.activationMode!=="manual";!m&&!o&&l&&i.onValueChange(r)})})})});Fd.displayName=Ld;var Wd="TabsContent",Bd=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=gs(Wd,n),c=Yd(s.baseId,r),u=Hd(s.baseId,r),m=r===s.value,l=f.useRef(m);return f.useEffect(()=>{const p=requestAnimationFrame(()=>l.current=!1);return()=>cancelAnimationFrame(p)},[]),d.jsx(qe,{present:o||m,children:({present:p})=>d.jsx(te.div,{"data-state":m?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!p,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:l.current?"0s":void 0},children:p&&a})})});Bd.displayName=Wd;function Yd(e,t){return`${e}-trigger-${t}`}function Hd(e,t){return`${e}-content-${t}`}var vw=Id,zd=$d,Gd=Fd,Ud=Bd,[So,MD]=Ge("Tooltip",[zt]),Co=zt(),qd="TooltipProvider",bw=700,ha="tooltip.open",[yw,vs]=So(qd),Vd=e=>{const{__scopeTooltip:t,delayDuration:n=bw,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,i=f.useRef(!0),s=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),d.jsx(yw,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:f.useCallback(u=>{s.current=u},[]),disableHoverableContent:o,children:a})};Vd.displayName=qd;var Xn="Tooltip",[ww,Mo]=So(Xn),Kd=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,c=vs(Xn,e.__scopeTooltip),u=Co(t),[m,l]=f.useState(null),p=Oe(),h=f.useRef(0),b=i??c.disableHoverableContent,g=s??c.delayDuration,v=f.useRef(!1),[y,w]=ot({prop:r,defaultProp:o??!1,onChange:k=>{k?(c.onOpen(),document.dispatchEvent(new CustomEvent(ha))):c.onClose(),a==null||a(k)},caller:Xn}),S=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),E=f.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,w(!0)},[w]),C=f.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),N=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,w(!0),h.current=0},g)},[g,w]);return f.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),d.jsx(or,{...u,children:d.jsx(ww,{scope:t,contentId:p,open:y,stateAttribute:S,trigger:m,onTriggerChange:l,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayedRef.current?N():E()},[c.isOpenDelayedRef,N,E]),onTriggerLeave:f.useCallback(()=>{b?C():(window.clearTimeout(h.current),h.current=0)},[C,b]),onOpen:E,onClose:C,disableHoverableContent:b,children:n})})};Kd.displayName=Xn;var ga="TooltipTrigger",Xd=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Mo(ga,n),a=vs(ga,n),i=Co(n),s=f.useRef(null),c=he(t,s,o.onTriggerChange),u=f.useRef(!1),m=f.useRef(!1),l=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",l),[l]),d.jsx(ar,{asChild:!0,...i,children:d.jsx(te.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,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",l,{once:!0})}),onFocus:Z(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});Xd.displayName=ga;var xw="TooltipPortal",[DD,Sw]=So(xw,{forceMount:void 0}),Cn="TooltipContent",Zd=f.forwardRef((e,t)=>{const n=Sw(Cn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=Mo(Cn,e.__scopeTooltip);return d.jsx(qe,{present:r||i.open,children:i.disableHoverableContent?d.jsx(Qd,{side:o,...a,ref:t}):d.jsx(Cw,{side:o,...a,ref:t})})}),Cw=f.forwardRef((e,t)=>{const n=Mo(Cn,e.__scopeTooltip),r=vs(Cn,e.__scopeTooltip),o=f.useRef(null),a=he(t,o),[i,s]=f.useState(null),{trigger:c,onClose:u}=n,m=o.current,{onPointerInTransitChange:l}=r,p=f.useCallback(()=>{s(null),l(!1)},[l]),h=f.useCallback((b,g)=>{const v=b.currentTarget,y={x:b.clientX,y:b.clientY},w=Ew(y,v.getBoundingClientRect()),S=Nw(y,w),E=Rw(g.getBoundingClientRect()),C=Ow([...S,...E]);s(C),l(!0)},[l]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(c&&m){const b=v=>h(v,m),g=v=>h(v,c);return c.addEventListener("pointerleave",b),m.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",b),m.removeEventListener("pointerleave",g)}}},[c,m,h,p]),f.useEffect(()=>{if(i){const b=g=>{const v=g.target,y={x:g.clientX,y:g.clientY},w=(c==null?void 0:c.contains(v))||(m==null?void 0:m.contains(v)),S=!_w(y,i);w?p():S&&(p(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,m,i,u,p]),d.jsx(Qd,{...e,ref:a})}),[Mw,Dw]=So(Xn,{isInside:!1}),kw=Pp("TooltipContent"),Qd=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,c=Mo(Cn,n),u=Co(n),{onClose:m}=c;return f.useEffect(()=>(document.addEventListener(ha,m),()=>document.removeEventListener(ha,m)),[m]),f.useEffect(()=>{if(c.trigger){const l=p=>{const h=p.target;h!=null&&h.contains(c.trigger)&&m()};return window.addEventListener("scroll",l,{capture:!0}),()=>window.removeEventListener("scroll",l,{capture:!0})}},[c.trigger,m]),d.jsx(Nn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:l=>l.preventDefault(),onDismiss:m,children:d.jsxs(fo,{"data-state":c.stateAttribute,...u,...s,ref:t,style:{...s.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(kw,{children:r}),d.jsx(Mw,{scope:n,isInside:!0,children:d.jsx(Fp,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Zd.displayName=Cn;var Jd="TooltipArrow",ef=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Co(n);return Dw(Jd,n).isInside?null:d.jsx(mo,{...o,...r,ref:t})});ef.displayName=Jd;function Ew(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 Nw(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 Rw(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 _w(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],c=t[i],u=s.x,m=s.y,l=c.x,p=c.y;m>r!=p>r&&n<(l-u)*(r-m)/(p-m)+u&&(o=!o)}return o}function Ow(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),Tw(t)}function Tw(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],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.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],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.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 Pw=Vd,Aw=Kd,Iw=Xd,tf=Zd,jw=ef;const va=Qr("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}}),_t=x.forwardRef(({className:e,variant:t,size:n,iconSize:r,iconPosition:o,fullWidth:a,asChild:i=!1,icon:s,iconOnly:c,children:u,...m},l)=>{const p=i?Op:"button";let h=n;if(c&&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:L(va({variant:t,size:h,iconSize:b,iconPosition:o,fullWidth:a,className:e})),ref:l,"aria-label":c&&!m["aria-label"]?"Icon button":m["aria-label"],...m,children:[s&&d.jsx("span",{"data-testid":"button-icon",children:s}),!c&&u]})});_t.displayName="DoctButton";const $w={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"}},Lw={regular:"400",medium:"500",semiBold:"600",bold:"700",extraBold:"800",light:"300"},ba=({variant:e,weight:t="regular",children:n,color:r="#000",align:o="inherit",className:a="",...i})=>{const s=$w[e]??{fontSize:"16px",tag:"p"},{fontSize:c,tag:u}=s;return x.createElement(u,{className:a,style:{fontSize:c,fontWeight:Lw[t]??"400",color:r,textAlign:o},...i},n)},sn=f.forwardRef(({className:e,type:t,...n},r)=>d.jsx("input",{type:t,className:L("flex h-10 w-full rounded-md border border-gray-300 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 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));sn.displayName="Input";const Fw=Qr("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),cn=f.forwardRef(({className:e,...t},n)=>d.jsx(Su,{ref:n,className:L(Fw(),e),...t}));cn.displayName=Su.displayName;const nt=({label:e,placeholder:t,helperText:n,error:r,required:o,type:a="text",leftIcon:i,rightIcon:s,className:c,inputClassName:u,onChange:m,showCharCount:l,maxLength:p,value:h,disabled:b,fridged:g,...v})=>{const[y,w]=x.useState((h==null?void 0:h.length)||0),S=N=>{m&&m(N),w(N.target.value.length)},E=l&&typeof p=="number",C=g||b;return d.jsxs("div",{className:L("space-y-1",c),children:[e&&d.jsxs(cn,{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:[i&&d.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:i}),s&&d.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:s}),d.jsx(sn,{type:a,placeholder:t,disabled:b,value:h,maxLength:p,onChange:S,className:L(i&&"pl-10",s&&"pr-10",r&&"border-destructive",C&&"cursor-not-allowed bg-muted text-muted-foreground opacity-70",u),...v}),E&&d.jsxs("span",{className:"absolute bottom-[-1.25rem] right-0 text-xs text-muted-foreground",children:[y," / ",p]})]}),(n||r)&&d.jsx("p",{className:L("text-xs",r?"text-destructive":"text-muted-foreground"),children:r||n})]})},Ww=({length:e=6,label:t,value:n,onChange:r,onComplete:o,className:a,error:i,inputClassName:s="h-8 w-8"})=>{const c=x.useRef([]),u=(p,h)=>{var v;const b=h.replace(/\D/g,"").slice(0,1);if(h.length>1&&b.length<=1)return;const g=[...n];g[p]=b,r(g),h&&p<e-1&&((v=c.current[p+1])==null||v.focus()),g.every(y=>y!=="")&&o&&o(g.join(""))},m=(p,h)=>{var w;h.preventDefault();const g=(h.clipboardData.getData("text")||"").replace(/\D/g,"").slice(0,e-p).split("");if(g.length===0)return;const v=[...n];for(let S=0;S<g.length&&p+S<e;S++)v[p+S]=g[S];r(v);const y=Math.min(p+g.length,e-1);(w=c.current[y])==null||w.focus(),v.every(S=>S!=="")&&o&&o(v.join(""))},l=(p,h)=>{var b;h.key==="Backspace"&&!n[p]&&p>0&&((b=c.current[p-1])==null||b.focus())};return d.jsxs("div",{className:L("space-y-2",a),children:[t&&d.jsx(cn,{className:"text-sm font-medium text-gray-700",children:t}),d.jsx("div",{className:"flex gap-1",children:n.map((p,h)=>d.jsx(sn,{ref:b=>{c.current[h]=b},type:"text",inputMode:"numeric",maxLength:1,value:p,onChange:b=>u(h,b.target.value),onKeyDown:b=>l(h,b),onPaste:b=>m(h,b),className:L("text-center p-0 text-lg font-semibold",i&&"border-destructive",s)},h))}),i&&d.jsx("p",{className:"text-xs text-destructive mt-1",children:i})]})};/**
67
- * @license lucide-react v0.474.0 - ISC
68
- *
69
- * This source code is licensed under the ISC license.
70
- * See the LICENSE file in the root directory of this source tree.
71
- */const Bw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nf=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
72
- * @license lucide-react v0.474.0 - ISC
73
- *
74
- * This source code is licensed under the ISC license.
75
- * See the LICENSE file in the root directory of this source tree.
76
- */var Yw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
77
- * @license lucide-react v0.474.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const Hw=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},c)=>x.createElement("svg",{ref:c,...Yw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:nf("lucide",o),...s},[...i.map(([u,m])=>x.createElement(u,m)),...Array.isArray(a)?a:[a]]));/**
82
- * @license lucide-react v0.474.0 - ISC
83
- *
84
- * This source code is licensed under the ISC license.
85
- * See the LICENSE file in the root directory of this source tree.
86
- */const Re=(e,t)=>{const n=x.forwardRef(({className:r,...o},a)=>x.createElement(Hw,{ref:a,iconNode:t,className:nf(`lucide-${Bw(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
87
- * @license lucide-react v0.474.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */const zw=[["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"}]],Gw=Re("Building",zw);/**
92
- * @license lucide-react v0.474.0 - ISC
93
- *
94
- * This source code is licensed under the ISC license.
95
- * See the LICENSE file in the root directory of this source tree.
96
- */const Uw=[["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"}]],rf=Re("CalendarDays",Uw);/**
97
- * @license lucide-react v0.474.0 - ISC
98
- *
99
- * This source code is licensed under the ISC license.
100
- * See the LICENSE file in the root directory of this source tree.
101
- */const qw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],dr=Re("Check",qw);/**
102
- * @license lucide-react v0.474.0 - ISC
103
- *
104
- * This source code is licensed under the ISC license.
105
- * See the LICENSE file in the root directory of this source tree.
106
- */const Vw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fr=Re("ChevronDown",Vw);/**
107
- * @license lucide-react v0.474.0 - ISC
108
- *
109
- * This source code is licensed under the ISC license.
110
- * See the LICENSE file in the root directory of this source tree.
111
- */const Kw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],of=Re("ChevronLeft",Kw);/**
112
- * @license lucide-react v0.474.0 - ISC
113
- *
114
- * This source code is licensed under the ISC license.
115
- * See the LICENSE file in the root directory of this source tree.
116
- */const Xw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],bs=Re("ChevronRight",Xw);/**
117
- * @license lucide-react v0.474.0 - ISC
118
- *
119
- * This source code is licensed under the ISC license.
120
- * See the LICENSE file in the root directory of this source tree.
121
- */const Zw=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Qw=Re("ChevronUp",Zw);/**
122
- * @license lucide-react v0.474.0 - ISC
123
- *
124
- * This source code is licensed under the ISC license.
125
- * See the LICENSE file in the root directory of this source tree.
126
- */const Jw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ex=Re("CircleCheck",Jw);/**
127
- * @license lucide-react v0.474.0 - ISC
128
- *
129
- * This source code is licensed under the ISC license.
130
- * See the LICENSE file in the root directory of this source tree.
131
- */const tx=[["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"}]],nx=Re("CircleX",tx);/**
132
- * @license lucide-react v0.474.0 - ISC
133
- *
134
- * This source code is licensed under the ISC license.
135
- * See the LICENSE file in the root directory of this source tree.
136
- */const rx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],af=Re("Circle",rx);/**
137
- * @license lucide-react v0.474.0 - ISC
138
- *
139
- * This source code is licensed under the ISC license.
140
- * See the LICENSE file in the root directory of this source tree.
141
- */const ox=[["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"}]],ax=Re("EyeOff",ox);/**
142
- * @license lucide-react v0.474.0 - ISC
143
- *
144
- * This source code is licensed under the ISC license.
145
- * See the LICENSE file in the root directory of this source tree.
146
- */const sx=[["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"}]],ix=Re("Eye",sx);/**
147
- * @license lucide-react v0.474.0 - ISC
148
- *
149
- * This source code is licensed under the ISC license.
150
- * See the LICENSE file in the root directory of this source tree.
151
- */const cx=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],lx=Re("Filter",cx);/**
152
- * @license lucide-react v0.474.0 - ISC
153
- *
154
- * This source code is licensed under the ISC license.
155
- * See the LICENSE file in the root directory of this source tree.
156
- */const ux=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],dx=Re("Info",ux);/**
157
- * @license lucide-react v0.474.0 - ISC
158
- *
159
- * This source code is licensed under the ISC license.
160
- * See the LICENSE file in the root directory of this source tree.
161
- */const fx=[["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"}]],sf=Re("Mail",fx);/**
162
- * @license lucide-react v0.474.0 - ISC
163
- *
164
- * This source code is licensed under the ISC license.
165
- * See the LICENSE file in the root directory of this source tree.
166
- */const mx=[["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"}]],px=Re("MapPin",mx);/**
167
- * @license lucide-react v0.474.0 - ISC
168
- *
169
- * This source code is licensed under the ISC license.
170
- * See the LICENSE file in the root directory of this source tree.
171
- */const hx=[["path",{d:"M5 12h14",key:"1ays0h"}]],gx=Re("Minus",hx);/**
172
- * @license lucide-react v0.474.0 - ISC
173
- *
174
- * This source code is licensed under the ISC license.
175
- * See the LICENSE file in the root directory of this source tree.
176
- */const vx=[["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"}]],bx=Re("Phone",vx);/**
177
- * @license lucide-react v0.474.0 - ISC
178
- *
179
- * This source code is licensed under the ISC license.
180
- * See the LICENSE file in the root directory of this source tree.
181
- */const yx=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],cf=Re("Search",yx);/**
182
- * @license lucide-react v0.474.0 - ISC
183
- *
184
- * This source code is licensed under the ISC license.
185
- * See the LICENSE file in the root directory of this source tree.
186
- */const wx=[["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"}]],xx=Re("TriangleAlert",wx);/**
187
- * @license lucide-react v0.474.0 - ISC
188
- *
189
- * This source code is licensed under the ISC license.
190
- * See the LICENSE file in the root directory of this source tree.
191
- */const Sx=[["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"}]],Cx=Re("User",Sx);/**
192
- * @license lucide-react v0.474.0 - ISC
193
- *
194
- * This source code is licensed under the ISC license.
195
- * See the LICENSE file in the root directory of this source tree.
196
- */const Mx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ln=Re("X",Mx);function ya({label:e,placeholder:t="Enter password",helperText:n,error:r,required:o,className:a,showPassword:i=!1,onShowPasswordChange:s,value:c,onChange:u,...m}){return d.jsxs("div",{className:L("space-y-1",a),children:[e&&d.jsxs(cn,{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(sn,{type:i?"text":"password",placeholder:t,className:L("pr-10",r&&"border-destructive"),value:c,onChange:l=>u==null?void 0:u(l.target.value),...m}),d.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground cursor-pointer",onClick:()=>s==null?void 0:s(!i),"aria-label":i?"Hide password":"Show password",children:i?d.jsx(ax,{className:"h-4 w-4 text-gray-400 hover:text-gray-500"}):d.jsx(ix,{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 ys=f.forwardRef(({label:e,helperText:t,errorText:n,required:r,className:o,placeholder:a="Write here...",rows:i=4,...s},c)=>{const u=!!n;return d.jsxs("div",{className:L("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:c,placeholder:a,rows:i,className:L("flex min-h-[80px] w-full rounded-md border bg-background px-3 py-2 text-base placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",u?"border border-destructive":"border-input focus:ring-ring"),...s}),(t||n)&&d.jsx("p",{className:L("text-xs",u?"text-destructive":"text-muted-foreground"),children:n||t})]})});ys.displayName="Textarea";const ws=xy,xs=Sy,Do=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(Cy,{children:d.jsx(Pu,{ref:r,sideOffset:t,className:L("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})}));Do.displayName=Pu.displayName;const wa=cw,xa=lw,Ur=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Ed,{ref:r,className:L("flex h-10 w-full items-center justify-between rounded-md border border-gray-300 bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,d.jsx(uw,{asChild:!0,children:d.jsx(fr,{strokeWidth:1.5,className:"h-4 w-4 text-foreground"})})]}));Ur.displayName=Ed.displayName;const lf=f.forwardRef(({className:e,...t},n)=>d.jsx(Od,{ref:n,className:L("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Qw,{className:"h-4 w-4"})}));lf.displayName=Od.displayName;const uf=f.forwardRef(({className:e,...t},n)=>d.jsx(Td,{ref:n,className:L("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(fr,{className:"h-4 w-4"})}));uf.displayName=Td.displayName;const qr=f.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>d.jsx(dw,{children:d.jsxs(Nd,{ref:o,className:L("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(lf,{}),d.jsx(fw,{className:L("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),d.jsx(uf,{})]})}));qr.displayName=Nd.displayName;const Dx=f.forwardRef(({className:e,...t},n)=>d.jsx(Rd,{ref:n,className:L("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Dx.displayName=Rd.displayName;const Vr=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(_d,{ref:r,className:L("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(pw,{children:d.jsx(dr,{className:"h-4 w-4"})})}),d.jsx(mw,{children:t})]}));Vr.displayName=_d.displayName;const kx=f.forwardRef(({className:e,...t},n)=>d.jsx(Pd,{ref:n,className:L("-mx-1 my-1 h-px bg-muted",e),...t}));kx.displayName=Pd.displayName;const Yo={},zn={};function Gn(e,t){try{const r=(Yo[e]||(Yo[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return r in zn?zn[r]:fi(r,r.split(":"))}catch{if(e in zn)return zn[e];const n=e==null?void 0:e.match(Ex);return n?fi(e,n.slice(1)):NaN}}const Ex=/([+-]\d\d):?(\d\d)?/;function fi(e,t){const n=+t[0],r=+(t[1]||0);return zn[e]=n>0?n*60+r:n*60-r}class vt 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)),df(this),Sa(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new vt(...n,t):new vt(Date.now(),t)}withTimeZone(t){return new vt(+this,t)}getTimezoneOffset(){return-Gn(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Sa(this),+this}[Symbol.for("constructDateFrom")](t){return new vt(+new Date(t),this.timeZone)}}const mi=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!mi.test(e))return;const t=e.replace(mi,"$1UTC");vt.prototype[t]&&(e.startsWith("get")?vt.prototype[e]=function(){return this.internal[t]()}:(vt.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Nx(this),+this},vt.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Sa(this),+this}))});function Sa(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Nx(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()),df(e)}function df(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,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const s=r-t;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const c=Gn(e.timeZone,e),m=-new Date(+e).getTimezoneOffset()-c,l=c!==t,p=m-s;if(l&&p){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+p);const h=Gn(e.timeZone,e),b=c-h;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}class ze extends vt{static tz(t,...n){return n.length?new ze(...n,t):new ze(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} (${Rx(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 ze(+this,t)}[Symbol.for("constructDateFrom")](t){return new ze(+new Date(t),this.timeZone)}}function Rx(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)}var ce;(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"})(ce||(ce={}));var Ne;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Ne||(Ne={}));var ct;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(ct||(ct={}));var Je;(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"})(Je||(Je={}));const ff=6048e5,_x=864e5,pi=Symbol.for("constructDateFrom");function Fe(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&pi in e?e[pi](t):e instanceof Date?new e.constructor(t):new Date(t)}function Se(e,t){return Fe(t||e,e)}function mf(e,t,n){const r=Se(e,n==null?void 0:n.in);return isNaN(t)?Fe(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function pf(e,t,n){const r=Se(e,n==null?void 0:n.in);if(isNaN(t))return Fe(e,NaN);if(!t)return r;const o=r.getDate(),a=Fe(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let Ox={};function mr(){return Ox}function Mn(e,t){var s,c,u,m;const n=mr(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.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(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Zn(e,t){return Mn(e,{...t,weekStartsOn:1})}function hf(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getFullYear(),o=Fe(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=Zn(o),i=Fe(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const s=Zn(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function hi(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 Pn(e,...t){const n=Fe.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Qn(e,t){const n=Se(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function gf(e,t,n){const[r,o]=Pn(n==null?void 0:n.in,e,t),a=Qn(r),i=Qn(o),s=+a-hi(a),c=+i-hi(i);return Math.round((s-c)/_x)}function Tx(e,t){const n=hf(e,t),r=Fe(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Zn(r)}function Px(e,t,n){return mf(e,t*7,n)}function Ax(e,t,n){return pf(e,t*12,n)}function Ix(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Fe.bind(null,o));const a=Se(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),Fe(r,n||NaN)}function jx(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Fe.bind(null,o));const a=Se(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),Fe(r,n||NaN)}function $x(e,t,n){const[r,o]=Pn(n==null?void 0:n.in,e,t);return+Qn(r)==+Qn(o)}function vf(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Lx(e){return!(!vf(e)&&typeof e!="number"||isNaN(+Se(e)))}function Fx(e,t,n){const[r,o]=Pn(n==null?void 0:n.in,e,t),a=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return a*12+i}function Wx(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 Bx(e,t){const[n,r]=Pn(e,t.start,t.end);return{start:n,end:r}}function Yx(e,t){const{start:n,end:r}=Bx(t==null?void 0:t.in,e);let o=+n>+r;const a=o?+n:+r,i=o?r:n;i.setHours(0,0,0,0),i.setDate(1);let s=1;const c=[];for(;+i<=a;)c.push(Fe(n,i)),i.setMonth(i.getMonth()+s);return o?c.reverse():c}function Hx(e,t){const n=Se(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function zx(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 bf(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 yf(e,t){var s,c,u,m;const n=mr(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.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(),i=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function Gx(e,t){return yf(e,{...t,weekStartsOn:1})}const Ux={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"}},qx=(e,t,n)=>{let r;const o=Ux[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 Ho(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Vx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Xx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Zx={date:Ho({formats:Vx,defaultWidth:"full"}),time:Ho({formats:Kx,defaultWidth:"full"}),dateTime:Ho({formats:Xx,defaultWidth:"full"})},Qx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Jx=(e,t,n,r)=>Qx[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 i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const e0={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},t0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},n0={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"]},r0={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"]},o0={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"}},a0={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"}},s0=(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"},i0={ordinalNumber:s0,era:$n({values:e0,defaultWidth:"wide"}),quarter:$n({values:t0,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$n({values:n0,defaultWidth:"wide"}),day:$n({values:r0,defaultWidth:"wide"}),dayPeriod:$n({values:o0,defaultWidth:"wide",formattingValues:a0,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 i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?l0(s,l=>l.test(i)):c0(s,l=>l.test(i));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const m=t.slice(i.length);return{value:u,rest:m}}}function c0(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function l0(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function u0(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 i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const d0=/^(\d+)(th|st|nd|rd)?/i,f0=/\d+/i,m0={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},p0={any:[/^b/i,/^(a|c)/i]},h0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},g0={any:[/1/i,/2/i,/3/i,/4/i]},v0={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},b0={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]},y0={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},w0={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]},x0={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},S0={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}},C0={ordinalNumber:u0({matchPattern:d0,parsePattern:f0,valueCallback:e=>parseInt(e,10)}),era:Ln({matchPatterns:m0,defaultMatchWidth:"wide",parsePatterns:p0,defaultParseWidth:"any"}),quarter:Ln({matchPatterns:h0,defaultMatchWidth:"wide",parsePatterns:g0,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ln({matchPatterns:v0,defaultMatchWidth:"wide",parsePatterns:b0,defaultParseWidth:"any"}),day:Ln({matchPatterns:y0,defaultMatchWidth:"wide",parsePatterns:w0,defaultParseWidth:"any"}),dayPeriod:Ln({matchPatterns:x0,defaultMatchWidth:"any",parsePatterns:S0,defaultParseWidth:"any"})},Ss={code:"en-US",formatDistance:qx,formatLong:Zx,formatRelative:Jx,localize:i0,match:C0,options:{weekStartsOn:0,firstWeekContainsDate:1}};function M0(e,t){const n=Se(e,t==null?void 0:t.in);return gf(n,bf(n))+1}function wf(e,t){const n=Se(e,t==null?void 0:t.in),r=+Zn(n)-+Tx(n);return Math.round(r/ff)+1}function xf(e,t){var m,l,p,h;const n=Se(e,t==null?void 0:t.in),r=n.getFullYear(),o=mr(),a=(t==null?void 0:t.firstWeekContainsDate)??((l=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:l.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(p=o.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,i=Fe((t==null?void 0:t.in)||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=Mn(i,t),c=Fe((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const u=Mn(c,t);return+n>=+s?r+1:+n>=+u?r:r-1}function D0(e,t){var s,c,u,m;const n=mr(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(u=n.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)??1,o=xf(e,t),a=Fe((t==null?void 0:t.in)||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Mn(a,t)}function Sf(e,t){const n=Se(e,t==null?void 0:t.in),r=+Mn(n,t)-+D0(n,t);return Math.round(r/ff)+1}function we(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const $t={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)}},gn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gi={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});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 $t.y(e,t)},Y:function(e,t,n,r){const o=xf(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return we(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):we(a,t.length)},R:function(e,t){const n=hf(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 $t.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=Sf(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):we(o,t.length)},I:function(e,t,n){const r=wf(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"}):$t.d(e,t)},D:function(e,t,n){const r=M0(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=gn.noon:r===0?o=gn.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=gn.evening:r>=12?o=gn.afternoon:r>=4?o=gn.morning:o=gn.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 $t.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):$t.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"}):$t.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):$t.s(e,t)},S:function(e,t){return $t.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return bi(r);case"XXXX":case"XX":return Jt(r);case"XXXXX":case"XXX":default:return Jt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return bi(r);case"xxxx":case"xx":return Jt(r);case"xxxxx":case"xxx":default:return Jt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vi(r,":");case"OOOO":default:return"GMT"+Jt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vi(r,":");case"zzzz":default:return"GMT"+Jt(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 vi(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 bi(e,t){return e%60===0?(e>0?"-":"+")+we(Math.abs(e)/60,2):Jt(e,t)}function Jt(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 yi=(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"})}},Cf=(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"})}},k0=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return yi(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}}",yi(r,t)).replace("{{time}}",Cf(o,t))},E0={p:Cf,P:k0},N0=/^D+$/,R0=/^Y+$/,_0=["D","DD","YY","YYYY"];function O0(e){return N0.test(e)}function T0(e){return R0.test(e)}function P0(e,t,n){const r=A0(e,t,n);if(console.warn(r),_0.includes(e))throw new RangeError(r)}function A0(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 I0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,j0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$0=/^'([^]*?)'?$/,L0=/''/g,F0=/[a-zA-Z]/;function W0(e,t,n){var m,l,p,h,b,g,v,y;const r=mr(),o=(n==null?void 0:n.locale)??r.locale??Ss,a=(n==null?void 0:n.firstWeekContainsDate)??((l=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(p=r.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,i=(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,s=Se(e,n==null?void 0:n.in);if(!Lx(s))throw new RangeError("Invalid time value");let c=t.match(j0).map(w=>{const S=w[0];if(S==="p"||S==="P"){const E=E0[S];return E(w,o.formatLong)}return w}).join("").match(I0).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const S=w[0];if(S==="'")return{isToken:!1,value:B0(w)};if(gi[S])return{isToken:!0,value:w};if(S.match(F0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:w}});o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const u={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(w=>{if(!w.isToken)return w.value;const S=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&T0(S)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&O0(S))&&P0(S,t,String(e));const E=gi[S[0]];return E(s,S,o.localize,u)}).join("")}function B0(e){const t=e.match($0);return t?t[1].replace(L0,"'"):e}function Y0(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),a=Fe(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function H0(e,t){return Se(e,t==null?void 0:t.in).getMonth()}function z0(e,t){return Se(e,t==null?void 0:t.in).getFullYear()}function G0(e,t){return+Se(e)>+Se(t)}function U0(e,t){return+Se(e)<+Se(t)}function q0(e,t,n){const[r,o]=Pn(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function V0(e,t,n){const[r,o]=Pn(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()}function K0(e,t,n){const r=Se(e,n==null?void 0:n.in),o=r.getFullYear(),a=r.getDate(),i=Fe(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const s=Y0(i);return r.setMonth(t,Math.min(a,s)),r}function X0(e,t,n){const r=Se(e,n==null?void 0:n.in);return isNaN(+r)?Fe(e,NaN):(r.setFullYear(t),r)}const wi=5,Z0=4;function Q0(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,wi*7-1);return t.getMonth(e)===t.getMonth(a)?wi:Z0}function Mf(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-1*6):t.addDays(n,-1*(r-1))}function J0(e,t){const n=Mf(e,t),r=Q0(e,t);return t.addDays(n,r*7-1)}class Ot{constructor(t,n){this.Date=Date,this.today=()=>{var r;return(r=this.overrides)!=null&&r.today?this.overrides.today():this.options.timeZone?ze.tz(this.options.timeZone):new this.Date},this.newDate=(r,o,a)=>{var i;return(i=this.overrides)!=null&&i.newDate?this.overrides.newDate(r,o,a):this.options.timeZone?new ze(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):mf(r,o)},this.addMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addMonths?this.overrides.addMonths(r,o):pf(r,o)},this.addWeeks=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addWeeks?this.overrides.addWeeks(r,o):Px(r,o)},this.addYears=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addYears?this.overrides.addYears(r,o):Ax(r,o)},this.differenceInCalendarDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):gf(r,o)},this.differenceInCalendarMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):Fx(r,o)},this.eachMonthOfInterval=r=>{var o;return(o=this.overrides)!=null&&o.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):Yx(r)},this.endOfBroadcastWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):J0(r,this)},this.endOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfISOWeek?this.overrides.endOfISOWeek(r):Gx(r)},this.endOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.endOfMonth?this.overrides.endOfMonth(r):Wx(r)},this.endOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.endOfWeek?this.overrides.endOfWeek(r,o):yf(r,this.options)},this.endOfYear=r=>{var o;return(o=this.overrides)!=null&&o.endOfYear?this.overrides.endOfYear(r):zx(r)},this.format=(r,o,a)=>{var s;const i=(s=this.overrides)!=null&&s.format?this.overrides.format(r,o,this.options):W0(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(i):i},this.getISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.getISOWeek?this.overrides.getISOWeek(r):wf(r)},this.getMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getMonth?this.overrides.getMonth(r,this.options):H0(r,this.options)},this.getYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getYear?this.overrides.getYear(r,this.options):z0(r,this.options)},this.getWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getWeek?this.overrides.getWeek(r,this.options):Sf(r,this.options)},this.isAfter=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isAfter?this.overrides.isAfter(r,o):G0(r,o)},this.isBefore=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isBefore?this.overrides.isBefore(r,o):U0(r,o)},this.isDate=r=>{var o;return(o=this.overrides)!=null&&o.isDate?this.overrides.isDate(r):vf(r)},this.isSameDay=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameDay?this.overrides.isSameDay(r,o):$x(r,o)},this.isSameMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameMonth?this.overrides.isSameMonth(r,o):q0(r,o)},this.isSameYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameYear?this.overrides.isSameYear(r,o):V0(r,o)},this.max=r=>{var o;return(o=this.overrides)!=null&&o.max?this.overrides.max(r):Ix(r)},this.min=r=>{var o;return(o=this.overrides)!=null&&o.min?this.overrides.min(r):jx(r)},this.setMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setMonth?this.overrides.setMonth(r,o):K0(r,o)},this.setYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setYear?this.overrides.setYear(r,o):X0(r,o)},this.startOfBroadcastWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Mf(r,this)},this.startOfDay=r=>{var o;return(o=this.overrides)!=null&&o.startOfDay?this.overrides.startOfDay(r):Qn(r)},this.startOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.startOfISOWeek?this.overrides.startOfISOWeek(r):Zn(r)},this.startOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.startOfMonth?this.overrides.startOfMonth(r):Hx(r)},this.startOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfWeek?this.overrides.startOfWeek(r,this.options):Mn(r,this.options)},this.startOfYear=r=>{var o;return(o=this.overrides)!=null&&o.startOfYear?this.overrides.startOfYear(r):bf(r)},this.options={locale:Ss,...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 xt=new Ot;class Df{constructor(t,n,r=xt){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 e1{constructor(t,n){this.date=t,this.weeks=n}}class t1{constructor(t,n){this.days=n,this.weekNumber=t}}function Mt(e,t,n=!1,r=xt){let{from:o,to:a}=e;const{differenceInCalendarDays:i,isSameDay:s}=r;return o&&a?(i(a,o)<0&&([o,a]=[a,o]),i(t,o)>=(n?1:0)&&i(a,t)>=(n?1:0)):!n&&a?s(a,t):!n&&o?s(o,t):!1}function kf(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Cs(e){return!!(e&&typeof e=="object"&&"from"in e)}function Ef(e){return!!(e&&typeof e=="object"&&"after"in e)}function Nf(e){return!!(e&&typeof e=="object"&&"before"in e)}function Rf(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function _f(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Dt(e,t,n=xt){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:i}=n;return r.some(s=>{if(typeof s=="boolean")return s;if(n.isDate(s))return o(e,s);if(_f(s,n))return s.includes(e);if(Cs(s))return Mt(s,e,!1,n);if(Rf(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(e.getDay()):s.dayOfWeek===e.getDay();if(kf(s)){const c=a(s.before,e),u=a(s.after,e),m=c>0,l=u<0;return i(s.before,s.after)?l&&m:m||l}return Ef(s)?a(e,s.after)>0:Nf(s)?a(s.before,e)>0:typeof s=="function"?s(e):!1})}function n1(e,t,n,r,o){const{disabled:a,hidden:i,modifiers:s,showOutsideDays:c,broadcastCalendar:u,today:m}=t,{isSameDay:l,isSameMonth:p,startOfMonth:h,isBefore:b,endOfMonth:g,isAfter:v}=o,y=n&&h(n),w=r&&g(r),S={[Ne.focused]:[],[Ne.outside]:[],[Ne.disabled]:[],[Ne.hidden]:[],[Ne.today]:[]},E={};for(const C of e){const{date:N,displayMonth:k}=C,R=!!(k&&!p(N,k)),j=!!(y&&b(N,y)),$=!!(w&&v(N,w)),W=!!(a&&Dt(N,a,o)),U=!!(i&&Dt(N,i,o))||j||$||!u&&!c&&R||u&&c===!1&&R,B=l(N,m??o.today());R&&S.outside.push(C),W&&S.disabled.push(C),U&&S.hidden.push(C),B&&S.today.push(C),s&&Object.keys(s).forEach(I=>{const _=s==null?void 0:s[I];_&&Dt(N,_,o)&&(E[I]?E[I].push(C):E[I]=[C])})}return C=>{const N={[Ne.focused]:!1,[Ne.disabled]:!1,[Ne.hidden]:!1,[Ne.outside]:!1,[Ne.today]:!1},k={};for(const R in S){const j=S[R];N[R]=j.some($=>$===C)}for(const R in E)k[R]=E[R].some(j=>j===C);return{...N,...k}}}function r1(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[ct[a]]&&o.push(t[ct[a]]),o),[t[ce.Day]])}function o1(e){return x.createElement("button",{...e})}function a1(e){return x.createElement("span",{...e})}function s1(e){const{size:t=24,orientation:n="left",className:r}=e;return x.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&x.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&x.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&x.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&x.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function i1(e){const{day:t,modifiers:n,...r}=e;return x.createElement("td",{...r})}function c1(e){const{day:t,modifiers:n,...r}=e,o=x.useRef(null);return x.useEffect(()=>{var a;n.focused&&((a=o.current)==null||a.focus())},[n.focused]),x.createElement("button",{ref:o,...r})}function l1(e){const{options:t,className:n,components:r,classNames:o,...a}=e,i=[o[ce.Dropdown],n].join(" "),s=t==null?void 0:t.find(({value:c})=>c===a.value);return x.createElement("span",{"data-disabled":a.disabled,className:o[ce.DropdownRoot]},x.createElement(r.Select,{className:i,...a},t==null?void 0:t.map(({value:c,label:u,disabled:m})=>x.createElement(r.Option,{key:c,value:c,disabled:m},u))),x.createElement("span",{className:o[ce.CaptionLabel],"aria-hidden":!0},s==null?void 0:s.label,x.createElement(r.Chevron,{orientation:"down",size:18,className:o[ce.Chevron]})))}function u1(e){return x.createElement("div",{...e})}function d1(e){return x.createElement("div",{...e})}function f1(e){const{calendarMonth:t,displayIndex:n,...r}=e;return x.createElement("div",{...r},e.children)}function m1(e){const{calendarMonth:t,displayIndex:n,...r}=e;return x.createElement("div",{...r})}function p1(e){return x.createElement("table",{...e})}function h1(e){return x.createElement("div",{...e})}const Of=x.createContext(void 0);function pr(){const e=x.useContext(Of);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function g1(e){const{components:t}=pr();return x.createElement(t.Dropdown,{...e})}function v1(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:i,classNames:s,labels:{labelPrevious:c,labelNext:u}}=pr(),m=x.useCallback(p=>{o&&(n==null||n(p))},[o,n]),l=x.useCallback(p=>{r&&(t==null||t(p))},[r,t]);return x.createElement("nav",{...a},x.createElement(i.PreviousMonthButton,{type:"button",className:s[ce.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:l},x.createElement(i.Chevron,{disabled:r?void 0:!0,className:s[ce.Chevron],orientation:"left"})),x.createElement(i.NextMonthButton,{type:"button",className:s[ce.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:m},x.createElement(i.Chevron,{disabled:o?void 0:!0,orientation:"right",className:s[ce.Chevron]})))}function b1(e){const{components:t}=pr();return x.createElement(t.Button,{...e})}function y1(e){return x.createElement("option",{...e})}function w1(e){const{components:t}=pr();return x.createElement(t.Button,{...e})}function x1(e){const{rootRef:t,...n}=e;return x.createElement("div",{...n,ref:t})}function S1(e){return x.createElement("select",{...e})}function C1(e){const{week:t,...n}=e;return x.createElement("tr",{...n})}function M1(e){return x.createElement("th",{...e})}function D1(e){return x.createElement("thead",{"aria-hidden":!0},x.createElement("tr",{...e}))}function k1(e){const{week:t,...n}=e;return x.createElement("th",{...n})}function E1(e){return x.createElement("th",{...e})}function N1(e){return x.createElement("tbody",{...e})}function R1(e){const{components:t}=pr();return x.createElement(t.Dropdown,{...e})}const _1=Object.freeze(Object.defineProperty({__proto__:null,Button:o1,CaptionLabel:a1,Chevron:s1,Day:i1,DayButton:c1,Dropdown:l1,DropdownNav:u1,Footer:d1,Month:f1,MonthCaption:m1,MonthGrid:p1,Months:h1,MonthsDropdown:g1,Nav:v1,NextMonthButton:b1,Option:y1,PreviousMonthButton:w1,Root:x1,Select:S1,Week:C1,WeekNumber:k1,WeekNumberHeader:E1,Weekday:M1,Weekdays:D1,Weeks:N1,YearsDropdown:R1},Symbol.toStringTag,{value:"Module"}));function O1(e){return{..._1,...e}}function T1(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 Ms(){const e={};for(const t in ce)e[ce[t]]=`rdp-${ce[t]}`;for(const t in Ne)e[Ne[t]]=`rdp-${Ne[t]}`;for(const t in ct)e[ct[t]]=`rdp-${ct[t]}`;for(const t in Je)e[Je[t]]=`rdp-${Je[t]}`;return e}function Tf(e,t,n){return(n??new Ot(t)).format(e,"LLLL y")}const P1=Tf;function A1(e,t,n){return(n??new Ot(t)).format(e,"d")}function I1(e,t=xt){return t.format(e,"LLLL")}function j1(e,t=xt){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function $1(){return""}function L1(e,t,n){return(n??new Ot(t)).format(e,"cccccc")}function Pf(e,t=xt){return t.format(e,"yyyy")}const F1=Pf,W1=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Tf,formatDay:A1,formatMonthCaption:P1,formatMonthDropdown:I1,formatWeekNumber:j1,formatWeekNumberHeader:$1,formatWeekdayName:L1,formatYearCaption:F1,formatYearDropdown:Pf},Symbol.toStringTag,{value:"Module"}));function B1(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...W1,...e}}function Y1(e,t,n,r,o){const{startOfMonth:a,startOfYear:i,endOfYear:s,eachMonthOfInterval:c,getMonth:u}=o;return c({start:i(e),end:s(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 H1(e,t={},n={}){let r={...t==null?void 0:t[ce.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n==null?void 0:n[o]}}),r}function z1(e,t,n){const r=e.today(),o=t?e.startOfISOWeek(r):e.startOfWeek(r),a=[];for(let i=0;i<7;i++){const s=e.addDays(o,i);a.push(s)}return a}function G1(e,t,n,r){if(!e||!t)return;const{startOfYear:o,endOfYear:a,addYears:i,getYear:s,isBefore:c,isSameYear:u}=r,m=o(e),l=a(t),p=[];let h=m;for(;c(h,l)||u(h,l);)p.push(h),h=i(h,1);return p.map(b=>{const g=n.formatYearDropdown(b,r);return{value:s(b),label:g,disabled:!1}})}function Af(e,t,n){return(n??new Ot(t)).format(e,"LLLL y")}const U1=Af;function q1(e,t,n,r){let o=(r??new Ot(n)).format(e,"PPPP");return t!=null&&t.today&&(o=`Today, ${o}`),o}function If(e,t,n,r){let o=(r??new Ot(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const V1=If;function K1(){return""}function X1(e){return"Choose the Month"}function Z1(e){return"Go to the Next Month"}function Q1(e){return"Go to the Previous Month"}function J1(e,t,n){return(n??new Ot(t)).format(e,"cccc")}function eS(e,t){return`Week ${e}`}function tS(e){return"Week Number"}function nS(e){return"Choose the Year"}const rS=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:U1,labelDay:V1,labelDayButton:If,labelGrid:Af,labelGridcell:q1,labelMonthDropdown:X1,labelNav:K1,labelNext:Z1,labelPrevious:Q1,labelWeekNumber:eS,labelWeekNumberHeader:tS,labelWeekday:J1,labelYearDropdown:nS},Symbol.toStringTag,{value:"Module"})),hr=e=>e instanceof HTMLElement?e:null,zo=e=>[...e.querySelectorAll("[data-animated-month]")??[]],oS=e=>hr(e.querySelector("[data-animated-month]")),Go=e=>hr(e.querySelector("[data-animated-caption]")),Uo=e=>hr(e.querySelector("[data-animated-weeks]")),aS=e=>hr(e.querySelector("[data-animated-nav]")),sS=e=>hr(e.querySelector("[data-animated-weekdays]"));function iS(e,t,{classNames:n,months:r,focused:o,dateLib:a}){const i=x.useRef(null),s=x.useRef(r),c=x.useRef(!1);x.useLayoutEffect(()=>{const u=s.current;if(s.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),l=a.isAfter(r[0].date,u[0].date),p=l?n[Je.caption_after_enter]:n[Je.caption_before_enter],h=l?n[Je.weeks_after_enter]:n[Je.weeks_before_enter],b=i.current,g=e.current.cloneNode(!0);if(g instanceof HTMLElement?(zo(g).forEach(S=>{if(!(S instanceof HTMLElement))return;const E=oS(S);E&&S.contains(E)&&S.removeChild(E);const C=Go(S);C&&C.classList.remove(p);const N=Uo(S);N&&N.classList.remove(h)}),i.current=g):i.current=null,c.current||m||o)return;const v=b instanceof HTMLElement?zo(b):[],y=zo(e.current);if(y&&y.every(w=>w instanceof HTMLElement)&&v&&v.every(w=>w instanceof HTMLElement)){c.current=!0,e.current.style.isolation="isolate";const w=aS(e.current);w&&(w.style.zIndex="1"),y.forEach((S,E)=>{const C=v[E];if(!C)return;S.style.position="relative",S.style.overflow="hidden";const N=Go(S);N&&N.classList.add(p);const k=Uo(S);k&&k.classList.add(h);const R=()=>{c.current=!1,e.current&&(e.current.style.isolation=""),w&&(w.style.zIndex=""),N&&N.classList.remove(p),k&&k.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 j=sS(C);j&&(j.style.opacity="0");const $=Go(C);$&&($.classList.add(l?n[Je.caption_before_exit]:n[Je.caption_after_exit]),$.addEventListener("animationend",R));const W=Uo(C);W&&W.classList.add(l?n[Je.weeks_before_exit]:n[Je.weeks_after_exit]),S.insertBefore(C,S.firstChild)})}})}function cS(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:i,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:u,differenceInCalendarDays:m,differenceInCalendarMonths:l,endOfBroadcastWeek:p,endOfISOWeek:h,endOfMonth:b,endOfWeek:g,isAfter:v,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:S}=r,E=c?y(o,r):i?w(o):S(o),C=c?p(a):i?h(b(a)):g(b(a)),N=m(C,E),k=l(a,o)+1,R=[];for(let W=0;W<=N;W++){const U=u(E,W);if(t&&v(U,t))break;R.push(U)}const $=(c?35:42)*k;if(s&&R.length<$){const W=$-R.length;for(let U=0;U<W;U++){const B=u(R[R.length-1],1);R.push(B)}}return R}function lS(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((a,i)=>[...a,...i.days],t);return[...n,...o]},t)}function uS(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let i=0;i<o;i++){const s=r.addMonths(e,i);if(t&&s>t)break;a.push(s)}return a}function xi(e,t,n,r){const{month:o,defaultMonth:a,today:i=r.today(),numberOfMonths:s=1}=e;let c=o||a||i;const{differenceInCalendarMonths:u,addMonths:m,startOfMonth:l}=r;if(n&&u(n,c)<s-1){const p=-1*(s-1);c=m(n,p)}return t&&u(c,t)<0&&(c=t),l(c)}function dS(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:i,endOfMonth:s,endOfWeek:c,getISOWeek:u,getWeek:m,startOfBroadcastWeek:l,startOfISOWeek:p,startOfWeek:h}=r,b=e.reduce((g,v)=>{const y=n.broadcastCalendar?l(v,r):n.ISOWeek?p(v):h(v),w=n.broadcastCalendar?a(v):n.ISOWeek?i(s(v)):c(s(v)),S=t.filter(k=>k>=y&&k<=w),E=n.broadcastCalendar?35:42;if(n.fixedWeeks&&S.length<E){const k=t.filter(R=>{const j=E-S.length;return R>w&&R<=o(w,j)});S.push(...k)}const C=S.reduce((k,R)=>{const j=n.ISOWeek?u(R):m(R),$=k.find(U=>U.weekNumber===j),W=new Df(R,v,r);return $?$.days.push(W):k.push(new t1(j,[W])),k},[]),N=new e1(v,C);return g.push(N),g},[]);return n.reverseMonths?b.reverse():b}function fS(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:i,endOfMonth:s,addYears:c,endOfYear:u,newDate:m,today:l}=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=i(n):p?n=m(p,0,1):!n&&v&&(n=o(c(e.today??l(),-100))),r?r=s(r):h?r=m(h,11,31):!r&&v&&(r=u(e.today??l())),[n&&a(n),r&&a(r)]}function mS(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:c}=r,u=o?a:1,m=i(e);if(!t)return s(m,u);if(!(c(t,e)<a))return s(m,u)}function pS(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:c}=r,u=o?a??1:1,m=i(e);if(!t)return s(m,-u);if(!(c(m,t)<=0))return s(m,-u)}function hS(e){const t=[];return e.reduce((n,r)=>[...n,...r.weeks],t)}function ko(e,t){const[n,r]=x.useState(e);return[t===void 0?n:t,r]}function gS(e,t){const[n,r]=fS(e,t),{startOfMonth:o,endOfMonth:a}=t,i=xi(e,n,r,t),[s,c]=ko(i,e.month?i:void 0);x.useEffect(()=>{const N=xi(e,n,r,t);c(N)},[e.timeZone]);const u=uS(s,r,e,t),m=cS(u,e.endMonth?a(e.endMonth):void 0,e,t),l=dS(u,m,e,t),p=hS(l),h=lS(l),b=pS(s,n,e,t),g=mS(s,r,e,t),{disableNavigation:v,onMonthChange:y}=e,w=N=>p.some(k=>k.days.some(R=>R.isEqualTo(N))),S=N=>{if(v)return;let k=o(N);n&&k<o(n)&&(k=o(n)),r&&k>o(r)&&(k=o(r)),c(k),y==null||y(k)};return{months:l,weeks:p,days:h,navStart:n,navEnd:r,previousMonth:b,nextMonth:g,goToMonth:S,goToDay:N=>{w(N)||S(N.date)}}}var pt;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(pt||(pt={}));function Si(e){return!e[Ne.disabled]&&!e[Ne.hidden]&&!e[Ne.outside]}function vS(e,t,n,r){let o,a=-1;for(const i of e){const s=t(i);Si(s)&&(s[Ne.focused]&&a<pt.FocusedModifier?(o=i,a=pt.FocusedModifier):r!=null&&r.isEqualTo(i)&&a<pt.LastFocused?(o=i,a=pt.LastFocused):n(i.date)&&a<pt.Selected?(o=i,a=pt.Selected):s[Ne.today]&&a<pt.Today&&(o=i,a=pt.Today))}return o||(o=e.find(i=>Si(t(i)))),o}function bS(e,t,n,r,o,a,i){const{ISOWeek:s,broadcastCalendar:c}=a,{addDays:u,addMonths:m,addWeeks:l,addYears:p,endOfBroadcastWeek:h,endOfISOWeek:b,endOfWeek:g,max:v,min:y,startOfBroadcastWeek:w,startOfISOWeek:S,startOfWeek:E}=i;let N={day:u,week:l,month:m,year:p,startOfWeek:k=>c?w(k,i):s?S(k):E(k),endOfWeek:k=>c?h(k):s?b(k):g(k)}[e](n,t==="after"?1:-1);return t==="before"&&r?N=v([r,N]):t==="after"&&o&&(N=y([o,N])),N}function jf(e,t,n,r,o,a,i,s=0){if(s>365)return;const c=bS(e,t,n.date,r,o,a,i),u=!!(a.disabled&&Dt(c,a.disabled,i)),m=!!(a.hidden&&Dt(c,a.hidden,i)),l=c,p=new Df(c,l,i);return!u&&!m?p:jf(e,t,p,r,o,a,i,s+1)}function yS(e,t,n,r,o){const{autoFocus:a}=e,[i,s]=x.useState(),c=vS(t.days,n,r||(()=>!1),i),[u,m]=x.useState(a?c:void 0);return{isFocusTarget:g=>!!(c!=null&&c.isEqualTo(g)),setFocused:m,focused:u,blur:()=>{s(u),m(void 0)},moveFocus:(g,v)=>{if(!u)return;const y=jf(g,v,u,t.navStart,t.navEnd,e,o);y&&(t.goToDay(y),m(y))}}}function wS(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=ko(n,o?n:void 0),s=o?n:a,{isSameDay:c}=t,u=h=>(s==null?void 0:s.some(b=>c(b,h)))??!1,{min:m,max:l}=e;return{selected:s,select:(h,b,g)=>{let v=[...s??[]];if(u(h)){if((s==null?void 0:s.length)===m||r&&(s==null?void 0:s.length)===1)return;v=s==null?void 0:s.filter(y=>!c(y,h))}else(s==null?void 0:s.length)===l?v=[h]:v=[...v,h];return o||i(v),o==null||o(v,h,b,g),v},isSelected:u}}function xS(e,t,n=0,r=0,o=!1,a=xt){const{from:i,to:s}=t||{},{isSameDay:c,isAfter:u,isBefore:m}=a;let l;if(!i&&!s)l={from:e,to:n>0?void 0:e};else if(i&&!s)c(i,e)?o?l={from:i,to:void 0}:l=void 0:m(e,i)?l={from:e,to:i}:l={from:i,to:e};else if(i&&s)if(c(i,e)&&c(s,e))o?l={from:i,to:s}:l=void 0;else if(c(i,e))l={from:i,to:n>0?void 0:e};else if(c(s,e))l={from:e,to:n>0?void 0:e};else if(m(e,i))l={from:e,to:s};else if(u(e,i))l={from:i,to:e};else if(u(e,s))l={from:i,to:e};else throw new Error("Invalid range");if(l!=null&&l.from&&(l!=null&&l.to)){const p=a.differenceInCalendarDays(l.to,l.from);r>0&&p>r?l={from:e,to:void 0}:n>1&&p<n&&(l={from:e,to:void 0})}return l}function SS(e,t,n=xt){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),i=Math.min(a,6);for(let s=0;s<=i;s++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function Ci(e,t,n=xt){return Mt(e,t.from,!1,n)||Mt(e,t.to,!1,n)||Mt(t,e.from,!1,n)||Mt(t,e.to,!1,n)}function CS(e,t,n=xt){const r=Array.isArray(t)?t:[t];if(r.filter(s=>typeof s!="function").some(s=>typeof s=="boolean"?s:n.isDate(s)?Mt(e,s,!1,n):_f(s,n)?s.some(c=>Mt(e,c,!1,n)):Cs(s)?s.from&&s.to?Ci(e,{from:s.from,to:s.to},n):!1:Rf(s)?SS(e,s.dayOfWeek,n):kf(s)?n.isAfter(s.before,s.after)?Ci(e,{from:n.addDays(s.after,1),to:n.addDays(s.before,-1)},n):Dt(e.from,s,n)||Dt(e.to,s,n):Ef(s)||Nf(s)?Dt(e.from,s,n)||Dt(e.to,s,n):!1))return!0;const i=r.filter(s=>typeof s=="function");if(i.length){let s=e.from;const c=n.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=c;u++){if(i.some(m=>m(s)))return!0;s=n.addDays(s,1)}}return!1}function MS(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:i}=e,[s,c]=ko(o,i?o:void 0),u=i?o:s;return{selected:u,select:(p,h,b)=>{const{min:g,max:v}=e,y=p?xS(p,u,g,v,a,t):void 0;return r&&n&&(y!=null&&y.from)&&y.to&&CS({from:y.from,to:y.to},n,t)&&(y.from=p,y.to=void 0),i||c(y),i==null||i(y,p,h,b),y},isSelected:p=>u&&Mt(u,p,!1,t)}}function DS(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=ko(n,o?n:void 0),s=o?n:a,{isSameDay:c}=t;return{selected:s,select:(l,p,h)=>{let b=l;return!r&&s&&s&&c(l,s)&&(b=void 0),o||i(b),o==null||o(b,l,p,h),b},isSelected:l=>s?c(s,l):!1}}function kS(e,t){const n=DS(e,t),r=wS(e,t),o=MS(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function $f(e){var It;let t=e;t.timeZone&&(t={...e},t.today&&(t.today=new ze(t.today,t.timeZone)),t.month&&(t.month=new ze(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new ze(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new ze(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new ze(t.endMonth,t.timeZone)),t.mode==="single"&&t.selected?t.selected=new ze(t.selected,t.timeZone):t.mode==="multiple"&&t.selected?t.selected=(It=t.selected)==null?void 0:It.map(V=>new ze(V,t.timeZone)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?new ze(t.selected.from,t.timeZone):void 0,to:t.selected.to?new ze(t.selected.to,t.timeZone):void 0}));const{components:n,formatters:r,labels:o,dateLib:a,locale:i,classNames:s}=x.useMemo(()=>{const V={...Ss,...t.locale};return{dateLib:new Ot({locale:V,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:O1(t.components),formatters:B1(t.formatters),labels:{...rS,...t.labels},locale:V,classNames:{...Ms(),...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:c,mode:u,navLayout:m,numberOfMonths:l=1,onDayBlur:p,onDayClick:h,onDayFocus:b,onDayKeyDown:g,onDayMouseEnter:v,onDayMouseLeave:y,onNextClick:w,onPrevClick:S,showWeekNumber:E,styles:C}=t,{formatCaption:N,formatDay:k,formatMonthDropdown:R,formatWeekNumber:j,formatWeekNumberHeader:$,formatWeekdayName:W,formatYearDropdown:U}=r,B=gS(t,a),{days:I,months:_,navStart:M,navEnd:P,previousMonth:D,nextMonth:T,goToMonth:Y}=B,z=n1(I,t,M,P,a),{isSelected:O,select:A,selected:H}=kS(t,a)??{},{blur:G,focused:q,isFocusTarget:F,moveFocus:K,setFocused:X}=yS(t,B,z,O??(()=>!1),a),{labelDayButton:Q,labelGridcell:J,labelGrid:ae,labelMonthDropdown:be,labelNav:ee,labelPrevious:_e,labelNext:je,labelWeekday:Me,labelWeekNumber:Ve,labelWeekNumberHeader:De,labelYearDropdown:We}=o,Tt=x.useMemo(()=>z1(a,t.ISOWeek),[a,t.ISOWeek]),Te=u!==void 0||h!==void 0,Be=x.useCallback(()=>{D&&(Y(D),S==null||S(D))},[D,Y,S]),St=x.useCallback(()=>{T&&(Y(T),w==null||w(T))},[Y,T,w]),Pt=x.useCallback((V,ie)=>se=>{se.preventDefault(),se.stopPropagation(),X(V),A==null||A(V.date,ie,se),h==null||h(V.date,ie,se)},[A,h,X]),ue=x.useCallback((V,ie)=>se=>{X(V),b==null||b(V.date,ie,se)},[b,X]),me=x.useCallback((V,ie)=>se=>{G(),p==null||p(V.date,ie,se)},[G,p]),ye=x.useCallback((V,ie)=>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,oe]=fe[se.key];K(ge,oe)}g==null||g(V.date,ie,se)},[K,g,t.dir]),Pe=x.useCallback((V,ie)=>se=>{v==null||v(V.date,ie,se)},[v]),ke=x.useCallback((V,ie)=>se=>{y==null||y(V.date,ie,se)},[y]),At=x.useCallback(V=>ie=>{const se=Number(ie.target.value),fe=a.setMonth(a.startOfMonth(V),se);Y(fe)},[a,Y]),Ke=x.useCallback(V=>ie=>{const se=Number(ie.target.value),fe=a.setYear(a.startOfMonth(V),se);Y(fe)},[a,Y]),{className:un,style:An}=x.useMemo(()=>({className:[s[ce.Root],t.className].filter(Boolean).join(" "),style:{...C==null?void 0:C[ce.Root],...t.style}}),[s,t.className,t.style,C]),dn=T1(t),Kt=x.useRef(null);iS(Kt,!!t.animate,{classNames:s,months:_,focused:q,dateLib:a});const In={dayPickerProps:t,selected:H,select:A,isSelected:O,months:_,nextMonth:T,previousMonth:D,goToMonth:Y,getModifiers:z,components:n,classNames:s,styles:C,labels:o,formatters:r};return x.createElement(Of.Provider,{value:In},x.createElement(n.Root,{rootRef:t.animate?Kt:void 0,className:un,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"],...dn},x.createElement(n.Months,{className:s[ce.Months],style:C==null?void 0:C[ce.Months]},!t.hideNavigation&&!m&&x.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:s[ce.Nav],style:C==null?void 0:C[ce.Nav],"aria-label":ee(),onPreviousClick:Be,onNextClick:St,previousMonth:D,nextMonth:T}),_.map((V,ie)=>{const se=Y1(V.date,M,P,r,a),fe=G1(M,P,r,a);return x.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:s[ce.Month],style:C==null?void 0:C[ce.Month],key:ie,displayIndex:ie,calendarMonth:V},m==="around"&&!t.hideNavigation&&ie===0&&x.createElement(n.PreviousMonthButton,{type:"button",className:s[ce.PreviousMonthButton],tabIndex:D?void 0:-1,"aria-disabled":D?void 0:!0,"aria-label":_e(D),onClick:Be,"data-animated-button":t.animate?"true":void 0},x.createElement(n.Chevron,{disabled:D?void 0:!0,className:s[ce.Chevron],orientation:t.dir==="rtl"?"right":"left"})),x.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:s[ce.MonthCaption],style:C==null?void 0:C[ce.MonthCaption],calendarMonth:V,displayIndex:ie},c!=null&&c.startsWith("dropdown")?x.createElement(n.DropdownNav,{className:s[ce.Dropdowns],style:C==null?void 0:C[ce.Dropdowns]},c==="dropdown"||c==="dropdown-months"?x.createElement(n.MonthsDropdown,{className:s[ce.MonthsDropdown],"aria-label":be(),classNames:s,components:n,disabled:!!t.disableNavigation,onChange:At(V.date),options:se,style:C==null?void 0:C[ce.Dropdown],value:a.getMonth(V.date)}):x.createElement("span",null,R(V.date,a)),c==="dropdown"||c==="dropdown-years"?x.createElement(n.YearsDropdown,{className:s[ce.YearsDropdown],"aria-label":We(a.options),classNames:s,components:n,disabled:!!t.disableNavigation,onChange:Ke(V.date),options:fe,style:C==null?void 0:C[ce.Dropdown],value:a.getYear(V.date)}):x.createElement("span",null,U(V.date,a)),x.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(V.date,a.options,a))):x.createElement(n.CaptionLabel,{className:s[ce.CaptionLabel],role:"status","aria-live":"polite"},N(V.date,a.options,a))),m==="around"&&!t.hideNavigation&&ie===l-1&&x.createElement(n.NextMonthButton,{type:"button",className:s[ce.NextMonthButton],tabIndex:T?void 0:-1,"aria-disabled":T?void 0:!0,"aria-label":je(T),onClick:St,"data-animated-button":t.animate?"true":void 0},x.createElement(n.Chevron,{disabled:T?void 0:!0,className:s[ce.Chevron],orientation:t.dir==="rtl"?"left":"right"})),ie===l-1&&m==="after"&&!t.hideNavigation&&x.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:s[ce.Nav],style:C==null?void 0:C[ce.Nav],"aria-label":ee(),onPreviousClick:Be,onNextClick:St,previousMonth:D,nextMonth:T}),x.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":ae(V.date,a.options,a)||void 0,className:s[ce.MonthGrid],style:C==null?void 0:C[ce.MonthGrid]},!t.hideWeekdays&&x.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:s[ce.Weekdays],style:C==null?void 0:C[ce.Weekdays]},E&&x.createElement(n.WeekNumberHeader,{"aria-label":De(a.options),className:s[ce.WeekNumberHeader],style:C==null?void 0:C[ce.WeekNumberHeader],scope:"col"},$()),Tt.map((ge,oe)=>x.createElement(n.Weekday,{"aria-label":Me(ge,a.options,a),className:s[ce.Weekday],key:oe,style:C==null?void 0:C[ce.Weekday],scope:"col"},W(ge,a.options,a)))),x.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:s[ce.Weeks],style:C==null?void 0:C[ce.Weeks]},V.weeks.map((ge,oe)=>x.createElement(n.Week,{className:s[ce.Week],key:ge.weekNumber,style:C==null?void 0:C[ce.Week],week:ge},E&&x.createElement(n.WeekNumber,{week:ge,style:C==null?void 0:C[ce.WeekNumber],"aria-label":Ve(ge.weekNumber,{locale:i}),className:s[ce.WeekNumber],scope:"row",role:"rowheader"},j(ge.weekNumber,a)),ge.days.map(de=>{const{date:ve}=de,le=z(de);if(le[Ne.focused]=!le.hidden&&!!(q!=null&&q.isEqualTo(de)),le[ct.selected]=(O==null?void 0:O(ve))||le.selected,Cs(H)){const{from:Qe,to:Ye}=H;le[ct.range_start]=!!(Qe&&Ye&&a.isSameDay(ve,Qe)),le[ct.range_end]=!!(Qe&&Ye&&a.isSameDay(ve,Ye)),le[ct.range_middle]=Mt(H,ve,!0,a)}const Xe=H1(le,C,t.modifiersStyles),xe=r1(le,s,t.modifiersClassNames),Ce=!Te&&!le.hidden?J(ve,le,a.options,a):void 0;return x.createElement(n.Day,{key:`${a.format(ve,"yyyy-MM-dd")}_${a.format(de.displayMonth,"yyyy-MM")}`,day:de,modifiers:le,className:xe.join(" "),style:Xe,role:"gridcell","aria-selected":le.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":le.selected||void 0,"data-disabled":le.disabled||void 0,"data-hidden":le.hidden||void 0,"data-outside":de.outside||void 0,"data-focused":le.focused||void 0,"data-today":le.today||void 0},!le.hidden&&Te?x.createElement(n.DayButton,{className:s[ce.DayButton],style:C==null?void 0:C[ce.DayButton],type:"button",day:de,modifiers:le,disabled:le.disabled||void 0,tabIndex:F(de)?0:-1,"aria-label":Q(ve,le,a.options,a),onClick:Pt(de,le),onBlur:me(de,le),onFocus:ue(de,le),onKeyDown:ye(de,le),onMouseEnter:Pe(de,le),onMouseLeave:ke(de,le)},k(ve,a.options,a)):!le.hidden&&k(de.date,a.options,a))}))))))})),t.footer&&x.createElement(n.Footer,{className:s[ce.Footer],style:C==null?void 0:C[ce.Footer],role:"status","aria-live":"polite"},t.footer)))}var Pr={exports:{}},ES=Pr.exports,Mi;function Lf(){return Mi||(Mi=1,function(e,t){(function(n,r){e.exports=r()})(ES,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",c="hour",u="day",m="week",l="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,w={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(I){var _=["th","st","nd","rd"],M=I%100;return"["+I+(_[(M-20)%10]||_[M]||_[0])+"]"}},S=function(I,_,M){var P=String(I);return!P||P.length>=_?I:""+Array(_+1-P.length).join(M)+I},E={s:S,z:function(I){var _=-I.utcOffset(),M=Math.abs(_),P=Math.floor(M/60),D=M%60;return(_<=0?"+":"-")+S(P,2,"0")+":"+S(D,2,"0")},m:function I(_,M){if(_.date()<M.date())return-I(M,_);var P=12*(M.year()-_.year())+(M.month()-_.month()),D=_.clone().add(P,l),T=M-D<0,Y=_.clone().add(P+(T?-1:1),l);return+(-(P+(M-D)/(T?D-Y:Y-D))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:l,y:h,w:m,d:u,D:b,h:c,m:s,s:i,ms:a,Q:p}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},C="en",N={};N[C]=w;var k="$isDayjsObject",R=function(I){return I instanceof U||!(!I||!I[k])},j=function I(_,M,P){var D;if(!_)return C;if(typeof _=="string"){var T=_.toLowerCase();N[T]&&(D=T),M&&(N[T]=M,D=T);var Y=_.split("-");if(!D&&Y.length>1)return I(Y[0])}else{var z=_.name;N[z]=_,D=z}return!P&&D&&(C=D),D||!P&&C},$=function(I,_){if(R(I))return I.clone();var M=typeof _=="object"?_:{};return M.date=I,M.args=arguments,new U(M)},W=E;W.l=j,W.i=R,W.w=function(I,_){return $(I,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var U=function(){function I(M){this.$L=j(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[k]=!0}var _=I.prototype;return _.parse=function(M){this.$d=function(P){var D=P.date,T=P.utc;if(D===null)return new Date(NaN);if(W.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var Y=D.match(v);if(Y){var z=Y[2]-1||0,O=(Y[7]||"0").substring(0,3);return T?new Date(Date.UTC(Y[1],z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,O)):new Date(Y[1],z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,O)}}return new Date(D)}(M),this.init()},_.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},_.$utils=function(){return W},_.isValid=function(){return this.$d.toString()!==g},_.isSame=function(M,P){var D=$(M);return this.startOf(P)<=D&&D<=this.endOf(P)},_.isAfter=function(M,P){return $(M)<this.startOf(P)},_.isBefore=function(M,P){return this.endOf(P)<$(M)},_.$g=function(M,P,D){return W.u(M)?this[P]:this.set(D,M)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(M,P){var D=this,T=!!W.u(P)||P,Y=W.p(M),z=function(X,Q){var J=W.w(D.$u?Date.UTC(D.$y,Q,X):new Date(D.$y,Q,X),D);return T?J:J.endOf(u)},O=function(X,Q){return W.w(D.toDate()[X].apply(D.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(Q)),D)},A=this.$W,H=this.$M,G=this.$D,q="set"+(this.$u?"UTC":"");switch(Y){case h:return T?z(1,0):z(31,11);case l:return T?z(1,H):z(0,H+1);case m:var F=this.$locale().weekStart||0,K=(A<F?A+7:A)-F;return z(T?G-K:G+(6-K),H);case u:case b:return O(q+"Hours",0);case c:return O(q+"Minutes",1);case s:return O(q+"Seconds",2);case i:return O(q+"Milliseconds",3);default:return this.clone()}},_.endOf=function(M){return this.startOf(M,!1)},_.$set=function(M,P){var D,T=W.p(M),Y="set"+(this.$u?"UTC":""),z=(D={},D[u]=Y+"Date",D[b]=Y+"Date",D[l]=Y+"Month",D[h]=Y+"FullYear",D[c]=Y+"Hours",D[s]=Y+"Minutes",D[i]=Y+"Seconds",D[a]=Y+"Milliseconds",D)[T],O=T===u?this.$D+(P-this.$W):P;if(T===l||T===h){var A=this.clone().set(b,1);A.$d[z](O),A.init(),this.$d=A.set(b,Math.min(this.$D,A.daysInMonth())).$d}else z&&this.$d[z](O);return this.init(),this},_.set=function(M,P){return this.clone().$set(M,P)},_.get=function(M){return this[W.p(M)]()},_.add=function(M,P){var D,T=this;M=Number(M);var Y=W.p(P),z=function(H){var G=$(T);return W.w(G.date(G.date()+Math.round(H*M)),T)};if(Y===l)return this.set(l,this.$M+M);if(Y===h)return this.set(h,this.$y+M);if(Y===u)return z(1);if(Y===m)return z(7);var O=(D={},D[s]=r,D[c]=o,D[i]=n,D)[Y]||1,A=this.$d.getTime()+M*O;return W.w(A,this)},_.subtract=function(M,P){return this.add(-1*M,P)},_.format=function(M){var P=this,D=this.$locale();if(!this.isValid())return D.invalidDate||g;var T=M||"YYYY-MM-DDTHH:mm:ssZ",Y=W.z(this),z=this.$H,O=this.$m,A=this.$M,H=D.weekdays,G=D.months,q=D.meridiem,F=function(Q,J,ae,be){return Q&&(Q[J]||Q(P,T))||ae[J].slice(0,be)},K=function(Q){return W.s(z%12||12,Q,"0")},X=q||function(Q,J,ae){var be=Q<12?"AM":"PM";return ae?be.toLowerCase():be};return T.replace(y,function(Q,J){return J||function(ae){switch(ae){case"YY":return String(P.$y).slice(-2);case"YYYY":return W.s(P.$y,4,"0");case"M":return A+1;case"MM":return W.s(A+1,2,"0");case"MMM":return F(D.monthsShort,A,G,3);case"MMMM":return F(G,A);case"D":return P.$D;case"DD":return W.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return F(D.weekdaysMin,P.$W,H,2);case"ddd":return F(D.weekdaysShort,P.$W,H,3);case"dddd":return H[P.$W];case"H":return String(z);case"HH":return W.s(z,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return X(z,O,!0);case"A":return X(z,O,!1);case"m":return String(O);case"mm":return W.s(O,2,"0");case"s":return String(P.$s);case"ss":return W.s(P.$s,2,"0");case"SSS":return W.s(P.$ms,3,"0");case"Z":return Y}return null}(Q)||Y.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(M,P,D){var T,Y=this,z=W.p(P),O=$(M),A=(O.utcOffset()-this.utcOffset())*r,H=this-O,G=function(){return W.m(Y,O)};switch(z){case h:T=G()/12;break;case l:T=G();break;case p:T=G()/3;break;case m:T=(H-A)/6048e5;break;case u:T=(H-A)/864e5;break;case c:T=H/o;break;case s:T=H/r;break;case i:T=H/n;break;default:T=H}return D?T:W.a(T)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return N[this.$L]},_.locale=function(M,P){if(!M)return this.$L;var D=this.clone(),T=j(M,P,!0);return T&&(D.$L=T),D},_.clone=function(){return W.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()},I}(),B=U.prototype;return $.prototype=B,[["$ms",a],["$s",i],["$m",s],["$H",c],["$W",u],["$M",l],["$y",h],["$D",b]].forEach(function(I){B[I[1]]=function(_){return this.$g(_,I[0],I[1])}}),$.extend=function(I,_){return I.$i||(I(_,U,$),I.$i=!0),$},$.locale=j,$.isDayjs=R,$.unix=function(I){return $(1e3*I)},$.en=N[C],$.Ls=N,$.p={},$})}(Pr)),Pr.exports}var NS=Lf();const kt=Ba(NS);var Ar={exports:{}},RS=Ar.exports,Di;function _S(){return Di||(Di=1,function(e,t){(function(n,r){e.exports=r()})(RS,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 i=o.prototype,s=i.format;a.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,m=function(l,p){return l.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,w,S){return w||S.slice(1)})})}(c,u===void 0?{}:u);return s.call(this,m)}}})}(Ar)),Ar.exports}var OS=_S();const Ff=Ba(OS);var Ir={exports:{}},TS=Ir.exports,ki;function PS(){return ki||(ki=1,function(e,t){(function(n,r){e.exports=r(Lf())})(TS,function(n){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}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(i){return""+i+(i===1?"er":"")}};return o.default.locale(a,null,!0),a})}(Ir)),Ir.exports}PS();function AS({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(),i=Array.from({length:201},(l,p)=>a-100+p),s=l=>{const p=new Date(e);p.setMonth(Number.parseInt(l)),t(p)},c=l=>{const p=new Date(e);p.setFullYear(Number.parseInt(l)),t(p)},u=()=>{const l=new Date(e);l.setMonth(l.getMonth()-1),t(l)},m=()=>{const l=new Date(e);l.setMonth(l.getMonth()+1),t(l)};return d.jsxs("div",{className:"flex items-center justify-between p-2 border-b bg-muted",children:[d.jsx(_t,{variant:"outline",size:"small",onClick:u,className:"h-7 w-7 p-0",children:d.jsx(of,{className:"h-4 w-4"})}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs(wa,{value:r.toString(),onValueChange:s,children:[d.jsx(Ur,{className:"w-32 h-8 text-sm",children:d.jsx(xa,{})}),d.jsx(qr,{children:o.map((l,p)=>d.jsx(Vr,{value:p.toString(),children:l},l))})]}),d.jsxs(wa,{value:n.toString(),onValueChange:c,children:[d.jsx(Ur,{className:"w-20 h-8 text-sm",children:d.jsx(xa,{})}),d.jsx(qr,{className:"max-h-[200px]",children:i.map(l=>d.jsx(Vr,{value:l.toString(),children:l},l))})]})]}),d.jsx(_t,{variant:"outline",size:"small",onClick:m,className:"h-7 w-7 p-0",children:d.jsx(bs,{className:"h-4 w-4"})})]})}kt.extend(Ff);const Kr=({label:e,placeholder:t="Pick a date",helperText:n,error:r,required:o,value:a,onSelect:i,className:s,minDate:c,maxDate:u,disabled:m,readOnly:l,locale:p="en",showOutsideDays:h,dayPickerProps:b,month:g,onMonthChange:v,open:y,onOpenChange:w,...S})=>{const[E,C]=x.useState(!1),N=y!==void 0?y:E,k=w||C,R=g??a??new Date,j=$=>{$&&(!a||$.getTime()!==a.getTime())&&(i==null||i($),k(!1))};return kt.locale(p),d.jsxs("div",{className:L("space-y-1",s),...S,children:[e&&d.jsxs(cn,{className:"text-sm font-medium text-gray-700",children:[e,o&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs(ws,{open:N,onOpenChange:k,children:[d.jsx(xs,{asChild:!0,children:d.jsxs(_t,{variant:"outline",className:L("w-full flex justify-between items-center font-normal",!a&&"text-muted-foreground",r&&"border border-destructive"),disabled:m,"aria-readonly":l,children:[d.jsx("span",{className:L("text-left",!a&&"text-muted-foreground"),children:a?kt(a).locale(p).format("LL"):t}),d.jsx(rf,{strokeWidth:1.2,className:"ml-6 h-6 w-6 shrink-0 text-foreground"})]})}),d.jsx(Do,{className:"w-auto p-0",align:"start",children:d.jsxs("div",{className:"bg-white rounded-md border shadow-md",children:[d.jsx(AS,{month:R,onMonthChange:v??(()=>{})}),d.jsx("div",{className:"p-3",children:d.jsx($f,{mode:"single",selected:a,onSelect:j,month:R,onMonthChange:v,fromDate:c,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:L("text-xs",r?"text-destructive":"text-gray-500"),children:r||n})]})};function IS({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:a,components:i,...s}){const c=Ms();return d.jsx($f,{showOutsideDays:n,className:L("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:L("w-fit",c.root),months:L("relative flex flex-col gap-4 md:flex-row",c.months),month:L("flex w-full flex-col gap-4",c.month),nav:L("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",c.nav),button_previous:L(va({variant:o}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",c.button_previous),button_next:L(va({variant:o}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",c.button_next),month_caption:L("flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",c.month_caption),dropdowns:L("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",c.dropdowns),dropdown_root:L("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",c.dropdown_root),dropdown:L("absolute inset-0 opacity-0",c.dropdown),caption_label:L("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",c.caption_label),table:"w-full border-collapse",weekdays:L("flex",c.weekdays),weekday:L("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",c.weekday),week:L("mt-2 flex w-full",c.week),week_number_header:L("w-[--cell-size] select-none",c.week_number_header),week_number:L("text-muted-foreground select-none text-[0.8rem]",c.week_number),day:L("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",c.day),range_start:L("bg-accent rounded-l-md",c.range_start),range_middle:L("rounded-none",c.range_middle),range_end:L("bg-accent rounded-r-md",c.range_end),today:L("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",c.today),outside:L("text-muted-foreground aria-selected:text-muted-foreground",c.outside),disabled:L("text-muted-foreground opacity-50",c.disabled),hidden:L("invisible",c.hidden),...t},components:{Root:({className:u,rootRef:m,...l})=>d.jsx("div",{"data-slot":"calendar",ref:m,className:L(u),...l}),Chevron:({className:u,orientation:m,...l})=>m==="left"?d.jsx(of,{className:L("size-4",u),...l}):m==="right"?d.jsx(bs,{className:L("size-4",u),...l}):d.jsx(fr,{className:L("size-4",u),...l}),DayButton:jS,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})}),...i},...s})}function jS({className:e,day:t,modifiers:n,...r}){const o=Ms(),a=f.useRef(null);return f.useEffect(()=>{var p;n.focused&&((p=a.current)==null||p.focus())},[n.focused]),d.jsx(_t,{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:L("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:{}},$S=jr.exports,Ei;function LS(){return Ei||(Ei=1,function(e,t){(function(n,r){e.exports=r()})($S,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/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},u=function(v){return(v=+v)+(v>68?1900:2e3)},m=function(v){return function(y){this[v]=+y}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var w=y.match(/([+-]|\d\d)/g),S=60*w[1]+(+w[2]||0);return S===0?0:w[0]==="+"?-S:S}(v)}],p=function(v){var y=c[v];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(v,y){var w,S=c.meridiem;if(S){for(var E=1;E<=24;E+=1)if(v.indexOf(S(E,0,y))>-1){w=E>12;break}}else w=v===(y?"pm":"PM");return w},b={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,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:[i,m("seconds")],ss:[i,m("seconds")],m:[i,m("minutes")],mm:[i,m("minutes")],H:[i,m("hours")],h:[i,m("hours")],HH:[i,m("hours")],hh:[i,m("hours")],D:[i,m("day")],DD:[a,m("day")],Do:[s,function(v){var y=c.ordinal,w=v.match(/\d+/);if(this.day=w[0],y)for(var S=1;S<=31;S+=1)y(S).replace(/\[|\]/g,"")===v&&(this.day=S)}],w:[i,m("week")],ww:[a,m("week")],M:[i,m("month")],MM:[a,m("month")],MMM:[s,function(v){var y=p("months"),w=(p("monthsShort")||y.map(function(S){return S.slice(0,3)})).indexOf(v)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[s,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:l,ZZ:l};function g(v){var y,w;y=v,w=c&&c.formats;for(var S=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,W,U){var B=U&&U.toUpperCase();return W||w[U]||n[U]||w[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,_,M){return _||M.slice(1)})})).match(r),E=S.length,C=0;C<E;C+=1){var N=S[C],k=b[N],R=k&&k[0],j=k&&k[1];S[C]=j?{regex:R,parser:j}:N.replace(/^\[|\]$/g,"")}return function($){for(var W={},U=0,B=0;U<E;U+=1){var I=S[U];if(typeof I=="string")B+=I.length;else{var _=I.regex,M=I.parser,P=$.slice(B),D=_.exec(P)[0];M.call(W,D),$=$.replace(D,"")}}return function(T){var Y=T.afternoon;if(Y!==void 0){var z=T.hours;Y?z<12&&(T.hours+=12):z===12&&(T.hours=0),delete T.afternoon}}(W),W}}return function(v,y,w){w.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(u=v.parseTwoDigitYear);var S=y.prototype,E=S.parse;S.parse=function(C){var N=C.date,k=C.utc,R=C.args;this.$u=k;var j=R[1];if(typeof j=="string"){var $=R[2]===!0,W=R[3]===!0,U=$||W,B=R[2];W&&(B=R[2]),c=this.$locale(),!$&&B&&(c=w.Ls[B]),this.$d=function(P,D,T,Y){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*P);var z=g(D)(P),O=z.year,A=z.month,H=z.day,G=z.hours,q=z.minutes,F=z.seconds,K=z.milliseconds,X=z.zone,Q=z.week,J=new Date,ae=H||(O||A?1:J.getDate()),be=O||J.getFullYear(),ee=0;O&&!A||(ee=A>0?A-1:J.getMonth());var _e,je=G||0,Me=q||0,Ve=F||0,De=K||0;return X?new Date(Date.UTC(be,ee,ae,je,Me,Ve,De+60*X.offset*1e3)):T?new Date(Date.UTC(be,ee,ae,je,Me,Ve,De)):(_e=new Date(be,ee,ae,je,Me,Ve,De),Q&&(_e=Y(_e).week(Q).toDate()),_e)}catch{return new Date("")}}(N,j,k,w),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),U&&N!=this.format(j)&&(this.$d=new Date("")),c={}}else if(j instanceof Array)for(var I=j.length,_=1;_<=I;_+=1){R[1]=j[_-1];var M=w.apply(this,R);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}_===I&&(this.$d=new Date(""))}else E.call(this,C)}}})}(jr)),jr.exports}var FS=LS();const WS=Ba(FS);kt.extend(WS);kt.extend(Ff);const BS={"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-]$/}},YS=({label:e,placeholder:t,helperText:n,required:r,value:o,onSelect:a,className:i,minDate:s,maxDate:c,disabled:u,readOnly:m,locale:l="en",inputClassName:p,dateFormat:h="DD/MM/YYYY",error:b})=>{const[g,v]=f.useState(!1),[y,w]=f.useState(""),[S,E]=f.useState(o),C=f.useMemo(()=>h,[h]),N=f.useMemo(()=>BS[C],[C]),k=f.useMemo(()=>t||C.toLowerCase(),[t,C]),R=f.useCallback(_=>{const M=_.replace(/\D/g,""),{separator:P}=N;if(M.length<=2)return M;switch(C){case"MM/DD/YYYY":case"DD/MM/YYYY":return M.length<=4?`${M.substring(0,2)}${P}${M.substring(2)}`:`${M.substring(0,2)}${P}${M.substring(2,4)}${P}${M.substring(4,8)}`;case"YYYY-MM-DD":return M.length<=4?M:M.length<=6?`${M.substring(0,4)}${P}${M.substring(4)}`:`${M.substring(0,4)}${P}${M.substring(4,6)}${P}${M.substring(6,8)}`;case"DD-MM-YYYY":return M.length<=4?`${M.substring(0,2)}${P}${M.substring(2)}`:`${M.substring(0,2)}${P}${M.substring(2,4)}${P}${M.substring(4,8)}`;default:return _}},[C,N]),j=f.useMemo(()=>_=>{const M=_.trim();return M&&kt(M,C,!0).isValid()?kt(M,C):null},[C]),$=f.useCallback(_=>kt(_).format(C),[C]);f.useEffect(()=>{w(o?$(o):""),E(o),kt.locale(l)},[o,l,$]);const W=f.useCallback(_=>{let M=_.target.value;if(w(M),!M.trim()){E(void 0),a==null||a(void 0);return}const P=R(M);P!==M&&M.replace(/\D/g,"").length>1&&(w(P),M=P);const D=j(M);if(D!=null&&D.isValid()){const T=D.toDate();(!s||T>=s)&&(!c||T<=c)&&(E(T),a==null||a(T))}},[R,j,a,s,c]),U=f.useCallback(()=>{S&&w($(S))},[S,$]),B=f.useCallback(_=>{_&&(w($(_)),E(_),a==null||a(_),v(!1))},[a,$]),I=f.useCallback(_=>{if(!["Backspace","Delete","Tab","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(_.key)&&!N.pattern.test(_.key)&&!_.ctrlKey&&!_.metaKey){_.preventDefault();return}_.key==="Enter"&&(_.preventDefault(),U())},[N.pattern,U]);return d.jsxs("div",{className:L("space-y-1",i),children:[e&&d.jsxs(cn,{className:"text-sm font-medium text-gray-700",children:[e,r&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs(ws,{open:g,onOpenChange:v,children:[d.jsxs("div",{className:L("w-60 relative",p),children:[d.jsx(sn,{type:"text",value:y,onChange:W,onBlur:U,onKeyDown:I,placeholder:k,disabled:u,readOnly:m,className:L("w-full pr-12",b&&"border border-destructive focus-visible:ring-destructive")}),d.jsx(xs,{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:()=>v(_=>!_),disabled:u||m,"aria-label":"Open calendar",children:d.jsx(rf,{strokeWidth:1,className:"h-5 w-5"})})})]}),d.jsx(Do,{className:"w-auto p-0",align:"start",children:d.jsx(IS,{mode:"single",selected:S,onSelect:B,fromDate:s,toDate:c})})]}),(n||b)&&d.jsx("p",{className:L("text-xs",b?"text-destructive":"text-gray-500"),children:b||n})]})};function Dn({label:e,placeholder:t="Select option",options:n,value:r,leadingIcon:o,helperText:a,error:i,required:s,onValueChange:c,className:u,variant:m="default",disabled:l=!1,clearable:p}){const h=r!==void 0,[b,g]=x.useState(void 0),v=h?r:b,y=w=>{h||g(w),c==null||c(w)};return d.jsxs("div",{className:L("space-y-1",u),children:[e&&d.jsxs(cn,{className:L("text-sm font-medium",l?"text-gray-400":"text-gray-700"),children:[e,s&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsxs(wa,{value:v??void 0,onValueChange:y,disabled:l,children:[d.jsx(Ur,{className:L("border-input",i&&"border-destructive",m==="gray"&&"bg-gray-100 border-gray-300 text-gray-700",l&&"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(xa,{placeholder:t}),p&&!!v&&!l&&d.jsx("span",{role:"button","aria-label":"Clear selection",tabIndex:0,className:"ml-auto text-gray-400 hover:text-gray-600 relative z-10",onMouseDown:w=>{w.preventDefault(),w.stopPropagation()},onPointerDown:w=>{w.preventDefault(),w.stopPropagation()},onClick:w=>{w.preventDefault(),w.stopPropagation(),h||g(void 0),c==null||c("")},children:d.jsx(ln,{strokeWidth:1.5,color:"gray",className:"h-4 w-4 mr-3"})})]})}),d.jsx(qr,{children:n.map(w=>d.jsx(Vr,{value:w.value,children:w.label},w.value))})]},v??"__empty"),(a||i)&&d.jsx("p",{className:L("text-xs",i?"text-destructive":l?"text-gray-400":"text-gray-500"),children:i||a})]})}const HS=({label:e,variant:t="filled",color:n="default",size:r="medium",deletable:o=!1,onDelete:a,onClick:i,icon:s,avatar:c,disabled:u=!1,className:m="",...l})=>{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-destructive text-red-600 hover:bg-red-50"}},g=u?"opacity-50 cursor-not-allowed":"cursor-pointer",v=i&&!u?"hover:shadow-md":"",y=`
197
- ${p}
198
- ${h[r]}
199
- ${b[n][t]}
200
- ${g}
201
- ${v}
202
- ${m}
203
- `.trim(),w=C=>{!u&&i&&i(C)},S=C=>{C.stopPropagation(),!u&&a&&a(C)},E=r==="small"?12:r==="large"?18:14;return d.jsxs("div",{className:y,onClick:w,...l,children:[c&&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 c=="string"?d.jsx("img",{src:c,alt:`Avatar for ${e}`,className:"w-full h-full object-cover"}):c}),s&&!c&&d.jsx("div",{className:"flex items-center",children:x.isValidElement(s)?x.cloneElement(s,{size:E}):s}),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(ln,{size:E})})]})},zS=[{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 GS({className:e,countries:t=zS,onValueChange:n}){return d.jsxs("div",{className:L("space-y-4",e),children:[d.jsx(nt,{label:"Street Address",placeholder:"Enter street address",required:!0,onChange:r=>n==null?void 0:n("streetAddress",r.target.value)}),d.jsx(nt,{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(nt,{label:"City",placeholder:"Enter city",required:!0,onChange:r=>n==null?void 0:n("city",r.target.value)}),d.jsx(nt,{label:"State/Province",placeholder:"Enter state",required:!0,onChange:r=>n==null?void 0:n("state",r.target.value)}),d.jsx(nt,{label:"ZIP/Postal Code",placeholder:"Enter ZIP code",required:!0,onChange:r=>n==null?void 0:n("zipCode",r.target.value)})]}),d.jsx(Dn,{label:"Country",placeholder:"Select country",options:t,leadingIcon:d.jsx(px,{className:"h-4 w-4"}),required:!0,onValueChange:r=>n==null?void 0:n("country",r)})]})}const US=[{value:"sales",label:"Sales"},{value:"support",label:"Support"},{value:"general",label:"General Inquiry"}];function qS({className:e,showDepartment:t=!0,departmentOptions:n=US,onValueChange:r}){return d.jsxs("div",{className:L("space-y-4",e),children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[d.jsx(nt,{label:"First Name",placeholder:"Enter first name",required:!0,onChange:o=>r==null?void 0:r("firstName",o.target.value)}),d.jsx(nt,{label:"Last Name",placeholder:"Enter last name",required:!0,onChange:o=>r==null?void 0:r("lastName",o.target.value)})]}),d.jsx(nt,{label:"Email Address",type:"email",placeholder:"Enter your email",leftIcon:d.jsx(sf,{className:"h-4 w-4"}),required:!0,onChange:o=>r==null?void 0:r("email",o.target.value)}),d.jsx(nt,{label:"Phone Number",type:"tel",placeholder:"+1 (555) 000-0000",leftIcon:d.jsx(bx,{className:"h-4 w-4"}),onChange:o=>r==null?void 0:r("phone",o.target.value)}),t&&d.jsx(Dn,{label:"Department",placeholder:"Select department",options:n,leadingIcon:d.jsx(Gw,{className:"h-4 w-4"}),onValueChange:o=>r==null?void 0:r("department",o)}),d.jsx(ys,{label:"Message",placeholder:"How can we help you?",required:!0,onChange:o=>r==null?void 0:r("message",o.target.value)})]})}const VS={small:"h-8 text-sm",medium:"h-10",large:"h-12 text-base"},KS={white:"bg-white border-gray-300",grey:"bg-gray-100 border-gray-300"},Wf=({size:e="medium",variant:t="white",placeholder:n="Search here",className:r,onChange:o,query:a="",disabled:i})=>d.jsxs("div",{className:"relative",children:[d.jsx(cf,{strokeWidth:1.1,className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-900 h-5 w-5"}),d.jsx(sn,{placeholder:n,className:L("pl-12 rounded-full",VS[e],KS[t],r),onChange:o,value:a,disabled:i})]}),XS=[{value:"all",label:"All Categories"},{value:"electronics",label:"Electronics"},{value:"clothing",label:"Clothing"},{value:"books",label:"Books"}],ZS=[{value:"newest",label:"Newest First"},{value:"oldest",label:"Oldest First"},{value:"name-asc",label:"Name A-Z"},{value:"name-desc",label:"Name Z-A"}],QS=({className:e,searchPlaceholder:t="Search...",categories:n=XS,sortOptions:r=ZS,showDateFilter:o=!1,onSearch:a,onFilter:i,onClear:s,defaultFilters:c})=>{const[u,m]=x.useState({category:(c==null?void 0:c.category)??"",sort:(c==null?void 0:c.sort)??"",dateFrom:c==null?void 0:c.dateFrom,dateTo:c==null?void 0:c.dateTo}),[l,p]=x.useState(!1),[h,b]=x.useState(!1),[g,v]=x.useState(u.dateFrom??new Date),[y,w]=x.useState(u.dateTo??new Date),S=(N,k)=>{const R={...u,[N]:k};m(R),i==null||i(R)},E=()=>{m({category:"",sort:"",dateFrom:void 0,dateTo:void 0}),s==null||s()},C=Object.values(u).some(N=>N!==""&&N!==void 0);return d.jsxs("div",{className:L("space-y-4",e),children:[d.jsx(Wf,{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(lx,{className:"h-4 w-4 text-gray-500"}),d.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Filters:"})]}),d.jsx(Dn,{placeholder:"Category",options:n,onValueChange:N=>S("category",N),className:"min-w-[140px]"}),d.jsx(Dn,{placeholder:"Sort by",options:r,onValueChange:N=>S("sort",N),className:"min-w-[140px]"}),o&&d.jsxs(d.Fragment,{children:[d.jsx(Kr,{placeholder:"From date",value:u.dateFrom,onSelect:N=>{S("dateFrom",N),v(N??g)},className:"min-w-[140px]",open:l,onOpenChange:p,month:g,onMonthChange:v}),d.jsx(Kr,{placeholder:"To date",value:u.dateTo,onSelect:N=>{S("dateTo",N),w(N??y)},className:"min-w-[140px]",open:h,onOpenChange:b,month:y,onMonthChange:w})]}),C&&d.jsxs(_t,{variant:"outline",size:"small",onClick:E,className:"flex items-center gap-1",children:[d.jsx(ln,{className:"h-3 w-3"}),"Clear"]})]})]})},JS=[{value:"personal",label:"Personal Account"},{value:"business",label:"Business Account"},{value:"developer",label:"Developer Account"}];function eC({className:e,showDateOfBirth:t=!0,accountTypes:n=JS,onValueChange:r}){const[o,a]=x.useState(),[i,s]=x.useState(!1),[c,u]=x.useState(!1),[m,l]=x.useState(!1),[p,h]=x.useState(o??new Date),[b,g]=x.useState(""),[v,y]=x.useState("");return d.jsxs("div",{className:L("space-y-4",e),children:[d.jsx(nt,{label:"Username",placeholder:"Choose a username",helperText:"Must be at least 3 characters long",required:!0,onChange:w=>r==null?void 0:r("username",w.target.value)}),d.jsx(nt,{label:"Email Address",type:"email",placeholder:"Enter your email",leftIcon:d.jsx(sf,{className:"h-4 w-4"}),required:!0,onChange:w=>r==null?void 0:r("email",w.target.value)}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[d.jsx(ya,{label:"Password",helperText:"Must be at least 8 characters",required:!0,value:b,onChange:w=>{g(w),r==null||r("password",w)},showPassword:i,onShowPasswordChange:s}),d.jsx(ya,{label:"Confirm Password",placeholder:"Confirm your password",required:!0,value:v,onChange:w=>{y(w),r==null||r("confirmPassword",w)},showPassword:c,onShowPasswordChange:u})]}),d.jsx(Dn,{label:"Account Type",placeholder:"Select account type",options:n,leadingIcon:d.jsx(Cx,{className:"h-4 w-4"}),required:!0,onValueChange:w=>r==null?void 0:r("accountType",w)}),t&&d.jsx(Kr,{label:"Date of Birth",placeholder:"Select your birth date",helperText:"Must be 18 or older",value:o,maxDate:new Date,onSelect:w=>{a(w),h(w??p),w&&(r==null||r("dateOfBirth",w))},open:m,onOpenChange:l,month:p,onMonthChange:h})]})}var Ni=1,tC=.9,nC=.8,rC=.17,qo=.1,Vo=.999,oC=.9999,aC=.99,sC=/[\\\/_+.#"@\[\(\{&]/,iC=/[\\\/_+.#"@\[\(\{&]/g,cC=/[\s-]/,Bf=/[\s-]/g;function Ca(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?Ni:aC;var s=`${o},${a}`;if(i[s]!==void 0)return i[s];for(var c=r.charAt(a),u=n.indexOf(c,o),m=0,l,p,h,b;u>=0;)l=Ca(e,t,n,r,u+1,a+1,i),l>m&&(u===o?l*=Ni:sC.test(e.charAt(u-1))?(l*=nC,h=e.slice(o,u-1).match(iC),h&&o>0&&(l*=Math.pow(Vo,h.length))):cC.test(e.charAt(u-1))?(l*=tC,b=e.slice(o,u-1).match(Bf),b&&o>0&&(l*=Math.pow(Vo,b.length))):(l*=rC,o>0&&(l*=Math.pow(Vo,u-o))),e.charAt(u)!==t.charAt(a)&&(l*=oC)),(l<qo&&n.charAt(u-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(u-1)!==r.charAt(a))&&(p=Ca(e,t,n,r,u+1,a+2,i),p*qo>l&&(l=p*qo)),l>m&&(m=l),u=n.indexOf(c,u+1);return i[s]=m,m}function Ri(e){return e.toLowerCase().replace(Bf," ")}function lC(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Ca(e,t,Ri(e),Ri(t),0,0,{})}var Fn='[cmdk-group=""]',Ko='[cmdk-group-items=""]',uC='[cmdk-group-heading=""]',Yf='[cmdk-item=""]',_i=`${Yf}:not([aria-disabled="true"])`,Ma="cmdk-item-select",vn="data-value",dC=(e,t,n)=>lC(e,t,n),Hf=f.createContext(void 0),gr=()=>f.useContext(Hf),zf=f.createContext(void 0),Ds=()=>f.useContext(zf),Gf=f.createContext(void 0),Uf=f.forwardRef((e,t)=>{let n=bn(()=>{var O,A;return{search:"",value:(A=(O=e.value)!=null?O:e.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=bn(()=>new Set),o=bn(()=>new Map),a=bn(()=>new Map),i=bn(()=>new Set),s=qf(e),{label:c,children:u,value:m,onValueChange:l,filter:p,shouldFilter:h,loop:b,disablePointerSelection:g=!1,vimBindings:v=!0,...y}=e,w=Oe(),S=Oe(),E=Oe(),C=f.useRef(null),N=SC();on(()=>{if(m!==void 0){let O=m.trim();n.current.value=O,k.emit()}},[m]),on(()=>{N(6,B)},[]);let k=f.useMemo(()=>({subscribe:O=>(i.current.add(O),()=>i.current.delete(O)),snapshot:()=>n.current,setState:(O,A,H)=>{var G,q,F,K;if(!Object.is(n.current[O],A)){if(n.current[O]=A,O==="search")U(),$(),N(1,W);else if(O==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let X=document.getElementById(E);X?X.focus():(G=document.getElementById(w))==null||G.focus()}if(N(7,()=>{var X;n.current.selectedItemId=(X=I())==null?void 0:X.id,k.emit()}),H||N(5,B),((q=s.current)==null?void 0:q.value)!==void 0){let X=A??"";(K=(F=s.current).onValueChange)==null||K.call(F,X);return}}k.emit()}},emit:()=>{i.current.forEach(O=>O())}}),[]),R=f.useMemo(()=>({value:(O,A,H)=>{var G;A!==((G=a.current.get(O))==null?void 0:G.value)&&(a.current.set(O,{value:A,keywords:H}),n.current.filtered.items.set(O,j(A,H)),N(2,()=>{$(),k.emit()}))},item:(O,A)=>(r.current.add(O),A&&(o.current.has(A)?o.current.get(A).add(O):o.current.set(A,new Set([O]))),N(3,()=>{U(),$(),n.current.value||W(),k.emit()}),()=>{a.current.delete(O),r.current.delete(O),n.current.filtered.items.delete(O);let H=I();N(4,()=>{U(),(H==null?void 0:H.getAttribute("id"))===O&&W(),k.emit()})}),group:O=>(o.current.has(O)||o.current.set(O,new Set),()=>{a.current.delete(O),o.current.delete(O)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:w,inputId:E,labelId:S,listInnerRef:C}),[]);function j(O,A){var H,G;let q=(G=(H=s.current)==null?void 0:H.filter)!=null?G:dC;return O?q(O,n.current.search,A):0}function $(){if(!n.current.search||s.current.shouldFilter===!1)return;let O=n.current.filtered.items,A=[];n.current.filtered.groups.forEach(G=>{let q=o.current.get(G),F=0;q.forEach(K=>{let X=O.get(K);F=Math.max(X,F)}),A.push([G,F])});let H=C.current;_().sort((G,q)=>{var F,K;let X=G.getAttribute("id"),Q=q.getAttribute("id");return((F=O.get(Q))!=null?F:0)-((K=O.get(X))!=null?K:0)}).forEach(G=>{let q=G.closest(Ko);q?q.appendChild(G.parentElement===q?G:G.closest(`${Ko} > *`)):H.appendChild(G.parentElement===H?G:G.closest(`${Ko} > *`))}),A.sort((G,q)=>q[1]-G[1]).forEach(G=>{var q;let F=(q=C.current)==null?void 0:q.querySelector(`${Fn}[${vn}="${encodeURIComponent(G[0])}"]`);F==null||F.parentElement.appendChild(F)})}function W(){let O=_().find(H=>H.getAttribute("aria-disabled")!=="true"),A=O==null?void 0:O.getAttribute(vn);k.setState("value",A||void 0)}function U(){var O,A,H,G;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let q=0;for(let F of r.current){let K=(A=(O=a.current.get(F))==null?void 0:O.value)!=null?A:"",X=(G=(H=a.current.get(F))==null?void 0:H.keywords)!=null?G:[],Q=j(K,X);n.current.filtered.items.set(F,Q),Q>0&&q++}for(let[F,K]of o.current)for(let X of K)if(n.current.filtered.items.get(X)>0){n.current.filtered.groups.add(F);break}n.current.filtered.count=q}function B(){var O,A,H;let G=I();G&&(((O=G.parentElement)==null?void 0:O.firstChild)===G&&((H=(A=G.closest(Fn))==null?void 0:A.querySelector(uC))==null||H.scrollIntoView({block:"nearest"})),G.scrollIntoView({block:"nearest"}))}function I(){var O;return(O=C.current)==null?void 0:O.querySelector(`${Yf}[aria-selected="true"]`)}function _(){var O;return Array.from(((O=C.current)==null?void 0:O.querySelectorAll(_i))||[])}function M(O){let A=_()[O];A&&k.setState("value",A.getAttribute(vn))}function P(O){var A;let H=I(),G=_(),q=G.findIndex(K=>K===H),F=G[q+O];(A=s.current)!=null&&A.loop&&(F=q+O<0?G[G.length-1]:q+O===G.length?G[0]:G[q+O]),F&&k.setState("value",F.getAttribute(vn))}function D(O){let A=I(),H=A==null?void 0:A.closest(Fn),G;for(;H&&!G;)H=O>0?wC(H,Fn):xC(H,Fn),G=H==null?void 0:H.querySelector(_i);G?k.setState("value",G.getAttribute(vn)):P(O)}let T=()=>M(_().length-1),Y=O=>{O.preventDefault(),O.metaKey?T():O.altKey?D(1):P(1)},z=O=>{O.preventDefault(),O.metaKey?M(0):O.altKey?D(-1):P(-1)};return f.createElement(te.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:O=>{var A;(A=y.onKeyDown)==null||A.call(y,O);let H=O.nativeEvent.isComposing||O.keyCode===229;if(!(O.defaultPrevented||H))switch(O.key){case"n":case"j":{v&&O.ctrlKey&&Y(O);break}case"ArrowDown":{Y(O);break}case"p":case"k":{v&&O.ctrlKey&&z(O);break}case"ArrowUp":{z(O);break}case"Home":{O.preventDefault(),M(0);break}case"End":{O.preventDefault(),T();break}case"Enter":{O.preventDefault();let G=I();if(G){let q=new Event(Ma);G.dispatchEvent(q)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:MC},c),Eo(e,O=>f.createElement(zf.Provider,{value:k},f.createElement(Hf.Provider,{value:R},O))))}),fC=f.forwardRef((e,t)=>{var n,r;let o=Oe(),a=f.useRef(null),i=f.useContext(Gf),s=gr(),c=qf(e),u=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:i==null?void 0:i.forceMount;on(()=>{if(!u)return s.item(o,i==null?void 0:i.id)},[u]);let m=Vf(o,a,[e.value,e.children,a],e.keywords),l=Ds(),p=Ht(N=>N.value&&N.value===m.current),h=Ht(N=>u||s.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(Ma,b),()=>N.removeEventListener(Ma,b)},[h,e.onSelect,e.disabled]);function b(){var N,k;g(),(k=(N=c.current).onSelect)==null||k.call(N,m.current)}function g(){l.setState("value",m.current,!0)}if(!h)return null;let{disabled:v,value:y,onSelect:w,forceMount:S,keywords:E,...C}=e;return f.createElement(te.div,{ref:Et(a,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||s.getDisablePointerSelection()?void 0:g,onClick:v?void 0:b},e.children)}),mC=f.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=Oe(),s=f.useRef(null),c=f.useRef(null),u=Oe(),m=gr(),l=Ht(h=>o||m.filter()===!1?!0:h.search?h.filtered.groups.has(i):!0);on(()=>m.group(i),[]),Vf(i,s,[e.value,e.heading,c]);let p=f.useMemo(()=>({id:i,forceMount:o}),[o]);return f.createElement(te.div,{ref:Et(s,t),...a,"cmdk-group":"",role:"presentation",hidden:l?void 0:!0},n&&f.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),Eo(e,h=>f.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f.createElement(Gf.Provider,{value:p},h))))}),pC=f.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=f.useRef(null),a=Ht(i=>!i.search);return!n&&!a?null:f.createElement(te.div,{ref:Et(o,t),...r,"cmdk-separator":"",role:"separator"})}),hC=f.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=Ds(),i=Ht(u=>u.search),s=Ht(u=>u.selectedItemId),c=gr();return f.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),f.createElement(te.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:"text",value:o?e.value:i,onChange:u=>{o||a.setState("search",u.target.value),n==null||n(u.target.value)}})}),gC=f.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=f.useRef(null),i=f.useRef(null),s=Ht(u=>u.selectedItemId),c=gr();return f.useEffect(()=>{if(i.current&&a.current){let u=i.current,m=a.current,l,p=new ResizeObserver(()=>{l=requestAnimationFrame(()=>{let h=u.offsetHeight;m.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return p.observe(u),()=>{cancelAnimationFrame(l),p.unobserve(u)}}},[]),f.createElement(te.div,{ref:Et(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:c.listId},Eo(e,u=>f.createElement("div",{ref:Et(i,c.listInnerRef),"cmdk-list-sizer":""},u)))}),vC=f.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return f.createElement(ja,{open:n,onOpenChange:r},f.createElement($a,{container:i},f.createElement(oo,{"cmdk-overlay":"",className:o}),f.createElement(ao,{"aria-label":e.label,"cmdk-dialog":"",className:a},f.createElement(Uf,{ref:t,...s}))))}),bC=f.forwardRef((e,t)=>Ht(n=>n.filtered.count===0)?f.createElement(te.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),yC=f.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return f.createElement(te.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Eo(e,i=>f.createElement("div",{"aria-hidden":!0},i)))}),He=Object.assign(Uf,{List:gC,Item:fC,Input:hC,Group:mC,Separator:pC,Dialog:vC,Empty:bC,Loading:yC});function wC(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function xC(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function qf(e){let t=f.useRef(e);return on(()=>{t.current=e}),t}var on=typeof window>"u"?f.useEffect:f.useLayoutEffect;function bn(e){let t=f.useRef();return t.current===void 0&&(t.current=e()),t}function Ht(e){let t=Ds(),n=()=>e(t.snapshot());return f.useSyncExternalStore(t.subscribe,n,n)}function Vf(e,t,n,r=[]){let o=f.useRef(),a=gr();return on(()=>{var i;let s=(()=>{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}})(),c=r.map(u=>u.trim());a.value(e,s,c),(i=t.current)==null||i.setAttribute(vn,s),o.current=s}),o}var SC=()=>{let[e,t]=f.useState(),n=bn(()=>new Map);return on(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function CC(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Eo({asChild:e,children:t},n){return e&&f.isValidElement(t)?f.cloneElement(CC(t),{ref:t.ref},n(t.props.children)):n(t)}var MC={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const DC=ja,kC=Ac,EC=$a,NC=Wa,RC=f.forwardRef(({className:e,...t},n)=>d.jsx(oo,{ref:n,className:L("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}));RC.displayName=oo.displayName;const Kf=f.forwardRef(({className:e,children:t,closeOnOutsideClick:n=!0,...r},o)=>{const a=f.useCallback(s=>{if(!n){s.preventDefault();return}s.target.closest('[data-radix-popover-content], [data-radix-popper-content-wrapper], .rdp, [role="dialog"][data-radix-popper-content-wrapper], [role="gridcell"], .rdp-day, .rdp-month, .rdp-nav, .rdp-caption')&&(s.preventDefault(),s.stopPropagation())},[n]),i=f.useCallback(s=>{s.target.closest('[data-radix-popover-content], [data-radix-popper-content-wrapper], .rdp, [role="dialog"][data-radix-popper-content-wrapper], [role="gridcell"], .rdp-day')&&s.preventDefault()},[]);return d.jsxs(EC,{children:[d.jsx("div",{className:"fixed inset-0 z-40 bg-black/50"}),d.jsxs(ao,{ref:o,className:L("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),onInteractOutside:a,onFocusOutside:i,...r,children:[t,d.jsxs(Wa,{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(ln,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});Kf.displayName=ao.displayName;const Xf=({className:e,...t})=>d.jsx("div",{className:L("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Xf.displayName="DialogHeader";const Zf=({className:e,...t})=>d.jsx("div",{className:L("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Zf.displayName="DialogFooter";const Qf=f.forwardRef(({className:e,...t},n)=>d.jsx(La,{ref:n,className:L("text-lg font-semibold leading-none tracking-tight",e),...t}));Qf.displayName=La.displayName;const Jf=f.forwardRef(({className:e,...t},n)=>d.jsx(Fa,{ref:n,className:L("text-sm text-muted-foreground",e),...t}));Jf.displayName=Fa.displayName;const _C=f.forwardRef(({className:e,...t},n)=>d.jsx(He,{ref:n,className:L("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));_C.displayName=He.displayName;const em=f.forwardRef(({className:e,...t},n)=>d.jsxs("div",{className:"flex items-center h-auto px-3","cmdk-input-wrapper":"",children:[d.jsx(cf,{strokeWidth:1.25,className:"mr-2 h-4 w-4 shrink-0"}),d.jsx(He.Input,{ref:n,className:L("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})]}));em.displayName=He.Input.displayName;const tm=f.forwardRef(({className:e,...t},n)=>d.jsx(He.List,{ref:n,className:L("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));tm.displayName=He.List.displayName;const OC=f.forwardRef((e,t)=>d.jsx(He.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));OC.displayName=He.Empty.displayName;const nm=f.forwardRef(({className:e,...t},n)=>d.jsx(He.Group,{ref:n,className:L("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}));nm.displayName=He.Group.displayName;const TC=f.forwardRef(({className:e,...t},n)=>d.jsx(He.Separator,{ref:n,className:L("-mx-1 h-px bg-border",e),...t}));TC.displayName=He.Separator.displayName;const rm=f.forwardRef(({className:e,...t},n)=>d.jsx(He.Item,{ref:n,className:L("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}));rm.displayName=He.Item.displayName;function PC({className:e,...t}){return d.jsx("div",{className:L("animate-pulse rounded-md bg-muted",e),...t})}function AC(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 IC=({options:e,placeholder:t,emptyMessage:n,value:r,onValueChange:o,disabled:a,isLoading:i=!1,className:s,size:c,variant:u})=>{const{variantClasses:m,combined:l}=AC(c,u),p=x.useRef(null),[h,b]=x.useState(!1),[g,v]=x.useState(r),[y,w]=x.useState((r==null?void 0:r.label)||""),S=x.useCallback(N=>{const k=p.current;if(k){if(h||b(!0),N.key==="Enter"&&k.value!==""){const R=e.find(j=>j.label===k.value);R&&(v(R),o==null||o(R))}N.key==="Escape"&&k.blur()}},[h,e,o]),E=x.useCallback(()=>{b(!1),w((g==null?void 0:g.label)||"")},[g]),C=x.useCallback(N=>{w(N.label),v(N),o==null||o(N),setTimeout(()=>{var k;(k=p==null?void 0:p.current)==null||k.blur()},0)},[o]);return d.jsxs(He,{onKeyDown:S,children:[d.jsxs("div",{className:L("rounded-full border bg-gray-100",m,s),children:[" ",d.jsx(em,{ref:p,value:y,onValueChange:i?void 0:w,onBlur:E,onFocus:()=>b(!0),placeholder:t,disabled:a,className:l})]}),d.jsx("div",{className:"relative mt-1",children:d.jsx("div",{className:L("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",s),children:d.jsxs(tm,{className:"rounded-lg ring-1 ring-slate-200 dark:ring-gray-700",children:[i?d.jsx(He.Loading,{children:d.jsx("div",{className:"p-1",children:d.jsx(PC,{className:"h-8 w-full"})})}):null,e.length>0&&!i?d.jsx(nm,{children:e.map(N=>{const k=(g==null?void 0:g.value)===N.value;return d.jsxs(rm,{value:N.label,onMouseDown:R=>{R.preventDefault(),R.stopPropagation()},onSelect:()=>C(N),className:L("flex w-full items-center gap-2 dark:text-white",k?null:"pl-8"),children:[k?d.jsx(dr,{className:"w-4"}):null,N.label]},N.value)})}):null,i?null:d.jsx(He.Empty,{className:"select-none rounded-sm px-2 py-3 text-center text-sm dark:text-gray-400",children:n})]})})})]})},om=x.forwardRef(({className:e,label:t,helperText:n,error:r,startAdornment:o,endAdornment:a,required:i,id:s,onInput:c,...u},m)=>{const l=!!r,p=s||`currency-input-${Math.random().toString(36).substr(2,9)}`,h=b=>{var w;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("")),((w=y[1])==null?void 0:w.length)>2&&(v=y[0]+"."+y[1].substring(0,2)),g.value=v,c&&c(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,i&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),d.jsxs("div",{className:L("flex items-center h-10 w-full rounded-md border bg-background text-sm ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",l?"border-destructive":"border-input",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:L("flex-1 px-3 py-2 rounded-md placeholder:text-muted-foreground focus:outline-none disabled:opacity-50"),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:L("text-xs",l?"text-red-500":"text-muted-foreground"),children:r||n})]})});om.displayName="CurrencyInput";const jC=Qr("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 $C({className:e,variant:t,...n}){return d.jsx("div",{className:L(jC({variant:t}),e),...n})}function LC({title:e,children:t,className:n}){return d.jsxs("section",{className:L("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 FC({title:e,variant:t="primary",children:n,className:r}){return d.jsxs("div",{className:L("space-y-4",r),children:[d.jsx($C,{variant:t==="primary"?"default":"secondary",className:L(t==="primary"&&"bg-black text-white hover:bg-black/90"),children:e}),n]})}const WC={small:"h-8 text-xs px-2",medium:"h-10 text-sm px-3",large:"h-12 text-base px-4"},BC={outlined:"border border-input",filled:"border-0 bg-accent",standard:"border-0 border-b border-input rounded-none"},YC=(e,t)=>t&&typeof e=="object"&&e!==null?e[t.text]:typeof e=="string"?e:(e==null?void 0:e.label)||"",HC=(e,t)=>t&&typeof e=="object"&&e!==null?e[t.value]:typeof e=="string"?e:(e==null?void 0:e.value)||e,zC=(e,t,n,r)=>n(e,r)===n(t,r),Oi=e=>{if(e==null)return"";try{return String(e).toLowerCase().replace(/[^a-z0-9]/g,"")}catch{return""}},GC=(e,t,n,r)=>{if(!t)return e;const o=Oi(t);return e.filter(a=>{const i=n(a,r);return Oi(i).includes(o)})},am=x.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})});am.displayName="Badge";const sm=e=>{const{option:t,index:n,isSelected:r,isHighlighted:o,onSelect:a,getOptionLabel:i,renderOption:s}=e,c=x.useCallback(()=>{a(t)},[t,a]);return d.jsx("div",{onClick:c,className:`
204
- px-3 py-2 cursor-pointer flex items-center justify-between
205
- text-sm transition-colors mb-[0.4vh]
206
- ${o?"bg-accent text-accent-foreground":""}
207
- ${r?"bg-primary/10":""}
208
- hover:bg-accent hover:text-accent-foreground
209
- `,children:s?s(t,n):d.jsxs(d.Fragment,{children:[d.jsx("span",{children:i(t)}),r&&d.jsx(dr,{className:"h-4 w-4 text-primary"})]})})};sm.displayName="AutocompleteOption";const im=e=>{const{tag:t,index:n,getOptionLabel:r,onRemove:o}=e,a=x.useCallback(()=>{o(t)},[t,o]);return d.jsxs(am,{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(ln,{className:"h-3 w-3"})})]},n)};im.displayName="AutocompleteTag";const UC=({options:e=[],dataSource:t=[],value:n=null,onChange:r,change:o,onInputChange:a,placeholder:i="Search...",multiple:s=!1,freeSolo:c=!1,disabled:u=!1,loading:m=!1,size:l="medium",variant:p="outlined",label:h="",helperText:b="",error:g,required:v=!1,fullWidth:y=!0,clearable:w=!0,disableCloseOnSelect:S=!1,filterOptions:E,getOptionLabel:C=M=>YC(M,$),getOptionValue:N=M=>HC(M,$),isOptionEqualToValue:k,renderOption:R,renderTags:j,fields:$,noOptionsText:W="No options",emptyMessage:U,className:B="",inputClassName:I="",..._})=>{const[M,P]=x.useState(!1),[D,T]=x.useState(""),[Y,z]=x.useState(-1),[O,A]=x.useState(!1),[H,G]=x.useState({top:0,left:0,width:0}),q=x.useRef(null),F=x.useRef(null),K=x.useRef(null),X=x.useId(),Q=t.length>0?t:e,J=x.useMemo(()=>k||((ue,me)=>zC(ue,me,N,$)),[k,N,$]),ae=x.useMemo(()=>{let ue=Q;return s&&Array.isArray(n)&&(ue=Q.filter(me=>!n.some(ye=>J(me,ye)))),!s&&!O&&n&&D===C(n)?ue:E?E(ue,{inputValue:D}):GC(ue,D,C,$)},[Q,n,D,E,C,s,J,$,O]),be=x.useCallback(ue=>{const me=ue.target.value;A(!0),T(me),a==null||a(ue,me),!M&&me&&P(!0)},[M,a]);x.useEffect(()=>{if(s||O)return;const me=(ye=>{if(ye==null)return"";if(typeof ye=="object")return C(ye);const Pe=Q.find(ke=>J(ke,ye));if(Pe)return C(Pe);try{return String(ye)}catch{return""}})(n);T(me)},[n,s,O,Q,C,J]);const ee=x.useCallback(ue=>{if(s){const me=Array.isArray(n)?n:[],ye=me.some(ke=>J(ue,ke));let Pe;ye?Pe=me.filter(ke=>!J(ue,ke)):Pe=[...me,ue],r==null||r(null,Pe),o==null||o({itemData:Pe}),T(""),A(!1),S||P(!1),setTimeout(()=>{var ke;(ke=q.current)==null||ke.focus()},0)}else r==null||r(null,ue),o==null||o({itemData:ue}),T(C(ue)),A(!1),S||P(!1);z(-1)},[s,n,J,r,o,S,C]),_e=x.useCallback(ue=>{if(s&&Array.isArray(n)){const me=n.filter(ye=>!J(ue,ye));r==null||r(null,me),o==null||o({itemData:me})}},[s,n,J,r,o]),je=x.useCallback(ue=>{ue.stopPropagation(),s?(T(""),A(!1),a==null||a({target:{value:""}},""),setTimeout(()=>{q.current&&(q.current.value="",q.current.focus())},0),P(!1)):(r==null||r(null,null),o==null||o({itemData:null}),T(""),A(!1),a==null||a({target:{value:""}},""),setTimeout(()=>{q.current&&(q.current.value="",q.current.focus())},0),P(!1))},[r,o,s,a]),Me=x.useMemo(()=>s?Array.isArray(n)&&n.length>0:n!=null,[s,n]),Ve=x.useMemo(()=>!w||u?!1:s?D!=="":Me,[w,u,s,D,Me]),De=x.useCallback(ue=>{if(!M&&(ue.key==="ArrowDown"||ue.key==="ArrowUp")){P(!0);return}if(M)switch(ue.key){case"ArrowDown":ue.preventDefault(),z(me=>me<ae.length-1?me+1:0);break;case"ArrowUp":ue.preventDefault(),z(me=>me>0?me-1:ae.length-1);break;case"Enter":ue.preventDefault(),Y>=0&&ae[Y]?ee(ae[Y]):c&&D&&ee(D);break;case"Escape":P(!1),z(-1);break;case"Tab":P(!1);break}},[M,ae,Y,ee,c,D]),We=x.useCallback(()=>{if(K.current){const ue=K.current.getBoundingClientRect(),me=K.current.querySelector(".relative.overflow-visible"),ye=me?me.getBoundingClientRect():ue;G({top:ye.bottom+window.scrollY,left:ye.left+window.scrollX,width:ye.width})}},[]),Tt=x.useCallback(()=>{M||(We(),D===""&&(a==null||a({target:{value:""}},""))),P(!M)},[M,We,D,a]),Te=x.useCallback(()=>{We(),P(!0),A(!1)},[We]);x.useEffect(()=>{const ue=ye=>{const Pe=ye.target,ke=K.current&&!K.current.contains(Pe),At=F.current&&!F.current.contains(Pe);ke&&At&&P(!1)},me=()=>{M&&We()};return document.addEventListener("mousedown",ue),window.addEventListener("resize",me),window.addEventListener("scroll",me),()=>{document.removeEventListener("mousedown",ue),window.removeEventListener("resize",me),window.removeEventListener("scroll",me)}},[M,We]),x.useEffect(()=>{if(M&&Y>=0&&F.current){const ue=F.current.children[Y];ue&&ue.scrollIntoView({block:"nearest"})}},[Y,M]);const Be=x.useMemo(()=>!s||!Array.isArray(n)||n.length===0?null:j?j(n,_e):d.jsx("div",{className:"flex flex-wrap gap-1 mb-1",children:n.map((ue,me)=>d.jsx(im,{tag:ue,index:me,getOptionLabel:C,onRemove:_e},me))}),[s,n,j,_e,C]),St=x.useMemo(()=>`
210
- relative flex items-center rounded-md
211
- ${g?"border border-destructive":BC[p]}
212
- ${WC[l]}
213
- ${u?"opacity-50 cursor-not-allowed":"cursor-text"}
214
- transition-colors ${I}
215
- `,[p,l,g,u,I]),Pt=U??W;return d.jsxs("div",{className:`relative ${y?"w-full":"w-auto"} ${B}`,ref:K,children:[h&&d.jsxs("label",{htmlFor:X,className:"block text-sm font-medium mb-1",children:[h,v&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsxs("div",{className:"relative overflow-visible",children:[Be,d.jsxs("div",{className:St,children:[d.jsx(sn,{id:X,ref:q,value:D,onChange:be,onKeyDown:De,onFocus:Te,placeholder:i,disabled:u,className:"px-0 border-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 bg-transparent rounded-md",..._}),d.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[m&&d.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-muted-foreground border-t-transparent"}),Ve&&d.jsx("button",{type:"button",onClick:je,className:"p-1 hover:bg-accent rounded-sm transition-colors",tabIndex:-1,children:d.jsx(ln,{className:"h-4 w-4 text-muted-foreground"})}),d.jsx("button",{type:"button",disabled:u,onClick:Tt,className:`p-1 hover:bg-accent rounded-sm transition-colors ${u?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,tabIndex:-1,children:d.jsx(fr,{className:`h-4 w-4 text-muted-foreground transition-transform ${M?"rotate-180":""}`})})]})]}),M&&Xr.createPortal(d.jsx("div",{className:`
216
- absolute bg-popover border border-border rounded-md shadow-lg
217
- max-h-60 overflow-auto z-[9999]
218
- ${I}
219
- `,style:{top:H.top+4,left:H.left,width:H.width},ref:F,children:ae.length===0?d.jsx("div",{className:"p-3 text-sm text-muted-foreground text-center",children:Pt}):ae.map((ue,me)=>{const ye=s?Array.isArray(n)&&n.some(ke=>J(ue,ke)):J(ue,n),Pe=me===Y;return d.jsx(sm,{option:ue,index:me,isSelected:ye,isHighlighted:Pe,onSelect:ee,getOptionLabel:C,renderOption:R},me)})}),document.body)]}),(b||g)&&d.jsx("p",{className:`mt-1 text-xs ${g?"text-destructive":"text-muted-foreground"}`,children:g||b})]})};function qC({title:e,content:t,defaultOpen:n=!1,className:r,titleTypographyProps:o,contentTypographyProps:a}){const[i,s]=f.useState(n),c=()=>s(u=>!u);return d.jsxs(Jp,{open:i,onOpenChange:s,className:L("cursor-pointer",r),onClick:c,children:[d.jsxs("div",{className:"flex items-center justify-between",children:[f.isValidElement(e)?e:d.jsx(ba,{variant:(o==null?void 0:o.variant)??"h6",weight:(o==null?void 0:o.weight)??"semiBold",align:o==null?void 0:o.align,color:o==null?void 0:o.color,className:o==null?void 0:o.className,children:e}),d.jsx(eh,{asChild:!0,children:d.jsx("button",{onClick:u=>u.stopPropagation(),className:L("transition-transform duration-200",i?"rotate-180":"rotate-0"),children:d.jsx(fr,{className:"h-5 w-5"})})})]}),d.jsx(th,{className:"mt-4 CollapsibleContent data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",children:f.isValidElement(t)?t:d.jsx(ba,{variant:(a==null?void 0:a.variant)??"body2",weight:(a==null?void 0:a.weight)??"regular",align:a==null?void 0:a.align,color:a==null?void 0:a.color,className:L("text-muted-foreground",a==null?void 0:a.className),children:t})})]})}const VC=Qr("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"}}),cm=f.forwardRef(({className:e,variant:t,...n},r)=>d.jsx("div",{ref:r,role:"alert",className:L(VC({variant:t}),e),...n}));cm.displayName="Alert";const lm=f.forwardRef(({className:e,...t},n)=>d.jsx("h5",{ref:n,className:L("mb-1 font-medium leading-none tracking-tight",e),...t}));lm.displayName="AlertTitle";const um=f.forwardRef(({className:e,...t},n)=>d.jsx("p",{ref:n,className:L("text-sm [&_p]:leading-relaxed",e),...t}));um.displayName="AlertDescription";const dm=f.forwardRef(({className:e,...t},n)=>d.jsx(Bc,{ref:n,className:L("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));dm.displayName=Bc.displayName;const fm=f.forwardRef(({className:e,...t},n)=>d.jsx(Yc,{ref:n,className:L("aspect-square h-full w-full",e),...t}));fm.displayName=Yc.displayName;const mm=f.forwardRef(({className:e,...t},n)=>d.jsx(Hc,{ref:n,className:L("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));mm.displayName=Hc.displayName;const pm=f.forwardRef(({className:e,color:t="#029cfd",...n},r)=>d.jsx(Ua,{ref:r,className:L("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(qc,{className:"flex items-center justify-center text-current",children:n.checked==="indeterminate"?d.jsx(gx,{className:"h-4 w-4 text-white"}):d.jsx(dr,{className:"h-4 w-4"})})}));pm.displayName=Ua.displayName;function KC(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 hm=x.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}),vr=()=>{const e=x.useContext(hm);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};KC(`[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(
220
- [data-state=closed]
221
- ){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 XC(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function ZC(){return ks(/^Mac/)}function QC(){return ks(/^iPhone/)}function Ti(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function JC(){return ks(/^iPad/)||ZC()&&navigator.maxTouchPoints>1}function gm(){return QC()||JC()}function ks(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const eM=24,tM=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Pi(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Xo=typeof document<"u"&&window.visualViewport;function Ai(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function vm(e){for(Ai(e)&&(e=e.parentElement);e&&!Ai(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const nM=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Er=0,Zo;function rM(e={}){let{isDisabled:t}=e;tM(()=>{if(!t)return Er++,Er===1&&gm()&&(Zo=oM()),()=>{Er--,Er===0&&(Zo==null||Zo())}},[t])}function oM(){let e,t=0,n=l=>{e=vm(l.target),!(e===document.documentElement&&e===document.body)&&(t=l.changedTouches[0].pageY)},r=l=>{if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}let p=l.changedTouches[0].pageY,h=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((h<=0&&p>t||h>=b&&p<t)&&l.preventDefault(),t=p)},o=l=>{let p=l.target;Da(p)&&p!==document.activeElement&&(l.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=l=>{let p=l.target;Da(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Xo&&(Xo.height<window.innerHeight?requestAnimationFrame(()=>{Ii(p)}):Xo.addEventListener("resize",()=>Ii(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,u=Pi(aM(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let m=Pi(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",i));return()=>{u(),m(),window.scrollTo(s,c)}}function aM(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 Ii(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=vm(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const i=n.getBoundingClientRect().bottom+eM;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Da(e){return e instanceof HTMLInputElement&&!nM.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function sM(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function iM(...e){return t=>e.forEach(n=>sM(n,t))}function bm(...e){return f.useCallback(iM(...e),e)}const ym=new WeakMap;function Le(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&&ym.set(e,r)}function cM(e,t){if(!e||!(e instanceof HTMLElement))return;let n=ym.get(e);n&&(e.style[t]=n[t])}const Ae=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(", ")[Ae(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Ae(t)?5:4]):null)}function lM(e){return 8*(Math.log(e+1)-2)}function Qo(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function uM(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const Ee={DURATION:.5,EASE:[.32,.72,0,1]},wm=.4,dM=.25,fM=100,xm=8,Qt=16,ka=26,Jo="vaul-dragging";function Sm(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function mM({defaultProp:e,onChange:t}){const n=x.useState(e),[r]=n,o=x.useRef(r),a=Sm(t);return x.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function Cm({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=mM({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Sm(n),c=x.useCallback(u=>{if(a){const l=typeof u=="function"?u(e):u;l!==e&&s(l)}else o(u)},[a,e,o,s]);return[i,c]}function pM({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i,direction:s="bottom",container:c,snapToSequentialPoint:u}){const[m,l]=Cm({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[p,h]=x.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);x.useEffect(()=>{function k(){h({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]);const b=x.useMemo(()=>m===(n==null?void 0:n[n.length-1])||null,[n,m]),g=x.useMemo(()=>{var k;return(k=n==null?void 0:n.findIndex(R=>R===m))!=null?k:null},[n,m]),v=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===m||!n,y=x.useMemo(()=>{const k=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var R;return(R=n==null?void 0:n.map(j=>{const $=typeof j=="string";let W=0;if($&&(W=parseInt(j,10)),Ae(s)){const B=$?W:p?j*k.height:0;return p?s==="bottom"?k.height-B:-k.height+B:B}const U=$?W:p?j*k.width:0;return p?s==="right"?k.width-U:-k.width+U:U}))!=null?R:[]},[n,p,c]),w=x.useMemo(()=>g!==null?y==null?void 0:y[g]:null,[y,g]),S=x.useCallback(k=>{var R;const j=(R=y==null?void 0:y.findIndex($=>$===k))!=null?R:null;i(j),Le(r.current,{transition:`transform ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`,transform:Ae(s)?`translate3d(0, ${k}px, 0)`:`translate3d(${k}px, 0, 0)`}),y&&j!==y.length-1&&a!==void 0&&j!==a&&j<a?Le(o.current,{transition:`opacity ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`,opacity:"0"}):Le(o.current,{transition:`opacity ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`,opacity:"1"}),l(n==null?void 0:n[Math.max(j,0)])},[r.current,n,y,a,o,l]);x.useEffect(()=>{if(m||e){var k;const R=(k=n==null?void 0:n.findIndex(j=>j===e||j===m))!=null?k:-1;y&&R!==-1&&typeof y[R]=="number"&&S(y[R])}},[m,e,n,y,S]);function E({draggedDistance:k,closeDrawer:R,velocity:j,dismissible:$}){if(a===void 0)return;const W=s==="bottom"||s==="right"?(w??0)-k:(w??0)+k,U=g===a-1,B=g===0,I=k>0;if(U&&Le(o.current,{transition:`opacity ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`}),!u&&j>2&&!I){$?R():S(y[0]);return}if(!u&&j>2&&I&&y&&n){S(y[n.length-1]);return}const _=y==null?void 0:y.reduce((P,D)=>typeof P!="number"||typeof D!="number"?P:Math.abs(D-W)<Math.abs(P-W)?D:P),M=Ae(s)?window.innerHeight:window.innerWidth;if(j>wm&&Math.abs(k)<M*.4){const P=I?1:-1;if(P>0&&b&&n){S(y[n.length-1]);return}if(B&&P<0&&$&&R(),g===null)return;S(y[g+P]);return}S(_)}function C({draggedDistance:k}){if(w===null)return;const R=s==="bottom"||s==="right"?w-k:w+k;(s==="bottom"||s==="right")&&R<y[y.length-1]||(s==="top"||s==="left")&&R>y[y.length-1]||Le(r.current,{transform:Ae(s)?`translate3d(0, ${R}px, 0)`:`translate3d(${R}px, 0, 0)`})}function N(k,R){if(!n||typeof g!="number"||!y||a===void 0)return null;const j=g===a-1;if(g>=a&&R)return 0;if(j&&!R)return 1;if(!v&&!j)return null;const W=j?g+1:g-1,U=j?y[W]-y[W-1]:y[W+1]-y[W],B=k/Math.abs(U);return j?1-B:B}return{isLastSnapPoint:b,activeSnapPoint:m,shouldFade:v,getPercentageDragged:N,setActiveSnapPoint:l,activeSnapPointIndex:g,onRelease:E,onDrag:C,snapPointsOffset:y}}const hM=()=>()=>{};function gM(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=vr(),a=x.useRef(null),i=x.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-ka)/window.innerWidth}x.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;uM(r&&!o?Qo(document.body,{background:"black"}):hM,Qo(c,{transformOrigin:Ae(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Ee.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ee.EASE.join(",")})`}));const u=Qo(c,{borderRadius:`${xm}px`,overflow:"hidden",...Ae(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),a.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},Ee.DURATION*1e3)}}},[t,n,i])}let Bn=null;function vM({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:a}){const[i,s]=x.useState(()=>typeof window<"u"?window.location.href:""),c=x.useRef(0),u=x.useCallback(()=>{if(Ti()&&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:l,innerHeight:p}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-l}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const h=p-window.innerHeight;h&&c.current>=p&&(document.body.style.top=`${-(c.current+h)}px`)}),300)}},[e]),m=x.useCallback(()=>{if(Ti()&&Bn!==null&&!a){const l=-parseInt(document.body.style.top,10),p=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Bn),window.requestAnimationFrame(()=>{if(o&&i!==window.location.href){s(window.location.href);return}window.scrollTo(p,l)}),Bn=null}},[i]);return x.useEffect(()=>{function l(){c.current=window.scrollY}return l(),window.addEventListener("scroll",l),()=>{window.removeEventListener("scroll",l)}},[]),x.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||m()}},[t,m]),x.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{m()},500)):m())},[e,r,i,t,n,u,m]),{restorePositionSetting:m}}function bM({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:a,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=dM,scrollLockTimeout:u=fM,dismissible:m=!0,handleOnly:l=!1,fadeFromIndex:p=a&&a.length-1,activeSnapPoint:h,setActiveSnapPoint:b,fixed:g,modal:v=!0,onClose:y,nested:w,noBodyStyles:S=!1,direction:E="bottom",defaultOpen:C=!1,disablePreventScroll:N=!0,snapToSequentialPoint:k=!1,preventScrollRestoration:R=!1,repositionInputs:j=!0,onAnimationEnd:$,container:W,autoFocus:U=!1}){var B,I;const[_=!1,M]=Cm({defaultProp:C,prop:e,onChange:V=>{t==null||t(V),!V&&!w&&me(),setTimeout(()=>{$==null||$(V)},Ee.DURATION*1e3),V&&!v&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),V||(document.body.style.pointerEvents="auto")}}),[P,D]=x.useState(!1),[T,Y]=x.useState(!1),[z,O]=x.useState(!1),A=x.useRef(null),H=x.useRef(null),G=x.useRef(null),q=x.useRef(null),F=x.useRef(null),K=x.useRef(!1),X=x.useRef(null),Q=x.useRef(0),J=x.useRef(!1),ae=x.useRef(!C),be=x.useRef(0),ee=x.useRef(null),_e=x.useRef(((B=ee.current)==null?void 0:B.getBoundingClientRect().height)||0),je=x.useRef(((I=ee.current)==null?void 0:I.getBoundingClientRect().width)||0),Me=x.useRef(0),Ve=x.useCallback(V=>{a&&V===Be.length-1&&(H.current=new Date)},[]),{activeSnapPoint:De,activeSnapPointIndex:We,setActiveSnapPoint:Tt,onRelease:Te,snapPointsOffset:Be,onDrag:St,shouldFade:Pt,getPercentageDragged:ue}=pM({snapPoints:a,activeSnapPointProp:h,setActiveSnapPointProp:b,drawerRef:ee,fadeFromIndex:p,overlayRef:A,onSnapPointChange:Ve,direction:E,container:W,snapToSequentialPoint:k});rM({isDisabled:!_||T||!v||z||!P||!j||!N});const{restorePositionSetting:me}=vM({isOpen:_,modal:v,nested:w??!1,hasBeenOpened:P,preventScrollRestoration:R,noBodyStyles:S});function ye(){return(window.innerWidth-ka)/window.innerWidth}function Pe(V){var ie,se;!m&&!a||ee.current&&!ee.current.contains(V.target)||(_e.current=((ie=ee.current)==null?void 0:ie.getBoundingClientRect().height)||0,je.current=((se=ee.current)==null?void 0:se.getBoundingClientRect().width)||0,Y(!0),G.current=new Date,gm()&&window.addEventListener("touchend",()=>K.current=!1,{once:!0}),V.target.setPointerCapture(V.pointerId),Q.current=Ae(E)?V.pageY:V.pageX)}function ke(V,ie){var se;let fe=V;const ge=(se=window.getSelection())==null?void 0:se.toString(),oe=ee.current?Nr(ee.current,E):null,de=new Date;if(fe.tagName==="SELECT"||fe.hasAttribute("data-vaul-no-drag")||fe.closest("[data-vaul-no-drag]"))return!1;if(E==="right"||E==="left")return!0;if(H.current&&de.getTime()-H.current.getTime()<500)return!1;if(oe!==null&&(E==="bottom"?oe>0:oe<0))return!0;if(ge&&ge.length>0)return!1;if(F.current&&de.getTime()-F.current.getTime()<u&&oe===0||ie)return F.current=de,!1;for(;fe;){if(fe.scrollHeight>fe.clientHeight){if(fe.scrollTop!==0)return F.current=new Date,!1;if(fe.getAttribute("role")==="dialog")return!0}fe=fe.parentNode}return!0}function At(V){if(ee.current&&T){const ie=E==="bottom"||E==="right"?1:-1,se=(Q.current-(Ae(E)?V.pageY:V.pageX))*ie,fe=se>0,ge=a&&!m&&!fe;if(ge&&We===0)return;const oe=Math.abs(se),de=document.querySelector("[data-vaul-drawer-wrapper]"),ve=E==="bottom"||E==="top"?_e.current:je.current;let le=oe/ve;const Xe=ue(oe,fe);if(Xe!==null&&(le=Xe),ge&&le>=1||!K.current&&!ke(V.target,fe))return;if(ee.current.classList.add(Jo),K.current=!0,Le(ee.current,{transition:"none"}),Le(A.current,{transition:"none"}),a&&St({draggedDistance:se}),fe&&!a){const Ce=lM(se),Qe=Math.min(Ce*-1,0)*ie;Le(ee.current,{transform:Ae(E)?`translate3d(0, ${Qe}px, 0)`:`translate3d(${Qe}px, 0, 0)`});return}const xe=1-le;if((Pt||p&&We===p-1)&&(r==null||r(V,le),Le(A.current,{opacity:`${xe}`,transition:"none"},!0)),de&&A.current&&i){const Ce=Math.min(ye()+le*(1-ye()),1),Qe=8-le*8,Ye=Math.max(0,14-le*14);Le(de,{borderRadius:`${Qe}px`,transform:Ae(E)?`scale(${Ce}) translate3d(0, ${Ye}px, 0)`:`scale(${Ce}) translate3d(${Ye}px, 0, 0)`,transition:"none"},!0)}if(!a){const Ce=oe*ie;Le(ee.current,{transform:Ae(E)?`translate3d(0, ${Ce}px, 0)`:`translate3d(${Ce}px, 0, 0)`})}}}x.useEffect(()=>{window.requestAnimationFrame(()=>{ae.current=!0})},[]),x.useEffect(()=>{var V;function ie(){if(!ee.current||!j)return;const se=document.activeElement;if(Da(se)||J.current){var fe;const ge=((fe=window.visualViewport)==null?void 0:fe.height)||0,oe=window.innerHeight;let de=oe-ge;const ve=ee.current.getBoundingClientRect().height||0,le=ve>oe*.8;Me.current||(Me.current=ve);const Xe=ee.current.getBoundingClientRect().top;if(Math.abs(be.current-de)>60&&(J.current=!J.current),a&&a.length>0&&Be&&We){const xe=Be[We]||0;de+=xe}if(be.current=de,ve>ge||J.current){const xe=ee.current.getBoundingClientRect().height;let Ce=xe;xe>ge&&(Ce=ge-(le?Xe:ka)),g?ee.current.style.height=`${xe-Math.max(de,0)}px`:ee.current.style.height=`${Math.max(Ce,ge-Xe)}px`}else XC()||(ee.current.style.height=`${Me.current}px`);a&&a.length>0&&!J.current?ee.current.style.bottom="0px":ee.current.style.bottom=`${Math.max(de,0)}px`}}return(V=window.visualViewport)==null||V.addEventListener("resize",ie),()=>{var se;return(se=window.visualViewport)==null?void 0:se.removeEventListener("resize",ie)}},[We,a,Be]);function Ke(V){An(),y==null||y(),V||M(!1),setTimeout(()=>{a&&Tt(a[0])},Ee.DURATION*1e3)}function un(){if(!ee.current)return;const V=document.querySelector("[data-vaul-drawer-wrapper]"),ie=Nr(ee.current,E);Le(ee.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`}),Le(A.current,{transition:`opacity ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`,opacity:"1"}),i&&ie&&ie>0&&_&&Le(V,{borderRadius:`${xm}px`,overflow:"hidden",...Ae(E)?{transform:`scale(${ye()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${ye()}) 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(){!T||!ee.current||(ee.current.classList.remove(Jo),K.current=!1,Y(!1),q.current=new Date)}function dn(V){if(!T||!ee.current)return;ee.current.classList.remove(Jo),K.current=!1,Y(!1),q.current=new Date;const ie=Nr(ee.current,E);if(!V||!ke(V.target,!1)||!ie||Number.isNaN(ie)||G.current===null)return;const se=q.current.getTime()-G.current.getTime(),fe=Q.current-(Ae(E)?V.pageY:V.pageX),ge=Math.abs(fe)/se;if(ge>.05&&(O(!0),setTimeout(()=>{O(!1)},200)),a){Te({draggedDistance:fe*(E==="bottom"||E==="right"?1:-1),closeDrawer:Ke,velocity:ge,dismissible:m}),o==null||o(V,!0);return}if(E==="bottom"||E==="right"?fe>0:fe<0){un(),o==null||o(V,!0);return}if(ge>wm){Ke(),o==null||o(V,!1);return}var oe;const de=Math.min((oe=ee.current.getBoundingClientRect().height)!=null?oe:0,window.innerHeight);var ve;const le=Math.min((ve=ee.current.getBoundingClientRect().width)!=null?ve:0,window.innerWidth),Xe=E==="left"||E==="right";if(Math.abs(ie)>=(Xe?le:de)*c){Ke(),o==null||o(V,!1);return}o==null||o(V,!0),un()}x.useEffect(()=>(_&&(Le(document.documentElement,{scrollBehavior:"auto"}),H.current=new Date),()=>{cM(document.documentElement,"scrollBehavior")}),[_]);function Kt(V){const ie=V?(window.innerWidth-Qt)/window.innerWidth:1,se=V?-Qt:0;X.current&&window.clearTimeout(X.current),Le(ee.current,{transition:`transform ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`,transform:Ae(E)?`scale(${ie}) translate3d(0, ${se}px, 0)`:`scale(${ie}) translate3d(${se}px, 0, 0)`}),!V&&ee.current&&(X.current=setTimeout(()=>{const fe=Nr(ee.current,E);Le(ee.current,{transition:"none",transform:Ae(E)?`translate3d(0, ${fe}px, 0)`:`translate3d(${fe}px, 0, 0)`})},500))}function In(V,ie){if(ie<0)return;const se=(window.innerWidth-Qt)/window.innerWidth,fe=se+ie*(1-se),ge=-Qt+ie*Qt;Le(ee.current,{transform:Ae(E)?`scale(${fe}) translate3d(0, ${ge}px, 0)`:`scale(${fe}) translate3d(${ge}px, 0, 0)`,transition:"none"})}function It(V,ie){const se=Ae(E)?window.innerHeight:window.innerWidth,fe=ie?(se-Qt)/se:1,ge=ie?-Qt:0;ie&&Le(ee.current,{transition:`transform ${Ee.DURATION}s cubic-bezier(${Ee.EASE.join(",")})`,transform:Ae(E)?`scale(${fe}) translate3d(0, ${ge}px, 0)`:`scale(${fe}) translate3d(${ge}px, 0, 0)`})}return x.useEffect(()=>{v||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[v]),x.createElement(ja,{defaultOpen:C,onOpenChange:V=>{!m&&!V||(V?D(!0):Ke(!0),M(V))},open:_},x.createElement(hm.Provider,{value:{activeSnapPoint:De,snapPoints:a,setActiveSnapPoint:Tt,drawerRef:ee,overlayRef:A,onOpenChange:t,onPress:Pe,onRelease:dn,onDrag:At,dismissible:m,shouldAnimate:ae,handleOnly:l,isOpen:_,isDragging:T,shouldFade:Pt,closeDrawer:Ke,onNestedDrag:In,onNestedOpenChange:Kt,onNestedRelease:It,keyboardIsOpen:J,modal:v,snapPointsOffset:Be,activeSnapPointIndex:We,direction:E,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:S,container:W,autoFocus:U}},n))}const Mm=x.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:a,isOpen:i,modal:s,shouldAnimate:c}=vr(),u=bm(t,n),m=r&&r.length>0;if(!s)return null;const l=x.useCallback(p=>o(p),[o]);return x.createElement(oo,{onMouseUp:l,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":i&&m?"true":"false","data-vaul-snap-points-overlay":i&&a?"true":"false","data-vaul-animate":c!=null&&c.current?"true":"false",...e})});Mm.displayName="Drawer.Overlay";const Dm=x.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:a,onPress:i,onRelease:s,onDrag:c,keyboardIsOpen:u,snapPointsOffset:m,activeSnapPointIndex:l,modal:p,isOpen:h,direction:b,snapPoints:g,container:v,handleOnly:y,shouldAnimate:w,autoFocus:S}=vr(),[E,C]=x.useState(!1),N=bm(o,a),k=x.useRef(null),R=x.useRef(null),j=x.useRef(!1),$=g&&g.length>0;gM();const W=(B,I,_=0)=>{if(j.current)return!0;const M=Math.abs(B.y),P=Math.abs(B.x),D=P>M,T=["bottom","right"].includes(I)?1:-1;if(I==="left"||I==="right"){if(!(B.x*T<0)&&P>=0&&P<=_)return D}else if(!(B.y*T<0)&&M>=0&&M<=_)return!D;return j.current=!0,!0};x.useEffect(()=>{$&&window.requestAnimationFrame(()=>{C(!0)})},[]);function U(B){k.current=null,j.current=!1,s(B)}return x.createElement(ao,{"data-vaul-drawer-direction":b,"data-vaul-drawer":"","data-vaul-delayed-snap-points":E?"true":"false","data-vaul-snap-points":h&&$?"true":"false","data-vaul-custom-container":v?"true":"false","data-vaul-animate":w!=null&&w.current?"true":"false",...r,ref:N,style:m&&m.length>0?{"--snap-point-height":`${m[l??0]}px`,...t}:t,onPointerDown:B=>{y||(r.onPointerDown==null||r.onPointerDown.call(r,B),k.current={x:B.pageX,y:B.pageY},i(B))},onOpenAutoFocus:B=>{n==null||n(B),S||B.preventDefault()},onPointerDownOutside:B=>{if(e==null||e(B),!p||B.defaultPrevented){B.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:B=>{if(!p){B.preventDefault();return}},onPointerMove:B=>{if(R.current=B,y||(r.onPointerMove==null||r.onPointerMove.call(r,B),!k.current))return;const I=B.pageY-k.current.y,_=B.pageX-k.current.x,M=B.pointerType==="touch"?10:2;W({x:_,y:I},b,M)?c(B):(Math.abs(_)>M||Math.abs(I)>M)&&(k.current=null)},onPointerUp:B=>{r.onPointerUp==null||r.onPointerUp.call(r,B),k.current=null,j.current=!1,s(B)},onPointerOut:B=>{r.onPointerOut==null||r.onPointerOut.call(r,B),U(R.current)},onContextMenu:B=>{r.onContextMenu==null||r.onContextMenu.call(r,B),R.current&&U(R.current)}})});Dm.displayName="Drawer.Content";const yM=250,wM=120,xM=x.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:a,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:u,handleOnly:m,isOpen:l,onPress:p,onDrag:h}=vr(),b=x.useRef(null),g=x.useRef(!1);function v(){if(g.current){S();return}window.setTimeout(()=>{y()},wM)}function y(){if(a||e||g.current){S();return}if(S(),!i||i.length===0){u||o();return}if(s===i[i.length-1]&&u){o();return}const C=i.findIndex(k=>k===s);if(C===-1)return;const N=i[C+1];c(N)}function w(){b.current=window.setTimeout(()=>{g.current=!0},yM)}function S(){b.current&&window.clearTimeout(b.current),g.current=!1}return x.createElement("div",{onClick:v,onPointerCancel:S,onPointerDown:E=>{m&&p(E),w()},onPointerMove:E=>{m&&h(E)},ref:r,"data-vaul-drawer-visible":l?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},x.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});xM.displayName="Drawer.Handle";function SM(e){const t=vr(),{container:n=t.container,...r}=e;return x.createElement($a,{container:n,...r})}const ft={Root:bM,Content:Dm,Overlay:Mm,Trigger:Ac,Portal:SM,Close:Wa,Title:La,Description:Fa},km=({shouldScaleBackground:e=!0,...t})=>d.jsx(ft.Root,{shouldScaleBackground:e,...t});km.displayName="Drawer";const CM=ft.Trigger,MM=ft.Portal,DM=ft.Close,Em=f.forwardRef(({className:e,...t},n)=>d.jsx(ft.Overlay,{ref:n,className:L("fixed inset-0 z-50 bg-black/80",e),...t}));Em.displayName=ft.Overlay.displayName;const Nm=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(MM,{children:[d.jsx(Em,{}),d.jsxs(ft.Content,{ref:r,className:L("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]})]}));Nm.displayName="DrawerContent";const Rm=({className:e,...t})=>d.jsx("div",{className:L("grid gap-1.5 p-4 text-center sm:text-left",e),...t});Rm.displayName="DrawerHeader";const _m=({className:e,...t})=>d.jsx("div",{className:L("mt-auto flex flex-col gap-2 p-4",e),...t});_m.displayName="DrawerFooter";const Om=f.forwardRef(({className:e,...t},n)=>d.jsx(ft.Title,{ref:n,className:L("text-lg font-semibold leading-none tracking-tight",e),...t}));Om.displayName=ft.Title.displayName;const Tm=f.forwardRef(({className:e,...t},n)=>d.jsx(ft.Description,{ref:n,className:L("text-sm text-muted-foreground",e),...t}));Tm.displayName=ft.Description.displayName;const kM=ay,Pm=f.forwardRef(({onClick:e,onMouseDown:t,onPointerDown:n,...r},o)=>{const a=c=>{c.stopPropagation(),e==null||e(c)},i=c=>{c.stopPropagation(),t==null||t(c)},s=c=>{c.stopPropagation(),n==null||n(c)};return d.jsx(du,{ref:o,onClick:a,onMouseDown:i,onPointerDown:s,...r})});Pm.displayName=du.displayName;const EM=iy,NM=ly,RM=cy,Am=f.forwardRef(({className:e,inset:t,children:n,...r},o)=>d.jsxs(yu,{ref:o,className:L("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(bs,{className:"ml-auto"})]}));Am.displayName=yu.displayName;const Im=f.forwardRef(({className:e,...t},n)=>d.jsx(wu,{ref:n,className:L("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}));Im.displayName=wu.displayName;const jm=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(sy,{children:d.jsx(fu,{ref:r,sideOffset:t,className:L("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})}));jm.displayName=fu.displayName;const $m=f.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(pu,{ref:r,className:L("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}));$m.displayName=pu.displayName;const Lm=f.forwardRef(({className:e,children:t,checked:n,...r},o)=>d.jsxs(hu,{ref:o,className:L("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(vu,{children:d.jsx(dr,{className:"h-4 w-4"})})}),t]}));Lm.displayName=hu.displayName;const Fm=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(gu,{ref:r,className:L("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(vu,{children:d.jsx(af,{className:"h-2 w-2 fill-current"})})}),t]}));Fm.displayName=gu.displayName;const Wm=f.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(mu,{ref:r,className:L("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Wm.displayName=mu.displayName;const Bm=f.forwardRef(({className:e,...t},n)=>d.jsx(bu,{ref:n,className:L("-mx-1 my-1 h-px bg-muted",e),...t}));Bm.displayName=bu.displayName;const Ym=({className:e,...t})=>d.jsx("span",{className:L("ml-auto text-xs tracking-widest opacity-60",e),...t});Ym.displayName="DropdownMenuShortcut";const Hm=f.forwardRef(({className:e,...t},n)=>d.jsx(Zu,{ref:n,className:L("grid gap-2",e),...t}));Hm.displayName=Zu.displayName;const zm=f.forwardRef(({className:e,...t},n)=>d.jsx(Qu,{ref:n,className:L(`
222
- aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background
223
- focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
224
- disabled:cursor-not-allowed disabled:opacity-50
225
- `,e),...t,children:d.jsx(Wy,{className:"flex items-center justify-center",children:d.jsx(af,{className:"h-2.5 w-2.5 fill-current text-current"})})}));zm.displayName=Qu.displayName;const _M=vw,Gm=f.forwardRef(({className:e,...t},n)=>d.jsx(zd,{ref:n,className:L("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Gm.displayName=zd.displayName;const Um=f.forwardRef(({className:e,...t},n)=>d.jsx(Gd,{ref:n,className:L("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}));Um.displayName=Gd.displayName;const qm=f.forwardRef(({className:e,...t},n)=>d.jsx(Ud,{ref:n,className:L("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));qm.displayName=Ud.displayName;const Vm=f.forwardRef(({className:e,value:t,...n},r)=>d.jsx(Lu,{ref:r,className:L("relative h-1.5 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:d.jsx(_y,{className:"h-full w-full flex-1 bg-brandBlue transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Vm.displayName=Lu.displayName;function OM(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 TM=e=>{switch(e){case"success":return IM;case"info":return $M;case"warning":return jM;case"error":return LM;default:return null}},PM=Array(12).fill(0),AM=({visible:e,className:t})=>x.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},x.createElement("div",{className:"sonner-spinner"},PM.map((n,r)=>x.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),IM=x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},x.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"})),jM=x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},x.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"})),$M=x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},x.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"})),LM=x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},x.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"})),FM=x.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"},x.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),x.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),WM=()=>{const[e,t]=x.useState(document.hidden);return x.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Ea=1;class BM{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:Ea++,i=this.toasts.find(c=>c.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(c=>c.id===a?(this.publish({...c,...t,id:a,title:r}),{...c,...t,id:a,dismissible:s,title:r}):c):this.addToast({title:r,...o,dismissible:s,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,i;const s=o.then(async u=>{if(i=["resolve",u],x.isValidElement(u))a=!1,this.create({id:r,type:"default",message:u});else if(HM(u)&&!u.ok){a=!1;const l=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 l=="object"&&!x.isValidElement(l)?l:{message:l};this.create({id:r,type:"error",description:p,...b})}else if(u instanceof Error){a=!1;const l=typeof n.error=="function"?await n.error(u):n.error,p=typeof n.description=="function"?await n.description(u):n.description,b=typeof l=="object"&&!x.isValidElement(l)?l:{message:l};this.create({id:r,type:"error",description:p,...b})}else if(n.success!==void 0){a=!1;const l=typeof n.success=="function"?await n.success(u):n.success,p=typeof n.description=="function"?await n.description(u):n.description,b=typeof l=="object"&&!x.isValidElement(l)?l:{message:l};this.create({id:r,type:"success",description:p,...b})}}).catch(async u=>{if(i=["reject",u],n.error!==void 0){a=!1;const m=typeof n.error=="function"?await n.error(u):n.error,l=typeof n.description=="function"?await n.description(u):n.description,h=typeof m=="object"&&!x.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:l,...h})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((u,m)=>s.then(()=>i[0]==="reject"?m(i[1]):u(i[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:c}:Object.assign(r,{unwrap:c})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Ea++;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 Ze=new BM,YM=(e,t)=>{const n=(t==null?void 0:t.id)||Ea++;return Ze.addToast({title:e,...t,id:n}),n},HM=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",zM=YM,GM=()=>Ze.toasts,UM=()=>Ze.getActiveToasts(),ji=Object.assign(zM,{success:Ze.success,info:Ze.info,warning:Ze.warning,error:Ze.error,custom:Ze.custom,message:Ze.message,promise:Ze.promise,dismiss:Ze.dismiss,loading:Ze.loading},{getHistory:GM,getToasts:UM});OM("[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 qM=3,VM="24px",KM="16px",$i=4e3,XM=356,ZM=14,QM=45,JM=200;function mt(...e){return e.filter(Boolean).join(" ")}function eD(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const tD=e=>{var t,n,r,o,a,i,s,c,u;const{invert:m,toast:l,unstyled:p,interacting:h,setHeights:b,visibleToasts:g,heights:v,index:y,toasts:w,expanded:S,removeToast:E,defaultRichColors:C,closeButton:N,style:k,cancelButtonStyle:R,actionButtonStyle:j,className:$="",descriptionClassName:W="",duration:U,position:B,gap:I,expandByDefault:_,classNames:M,icons:P,closeButtonAriaLabel:D="Close toast"}=e,[T,Y]=x.useState(null),[z,O]=x.useState(null),[A,H]=x.useState(!1),[G,q]=x.useState(!1),[F,K]=x.useState(!1),[X,Q]=x.useState(!1),[J,ae]=x.useState(!1),[be,ee]=x.useState(0),[_e,je]=x.useState(0),Me=x.useRef(l.duration||U||$i),Ve=x.useRef(null),De=x.useRef(null),We=y===0,Tt=y+1<=g,Te=l.type,Be=l.dismissible!==!1,St=l.className||"",Pt=l.descriptionClassName||"",ue=x.useMemo(()=>v.findIndex(oe=>oe.toastId===l.id)||0,[v,l.id]),me=x.useMemo(()=>{var oe;return(oe=l.closeButton)!=null?oe:N},[l.closeButton,N]),ye=x.useMemo(()=>l.duration||U||$i,[l.duration,U]),Pe=x.useRef(0),ke=x.useRef(0),At=x.useRef(0),Ke=x.useRef(null),[un,An]=B.split("-"),dn=x.useMemo(()=>v.reduce((oe,de,ve)=>ve>=ue?oe:oe+de.height,0),[v,ue]),Kt=WM(),In=l.invert||m,It=Te==="loading";ke.current=x.useMemo(()=>ue*I+dn,[ue,dn]),x.useEffect(()=>{Me.current=ye},[ye]),x.useEffect(()=>{H(!0)},[]),x.useEffect(()=>{const oe=De.current;if(oe){const de=oe.getBoundingClientRect().height;return je(de),b(ve=>[{toastId:l.id,height:de,position:l.position},...ve]),()=>b(ve=>ve.filter(le=>le.toastId!==l.id))}},[b,l.id]),x.useLayoutEffect(()=>{if(!A)return;const oe=De.current,de=oe.style.height;oe.style.height="auto";const ve=oe.getBoundingClientRect().height;oe.style.height=de,je(ve),b(le=>le.find(xe=>xe.toastId===l.id)?le.map(xe=>xe.toastId===l.id?{...xe,height:ve}:xe):[{toastId:l.id,height:ve,position:l.position},...le])},[A,l.title,l.description,b,l.id,l.jsx,l.action,l.cancel]);const V=x.useCallback(()=>{q(!0),ee(ke.current),b(oe=>oe.filter(de=>de.toastId!==l.id)),setTimeout(()=>{E(l)},JM)},[l,E,b,ke]);x.useEffect(()=>{if(l.promise&&Te==="loading"||l.duration===1/0||l.type==="loading")return;let oe;return S||h||Kt?(()=>{if(At.current<Pe.current){const le=new Date().getTime()-Pe.current;Me.current=Me.current-le}At.current=new Date().getTime()})():(()=>{Me.current!==1/0&&(Pe.current=new Date().getTime(),oe=setTimeout(()=>{l.onAutoClose==null||l.onAutoClose.call(l,l),V()},Me.current))})(),()=>clearTimeout(oe)},[S,h,l,Te,Kt,V]),x.useEffect(()=>{l.delete&&(V(),l.onDismiss==null||l.onDismiss.call(l,l))},[V,l.delete]);function ie(){var oe;if(P!=null&&P.loading){var de;return x.createElement("div",{className:mt(M==null?void 0:M.loader,l==null||(de=l.classNames)==null?void 0:de.loader,"sonner-loader"),"data-visible":Te==="loading"},P.loading)}return x.createElement(AM,{className:mt(M==null?void 0:M.loader,l==null||(oe=l.classNames)==null?void 0:oe.loader),visible:Te==="loading"})}const se=l.icon||(P==null?void 0:P[Te])||TM(Te);var fe,ge;return x.createElement("li",{tabIndex:0,ref:De,className:mt($,St,M==null?void 0:M.toast,l==null||(t=l.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[Te],l==null||(n=l.classNames)==null?void 0:n[Te]),"data-sonner-toast":"","data-rich-colors":(fe=l.richColors)!=null?fe:C,"data-styled":!(l.jsx||l.unstyled||p),"data-mounted":A,"data-promise":!!l.promise,"data-swiped":J,"data-removed":G,"data-visible":Tt,"data-y-position":un,"data-x-position":An,"data-index":y,"data-front":We,"data-swiping":F,"data-dismissible":Be,"data-type":Te,"data-invert":In,"data-swipe-out":X,"data-swipe-direction":z,"data-expanded":!!(S||_&&A),style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${G?be:ke.current}px`,"--initial-height":_?"auto":`${_e}px`,...k,...l.style},onDragEnd:()=>{K(!1),Y(null),Ke.current=null},onPointerDown:oe=>{oe.button!==2&&(It||!Be||(Ve.current=new Date,ee(ke.current),oe.target.setPointerCapture(oe.pointerId),oe.target.tagName!=="BUTTON"&&(K(!0),Ke.current={x:oe.clientX,y:oe.clientY})))},onPointerUp:()=>{var oe,de,ve;if(X||!Be)return;Ke.current=null;const le=Number(((oe=De.current)==null?void 0:oe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Xe=Number(((de=De.current)==null?void 0:de.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),xe=new Date().getTime()-((ve=Ve.current)==null?void 0:ve.getTime()),Ce=T==="x"?le:Xe,Qe=Math.abs(Ce)/xe;if(Math.abs(Ce)>=QM||Qe>.11){ee(ke.current),l.onDismiss==null||l.onDismiss.call(l,l),O(T==="x"?le>0?"right":"left":Xe>0?"down":"up"),V(),Q(!0);return}else{var Ye,st;(Ye=De.current)==null||Ye.style.setProperty("--swipe-amount-x","0px"),(st=De.current)==null||st.style.setProperty("--swipe-amount-y","0px")}ae(!1),K(!1),Y(null)},onPointerMove:oe=>{var de,ve,le;if(!Ke.current||!Be||((de=window.getSelection())==null?void 0:de.toString().length)>0)return;const xe=oe.clientY-Ke.current.y,Ce=oe.clientX-Ke.current.x;var Qe;const Ye=(Qe=e.swipeDirections)!=null?Qe:eD(B);!T&&(Math.abs(Ce)>1||Math.abs(xe)>1)&&Y(Math.abs(Ce)>Math.abs(xe)?"x":"y");let st={x:0,y:0};const Es=Xt=>1/(1.5+Math.abs(Xt)/20);if(T==="y"){if(Ye.includes("top")||Ye.includes("bottom"))if(Ye.includes("top")&&xe<0||Ye.includes("bottom")&&xe>0)st.y=xe;else{const Xt=xe*Es(xe);st.y=Math.abs(Xt)<Math.abs(xe)?Xt:xe}}else if(T==="x"&&(Ye.includes("left")||Ye.includes("right")))if(Ye.includes("left")&&Ce<0||Ye.includes("right")&&Ce>0)st.x=Ce;else{const Xt=Ce*Es(Ce);st.x=Math.abs(Xt)<Math.abs(Ce)?Xt:Ce}(Math.abs(st.x)>0||Math.abs(st.y)>0)&&ae(!0),(ve=De.current)==null||ve.style.setProperty("--swipe-amount-x",`${st.x}px`),(le=De.current)==null||le.style.setProperty("--swipe-amount-y",`${st.y}px`)}},me&&!l.jsx&&Te!=="loading"?x.createElement("button",{"aria-label":D,"data-disabled":It,"data-close-button":!0,onClick:It||!Be?()=>{}:()=>{V(),l.onDismiss==null||l.onDismiss.call(l,l)},className:mt(M==null?void 0:M.closeButton,l==null||(r=l.classNames)==null?void 0:r.closeButton)},(ge=P==null?void 0:P.close)!=null?ge:FM):null,(Te||l.icon||l.promise)&&l.icon!==null&&((P==null?void 0:P[Te])!==null||l.icon)?x.createElement("div",{"data-icon":"",className:mt(M==null?void 0:M.icon,l==null||(o=l.classNames)==null?void 0:o.icon)},l.promise||l.type==="loading"&&!l.icon?l.icon||ie():null,l.type!=="loading"?se:null):null,x.createElement("div",{"data-content":"",className:mt(M==null?void 0:M.content,l==null||(a=l.classNames)==null?void 0:a.content)},x.createElement("div",{"data-title":"",className:mt(M==null?void 0:M.title,l==null||(i=l.classNames)==null?void 0:i.title)},l.jsx?l.jsx:typeof l.title=="function"?l.title():l.title),l.description?x.createElement("div",{"data-description":"",className:mt(W,Pt,M==null?void 0:M.description,l==null||(s=l.classNames)==null?void 0:s.description)},typeof l.description=="function"?l.description():l.description):null),x.isValidElement(l.cancel)?l.cancel:l.cancel&&Rr(l.cancel)?x.createElement("button",{"data-button":!0,"data-cancel":!0,style:l.cancelButtonStyle||R,onClick:oe=>{Rr(l.cancel)&&Be&&(l.cancel.onClick==null||l.cancel.onClick.call(l.cancel,oe),V())},className:mt(M==null?void 0:M.cancelButton,l==null||(c=l.classNames)==null?void 0:c.cancelButton)},l.cancel.label):null,x.isValidElement(l.action)?l.action:l.action&&Rr(l.action)?x.createElement("button",{"data-button":!0,"data-action":!0,style:l.actionButtonStyle||j,onClick:oe=>{Rr(l.action)&&(l.action.onClick==null||l.action.onClick.call(l.action,oe),!oe.defaultPrevented&&V())},className:mt(M==null?void 0:M.actionButton,l==null||(u=l.classNames)==null?void 0:u.actionButton)},l.action.label):null)};function Li(){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 nD(e,t){const n={};return[e,t].forEach((r,o)=>{const a=o===1,i=a?"--mobile-offset":"--offset",s=a?KM:VM;function c(u){["top","right","bottom","left"].forEach(m=>{n[`${i}-${m}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=s:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(s)}),n}const rD=x.forwardRef(function(t,n){const{invert:r,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:s,className:c,offset:u,mobileOffset:m,theme:l="light",richColors:p,duration:h,style:b,visibleToasts:g=qM,toastOptions:v,dir:y=Li(),gap:w=ZM,icons:S,containerAriaLabel:E="Notifications"}=t,[C,N]=x.useState([]),k=x.useMemo(()=>Array.from(new Set([o].concat(C.filter(z=>z.position).map(z=>z.position)))),[C,o]),[R,j]=x.useState([]),[$,W]=x.useState(!1),[U,B]=x.useState(!1),[I,_]=x.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),M=x.useRef(null),P=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=x.useRef(null),T=x.useRef(!1),Y=x.useCallback(z=>{N(O=>{var A;return(A=O.find(H=>H.id===z.id))!=null&&A.delete||Ze.dismiss(z.id),O.filter(({id:H})=>H!==z.id)})},[]);return x.useEffect(()=>Ze.subscribe(z=>{if(z.dismiss){requestAnimationFrame(()=>{N(O=>O.map(A=>A.id===z.id?{...A,delete:!0}:A))});return}setTimeout(()=>{Xr.flushSync(()=>{N(O=>{const A=O.findIndex(H=>H.id===z.id);return A!==-1?[...O.slice(0,A),{...O[A],...z},...O.slice(A+1)]:[z,...O]})})})}),[C]),x.useEffect(()=>{if(l!=="system"){_(l);return}if(l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?_("dark"):_("light")),typeof window>"u")return;const z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:O})=>{_(O?"dark":"light")})}catch{z.addListener(({matches:A})=>{try{_(A?"dark":"light")}catch(H){console.error(H)}})}},[l]),x.useEffect(()=>{C.length<=1&&W(!1)},[C]),x.useEffect(()=>{const z=O=>{var A;if(a.every(q=>O[q]||O.code===q)){var G;W(!0),(G=M.current)==null||G.focus()}O.code==="Escape"&&(document.activeElement===M.current||(A=M.current)!=null&&A.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[a]),x.useEffect(()=>{if(M.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,T.current=!1)}},[M.current]),x.createElement("section",{ref:n,"aria-label":`${E} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((z,O)=>{var A;const[H,G]=z.split("-");return C.length?x.createElement("ol",{key:z,dir:y==="auto"?Li():y,tabIndex:-1,ref:M,className:c,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":H,"data-x-position":G,style:{"--front-toast-height":`${((A=R[0])==null?void 0:A.height)||0}px`,"--width":`${XM}px`,"--gap":`${w}px`,...b,...nD(u,m)},onBlur:q=>{T.current&&!q.currentTarget.contains(q.relatedTarget)&&(T.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||T.current||(T.current=!0,D.current=q.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{U||W(!1)},onDragEnd:()=>W(!1),onPointerDown:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||B(!0)},onPointerUp:()=>B(!1)},C.filter(q=>!q.position&&O===0||q.position===z).map((q,F)=>{var K,X;return x.createElement(tD,{key:q.id,icons:S,index:F,toast:q,defaultRichColors:p,duration:(K=v==null?void 0:v.duration)!=null?K:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:r,visibleToasts:g,closeButton:(X=v==null?void 0:v.closeButton)!=null?X:s,interacting:U,position:z,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,closeButtonAriaLabel:v==null?void 0:v.closeButtonAriaLabel,removeToast:Y,toasts:C.filter(Q=>Q.position==q.position),heights:R.filter(Q=>Q.position==q.position),setHeights:j,expandByDefault:i,gap:w,expanded:$,swipeDirections:t.swipeDirections})})):null}))}),oD={error:"bg-red-500 text-white",info:"bg-blue-500 text-white",warning:"bg-amber-500 text-white",success:"bg-green-500 text-white"},aD={error:5e3,info:4e3,warning:5e3,success:4e3},sD={error:d.jsx(nx,{className:"w-4 h-4 text-white"}),info:d.jsx(dx,{className:"w-4 h-4 text-white"}),warning:d.jsx(xx,{className:"w-4 h-4 text-white"}),success:d.jsx(ex,{className:"w-4 h-4 text-white"})},iD=(e,t)=>{const n=(t==null?void 0:t.variant)||"info",r=oD[n],o=(t==null?void 0:t.icon)??sD[n],a=(t==null?void 0:t.iconPosition)??"left",i=c=>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(_t,{variant:"ghost",size:"small",className:"ml-3 text-white hover:text-black/80",onClick:t.action.onClick,children:t.action.label}),d.jsx(_t,{variant:"ghost",size:"icon.large",className:"ml-3 text-white hover:text-black/80",onClick:()=>ji.dismiss(c),children:d.jsx(ln,{className:"w-4 h-4",strokeWidth:2.5})})]})]}),s={unstyled:!0,duration:(t==null?void 0:t.duration)||aD[n],style:{padding:0,margin:0,border:"none",background:"none"}};return ji.custom(i,s)};function cD(e){return d.jsx(rD,{...e})}const lD=Pw,uD=Aw,dD=Iw,Km=f.forwardRef(({className:e,sideOffset:t=4,children:n,...r},o)=>d.jsxs(tf,{ref:o,sideOffset:t,className:L("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(jw,{className:"fill-background stroke-border h-2 w-4"})]}));Km.displayName=tf.displayName;exports.ComponentVariant=FC;exports.DoctAddressFormSection=GS;exports.DoctAlert=cm;exports.DoctAlertDescription=um;exports.DoctAlertTitle=lm;exports.DoctAnimationLoader=_p;exports.DoctAutoComplete=IC;exports.DoctAutocomplete=UC;exports.DoctAvatar=dm;exports.DoctAvatarFallback=mm;exports.DoctAvatarImage=fm;exports.DoctButton=_t;exports.DoctCheckbox=pm;exports.DoctChip=HS;exports.DoctCircularProgress=Qi;exports.DoctComponentSection=LC;exports.DoctContactFormSection=qS;exports.DoctCurrencyInput=om;exports.DoctDatePickerField=Kr;exports.DoctDialog=DC;exports.DoctDialogClose=NC;exports.DoctDialogContent=Kf;exports.DoctDialogDescription=Jf;exports.DoctDialogFooter=Zf;exports.DoctDialogHeader=Xf;exports.DoctDialogTitle=Qf;exports.DoctDialogTrigger=kC;exports.DoctDrawer=km;exports.DoctDrawerClose=DM;exports.DoctDrawerContent=Nm;exports.DoctDrawerDescription=Tm;exports.DoctDrawerFooter=_m;exports.DoctDrawerHeader=Rm;exports.DoctDrawerTitle=Om;exports.DoctDrawerTrigger=CM;exports.DoctDropdownMenu=kM;exports.DoctDropdownMenuCheckboxItem=Lm;exports.DoctDropdownMenuContent=jm;exports.DoctDropdownMenuGroup=EM;exports.DoctDropdownMenuItem=$m;exports.DoctDropdownMenuLabel=Wm;exports.DoctDropdownMenuRadioGroup=RM;exports.DoctDropdownMenuRadioItem=Fm;exports.DoctDropdownMenuSeparator=Bm;exports.DoctDropdownMenuShortcut=Ym;exports.DoctDropdownMenuSub=NM;exports.DoctDropdownMenuSubContent=Im;exports.DoctDropdownMenuSubTrigger=Am;exports.DoctDropdownMenuTrigger=Pm;exports.DoctExpandableCard=qC;exports.DoctLabeledInput=nt;exports.DoctManualDatePickerField=YS;exports.DoctOtpInput=Ww;exports.DoctPasswordInput=ya;exports.DoctPopover=ws;exports.DoctPopoverContent=Do;exports.DoctPopoverTrigger=xs;exports.DoctProgress=Vm;exports.DoctRadioGroup=Hm;exports.DoctRadioGroupItem=zm;exports.DoctSearchFilterSection=QS;exports.DoctSearchInput=Wf;exports.DoctSelectField=Dn;exports.DoctTabs=_M;exports.DoctTabsContent=qm;exports.DoctTabsList=Gm;exports.DoctTabsTrigger=Um;exports.DoctTextareaField=ys;exports.DoctToaster=cD;exports.DoctTooltip=uD;exports.DoctTooltipContent=Km;exports.DoctTooltipProvider=lD;exports.DoctTooltipTrigger=dD;exports.DoctTypography=ba;exports.DoctUserRegistrationSection=eC;exports.doctToast=iD;