1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[684],{2146:(e,t,n)=>{n.d(t,{m:()=>s});var r=n(92118);function o(e){let t=(0,r.a)(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}var a=n(45240),i=n(9180),l=n(93366);function s(e,t,n){let[r,s]=(0,a.x)(null==n?void 0:n.in,e,t),u=(0,l.o)(r),d=(0,l.o)(s);return Math.round((u-o(u)-(d-o(d)))/i.w4)}},3177:(e,t,n)=>{n.d(t,{b:()=>o});var r=n(82192);function o(e,t){return(0,r.k)(e,{...t,weekStartsOn:1})}},3468:(e,t,n)=>{n.d(t,{A:()=>i,q:()=>a});var r=n(12115),o=n(95155);function a(e,t){let n=r.createContext(t),a=e=>{let{children:t,...a}=e,i=r.useMemo(()=>a,Object.values(a));return(0,o.jsx)(n.Provider,{value:i,children:t})};return a.displayName=e+"Provider",[a,function(o){let a=r.useContext(n);if(a)return a;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,t=[]){let n=[],a=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return a.scopeName=e,[function(t,a){let i=r.createContext(a),l=n.length;n=[...n,a];let s=t=>{let{scope:n,children:a,...s}=t,u=n?.[e]?.[l]||i,d=r.useMemo(()=>s,Object.values(s));return(0,o.jsx)(u.Provider,{value:d,children:a})};return s.displayName=t+"Provider",[s,function(n,o){let s=o?.[e]?.[l]||i,u=r.useContext(s);if(u)return u;if(void 0!==a)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(a,...t)]}},3648:(e,t,n)=>{n.d(t,{_:()=>r});function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},4129:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(12115),o=globalThis?.document?r.useLayoutEffect:()=>{}},4168:(e,t,n)=>{n.d(t,{w:()=>o});var r=n(9180);function o(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r._P in e?e[r._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},5302:(e,t,n)=>{n.d(t,{Q6:()=>Y,bL:()=>H,zi:()=>z,CC:()=>G});var r=n(12115),o=n(34212);function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var i=n(94446),l=n(3468),s=n(23558),u=n(66218),d=n(78108),c=n(84288),f=n(97602),p=n(49972),m=n(95155),h=["PageUp","PageDown"],v=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],g={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},w="Slider",[y,b,x]=(0,p.N)(w),[E,C]=(0,l.A)(w,[x]),[M,S]=E(w),k=r.forwardRef((e,t)=>{let{name:n,min:i=0,max:l=100,step:u=1,orientation:d="horizontal",disabled:c=!1,minStepsBetweenThumbs:f=0,defaultValue:p=[i],value:g,onValueChange:w=()=>{},onValueCommit:b=()=>{},inverted:x=!1,form:E,...C}=e,S=r.useRef(new Set),k=r.useRef(0),D="horizontal"===d,[N=[],P]=(0,s.i)({prop:g,defaultProp:p,onChange:e=>{var t;null==(t=[...S.current][k.current])||t.focus(),w(e)}}),j=r.useRef(N);function A(e,t){let{commit:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},r=(String(u).split(".")[1]||"").length,a=function(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-i)/u)*u+i,r),s=(0,o.q)(a,[i,l]);P(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(e,s,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,n)=>e[n+1]-t))>=t;return!0}(r,f*u))return e;{k.current=r.indexOf(s);let t=String(r)!==String(e);return t&&n&&b(r),t?r:e}})}return(0,m.jsx)(M,{scope:e.__scopeSlider,name:n,disabled:c,min:i,max:l,valueIndexToChangeRef:k,thumbs:S.current,values:N,orientation:d,form:E,children:(0,m.jsx)(y.Provider,{scope:e.__scopeSlider,children:(0,m.jsx)(y.Slot,{scope:e.__scopeSlider,children:(0,m.jsx)(D?R:T,{"aria-disabled":c,"data-disabled":c?"":void 0,...C,ref:t,onPointerDown:a(C.onPointerDown,()=>{c||(j.current=N)}),min:i,max:l,inverted:x,onSlideStart:c?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}(N,e);A(e,t)},onSlideMove:c?void 0:function(e){A(e,k.current)},onSlideEnd:c?void 0:function(){let e=j.current[k.current];N[k.current]!==e&&b(N)},onHomeKeyDown:()=>!c&&A(i,0,{commit:!0}),onEndKeyDown:()=>!c&&A(l,N.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:n}=e;if(!c){let e=h.includes(t.key)||t.shiftKey&&v.includes(t.key),r=k.current;A(N[r]+u*(e?10:1)*n,r,{commit:!0})}}})})})})});k.displayName=w;var[D,N]=E(w,{startEdge:"left",endEdge:"right",size:"width",direction:1}),R=r.forwardRef((e,t)=>
1{let{min:n,max:o,dir:a,inverted:l,onSlideStart:s,onSlideMove:d,onSlideEnd:c,onStepKeyDown:f,...p}=e,[h,v]=r.useState(null),w=(0,i.s)(t,e=>v(e)),y=r.useRef(void 0),b=(0,u.jH)(a),x="ltr"===b,E=x&&!l||!x&&l;function C(e){let t=y.current||h.getBoundingClientRect(),r=B([0,t.width],E?[n,o]:[o,n]);return y.current=t,r(e-t.left)}return(0,m.jsx)(D,{scope:e.__scopeSlider,startEdge:E?"left":"right",endEdge:E?"right":"left",direction:E?1:-1,size:"width",children:(0,m.jsx)(P,{dir:b,"data-orientation":"horizontal",...p,ref:w,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=C(e.clientX);null==s||s(t)},onSlideMove:e=>{let t=C(e.clientX);null==d||d(t)},onSlideEnd:()=>{y.current=void 0,null==c||c()},onStepKeyDown:e=>{let t=g[E?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})})}),T=r.forwardRef((e,t)=>{let{min:n,max:o,inverted:a,onSlideStart:l,onSlideMove:s,onSlideEnd:u,onStepKeyDown:d,...c}=e,f=r.useRef(null),p=(0,i.s)(t,f),h=r.useRef(void 0),v=!a;function w(e){let t=h.current||f.current.getBoundingClientRect(),r=B([0,t.height],v?[o,n]:[n,o]);return h.current=t,r(e-t.top)}return(0,m.jsx)(D,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:(0,m.jsx)(P,{"data-orientation":"vertical",...c,ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=w(e.clientY);null==l||l(t)},onSlideMove:e=>{let t=w(e.clientY);null==s||s(t)},onSlideEnd:()=>{h.current=void 0,null==u||u()},onStepKeyDown:e=>{let t=g[v?"from-bottom":"from-top"].includes(e.key);null==d||d({event:e,direction:t?-1:1})}})})}),P=r.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:l,onEndKeyDown:s,onStepKeyDown:u,...d}=e,c=S(w,n);return(0,m.jsx)(f.sG.span,{...d,ref:t,onKeyDown:a(e.onKeyDown,e=>{"Home"===e.key?(l(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):h.concat(v).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:a(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),c.thumbs.has(t)?t.focus():r(e)}),onPointerMove:a(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:a(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))})})}),j="SliderTrack",A=r.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,o=S(j,n);return(0,m.jsx)(f.sG.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});A.displayName=j;var O="SliderRange",I=r.forwardRef((e,t)=>{let{__scopeSlider:n,...o}=e,a=S(O,n),l=N(O,n),s=r.useRef(null),u=(0,i.s)(t,s),d=a.values.length,c=a.values.map(e=>U(e,a.min,a.max)),p=d>1?Math.min(...c):0,h=100-Math.max(...c);return(0,m.jsx)(f.sG.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...o,ref:u,style:{...e.style,[l.startEdge]:p+"%",[l.endEdge]:h+"%"}})});I.displayName=O;var L="SliderThumb",_=r.forwardRef((e,t)=>{let n=b(e.__scopeSlider),[o,a]=r.useState(null),l=(0,i.s)(t,e=>a(e)),s=r.useMemo(()=>o?n().findIndex(e=>e.ref.current===o):-1,[n,o]);return(0,m.jsx)(F,{...e,ref:l,index:s})}),F=r.forwardRef((e,t)=>{let{__scopeSlider:n,index:o,name:l,...s}=e,u=S(L,n),d=N(L,n),[p,h]=r.useState(null),v=(0,i.s)(t,e=>h(e)),g=!p||u.form||!!p.closest("form"),w=(0,c.X)(p),b=u.values[o],x=void 0===b?0:U(b,u.min,u.max),E=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(o,u.values.length),C=null==w?void 0:w[d.size],M=C?function(e,t,n){let r=e/2,o=B([0,50],[0,r]);return(r-o(t)*n)*n}(C,x,d.direction):0;return r.useEffect(()=>{if(p)return u.thumbs.add(p),()=>{u.thumbs.delete(p)}},[p,u.thumbs]),(0,m.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:"calc(".concat(x,"% + ").concat(M,"px)")},children:[(0,m.jsx)(y.ItemSlot,{scope:e.__scopeSlider,children:(0,m.jsx)(f.sG.span,{role:"slider","aria-label":e["aria-label"]||E,"aria-valuemin":u.min,"aria-valuenow":b,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...s,ref:v,style:void 0===b?{display:"none"}:e.style,onFocus:a(e.onFocus,()=>{u.valueIndexToChangeRef.current=o})})}),g&&(0,m.jsx)(W,{name:null!=l?l:u.name?u.name+(u.values.length>1?"[]":""):void 0,form:u.form,value:b},o)]})});_.displayName=L;var W=r.forwardRef((e,t)=>
1{let{__scopeSlider:n,value:o,...a}=e,l=r.useRef(null),s=(0,i.s)(l,t),u=(0,d.Z)(o);return r.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(u!==o&&t){let n=new Event("input",{bubbles:!0});t.call(e,o),e.dispatchEvent(n)}},[u,o]),(0,m.jsx)(f.sG.input,{style:{display:"none"},...a,ref:s,defaultValue:o})});function U(e,t,n){return(0,o.q)(100/(n-t)*(e-t),[0,100])}function B(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}W.displayName="RadioBubbleInput";var H=k,G=A,Y=I,z=_},5379:(e,t,n)=>{n.d(t,{D:()=>i});var r=n(12115),o=r.createContext(void 0),a={setTheme:e=>{},themes:[]},i=()=>{var e;return null!=(e=r.useContext(o))?e:a}},5917:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},7125:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},8069:(e,t,n)=>{n.d(t,{Mz:()=>em,UC:()=>eg,ZL:()=>ev,bL:()=>ep,l9:()=>eh});var r=n(12115);function o(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var a=n(94446),i=n(3468),l=n(33045),s=0;function u(){let 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 d=n(69666),c=n(68946),f=n(88334),p=n(58146),m=n(72930),h=n(97602),v=n(70222),g=n(4129),w=n(84288),y=n(95155),b="Popper",[x,E]=(0,i.A)(b),[C,M]=x(b),S=e=>{let{__scopePopper:t,children:n}=e,[o,a]=r.useState(null);return(0,y.jsx)(C,{scope:t,anchor:o,onAnchorChange:a,children:n})};S.displayName=b;var k="PopperAnchor",D=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,l=M(k,n),s=r.useRef(null),u=(0,a.s)(t,s),d=r.useRef(null);return r.useEffect(()=>{let e=d.current;d.current=(null==o?void 0:o.current)||s.current,e!==d.current&&l.onAnchorChange(d.current)}),o?null:(0,y.jsx)(h.sG.div,{...i,ref:u})});D.displayName=k;var N="PopperContent",[R,T]=x(N),P=r.forwardRef((e,t)=>{var n,o,i,l,s,u,d,c;let{__scopePopper:m,side:b="bottom",sideOffset:x=0,align:E="center",alignOffset:C=0,arrowPadding:S=0,avoidCollisions:k=!0,collisionBoundary:D=[],collisionPadding:T=0,sticky:P="partial",hideWhenDetached:j=!1,updatePositionStrategy:A="optimized",onPlaced:O,...F}=e,W=M(N,m),[U,B]=r.useState(null),H=(0,a.s)(t,e=>B(e)),[G,Y]=r.useState(null),z=(0,w.X)(G),K=null!=(d=null==z?void 0:z.width)?d:0,q=null!=(c=null==z?void 0:z.height)?c:0,V="number"==typeof T?T:{top:0,right:0,bottom:0,left:0,...T},X=Array.isArray(D)?D:[D],Z=X.length>0,$={padding:V,boundary:X.filter(I),altBoundary:Z},{refs:Q,floatingStyles:J,placement:ee,isPositioned:et,middlewareData:en}=(0,f.we)({strategy:"fixed",placement:b+("center"!==E?"-"+E:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,p.ll)(...t,{animationFrame:"always"===A})},elements:{reference:W.anchor},middleware:[(0,f.cY)({mainAxis:x+q,alignmentAxis:C}),k&&(0,f.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===P?(0,f.ER)():void 0,...$}),k&&(0,f.UU)({...$}),(0,f.Ej)({...$,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:i}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),G&&(0,f.UE)({element:G,padding:S}),L({arrowWidth:K,arrowHeight:q}),j&&(0,f.jD)({strategy:"referenceHidden",...$})]}),[er,eo]=_(ee),ea=(0,v.c)(O);(0,g.N)(()=>{et&&(null==ea||ea())},[et,ea]);let ei=null==(n=en.arrow)?void 0:n.x,el=null==(o=en.arrow)?void 0:o.y,es=(null==(i=en.arrow)?void 0:i.centerOffset)!==0,[eu,ed]=r.useState();return(0,g.N)(()=>{U&&ed(window.getComputedStyle(U).zIndex)},[U]),(0,y.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:et?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null==(l=en.transformOrigin)?void 0:l.x,null==(s=en.transformOrigin)?void 0:s.y].join(" "),...(null==(u=en.hide)?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,y.jsx)(R,{scope:m,placedSide:er,onArrowChange:Y,arrowX:ei,arrowY:el,shouldHideArrow:es,children:(0,y.jsx)(h.sG.div,{"data-side":er,"data-align":eo,...F,ref:H,style:{...F.style,animation:et?void 0:"none"}})})})});P.displayName=N;var j="PopperArrow",A={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},O=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=T(j,n),a=A[o.placedSide];return(0,y.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,y.jsx)(m.b,{...r,ref:t,style:{...r.style,display:"block"}})})});function I(e){return null!==e}O.displayName=j;var L=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;let{placement:l,rects:s,middlewareData:u}=t,d=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,c=d?0:e.arrowWidth,f=d?0:e.arrowHeight,[p,m]=_(l),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!=(a=null==(r=u.arrow)?void 0:r.x)?a:0)+c/2,g=(null!=(i=null==(o=u.arrow)?void 0:o.y)?i:0)+f/2,w="",y="";return"bottom"===p?(w=d?h:"".concat(v,"px"),y="".concat(-f,"px")):"top"===p?(w=d?h:"".concat(v,"px"),y="".concat(s.floating.height+f,"px")):"right"===p?(w="".concat(-f,"px"),y=d?h:"".concat(g,"px")):"left"===p&&(w="".concat(s.floating.width+f,"px"),y=d?h:"".concat(g,"px")),{data:{x:w,y}}}});function _(e){let[t,n="center"]=e.split("-");return[t,n]}var F=n(75433),W=n(76842),U=n(32467),B=n(23558),H=n(97745),G=n(14432),Y="Popover",[z,K]=(0,i.A)(Y,[E]),q=E(),[V,X]=z(Y),Z=e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:l=!1}=e,s=q(t),u=r.useRef(null),[d,f]=r.useState(!1),[p,m]=(0,B.i)({prop:o,defaultProp:null!=a&&a,onChange:i,caller:Y});return(0,y.jsx)(S,{...s,children:(0,y.jsx)(V,{scope:t,contentId:(0,c.B)(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:l,children:n})})};Z.displayName=Y;var $="PopoverAnchor",Q=r.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,a=X($,n),i=q(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:s}=a;return r.useEffect(()=>(l(),()=>s()),[l,s]),(0,y.jsx)(D,{...i,...o,ref:t})});Q.displayName=$;var J="PopoverTrigger",ee=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=X(J,n),l=q(n),s=(0,a.s)(t,i.triggerRef),u=(0,y.jsx)(h.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ef(i.open),...r,ref:s,onClick:o(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?u:(0,y.jsx)(D,{asChild:!0,...l,children:u})});ee.displayName=J;var et="PopoverPortal",[en,er]=z(et,{forceMount:void 0}),eo=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=X(et,t);return(0,y.jsx)(en,{scope:t,forceMount:n,children:(0,y.jsx)(W.C,{present:n||a.open,children:(0,y.jsx)(F.Z,{asChild:!0,container:o,children:r})})})};eo.displayName=et;var ea="PopoverContent",ei=r.forwardRef((e,t)=>{let n=er(ea,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=X(ea,e.__scopePopover);return(0,y.jsx)(W.C,{present:r||a.open,children:a.modal?(0,y.jsx)(es,{...o,ref:t}):(0,y.jsx)(eu,{...o,ref:t})})});ei.displayName=ea;var el=(0,U.TL)("PopoverContent.RemoveScroll"),es=r.forwardRef((e,t)=>{let n=X(ea,e.__scopePopover),i=r.useRef(null),l=(0,a.s)(t,i),s=r.useRef(!1);return r.useEffect(()=>{let e=i.current;if(e)return(0,H.Eq)(e)},[]),(0,y.jsx)(G.A,{as:el,allowPinchZoom:!0,children:(0,y.jsx)(ed,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:o(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),s.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:o(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;s.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:o(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),eu=r.forwardRef((e,t)=>{let n=X(ea,e.__scopePopover),o=r.useRef(!1),a=r.useRef(!1);return(0,y.jsx)(ed,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(o.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let l=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),ed=r.forwardRef((e,t)=>
1{let{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,...v}=e,g=X(ea,n),w=q(n);return r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:u()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:u()),s++,()=>{1===s&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),s--}},[]),(0,y.jsx)(d.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,y.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:h,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onDismiss:()=>g.onOpenChange(!1),children:(0,y.jsx)(P,{"data-state":ef(g.open),role:"dialog",id:g.contentId,...w,...v,ref:t,style:{...v.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)"}})})})}),ec="PopoverClose";function ef(e){return e?"open":"closed"}r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,a=X(ec,n);return(0,y.jsx)(h.sG.button,{type:"button",...r,ref:t,onClick:o(e.onClick,()=>a.onOpenChange(!1))})}).displayName=ec,r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=q(n);return(0,y.jsx)(O,{...o,...r,ref:t})}).displayName="PopoverArrow";var ep=Z,em=Q,eh=ee,ev=eo,eg=ei},9180:(e,t,n)=>{n.d(t,{_P:()=>a,my:()=>r,w4:()=>o});let r=6048e5,o=864e5,a=Symbol.for("constructDateFrom")},9702:(e,t,n)=>{n.d(t,{bm:()=>ei,UC:()=>er,VY:()=>ea,L3:()=>H,hJ:()=>en,ZL:()=>et,bL:()=>J,hE:()=>eo,l9:()=>ee});var r=n(12115);function o(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var a=n(94446),i=n(3468),l=n(68946),s=n(23558),u=n(33045),d=n(69666),c=n(75433),f=n(76842),p=n(97602),m=0;function h(){let 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 v=n(14432),g=n(97745),w=n(32467),y=n(95155),b="Dialog",[x,E]=(0,i.A)(b),[C,M]=x(b),S=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:u=!0}=e,d=r.useRef(null),c=r.useRef(null),[f,p]=(0,s.i)({prop:o,defaultProp:null!=a&&a,onChange:i,caller:b});return(0,y.jsx)(C,{scope:t,triggerRef:d,contentRef:c,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};S.displayName=b;var k="DialogTrigger",D=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=M(k,n),l=(0,a.s)(t,i.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":q(i.open),...r,ref:l,onClick:o(e.onClick,i.onOpenToggle)})});D.displayName=k;var N="DialogPortal",[R,T]=x(N,{forceMount:void 0}),P=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:a}=e,i=M(N,t);return(0,y.jsx)(R,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(f.C,{present:n||i.open,children:(0,y.jsx)(c.Z,{asChild:!0,container:a,children:e})}))})};P.displayName=N;var j="DialogOverlay",A=r.forwardRef((e,t)=>{let n=T(j,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=M(j,e.__scopeDialog);return a.modal?(0,y.jsx)(f.C,{present:r||a.open,children:(0,y.jsx)(I,{...o,ref:t})}):null});A.displayName=j;var O=(0,w.TL)("DialogOverlay.RemoveScroll"),I=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=M(j,n);return(0,y.jsx)(v.A,{as:O,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":q(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),L="DialogContent",_=r.forwardRef((e,t)=>
1{let n=T(L,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=M(L,e.__scopeDialog);return(0,y.jsx)(f.C,{present:r||a.open,children:a.modal?(0,y.jsx)(F,{...o,ref:t}):(0,y.jsx)(W,{...o,ref:t})})});_.displayName=L;var F=r.forwardRef((e,t)=>{let n=M(L,e.__scopeDialog),i=r.useRef(null),l=(0,a.s)(t,n.contentRef,i);return r.useEffect(()=>{let e=i.current;if(e)return(0,g.Eq)(e)},[]),(0,y.jsx)(U,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:o(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:o(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:o(e.onFocusOutside,e=>e.preventDefault())})}),W=r.forwardRef((e,t)=>{let n=M(L,e.__scopeDialog),o=r.useRef(!1),a=r.useRef(!1);return(0,y.jsx)(U,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(o.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let l=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),U=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,...s}=e,c=M(L,n),f=r.useRef(null),p=(0,a.s)(t,f);return r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:h()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:h()),m++,()=>{1===m&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),m--}},[]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,y.jsx)(u.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":q(c.open),...s,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)($,{titleId:c.titleId}),(0,y.jsx)(Q,{contentRef:f,descriptionId:c.descriptionId})]})]})}),B="DialogTitle",H=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=M(B,n);return(0,y.jsx)(p.sG.h2,{id:o.titleId,...r,ref:t})});H.displayName=B;var G="DialogDescription",Y=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=M(G,n);return(0,y.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:t})});Y.displayName=G;var z="DialogClose",K=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=M(z,n);return(0,y.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:o(e.onClick,()=>a.onOpenChange(!1))})});function q(e){return e?"open":"closed"}K.displayName=z;var V="DialogTitleWarning",[X,Z]=(0,i.q)(V,{contentName:L,titleName:B,docsSlug:"dialog"}),$=e=>{let{titleId:t}=e,n=Z(V),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&(document.getElementById(t)||console.error(o))},[o,t]),null},Q=e=>{let{contentRef:t,descriptionId:n}=e,o=Z("DialogDescriptionWarning"),a="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(a))},[a,t,n]),null},J=S,ee=D,et=P,en=A,er=_,eo=H,ea=Y,ei=K},10489:(e,t,n)=>{n.d(t,{b:()=>l});var r=n(12115),o=n(97602),a=n(95155),i=r.forwardRef((e,t)=>(0,a.jsx)(o.sG.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null==(n=e.onMouseDown)||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var l=i},11005:(e,t,n)=>{n.d(t,{Ke:()=>x,R6:()=>y,bL:()=>M});var r=n(12115);"undefined"!=typeof window&&window.document&&window.document.createElement;var o=n(3468),a=n(23558),i=n(4129),l=n(94446),s=n(97602),u=n(76842),d=n(68946),c=n(95155),f="Collapsible",[p,m]=(0,o.A)(f),[h,v]=p(f),g=r.forwardRef((e,t)=>
1{let{__scopeCollapsible:n,open:o,defaultOpen:i,disabled:l,onOpenChange:u,...p}=e,[m,v]=(0,a.i)({prop:o,defaultProp:null!=i&&i,onChange:u,caller:f});return(0,c.jsx)(h,{scope:n,disabled:l,contentId:(0,d.B)(),open:m,onOpenToggle:r.useCallback(()=>v(e=>!e),[v]),children:(0,c.jsx)(s.sG.div,{"data-state":C(m),"data-disabled":l?"":void 0,...p,ref:t})})});g.displayName=f;var w="CollapsibleTrigger",y=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=v(w,n);return(0,c.jsx)(s.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":C(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onClick,o.onOpenToggle)})});y.displayName=w;var b="CollapsibleContent",x=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=v(b,e.__scopeCollapsible);return(0,c.jsx)(u.C,{present:n||o.open,children:e=>{let{present:n}=e;return(0,c.jsx)(E,{...r,ref:t,present:n})}})});x.displayName=b;var E=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:a,...u}=e,d=v(b,n),[f,p]=r.useState(o),m=r.useRef(null),h=(0,l.s)(t,m),g=r.useRef(0),w=g.current,y=r.useRef(0),x=y.current,E=d.open||f,M=r.useRef(E),S=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>M.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,i.N)(()=>{let e=m.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,M.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),p(o)}},[d.open,o]),(0,c.jsx)(s.sG.div,{"data-state":C(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!E,...u,ref:h,style:{"--radix-collapsible-content-height":w?"".concat(w,"px"):void 0,"--radix-collapsible-content-width":x?"".concat(x,"px"):void 0,...e.style},children:E&&a})});function C(e){return e?"open":"closed"}var M=g},12108:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},14432:(e,t,n)=>{n.d(t,{A:()=>z});var r,o,a=n(71450),i=n(12115),l="right-scroll-bar-position",s="width-before-scroll-bar";function u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,c=new WeakMap;function f(e){return e}var p=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=f),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}});return o.options=(0,a.Cl)({async:!0,ssr:!1},e),o}(),m=function(){},h=i.forwardRef(function(e,t){var n,r,o,l,s=i.useRef(null),f=i.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),h=f[0],v=f[1],g=e.forwardProps,w=e.children,y=e.className,b=e.removeScrollBar,x=e.enabled,E=e.shards,C=e.sideCar,M=e.noRelative,S=e.noIsolation,k=e.inert,D=e.allowPinchZoom,N=e.as,R=e.gapMode,T=(0,a.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=(n=[s,t],r=function(e){return n.forEach(function(t){return u(t,e)})},(o=(0,i.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,l=o.facade,d(function(){var e=c.get(l);if(e){var t=new Set(e),r=new Set(n),o=l.current;t.forEach(function(e){r.has(e)||u(e,null)}),r.forEach(function(e){t.has(e)||u(e,o)})}c.set(l,n)},[n]),l),j=(0,a.Cl)((0,a.Cl)({},T),h);return i.createElement(i.Fragment,null,x&&i.createElement(C,{sideCar:p,removeScrollBar:b,shards:E,noRelative:M,noIsolation:S,inert:k,setCallbacks:v,allowPinchZoom:!!D,lockRef:s,gapMode:R}),g?i.cloneElement(i.Children.only(w),(0,a.Cl)((0,a.Cl)({},j),{ref:P})):i.createElement(void 0===N?"div":N,(0,a.Cl)({},j,{className:y,ref:P}),w))});h.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},h.classNames={fullWidth:s,zeroRight:l};
1var v=function(e){var t=e.sideCar,n=(0,a.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return i.createElement(r,(0,a.Cl)({},n))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||n.nc;return t&&e.setAttribute("nonce",t),e}())){var a,i;(a=t).styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=g();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},y=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},b={left:0,top:0,right:0,gap:0},x=function(e){return parseInt(e||"",10)||0},E=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[x(n),x(r),x(o)]},C=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;var t=E(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])}},M=y(),S="data-scroll-locked",k=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(S,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(s," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(r,";\n }\n \n .").concat(s," .").concat(s," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(S,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},D=function(){var e=parseInt(document.body.getAttribute(S)||"0",10);return isFinite(e)?e:0},N=function(){i.useEffect(function(){return document.body.setAttribute(S,(D()+1).toString()),function(){var e=D()-1;e<=0?document.body.removeAttribute(S):document.body.setAttribute(S,e.toString())}},[])},R=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;N();var a=i.useMemo(function(){return C(o)},[o]);return i.createElement(M,{styles:k(a,!t,o,n?"":"!important")})},T=!1;if("undefined"!=typeof window)try{var P=Object.defineProperty({},"passive",{get:function(){return T=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch(e){T=!1}var j=!!T&&{passive:!1},A=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},O=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),I(e,r)){var o=L(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},I=function(e,t){return"v"===e?A(t,"overflowY"):A(t,"overflowX")},L=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},_=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,s=n.target,u=t.contains(s),d=!1,c=l>0,f=0,p=0;do{if(!s)break;var m=L(e,s),h=m[0],v=m[1]-m[2]-i*h;(h||v)&&I(e,s)&&(f+=v,p+=h);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return c&&(o&&1>Math.abs(f)||!o&&l>f)?d=!0:!c&&(o&&1>Math.abs(p)||!o&&-l>p)&&(d=!0),d},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W=function(e){return[e.deltaX,e.deltaY]},U=function(e){return e&&"current"in e?e.current:e},B=0,H=[];let G=(r=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(B++)[0],l=i.useState(y)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,a.fX)([e.lockRef.current],(e.shards||[]).map(U),!0).filter(
1Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,a=F(e),i=n.current,l="deltaX"in e?e.deltaX:i[0]-a[0],u="deltaY"in e?e.deltaY:i[1]-a[1],d=e.target,c=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===c&&"range"===d.type)return!1;var f=O(c,d);if(!f)return!0;if(f?o=c:(o="v"===c?"h":"v",f=O(c,d)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return _(p,t,e,"h"===p?l:u,!0)},[]),d=i.useCallback(function(e){if(H.length&&H[H.length-1]===l){var n="deltaY"in e?W(e):F(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(s.current.shards||[]).map(U).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=i.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),f=i.useCallback(function(e){n.current=F(e),r.current=void 0},[]),p=i.useCallback(function(t){c(t.type,W(t),t.target,u(t,e.lockRef.current))},[]),m=i.useCallback(function(t){c(t.type,F(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return H.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",d,j),document.addEventListener("touchmove",d,j),document.addEventListener("touchstart",f,j),function(){H=H.filter(function(e){return e!==l}),document.removeEventListener("wheel",d,j),document.removeEventListener("touchmove",d,j),document.removeEventListener("touchstart",f,j)}},[]);var h=e.removeScrollBar,v=e.inert;return i.createElement(i.Fragment,null,v?i.createElement(l,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?i.createElement(R,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},p.useMedium(r),v);var Y=i.forwardRef(function(e,t){return i.createElement(h,(0,a.Cl)({},e,{ref:t,sideCar:G}))});Y.classNames=h.classNames;let z=Y},14806:(e,t,n)=>{e.exports=n(30125)},21256:(e,t,n)=>{n.d(t,{Content:()=>eD,Indicator:()=>ek,Item:()=>eC,Link:()=>eS,List:()=>eE,Root:()=>ex,Trigger:()=>eM,Viewport:()=>eN});var r,o=n(12115),a=n(47650),i=n(3468),l=n(92556),s=n(97602),u=n(23558),d=n(94446),c=n(66218),f=n(4129),p=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,a]=o.useState(),i=o.useRef(null),l=o.useRef(e),s=o.useRef("none"),[u,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return o.useEffect(()=>{let e=m(i.current);s.current="mounted"===u?e:"none"},[u]),(0,f.N)(()=>{let t=i.current,n=l.current;if(n!==e){let r=s.current,o=m(t);e?d("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),(0,f.N)(()=>{if(r){var e;let t,n=null!=(e=r.ownerDocument.defaultView)?e:window,o=e=>{let o=m(i.current).includes(e.animationName);if(e.target===r&&o&&(d("ANIMATION_END"),!l.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},a=e=>{e.target===r&&(s.current=m(i.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:o.useCallback(e=>{i.current=e?getComputedStyle(e):null,a(e)},[])}}(t),a="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),i=(0,d.s)(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?o.cloneElement(a,{ref:i}):null};function m(e){return(null==e?void 0:e.animationName)||"none"}p.displayName="Presence";var h=n(68946),v=n(49972),g=n(70222),w=n(59584),y=n(95155),b="dismissableLayer.update",x=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),E=o.forwardRef((e,t)=>
1{var n,a;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:p,onDismiss:m,...h}=e,v=o.useContext(x),[E,S]=o.useState(null),k=null!=(a=null==E?void 0:E.ownerDocument)?a:null==(n=globalThis)?void 0:n.document,[,D]=o.useState({}),N=(0,d.s)(t,e=>S(e)),R=Array.from(v.layers),[T]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),P=R.indexOf(T),j=E?R.indexOf(E):-1,A=v.layersWithOutsidePointerEventsDisabled.size>0,O=j>=P,I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,g.c)(e),a=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let t=function(){M("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);a.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,n=[...v.branches].some(e=>e.contains(t));O&&!n&&(null==c||c(e),null==p||p(e),e.defaultPrevented||null==m||m())},k),L=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,g.c)(e),a=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!a.current&&M("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;![...v.branches].some(e=>e.contains(t))&&(null==f||f(e),null==p||p(e),e.defaultPrevented||null==m||m())},k);return(0,w.U)(e=>{j===v.layers.size-1&&(null==u||u(e),!e.defaultPrevented&&m&&(e.preventDefault(),m()))},k),o.useEffect(()=>{if(E)return i&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(r=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(E)),v.layers.add(E),C(),()=>{i&&1===v.layersWithOutsidePointerEventsDisabled.size&&(k.body.style.pointerEvents=r)}},[E,k,i,v]),o.useEffect(()=>()=>{E&&(v.layers.delete(E),v.layersWithOutsidePointerEventsDisabled.delete(E),C())},[E,v]),o.useEffect(()=>{let e=()=>D({});return document.addEventListener(b,e),()=>document.removeEventListener(b,e)},[]),(0,y.jsx)(s.sG.div,{...h,ref:N,style:{pointerEvents:A?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.m)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,l.m)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,l.m)(e.onPointerDownCapture,I.onPointerDownCapture)})});function C(){let e=new CustomEvent(b);document.dispatchEvent(e)}function M(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?(0,s.hO)(a,i):a.dispatchEvent(i)}E.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(x),r=o.useRef(null),a=(0,d.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,y.jsx)(s.sG.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var S=n(78108),k=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"}),D=o.forwardRef((e,t)=>(0,y.jsx)(s.sG.span,{...e,ref:t,style:{...k,...e.style}}));D.displayName="VisuallyHidden";var N="NavigationMenu",[R,T,P]=(0,v.N)(N),[j,A,O]=(0,v.N)(N),[I,L]=(0,i.A)(N,[P,O]),[_,F]=I(N),[W,U]=I(N),B=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:a,defaultValue:i,delayDuration:l=200,skipDelayDuration:f=300,orientation:p="horizontal",dir:m,...h}=e,[v,g]=o.useState(null),w=(0,d.s)(t,e=>g(e)),b=(0,c.jH)(m),x=o.useRef(0),E=o.useRef(0),C=o.useRef(0),[M,S]=o.useState(!0),[k,D]=(0,u.i)({prop:r,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(C.current),t&&S(!1)):(window.clearTimeout(C.current),C.current=window.setTimeout(()=>S(!0),f)),null==a||a(e)},defaultProp:null!=i?i:"",caller:N}),R=o.useCallback(()=>{window.clearTimeout(E.current),E.current=window.setTimeout(()=>D(""),150)},[D]),T=o.useCallback(e=>{window.clearTimeout(E.current),D(e)},[D]),P=o.useCallback(e=>{k===e?window.clearTimeout(E.current):x.current=window.setTimeout(()=>{window.clearTimeout(E.current),D(e)},l)},[k,D,l]);return o.useEffect(()=>()=>{window.clearTimeout(x.current),window.clearTimeout(E.current),window.clearTimeout(C.current)},[]),(0,y.jsx)(G,{scope:n,isRootMenu:!0,value:k,dir:b,orientation:p,rootNavigationMenu:v,onTriggerEnter:e=>{window.clearTimeout(x.current),M?P(e):T(e)},onTriggerLeave:()=>{window.clearTimeout(x.current),R()},onContentEnter:()=>window.clearTimeout(E.current),onContentLeave:R,onItemSelect:e=>{D(t=>t===e?"":e)},onItemDismiss:()=>D(""),children:(0,y.jsx)(s.sG.nav,{"aria-label":"Main","data-orientation":p,dir:b,...h,ref:w})})});B.displayName=N;var H="NavigationMenuSub";o.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",...l}=e,d=F(H,n),[c,f]=(0,u.i)({prop:r,onChange:o,defaultProp:null!=a?a:"",caller:H});return(0,y.jsx)(G,{scope:n,isRootMenu:!1,value:c,dir:d.dir,orientation:i,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,y.jsx)(s.sG.div,{"data-orientation":i,...l,ref:t})})}).displayName=H;var G=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:a,orientation:i,children:l,value:s,onItemSelect:u,onItemDismiss:d,onTriggerEnter:c,onTriggerLeave:f,onContentEnter:p,onContentLeave:m}=e,[v,w]=o.useState(null),[b,x]=o.useState(new Map),[E,C]=o.useState(null);return(0,y.jsx)(_,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:(0,S.Z)(s),baseId:(0,h.B)(),dir:a,orientation:i,viewport:v,onViewportChange:w,indicatorTrack:E,onIndicatorTrackChange:C,onTriggerEnter:(0,g.c)(c),onTriggerLeave:(0,g.c)(f),onContentEnter:(0,g.c)(p),onContentLeave:(0,g.c)(m),onItemSelect:(0,g.c)(u),onItemDismiss:(0,g.c)(d),onViewportContentChange:o.useCallback((e,t)=>{x(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:o.useCallback(e=>{x(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,y.jsx)(R.Provider,{scope:t,children:(0,y.jsx)(W,{scope:t,items:b,children:l})})})},Y="NavigationMenuList",z=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=F(Y,n),a=(0,y.jsx)(s.sG.ul,{"data-orientation":o.orientation,...r,ref:t});return(0,y.jsx)(s.sG.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,y.jsx)(R.Slot,{scope:n,children:o.isRootMenu?(0,y.jsx)(ec,{asChild:!0,children:a}):a})})});z.displayName=Y;var K="NavigationMenuItem",[q,V]=I(K),X=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,...a}=e,i=(0,h.B)(),l=o.useRef(null),u=o.useRef(null),d=o.useRef(null),c=o.useRef(()=>{}),f=o.useRef(!1),p=o.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(l.current){c.current();let t=em(l.current);t.length&&eh("start"===e?t:t.reverse())}},[]),m=o.useCallback(()=>{if(l.current){let e=em(l.current);e.length&&(c.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,y.jsx)(q,{scope:n,value:r||i||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:l,focusProxyRef:d,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:m,onContentFocusOutside:m,children:(0,y.jsx)(s.sG.li,{...a,ref:t})})});X.displayName=K;var Z="NavigationMenuTrigger",$=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:r,...a}=e,i=F(Z,e.__scopeNavigationMenu),u=V(Z,e.__scopeNavigationMenu),c=o.useRef(null),f=(0,d.s)(c,u.triggerRef,t),p=ew(i.baseId,u.value),m=ey(i.baseId,u.value),h=o.useRef(!1),v=o.useRef(!1),g=u.value===i.value;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(R.ItemSlot,{scope:n,value:u.value,children:(0,y.jsx)(ep,{asChild:!0,children:(0,y.jsx)(s.sG.button,{id:p,disabled:r,"data-disabled":r?"":void 0,"data-state":eg(g),"aria-expanded":g,"aria-controls":m,...a,ref:f,onPointerEnter:(0,l.m)(e.onPointerEnter,()=>{v.current=!1,u.wasEscapeCloseRef.current=!1}),onPointerMove:(0,l.m)(e.onPointerMove,eb(()=>{r||v.current||u.wasEscapeCloseRef.current||h.current||(i.onTriggerEnter(u.value),h.current=!0)})),onPointerLeave:(0,l.m)(e.onPointerLeave,eb(()=>{r||(i.onTriggerLeave(),h.current=!1)})),onClick:(0,l.m)(e.onClick,()=>{i.onItemSelect(u.value),v.current=g}),onKeyDown:(0,l.m)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===i.dir?"ArrowLeft":"ArrowRight"}[i.orientation];g&&e.key===t&&(u.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(D,{"aria-hidden":!0,tabIndex:0,ref:u.focu
1sProxyRef,onFocus:e=>{let t=u.contentRef.current,n=e.relatedTarget,r=n===c.current,o=null==t?void 0:t.contains(n);(r||!o)&&u.onFocusProxyEnter(r?"start":"end")}}),i.viewport&&(0,y.jsx)("span",{"aria-owns":m})]})]})});$.displayName=Z;var Q="navigationMenu.linkSelect",J=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return(0,y.jsx)(ep,{asChild:!0,children:(0,y.jsx)(s.sG.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:(0,l.m)(e.onClick,e=>{let t=e.target,n=new CustomEvent(Q,{bubbles:!0,cancelable:!0});if(t.addEventListener(Q,e=>null==o?void 0:o(e),{once:!0}),(0,s.hO)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(ei,{bubbles:!0,cancelable:!0});(0,s.hO)(t,e)}},{checkForDefaultPrevented:!1})})})});J.displayName="NavigationMenuLink";var ee="NavigationMenuIndicator",et=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=F(ee,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?a.createPortal((0,y.jsx)(p,{present:n||i,children:(0,y.jsx)(en,{...r,ref:t})}),o.indicatorTrack):null});et.displayName=ee;var en=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,a=F(ee,n),i=T(n),[l,u]=o.useState(null),[d,c]=o.useState(null),f="horizontal"===a.orientation,p=!!a.value;o.useEffect(()=>{var e;let t=null==(e=i().find(e=>e.value===a.value))?void 0:e.ref.current;t&&u(t)},[i,a.value]);let m=()=>{l&&c({size:f?l.offsetWidth:l.offsetHeight,offset:f?l.offsetLeft:l.offsetTop})};return ev(l,m),ev(a.indicatorTrack,m),d?(0,y.jsx)(s.sG.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":a.orientation,...r,ref:t,style:{position:"absolute",...f?{left:0,width:d.size+"px",transform:"translateX(".concat(d.offset,"px)")}:{top:0,height:d.size+"px",transform:"translateY(".concat(d.offset,"px)")},...r.style}}):null}),er="NavigationMenuContent",eo=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=F(er,e.__scopeNavigationMenu),a=V(er,e.__scopeNavigationMenu),i=(0,d.s)(a.contentRef,t),s=a.value===o.value,u={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?(0,y.jsx)(ea,{forceMount:n,...u,ref:i}):(0,y.jsx)(p,{present:n||s,children:(0,y.jsx)(el,{"data-state":eg(s),...u,ref:i,onPointerEnter:(0,l.m)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,l.m)(e.onPointerLeave,eb(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...u.style}})})});eo.displayName=er;var ea=o.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=F(er,e.__scopeNavigationMenu);return(0,f.N)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,f.N)(()=>()=>r(e.value),[e.value,r]),null}),ei="navigationMenu.rootContentDismiss",el=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:a,focusProxyRef:i,wasEscapeCloseRef:s,onRootContentClose:u,onContentFocusOutside:c,...f}=e,p=F(er,n),m=o.useRef(null),h=(0,d.s)(m,t),v=ew(p.baseId,r),g=ey(p.baseId,r),w=T(n),b=o.useRef(null),{onItemDismiss:x}=p;o.useEffect(()=>{let e=m.current;if(p.isRootMenu&&e){let t=()=>{var t;x(),u(),e.contains(document.activeElement)&&(null==(t=a.current)||t.focus())};return e.addEventListener(ei,t),()=>e.removeEventListener(ei,t)}},[p.isRootMenu,e.value,a,x,u]);let C=o.useMemo(()=>{let e=w().map(e=>e.value);"rtl"===p.dir&&e.reverse();let t=e.indexOf(p.value),n=e.indexOf(p.previousValue),o=r===p.value,a=n===e.indexOf(r);if(!o&&!a)return b.current;let i=(()=>{if(t!==n){if(o&&-1!==n)return t>n?"from-end":"from-start";if(a&&-1!==t)return t>n?"to-start":"to-end"}return null})();return b.current=i,i},[p.previousValue,p.value,p.dir,w,r]);return(0,y.jsx)(ec,{asChild:!0,children:(0,y.jsx)(E,{id:g,"aria-labelledby":v,"data-motion":C,"data-orientation":p.orientation,...f,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(ei,{bubbles:!0,cancelable:!0});null==(e=m.current)||e.dispatchEvent(t)},onFocusOutside:(0,l.m)(e.onFocusOutside,e=>{var t;c();let n=e.target;(null==(t=p.rootNavigationMenu)?void 0:t.contains(n))&&e.preventDefault()}),onPointerDownOutside:(0,l.m)(e.onPointerDownOutside,e=>{var t;let n=e.target,r=w().some(e=>{var t;return null==(t=e.ref.current)?void 0:t.contains(n)}),o=p.isRootMenu&&(null==(t=p.viewport)?void 0:t.contains(n));(r||o||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,l.m)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=em(e.currentTarget),r=document.activeElement,o=t.findIndex(e=>e===r);if(eh(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length)))e.preventDefault();else{var n;null==(n=i.current)||n.focus()}}}),onEscapeKeyDown:(0,l.m)(e.onEscapeKeyDown,e=>{s.current=!0})})})}),es="NavigationMenuViewport",eu=o.forwardRef((e,t)=>
1{let{forceMount:n,...r}=e,o=!!F(es,e.__scopeNavigationMenu).value;return(0,y.jsx)(p,{present:n||o,children:(0,y.jsx)(ed,{...r,ref:t})})});eu.displayName=es;var ed=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:r,...a}=e,i=F(es,n),u=(0,d.s)(t,i.onViewportChange),c=U(er,e.__scopeNavigationMenu),[f,m]=o.useState(null),[h,v]=o.useState(null),g=f?(null==f?void 0:f.width)+"px":void 0,w=f?(null==f?void 0:f.height)+"px":void 0,b=!!i.value,x=b?i.value:i.previousValue;return ev(h,()=>{h&&m({width:h.offsetWidth,height:h.offsetHeight})}),(0,y.jsx)(s.sG.div,{"data-state":eg(b),"data-orientation":i.orientation,...a,ref:u,style:{pointerEvents:!b&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":w,...a.style},onPointerEnter:(0,l.m)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,l.m)(e.onPointerLeave,eb(i.onContentLeave)),children:Array.from(c.items).map(e=>{let[t,{ref:n,forceMount:r,...o}]=e,a=x===t;return(0,y.jsx)(p,{present:r||a,children:(0,y.jsx)(el,{...o,ref:(0,d.t)(n,e=>{a&&e&&v(e)})})},t)})})}),ec=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=F("FocusGroup",n);return(0,y.jsx)(j.Provider,{scope:n,children:(0,y.jsx)(j.Slot,{scope:n,children:(0,y.jsx)(s.sG.div,{dir:o.dir,...r,ref:t})})})}),ef=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ep=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=A(n),a=F("FocusGroupItem",n);return(0,y.jsx)(j.ItemSlot,{scope:n,children:(0,y.jsx)(s.sG.button,{...r,ref:t,onKeyDown:(0,l.m)(e.onKeyDown,e=>{if(["Home","End",...ef].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===a.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),ef.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>eh(t)),e.preventDefault()}})})})});function em(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eh(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ev(e,t){let n=(0,g.c)(t);(0,f.N)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function eg(e){return e?"open":"closed"}function ew(e,t){return"".concat(e,"-trigger-").concat(t)}function ey(e,t){return"".concat(e,"-content-").concat(t)}function eb(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ex=B,eE=z,eC=X,eM=$,eS=J,ek=et,eD=eo,eN=eu},23558:(e,t,n)=>{n.d(t,{i:()=>l});var r,o=n(12115),a=n(4129),i=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||a.N;function l({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[a,l,s]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),a=o.useRef(n),l=o.useRef(t);return i(()=>{l.current=t},[t]),o.useEffect(()=>{a.current!==n&&(l.current?.(n),a.current=n)},[n,a]),[n,r,l]}({defaultProp:t,onChange:n}),u=void 0!==e,d=u?e:a;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}t.current=u},[u,r])}return[d,o.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else l(t)},[u,e,l,s])]}Symbol("RADIX:SYNC_STATE")},24033:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},26211:(e,t,n)=>{n.d(t,{h:()=>e1});var r,o={};n.r(o),n.d(o,{Button:()=>q,CaptionLabel:()=>V,Chevron:()=>X,Day:()=>Z,DayButton:()=>$,Dropdown:()=>Q,DropdownNav:()=>J,Footer:()=>ee,Month:()=>et,MonthCaption:()=>en,MonthGrid:()=>er,Months:()=>eo,MonthsDropdown:()=>el,Nav:()=>es,NextMonthButton:()=>eu,Option:()=>ed,PreviousMonthButton:()=>ec,Root:()=>ef,Select:()=>ep,Week:()=>em,WeekNumber:()=>eg,WeekNumberHeader:()=>ew,Weekday:()=>eh,Weekdays:()=>ev,Weeks:()=>ey,YearsDropdown:()=>eb});var a={};n.r(a),n.d(a,{formatCaption:()=>eE,formatDay:()=>eM,formatMonthCaption:()=>eC,formatMonthDropdown:()=>eS,formatWeekNumber:()=>eD,formatWeekNumberHeader:()=>eN,formatWeekdayName:()=>
1ek,formatYearCaption:()=>eT,formatYearDropdown:()=>eR});var i={};n.r(i),n.d(i,{labelCaption:()=>eO,labelDay:()=>ej,labelDayButton:()=>eP,labelGrid:()=>eA,labelGridcell:()=>eI,labelMonthDropdown:()=>eL,labelNav:()=>e_,labelNext:()=>eF,labelPrevious:()=>eW,labelWeekNumber:()=>eB,labelWeekNumberHeader:()=>eH,labelWeekday:()=>eU,labelYearDropdown:()=>eG}),Symbol.for("constructDateFrom");let l={},s={};function u(e,t){try{let n=(l[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];if(n in s)return s[n];return c(n,n.split(":"))}catch{if(e in s)return s[e];let t=e?.match(d);if(t)return c(e,t.slice(1));return NaN}}let d=/([+-]\d\d):?(\d\d)?/;function c(e,t){let n=+(t[0]||0),r=+(t[1]||0),o=(t[2]||0)/60;return s[e]=60*n+r>0?60*n+r+o:60*n-r-o}class f extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(u(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),h(this,NaN),m(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new f(...t,e):new f(Date.now(),e)}withTimeZone(e){return new f(+this,e)}getTimezoneOffset(){let e=-u(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),m(this),+this}[Symbol.for("constructDateFrom")](e){return new f(+new Date(e),this.timeZone)}}let p=/^(get|set)(?!UTC)/;function m(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-(60*u(e.timeZone,e))))}function h(e){let t=u(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),a=o- -new Date(+r).getTimezoneOffset(),i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);let l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);let s=new Date(+e);s.setUTCSeconds(0);let d=o>0?s.getSeconds():(s.getSeconds()-60)%60,c=Math.round(-(60*u(e.timeZone,e)))%60;(c||d)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+c),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+c+d));let f=u(e.timeZone,e),p=f>0?Math.floor(f):Math.ceil(f),m=-new Date(+e).getTimezoneOffset()-p-l;if(p!==n&&m){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+m);let t=u(e.timeZone,e),n=p-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!p.test(e))return;let t=e.replace(p,"$1UTC");f.prototype[t]&&(e.startsWith("get")?f.prototype[e]=function(){return this.internal[t]()}:(f.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,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()),h(e),+this},f.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),m(this),+this}))});class v extends f{static tz(e,...t){return t.length?new v(...t,e):new v(Date.now(),e)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(" ")[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${function(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}
1toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset(),t=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),n=String(Math.abs(e)%60).padStart(2,"0");return[e>0?"-":"+",t,n]}withTimeZone(e){return new v(+this,e)}[Symbol.for("constructDateFrom")](e){return new v(+new Date(e),this.timeZone)}}var g=n(12115),w=n(26217),y=n(4168),b=n(92118);function x(e,t,n){let r=(0,b.a)(e,null==n?void 0:n.in);return isNaN(t)?(0,y.w)((null==n?void 0:n.in)||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function E(e,t,n){let r=(0,b.a)(e,null==n?void 0:n.in);if(isNaN(t))return(0,y.w)((null==n?void 0:n.in)||e,NaN);if(!t)return r;let o=r.getDate(),a=(0,y.w)((null==n?void 0:n.in)||e,r.getTime());return(a.setMonth(r.getMonth()+t+1,0),o>=a.getDate())?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}var C=n(2146),M=n(45240),S=n(39781);function k(e,t){var n,r,o,a,i,l,s,u;let d=(0,S.q)(),c=null!=(u=null!=(s=null!=(l=null!=(i=null==t?void 0:t.weekStartsOn)?i:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.weekStartsOn)?l:d.weekStartsOn)?s:null==(a=d.locale)||null==(o=a.options)?void 0:o.weekStartsOn)?u:0,f=(0,b.a)(e,null==t?void 0:t.in),p=f.getDay();return f.setDate(f.getDate()+((p<c?-7:0)+6-(p-c))),f.setHours(23,59,59,999),f}var D=n(71163),N=n(76716),R=n(62898),T=n(80011),P=n(93366),j=n(3177),A=n(82192),O=n(53317);function I(e,t){let n=t.startOfMonth(e),r=n.getDay();return 1===r?n:0===r?t.addDays(n,-6):t.addDays(n,-1*(r-1))}class L{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?v.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new v(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):x(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):E(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):x(e,7*t,void 0),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):E(e,12*t,void 0),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):(0,C.m)(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):function(e,t,n){let[r,o]=(0,M.x)(void 0,e,t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):function(e,t){var n;let{start:r,end:o}=function(e,t){let[n,r]=(0,M.x)(e,t.start,t.end);return{start:n,end:r}}(void 0,e),a=+r>+o,i=a?+r:+o,l=a?o:r;l.setHours(0,0,0,0),l.setDate(1);
1let s=(n=void 0,1);if(!s)return[];s<0&&(s=-s,a=!a);let u=[];for(;+l<=i;)u.push((0,y.w)(r,l)),l.setMonth(l.getMonth()+s);return a?u.reverse():u}(e),this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):function(e,t){let n=I(e,t),r=function(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,34);return t.getMonth(e)===t.getMonth(a)?5:4}(e,t);return t.addDays(n,7*r-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):k(e,{...void 0,weekStartsOn:1}),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):function(e,t){let n=(0,b.a)(e,void 0),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):k(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){let n=(0,b.a)(e,void 0),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):(0,D.GP)(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):(0,N.s)(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):function(e,t){return(0,b.a)(e,null==t?void 0:t.in).getMonth()}(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):function(e,t){return(0,b.a)(e,null==t?void 0:t.in).getFullYear()}(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):(0,R.N)(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):+(0,b.a)(e)>+(0,b.a)(t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):+(0,b.a)(e)<+(0,b.a)(t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):(0,T.$)(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t,n){let[r,o]=(0,M.x)(void 0,e,t);return+(0,P.o)(r)==+(0,P.o)(o)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t,n){let[r,o]=(0,M.x)(void 0,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t,n){let[r,o]=(0,M.x)(void 0,e,t);return r.getFullYear()===o.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let n,r;return e.forEach(e=>{r||"object"!=typeof e||(r=y.w.bind(null,e));let t=(0,b.a)(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),(0,y.w)(r,n||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let n,r;return e.forEach(e=>{r||"object"!=typeof e||(r=y.w.bind(null,e));let t=(0,b.a)(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),(0,y.w)(r,n||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):function(e,t,n){let r=(0,b.a)(e,void 0),o=r.getFullYear(),a=r.getDate(),i=(0,y.w)(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);let l=function(e,t){let n=(0,b.a)(e,void 0),r=n.getFullYear(),o=n.getMonth(),a=(0,y.w)(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}(i);return r.setMonth(t,Math.min(a,l)),r}(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,n){let r=(0,b.a)(e,void 0);return isNaN(+r)?(0,y.w)(e,NaN):(r.setFullYear(t),r)}(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):I(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):(0,P.o)(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):(0,j.b)(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):function(e,t){let n=(0,b.a)(e,void 0);return n.setDate(1),n.setHours(0,0,0,0),n}(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):(0,A.k)(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):(0,O.D)(e),this.options={locale:w.c,...e},this.overrides=t}getDigitMap(){let{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}}let _=new L;var F=n(82247);function W(e,t,n=!1,r=_){let{from:o,to:a}=e,{differenceInCalendarDays:i,isSameDay:l}=r;return o&&a?(0>i(a,o)&&([o,a]=[a,o]),i(t,o)>=+!!n&&i(a,t)>=+!!n):!n&&a?l(a,t):!n&&!!o&&l(o,t)}function U(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}function B(e){return!!(e&&"object"==typeof e&&"from"in e)}function H(e){return!!(e&&"object"==typeof e&&"after"in e)}function G(e){return!!(e&&"object"==typeof e&&"before"in e)}function Y(e){return!!(e&&"object"==typeof e&&"dayOfWeek"in e)}function z(e,t){return Array.isArray(e)&&e.every(t.isDate)}function K(e,t,n=_){let r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:i}=n;return r.some(t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return o(e,t);if(z(t,n))return t.includes(e);if(B(t))return W(t,e,!1,n);if(Y(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(U(t)){let n=a(t.before,e),r=a(t.after,e),o=n>0,l=r<0;return i(t.before,t.after)?l&&o:o||l}return H(t)?a(e,t.after)>0:G(t)?a(t.before,e)>0:"function"==typeof t&&t(e)})}function q(e){return g.createElement("button",{...e})}function V(e){return g.createElement("span",{...e})}function X(e){let{size:t=24,orientation:n="left",className:r}=e;return g.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},"up"===n&&g.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&g.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&g.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&g.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Z(e){let{day:t,modifiers:n,...r}=e;return g.createElement("td",{...r})}function $(e){let{day:t,modifiers:n,...r}=e,o=g.useRef(null);return g.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),g.createElement("button",{ref:o,...r})}function Q(e){let{options:t,className:n,components:r,classNames:o,...a}=e,i=[o[F.UI.Dropdown],n].join(" "),l=t?.find(({value:e})=>e===a.value);return g.createElement("span",{"data-disabled":a.disabled,className:o[F.UI.DropdownRoot]},g.createElement(r.Select,{className:i,...a},t?.map(({value:e,label:t,disabled:n})=>g.createElement(r.Option,{key:e,value:e,disabled:n},t))),g.createElement("span",{className:o[F.UI.CaptionLabel],"aria-hidden":!0},l?.label,g.createElement(r.Chevron,{orientation:"down",size:18,className:o[F.UI.Chevron]}
1)))}function J(e){return g.createElement("div",{...e})}function ee(e){return g.createElement("div",{...e})}function et(e){let{calendarMonth:t,displayIndex:n,...r}=e;return g.createElement("div",{...r},e.children)}function en(e){let{calendarMonth:t,displayIndex:n,...r}=e;return g.createElement("div",{...r})}function er(e){return g.createElement("table",{...e})}function eo(e){return g.createElement("div",{...e})}let ea=(0,g.createContext)(void 0);function ei(){let e=(0,g.useContext)(ea);if(void 0===e)throw Error("useDayPicker() must be used within a custom component.");return e}function el(e){let{components:t}=ei();return g.createElement(t.Dropdown,{...e})}function es(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:i,classNames:l,labels:{labelPrevious:s,labelNext:u}}=ei(),d=(0,g.useCallback)(e=>{o&&n?.(e)},[o,n]),c=(0,g.useCallback)(e=>{r&&t?.(e)},[r,t]);return g.createElement("nav",{...a},g.createElement(i.PreviousMonthButton,{type:"button",className:l[F.UI.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":s(r),onClick:c},g.createElement(i.Chevron,{disabled:!r||void 0,className:l[F.UI.Chevron],orientation:"left"})),g.createElement(i.NextMonthButton,{type:"button",className:l[F.UI.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":!o||void 0,"aria-label":u(o),onClick:d},g.createElement(i.Chevron,{disabled:!o||void 0,orientation:"right",className:l[F.UI.Chevron]})))}function eu(e){let{components:t}=ei();return g.createElement(t.Button,{...e})}function ed(e){return g.createElement("option",{...e})}function ec(e){let{components:t}=ei();return g.createElement(t.Button,{...e})}function ef(e){let{rootRef:t,...n}=e;return g.createElement("div",{...n,ref:t})}function ep(e){return g.createElement("select",{...e})}function em(e){let{week:t,...n}=e;return g.createElement("tr",{...n})}function eh(e){return g.createElement("th",{...e})}function ev(e){return g.createElement("thead",{"aria-hidden":!0},g.createElement("tr",{...e}))}function eg(e){let{week:t,...n}=e;return g.createElement("th",{...n})}function ew(e){return g.createElement("th",{...e})}function ey(e){return g.createElement("tbody",{...e})}function eb(e){let{components:t}=ei();return g.createElement(t.Dropdown,{...e})}var ex=n(74854);function eE(e,t,n){return(n??new L(t)).format(e,"LLLL y")}let eC=eE;function eM(e,t,n){return(n??new L(t)).format(e,"d")}function eS(e,t=_){return t.format(e,"LLLL")}function ek(e,t,n){return(n??new L(t)).format(e,"cccccc")}function eD(e,t=_){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function eN(){return""}function eR(e,t=_){return t.format(e,"yyyy")}let eT=eR;function eP(e,t,n,r){let o=(r??new L(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}let ej=eP;function eA(e,t,n){return(n??new L(t)).format(e,"LLLL y")}let eO=eA;function eI(e,t,n,r){let o=(r??new L(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function eL(e){return"Choose the Month"}function e_(){return""}function eF(e){return"Go to the Next Month"}function eW(e){return"Go to the Previous Month"}function eU(e,t,n){return(n??new L(t)).format(e,"cccc")}function eB(e,t){return`Week ${e}`}function eH(e){return"Week Number"}function eG(e){return"Choose the Year"}let eY=e=>e instanceof HTMLElement?e:null,ez=e=>[...e.querySelectorAll("[data-animated-month]")??[]],eK=e=>eY(e.querySelector("[data-animated-caption]")),eq=e=>eY(e.querySelector("[data-animated-weeks]"));function eV(e,t,n,r){let{month:o,defaultMonth:a,today:i=r.today(),numberOfMonths:l=1}=e,s=o||a||i,{differenceInCalendarMonths:u,addMonths:d,startOfMonth:c}=r;return n&&u(n,s)<l-1&&(s=d(n,-1*(l-1))),t&&0>u(s,t)&&(s=t),c(s)}class eX{constructor(e,t,n=_){this.date=e,this.displayMonth=t,this.outside=!!(t&&!n.isSameMonth(e,t)),this.dateLib=n}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class eZ{constructor(e,t){this.days=t,this.weekNumber=e}}class e${constructor(e,t){this.date=e,this.weeks=t}}function eQ(e,t){let[n,r]=(0,g.useState)(e);return[void 0===t?n:t,r]}function eJ(e){return!e[F.pL.disabled]&&!e[F.pL.hidden]&&!e[F.pL.outside]}function e0(e,t,n=_){return W(e,t.from,!1,n)||W(e,t.to,!1,n)||W(t,e.from,!1,n)||W(t,e.to,!1,n)}function e1(e){let t=e;t.timeZone&&((t={...e}).today&&(t.today=new v(t.today,t.timeZone)),t.month&&(t.month=new v(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new v(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new v(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new v(t.endMonth,t.timeZone)),"single"===t.mode&&t.selected?t.selected=new v(t.selected,t.timeZone):"multiple"===t.mode&&t.selected?t.selected=t.selected?.map(e=>new v(e,t.timeZone)):"range"===t.mode&&t.selected&&(t.selected={from:t.selected.from?new v(t.selected.from,t.timeZone):void 0,to:t.selected.to?new v(t.selected.to,t.timeZone):void 0}));let{components:n,formatters:l,labels:s,dateLib:u,locale:d,classNames:c}=(0,g.useMemo)(()=>{var e,n;let r={...w.c,...t.locale};return{dateLib:new L({locale:r,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:(e=t.components,{...o,...e}),formatters:(n=t.formatters,n?.formatMonthCaption&&!n.formatCaption&&(n.formatCaption=n.formatMonthCaption),n?.formatYearC
1aption&&!n.formatYearDropdown&&(n.formatYearDropdown=n.formatYearCaption),{...a,...n}),labels:{...i,...t.labels},locale:r,classNames:{...(0,ex.a)(),...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:f,mode:p,navLayout:m,numberOfMonths:h=1,onDayBlur:y,onDayClick:b,onDayFocus:x,onDayKeyDown:E,onDayMouseEnter:C,onDayMouseLeave:M,onNextClick:S,onPrevClick:k,showWeekNumber:D,styles:N}=t,{formatCaption:R,formatDay:T,formatMonthDropdown:P,formatWeekNumber:j,formatWeekNumberHeader:A,formatWeekdayName:O,formatYearDropdown:I}=l,q=function(e,t){let[n,r]=function(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:o,startOfDay:a,startOfMonth:i,endOfMonth:l,addYears:s,endOfYear:u,newDate:d,today:c}=t,{fromYear:f,toYear:p,fromMonth:m,toMonth:h}=e;!n&&m&&(n=m),!n&&f&&(n=t.newDate(f,0,1)),!r&&h&&(r=h),!r&&p&&(r=d(p,11,31));let v="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return n?n=i(n):f?n=d(f,0,1):!n&&v&&(n=o(s(e.today??c(),-100))),r?r=l(r):p?r=d(p,11,31):!r&&v&&(r=u(e.today??c())),[n?a(n):n,r?a(r):r]}(e,t),{startOfMonth:o,endOfMonth:a}=t,i=eV(e,n,r,t),[l,s]=eQ(i,e.month?i:void 0);(0,g.useEffect)(()=>{s(eV(e,n,r,t))},[e.timeZone]);let u=function(e,t,n,r){let{numberOfMonths:o=1}=n,a=[];for(let n=0;n<o;n++){let o=r.addMonths(e,n);if(t&&o>t)break;a.push(o)}return a}(l,r,e,t),d=function(e,t,n,r){let o=e[0],a=e[e.length-1],{ISOWeek:i,fixedWeeks:l,broadcastCalendar:s}=n??{},{addDays:u,differenceInCalendarDays:d,differenceInCalendarMonths:c,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:v,startOfBroadcastWeek:g,startOfISOWeek:w,startOfWeek:y}=r,b=s?g(o,r):i?w(o):y(o),x=d(s?f(a):i?p(m(a)):h(m(a)),b),E=c(a,o)+1,C=[];for(let e=0;e<=x;e++){let n=u(b,e);if(t&&v(n,t))break;C.push(n)}let M=(s?35:42)*E;if(l&&C.length<M){let e=M-C.length;for(let t=0;t<e;t++){let e=u(C[C.length-1],1);C.push(e)}}return C}(u,e.endMonth?a(e.endMonth):void 0,e,t),c=function(e,t,n,r){let{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:i,endOfMonth:l,endOfWeek:s,getISOWeek:u,getWeek:d,startOfBroadcastWeek:c,startOfISOWeek:f,startOfWeek:p}=r,m=e.reduce((e,m)=>{let h=n.broadcastCalendar?c(m,r):n.ISOWeek?f(m):p(m),v=n.broadcastCalendar?a(m):n.ISOWeek?i(l(m)):s(l(m)),g=t.filter(e=>e>=h&&e<=v),w=n.broadcastCalendar?35:42;if(n.fixedWeeks&&g.length<w){let e=t.filter(e=>{let t=w-g.length;return e>v&&e<=o(v,t)});g.push(...e)}let y=g.reduce((e,t)=>{let o=n.ISOWeek?u(t):d(t),a=e.find(e=>e.weekNumber===o),i=new eX(t,m,r);return a?a.days.push(i):e.push(new eZ(o,[i])),e},[]),b=new e$(m,y);return e.push(b),e},[]);return n.reverseMonths?m.reverse():m}(u,d,e,t),f=c.reduce((e,t)=>e.concat(t.weeks.slice()),[]),p=function(e){let t=[];return e.reduce((e,n)=>{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}(c),m=function(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:i,addMonths:l,differenceInCalendarMonths:s}=r,u=i(e);if(!t||!(0>=s(u,t)))return l(u,-(o?a??1:1))}(l,n,e,t),h=function(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:i,addMonths:l,differenceInCalendarMonths:s}=r,u=i(e);if(!t||!(s(t,e)<a))return l(u,o?a:1)}(l,r,e,t),{disableNavigation:v,onMonthChange:w}=e,y=e=>{if(v)return;let t=o(e);n&&t<o(n)&&(t=o(n)),r&&t>o(r)&&(t=o(r)),s(t),w?.(t)};return{months:c,weeks:f,days:p,navStart:n,navEnd:r,previousMonth:m,nextMonth:h,goToMonth:y,goToDay:e=>{f.some(t=>t.days.some(t=>t.isEqualTo(e)))||y(e.date)}}}(t,u),{days:V,months:X,navStart:Z,navEnd:$,previousMonth:Q,nextMonth:J,goToMonth:ee}=q,et=function(e,t,n,r,o){let{disabled:a,hidden:i,modifiers:l,showOutsideDays:s,broadcastCalendar:u,today:d}=t,{isSameDay:c,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:v}=o,g=n&&p(n),w=r&&h(r),y={[F.pL.focused]:[],[F.pL.outside]:[],[F.pL.disabled]:[],[F.pL.hidden]:[],[F.pL.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!!(n&&!f(e,n)),p=!!(g&&m(e,g)),h=!!(w&&v(e,w)),x=!!(a&&K(e,a,o)),E=!!(i&&K(e,i,o))||p||h||!u&&!s&&r||u&&!1===s&&r,C=c(e,d??o.today());
1r&&y.outside.push(t),x&&y.disabled.push(t),E&&y.hidden.push(t),C&&y.today.push(t),l&&Object.keys(l).forEach(n=>{let r=l?.[n];r&&K(e,r,o)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[F.pL.focused]:!1,[F.pL.disabled]:!1,[F.pL.hidden]:!1,[F.pL.outside]:!1,[F.pL.today]:!1},n={};for(let n in y){let r=y[n];t[n]=r.some(t=>t===e)}for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}(V,t,Z,$,u),{isSelected:en,select:er,selected:eo}=function(e,t){let n=function(e,t){let{selected:n,required:r,onSelect:o}=e,[a,i]=eQ(n,o?n:void 0),l=o?n:a,{isSameDay:s}=t;return{selected:l,select:(e,t,n)=>{let a=e;return!r&&l&&l&&s(e,l)&&(a=void 0),o||i(a),o?.(a,e,t,n),a},isSelected:e=>!!l&&s(l,e)}}(e,t),r=function(e,t){let{selected:n,required:r,onSelect:o}=e,[a,i]=eQ(n,o?n:void 0),l=o?n:a,{isSameDay:s}=t,u=e=>l?.some(t=>s(t,e))??!1,{min:d,max:c}=e;return{selected:l,select:(e,t,n)=>{let a=[...l??[]];if(u(e)){if(l?.length===d||r&&l?.length===1)return;a=l?.filter(t=>!s(t,e))}else a=l?.length===c?[e]:[...a,e];return o||i(a),o?.(a,e,t,n),a},isSelected:u}}(e,t),o=function(e,t){let{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:i}=e,[l,s]=eQ(o,i?o:void 0),u=i?o:l;return{selected:u,select:(o,l,d)=>{let{min:c,max:f}=e,p=o?function(e,t,n=0,r=0,o=!1,a=_){let i,{from:l,to:s}=t||{},{isSameDay:u,isAfter:d,isBefore:c}=a;if(l||s){if(l&&!s)i=u(l,e)?0===n?{from:l,to:e}:o?{from:l,to:void 0}:void 0:c(e,l)?{from:e,to:l}:{from:l,to:e};else if(l&&s)if(u(l,e)&&u(s,e))i=o?{from:l,to:s}:void 0;else if(u(l,e))i={from:l,to:n>0?void 0:e};else if(u(s,e))i={from:e,to:n>0?void 0:e};else if(c(e,l))i={from:e,to:s};else if(d(e,l))i={from:l,to:e};else if(d(e,s))i={from:l,to:e};else throw Error("Invalid range")}else i={from:e,to:n>0?void 0:e};if(i?.from&&i?.to){let t=a.differenceInCalendarDays(i.to,i.from);r>0&&t>r?i={from:e,to:void 0}:n>1&&t<n&&(i={from:e,to:void 0})}return i}(o,u,c,f,a,t):void 0;return r&&n&&p?.from&&p.to&&function(e,t,n=_){let r=Array.isArray(t)?t:[t];if(r.filter(e=>"function"!=typeof e).some(t=>"boolean"==typeof t?t:n.isDate(t)?W(e,t,!1,n):z(t,n)?t.some(t=>W(e,t,!1,n)):B(t)?!!t.from&&!!t.to&&e0(e,{from:t.from,to:t.to},n):Y(t)?function(e,t,n=_){let r=Array.isArray(t)?t:[t],o=e.from,a=Math.min(n.differenceInCalendarDays(e.to,e.from),6);for(let e=0;e<=a;e++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}(e,t.dayOfWeek,n):U(t)?n.isAfter(t.before,t.after)?e0(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):K(e.from,t,n)||K(e.to,t,n):!!(H(t)||G(t))&&(K(e.from,t,n)||K(e.to,t,n))))return!0;let o=r.filter(e=>"function"==typeof e);if(o.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(o.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}({from:p.from,to:p.to},n,t)&&(p.from=o,p.to=void 0),i||s(p),i?.(p,o,l,d),p},isSelected:e=>u&&W(u,e,!1,t)}}(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}(t,u)??{},{blur:ei,focused:el,isFocusTarget:es,moveFocus:eu,setFocused:ed}=function(e,t,n,o,a){let{autoFocus:i}=e,[l,s]=(0,g.useState)(),u=function(e,t,n,o){let a,i=-1;for(let l of e){let e=t(l);eJ(e)&&(e[F.pL.focused]&&i<r.FocusedModifier?(a=l,i=r.FocusedModifier):o?.isEqualTo(l)&&i<r.LastFocused?(a=l,i=r.LastFocused):n(l.date)&&i<r.Selected?(a=l,i=r.Selected):e[F.pL.today]&&i<r.Today&&(a=l,i=r.Today))}return a||(a=e.find(e=>eJ(t(e)))),a}(t.days,n,o||(()=>!1),l),[d,c]=(0,g.useState)(i?u:void 0);return{isFocusTarget:e=>!!u?.isEqualTo(e),setFocused:c,focused:d,blur:()=>{s(d),c(void 0)},moveFocus:(n,r)=>{if(!d)return;let o=function e(t,n,r,o,a,i,l,s=0){if(s>365)return;let u=function(e,t,n,r,o,a,i){let{ISOWeek:l,broadcastCalendar:s}=a,{addDays:u,addMonths:d,addWeeks:c,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:v,min:g,startOfBroadcastWeek:w,startOfISOWeek:y,startOfWeek:b}=i,x=({day:u,week:c,month:d,year:f,startOfWeek:e=>s?w(e,i):l?y(e):b(e),endOfWeek:e=>s?p(e):l?m(e):h(e)})[e](n,"after"===t?1:-1);return"before"===t&&r?x=v([r,x]):"after"===t&&o&&(x=g([o,x])),x}(t,n,r.date,o,a,i,l),d=!!(i.disabled&&K(u,i.disabled,l)),c=!!(i.hidden&&K(u,i.hidden,l)),f=new eX(u,u,l);return d||c?e(t,n,f,o,a,i,l,s+1):f}(n,r,d,t.navStart,t.navEnd,e,a);o&&(t.goToDay(o),c(o))}}}(t,q,et,en??(()=>!1),u),{labelDayButton:ec,labelGridcell:ef,labelGrid:ep,labelMonthDropdown:em,labelNav:eh,labelPrevious:ev,labelNext:eg,labelWeekday:ew,labelWeekNumber:ey,labelWeekNumberHeader:eb,labelYearDropdown:eE}=s,eC=(0,g.useMemo)(()=>(function(e,t,n){let r=e.today(),o=t?e.startOfISOWeek(r):e.startOfWeek(r),a=[];for(let t=0;t<7;t++){let n=e.addDays(o,t);a.push(n)}return a})(u,t.ISOWeek),[u,t.ISOWeek]),eM=void 0!==p||void 0!==b,eS=(0,g.useCallback)(()=>{Q&&(ee(Q),k?.(Q))},[Q,ee,k]),ek=(0,g.useCallback)(()=>{J&&(ee(J),S?.(J))},[ee,J,S]),eD=(0,g.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),ed(e),er?.(e.date,t,n),b?.(e.date,t,n)},[er,b,ed]),eN=(0,g.useCallback)((e,t)=>n=>{ed(e),x?.(e.date,t,n)}
1,[x,ed]),eR=(0,g.useCallback)((e,t)=>n=>{ei(),y?.(e.date,t,n)},[ei,y]),eT=(0,g.useCallback)((e,n)=>r=>{let o={ArrowLeft:[r.shiftKey?"month":"day","rtl"===t.dir?"after":"before"],ArrowRight:[r.shiftKey?"month":"day","rtl"===t.dir?"before":"after"],ArrowDown:[r.shiftKey?"year":"week","after"],ArrowUp:[r.shiftKey?"year":"week","before"],PageUp:[r.shiftKey?"year":"month","before"],PageDown:[r.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(o[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=o[r.key];eu(e,t)}E?.(e.date,n,r)},[eu,E,t.dir]),eP=(0,g.useCallback)((e,t)=>n=>{C?.(e.date,t,n)},[C]),ej=(0,g.useCallback)((e,t)=>n=>{M?.(e.date,t,n)},[M]),eA=(0,g.useCallback)(e=>t=>{let n=Number(t.target.value);ee(u.setMonth(u.startOfMonth(e),n))},[u,ee]),eO=(0,g.useCallback)(e=>t=>{let n=Number(t.target.value);ee(u.setYear(u.startOfMonth(e),n))},[u,ee]),{className:eI,style:eL}=(0,g.useMemo)(()=>({className:[c[F.UI.Root],t.className].filter(Boolean).join(" "),style:{...N?.[F.UI.Root],...t.style}}),[c,t.className,t.style,N]),e_=function(e){let 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(([e,n])=>{e.startsWith("data-")&&(t[e]=n)}),t}(t),eF=(0,g.useRef)(null);!function(e,t,{classNames:n,months:r,focused:o,dateLib:a}){let i=(0,g.useRef)(null),l=(0,g.useRef)(r),s=(0,g.useRef)(!1);(0,g.useLayoutEffect)(()=>{let u=l.current;if(l.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||0===r.length||0===u.length||r.length!==u.length)return;let d=a.isSameMonth(r[0].date,u[0].date),c=a.isAfter(r[0].date,u[0].date),f=c?n[F.X5.caption_after_enter]:n[F.X5.caption_before_enter],p=c?n[F.X5.weeks_after_enter]:n[F.X5.weeks_before_enter],m=i.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(ez(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=eY(e.querySelector("[data-animated-month]"));t&&e.contains(t)&&e.removeChild(t);let n=eK(e);n&&n.classList.remove(f);let r=eq(e);r&&r.classList.remove(p)}),i.current=h):i.current=null,s.current||d||o)return;let v=m instanceof HTMLElement?ez(m):[],g=ez(e.current);if(g?.every(e=>e instanceof HTMLElement)&&v&&v.every(e=>e instanceof HTMLElement)){s.current=!0;let t=[];e.current.style.isolation="isolate";let r=eY(e.current.querySelector("[data-animated-nav]"));r&&(r.style.zIndex="1"),g.forEach((o,a)=>{let i=v[a];if(!i)return;o.style.position="relative",o.style.overflow="hidden";let l=eK(o);l&&l.classList.add(f);let u=eq(o);u&&u.classList.add(p);let d=()=>{s.current=!1,e.current&&(e.current.style.isolation=""),r&&(r.style.zIndex=""),l&&l.classList.remove(f),u&&u.classList.remove(p),o.style.position="",o.style.overflow="",o.contains(i)&&o.removeChild(i)};t.push(d),i.style.pointerEvents="none",i.style.position="absolute",i.style.overflow="hidden",i.setAttribute("aria-hidden","true");let m=eY(i.querySelector("[data-animated-weekdays]"));m&&(m.style.opacity="0");let h=eK(i);h&&(h.classList.add(c?n[F.X5.caption_before_exit]:n[F.X5.caption_after_exit]),h.addEventListener("animationend",d));let g=eq(i);g&&g.classList.add(c?n[F.X5.weeks_before_exit]:n[F.X5.weeks_after_exit]),o.insertBefore(i,o.firstChild)})}})}(eF,!!t.animate,{classNames:c,months:X,focused:el,dateLib:u});let eW={dayPickerProps:t,selected:eo,select:er,isSelected:en,months:X,nextMonth:J,previousMonth:Q,goToMonth:ee,getModifiers:et,components:n,classNames:c,styles:N,labels:s,formatters:l};return g.createElement(ea.Provider,{value:eW},g.createElement(n.Root,{rootRef:t.animate?eF:void 0,className:eI,style:eL,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],...e_},g.createElement(n.Months,{className:c[F.UI.Months],style:N?.[F.UI.Months]},!t.hideNavigation&&!m&&g.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[F.UI.Nav],style:N?.[F.UI.Nav],"aria-label":eh(),onPreviousClick:eS,onNextClick:ek,previousMonth:Q,nextMonth:J}),X.map((e,r)=>g.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:c[F.UI.Month],style:N?.[F.UI.Month],key:r,displayIndex:r,calendarMonth:e},"around"===m&&!t.hideNavigation&&0===r&&g.createElement(n.PreviousMonthButton,{type:"button",className:c[F.UI.PreviousMonthButton],tabIndex:Q?void 0:-1,"aria-disabled":!Q||void 0,"aria-label":ev(Q),onClick:eS,"data-animated-button":t.animate?"true":void 0},g.createElement(n.Chevron,{disabled:!Q||void 0,className:c[F.UI.Chevron],orientation:"rtl"===t.dir?"right":"left"})),g.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:c[F.UI.MonthCaption],style:N?.[F.UI.MonthCaption],calendarMonth:e,displayIndex:r},f?.startsWith("dropdown")?g.createElement(n.DropdownNav,{className:c[F.UI.Dropdowns],style:N?.[F.UI.Dropdowns]},"dropdown"===f||"dropdown-months"===f?g.createElement(n.MonthsDropdown,{className:c[F.UI.MonthsDropdown],"aria-label":em(),classNames:c,components:n,disabled:!!t.disableNavigation,onChange:eA(e.date),options:function(e,t,n,r,o){let{startOfMonth:a,startOfYear:i,endOfYear:l,eachMonthOfInterval:s,getMonth:u}=o;return s({start:i(e),end:l(e)}).map(e=>{let i=r.formatMonthDropdown(e,o);return{value:u(e),label:i,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}(e.date,Z,$,l,u),style:N?.[F.UI.Dropdown],value:u.getMonth(e.date)}):g.createElement("span",null,P(e.date,u)),"dropdown"===f||"dropdown-years"===f?g.createElement(n.Years
1Dropdown,{className:c[F.UI.YearsDropdown],"aria-label":eE(u.options),classNames:c,components:n,disabled:!!t.disableNavigation,onChange:eO(e.date),options:function(e,t,n,r,o=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:i,addYears:l,getYear:s,isBefore:u,isSameYear:d}=r,c=a(e),f=i(t),p=[],m=c;for(;u(m,f)||d(m,f);)p.push(m),m=l(m,1);return o&&p.reverse(),p.map(e=>{let t=n.formatYearDropdown(e,r);return{value:s(e),label:t,disabled:!1}})}(Z,$,l,u,!!t.reverseYears),style:N?.[F.UI.Dropdown],value:u.getYear(e.date)}):g.createElement("span",null,I(e.date,u)),g.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},R(e.date,u.options,u))):g.createElement(n.CaptionLabel,{className:c[F.UI.CaptionLabel],role:"status","aria-live":"polite"},R(e.date,u.options,u))),"around"===m&&!t.hideNavigation&&r===h-1&&g.createElement(n.NextMonthButton,{type:"button",className:c[F.UI.NextMonthButton],tabIndex:J?void 0:-1,"aria-disabled":!J||void 0,"aria-label":eg(J),onClick:ek,"data-animated-button":t.animate?"true":void 0},g.createElement(n.Chevron,{disabled:!J||void 0,className:c[F.UI.Chevron],orientation:"rtl"===t.dir?"left":"right"})),r===h-1&&"after"===m&&!t.hideNavigation&&g.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[F.UI.Nav],style:N?.[F.UI.Nav],"aria-label":eh(),onPreviousClick:eS,onNextClick:ek,previousMonth:Q,nextMonth:J}),g.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===p||"range"===p,"aria-label":ep(e.date,u.options,u)||void 0,className:c[F.UI.MonthGrid],style:N?.[F.UI.MonthGrid]},!t.hideWeekdays&&g.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:c[F.UI.Weekdays],style:N?.[F.UI.Weekdays]},D&&g.createElement(n.WeekNumberHeader,{"aria-label":eb(u.options),className:c[F.UI.WeekNumberHeader],style:N?.[F.UI.WeekNumberHeader],scope:"col"},A()),eC.map(e=>g.createElement(n.Weekday,{"aria-label":ew(e,u.options,u),className:c[F.UI.Weekday],key:String(e),style:N?.[F.UI.Weekday],scope:"col"},O(e,u.options,u)))),g.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:c[F.UI.Weeks],style:N?.[F.UI.Weeks]},e.weeks.map(e=>g.createElement(n.Week,{className:c[F.UI.Week],key:e.weekNumber,style:N?.[F.UI.Week],week:e},D&&g.createElement(n.WeekNumber,{week:e,style:N?.[F.UI.WeekNumber],"aria-label":ey(e.weekNumber,{locale:d}),className:c[F.UI.WeekNumber],scope:"row",role:"rowheader"},j(e.weekNumber,u)),e.days.map(e=>{let{date:r}=e,o=et(e);if(o[F.pL.focused]=!o.hidden&&!!el?.isEqualTo(e),o[F.wc.selected]=en?.(r)||o.selected,B(eo)){let{from:e,to:t}=eo;o[F.wc.range_start]=!!(e&&t&&u.isSameDay(r,e)),o[F.wc.range_end]=!!(e&&t&&u.isSameDay(r,t)),o[F.wc.range_middle]=W(eo,r,!0,u)}let a=function(e,t={},n={}){let r={...t?.[F.UI.Day]};return Object.entries(e).filter(([,e])=>!0===e).forEach(([e])=>{r={...r,...n?.[e]}}),r}(o,N,t.modifiersStyles),i=function(e,t,n={}){return Object.entries(e).filter(([,e])=>!0===e).reduce((e,[r])=>(n[r]?e.push(n[r]):t[F.pL[r]]?e.push(t[F.pL[r]]):t[F.wc[r]]&&e.push(t[F.wc[r]]),e),[t[F.UI.Day]])}(o,c,t.modifiersClassNames),l=eM||o.hidden?void 0:ef(r,o,u.options,u);return g.createElement(n.Day,{key:`${u.format(r,"yyyy-MM-dd")}_${u.format(e.displayMonth,"yyyy-MM")}`,day:e,modifiers:o,className:i.join(" "),style:a,role:"gridcell","aria-selected":o.selected||void 0,"aria-label":l,"data-day":u.format(r,"yyyy-MM-dd"),"data-month":e.outside?u.format(r,"yyyy-MM"):void 0,"data-selected":o.selected||void 0,"data-disabled":o.disabled||void 0,"data-hidden":o.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":o.focused||void 0,"data-today":o.today||void 0},!o.hidden&&eM?g.createElement(n.DayButton,{className:c[F.UI.DayButton],style:N?.[F.UI.DayButton],type:"button",day:e,modifiers:o,disabled:o.disabled||void 0,tabIndex:es(e)?0:-1,"aria-label":ec(r,o,u.options,u),onClick:eD(e,o),onBlur:eR(e,o),onFocus:eN(e,o),onKeyDown:eT(e,o),onMouseEnter:eP(e,o),onMouseLeave:ej(e,o)},T(r,u.options,u)):!o.hidden&&T(e.date,u.options,u))})))))))),t.footer&&g.createElement(n.Footer,{className:c[F.UI.Footer],style:N?.[F.UI.Footer],role:"status","aria-live":"polite"},t.footer)))}!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(r||(r={}))},26217:(e,t,n)=>{n.d(t,{c:()=>u});let r={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"}};function o(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,o=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{let t=e.defaultWidth,o=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function s(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.width,a=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;let l=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(s,e=>e.test(l)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(s,e=>e.test(l));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(l.length)}}}let u={code:"en-US",formatDistance:(e,t,n)=>{let o,a=r[e];if(o="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)if(n.comparison&&n.comparison>0)return"in "+o;else return o+" ago";return o},formatLong:a,formatRelative:(e,t,n,r)=>i[e],localize:{ordinalNumber:(e,t)=>{let 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"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:l({values:{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"]},defaultWidth:"wide"}),day:l({values:{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","Frid
1ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;let o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(o.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:s({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:s({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:s({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:s({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},27937:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},30125:(e,t,n)=>{var r=n(12115),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,d=r[1];return l(function(){o.value=n,o.getSnapshot=t,u(o)&&d({inst:o})},[e,n,t]),i(function(){return u(o)&&d({inst:o}),e(function(){u(o)&&d({inst:o})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},32467:(e,t,n)=>{n.d(t,{DX:()=>l,Dc:()=>u,TL:()=>i});var r=n(12115),o=n(94446),a=n(95155);function i(e){let t=function(e){let t=r.forwardRef((e,t)=>
1{let{children:n,...a}=e;if(r.isValidElement(n)){var i;let e,l,s=(i=n,(l=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(l=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(a,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,o.t)(t,s):s),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...i}=e,l=r.Children.toArray(o),s=l.find(d);if(s){let e=s.props.children,o=l.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...i,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,a.jsx)(t,{...i,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var l=i("Slot"),s=Symbol("radix.slottable");function u(e){let t=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=s,t}function d(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}},33045:(e,t,n)=>{n.d(t,{qW:()=>p});var r,o=n(12115);function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var i=n(97602),l=n(94446),s=n(70222),u=n(59584),d=n(95155),c="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=o.forwardRef((e,t)=>{var n,p;let{disableOutsidePointerEvents:v=!1,onEscapeKeyDown:g,onPointerDownOutside:w,onFocusOutside:y,onInteractOutside:b,onDismiss:x,...E}=e,C=o.useContext(f),[M,S]=o.useState(null),k=null!=(p=null==M?void 0:M.ownerDocument)?p:null==(n=globalThis)?void 0:n.document,[,D]=o.useState({}),N=(0,l.s)(t,e=>S(e)),R=Array.from(C.layers),[T]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),P=R.indexOf(T),j=M?R.indexOf(M):-1,A=C.layersWithOutsidePointerEventsDisabled.size>0,O=j>=P,I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,s.c)(e),a=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let t=function(){h("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);a.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,n=[...C.branches].some(e=>e.contains(t));O&&!n&&(null==w||w(e),null==b||b(e),e.defaultPrevented||null==x||x())},k),L=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,s.c)(e),a=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!a.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;![...C.branches].some(e=>e.contains(t))&&(null==y||y(e),null==b||b(e),e.defaultPrevented||null==x||x())},k);return(0,u.U)(e=>{j===C.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},k),o.useEffect(()=>{if(M)return v&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(r=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(M)),C.layers.add(M),m(),()=>{v&&1===C.layersWithOutsidePointerEventsDisabled.size&&(k.body.style.pointerEvents=r)}},[M,k,v,C]),o.useEffect(()=>()=>{M&&(C.layers.delete(M),C.layersWithOutsidePointerEventsDisabled.delete(M),m())},[M,C]),o.useEffect(()=>{let e=()=>D({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,d.jsx)(i.sG.div,{...E,ref:N,style:{pointerEvents:A?O?"auto":"none":void 0,...e.style},onFocusCapture:a(e.onFocusCapture,L.onFocusCapture),onBlurCapture:a(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:a(e.onPointerDownCapture,I.onPointerDownCapture)})});function m(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?(0,i.hO)(a,l):a.dispatchEvent(l)}p.displayName="DismissableLayer",o.forwardRef((e,t)=>
1{let n=o.useContext(f),r=o.useRef(null),a=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(i.sG.div,{...e,ref:a})}).displayName="DismissableLayerBranch"},34212:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,[t,n]){return Math.min(n,Math.max(t,e))}},39781:(e,t,n)=>{n.d(t,{q:()=>o});let r={};function o(){return r}},40046:(e,t,n)=>{n.d(t,{UC:()=>X,B8:()=>q,bL:()=>K,l9:()=>V});var r=n(12115);function o(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var a=n(3468),i=n(49972),l=n(94446),s=n(68946),u=n(97602),d=n(70222),c=n(23558),f=n(66218),p=n(95155),m="rovingFocusGroup.onEntryFocus",h={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[g,w,y]=(0,i.N)(v),[b,x]=(0,a.A)(v,[y]),[E,C]=b(v),M=r.forwardRef((e,t)=>(0,p.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(S,{...e,ref:t})})}));M.displayName=v;var S=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:i=!1,dir:s,currentTabStopId:g,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:b,onEntryFocus:x,preventScrollOnEntryFocus:C=!1,...M}=e,S=r.useRef(null),k=(0,l.s)(t,S),D=(0,f.jH)(s),[N,T]=(0,c.i)({prop:g,defaultProp:null!=y?y:null,onChange:b,caller:v}),[P,j]=r.useState(!1),A=(0,d.c)(x),O=w(n),I=r.useRef(!1),[L,_]=r.useState(0);return r.useEffect(()=>{let e=S.current;if(e)return e.addEventListener(m,A),()=>e.removeEventListener(m,A)},[A]),(0,p.jsx)(E,{scope:n,orientation:a,dir:D,loop:i,currentTabStopId:N,onItemFocus:r.useCallback(e=>T(e),[T]),onItemShiftTab:r.useCallback(()=>j(!0),[]),onFocusableItemAdd:r.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>_(e=>e-1),[]),children:(0,p.jsx)(u.sG.div,{tabIndex:P||0===L?-1:0,"data-orientation":a,...M,ref:k,style:{outline:"none",...e.style},onMouseDown:o(e.onMouseDown,()=>{I.current=!0}),onFocus:o(e.onFocus,e=>{let t=!I.current;if(e.target===e.currentTarget&&t&&!P){let t=new CustomEvent(m,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);R([e.find(e=>e.active),e.find(e=>e.id===N),...e].filter(Boolean).map(e=>e.ref.current),C)}}I.current=!1}),onBlur:o(e.onBlur,()=>j(!1))})})}),k="RovingFocusGroupItem",D=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:i=!1,tabStopId:l,children:d,...c}=e,f=(0,s.B)(),m=l||f,h=C(k,n),v=h.currentTabStopId===m,y=w(n),{onFocusableItemAdd:b,onFocusableItemRemove:x,currentTabStopId:E}=h;return r.useEffect(()=>{if(a)return b(),()=>x()},[a,b,x]),(0,p.jsx)(g.ItemSlot,{scope:n,id:m,focusable:a,active:i,children:(0,p.jsx)(u.sG.span,{tabIndex:v?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:o(e.onMouseDown,e=>{a?h.onItemFocus(m):e.preventDefault()}),onFocus:o(e.onFocus,()=>h.onItemFocus(m)),onKeyDown:o(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return N[o]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=h.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>R(n))}}),children:"function"==typeof d?d({isCurrentTabStop:v,hasTabStop:null!=E}):d})})});D.displayName=k;var N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function R(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var T=n(76842),P="Tabs",[j,A]=(0,a.A)(P,[x]),O=x(),[I,L]=j(P),_=r.forwardRef((e,t)=>
1{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:d="automatic",...m}=e,h=(0,f.jH)(l),[v,g]=(0,c.i)({prop:r,onChange:o,defaultProp:null!=a?a:"",caller:P});return(0,p.jsx)(I,{scope:n,baseId:(0,s.B)(),value:v,onValueChange:g,orientation:i,dir:h,activationMode:d,children:(0,p.jsx)(u.sG.div,{dir:h,"data-orientation":i,...m,ref:t})})});_.displayName=P;var F="TabsList",W=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,a=L(F,n),i=O(n);return(0,p.jsx)(M,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:(0,p.jsx)(u.sG.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});W.displayName=F;var U="TabsTrigger",B=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:a=!1,...i}=e,l=L(U,n),s=O(n),d=Y(l.baseId,r),c=z(l.baseId,r),f=r===l.value;return(0,p.jsx)(D,{asChild:!0,...s,focusable:!a,active:f,children:(0,p.jsx)(u.sG.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...i,ref:t,onMouseDown:o(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(r)}),onKeyDown:o(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(r)}),onFocus:o(e.onFocus,()=>{let e="manual"!==l.activationMode;f||a||!e||l.onValueChange(r)})})})});B.displayName=U;var H="TabsContent",G=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:o,forceMount:a,children:i,...l}=e,s=L(H,n),d=Y(s.baseId,o),c=z(s.baseId,o),f=o===s.value,m=r.useRef(f);return r.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,p.jsx)(T.C,{present:a||f,children:n=>{let{present:r}=n;return(0,p.jsx)(u.sG.div,{"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:c,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&i})}})});function Y(e,t){return"".concat(e,"-trigger-").concat(t)}function z(e,t){return"".concat(e,"-content-").concat(t)}G.displayName=H;var K=_,q=W,V=B,X=G},45240:(e,t,n)=>{n.d(t,{x:()=>o});var r=n(4168);function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];let a=r.w.bind(null,e||n.find(e=>"object"==typeof e));return n.map(a)}},46591:(e,t,n)=>{n.d(t,{H4:()=>M,_V:()=>C,bL:()=>E});var r=n(12115),o=n(3468),a=n(70222),i=n(4129),l=n(97602),s=n(14806);function u(){return()=>{}}var d=n(95155),c="Avatar",[f,p]=(0,o.A)(c),[m,h]=f(c),v=r.forwardRef((e,t)=>{let{__scopeAvatar:n,...o}=e,[a,i]=r.useState("idle");return(0,d.jsx)(m,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:i,children:(0,d.jsx)(l.sG.span,{...o,ref:t})})});v.displayName=c;var g="AvatarImage",w=r.forwardRef((e,t)=>{let{__scopeAvatar:n,src:o,onLoadingStatusChange:c=()=>{},...f}=e,p=h(g,n),m=function(e,t){let{referrerPolicy:n,crossOrigin:o}=t,a=(0,s.useSyncExternalStore)(u,()=>!0,()=>!1),l=r.useRef(null),d=a?(l.current||(l.current=new window.Image),l.current):null,[c,f]=r.useState(()=>x(d,e));return(0,i.N)(()=>{f(x(d,e))},[d,e]),(0,i.N)(()=>{let e=e=>()=>{f(e)};if(!d)return;let t=e("loaded"),r=e("error");return d.addEventListener("load",t),d.addEventListener("error",r),n&&(d.referrerPolicy=n),"string"==typeof o&&(d.crossOrigin=o),()=>{d.removeEventListener("load",t),d.removeEventListener("error",r)}},[d,o,n]),c}(o,f),v=(0,a.c)(e=>{c(e),p.onImageLoadingStatusChange(e)});return(0,i.N)(()=>{"idle"!==m&&v(m)},[m,v]),"loaded"===m?(0,d.jsx)(l.sG.img,{...f,ref:t,src:o}):null});w.displayName=g;var y="AvatarFallback",b=r.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:o,...a}=e,i=h(y,n),[s,u]=r.useState(void 0===o);return r.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>u(!0),o);return()=>window.clearTimeout(e)}},[o]),s&&"loaded"!==i.imageLoadingStatus?(0,d.jsx)(l.sG.span,{...a,ref:t}):null});function x(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}b.displayName=y;var E=v,C=w,M=b},48733:(e,t,n)=>{n.d(t,{i3:()=>ey,UC:()=>ew,ZL:()=>eg,Kq:()=>em,bL:()=>eh,l9:()=>ev});var r=n(12115);function o(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var a=n(94446),i=n(3468),l=n(33045),s=n(68946),u=n(88334),d=n(58146),c=n(72930),f=n(97602),p=n(70222),m=n(4129),h=n(84288),v=n(95155),g="Popper",[w,y]=(0,i.A)(g),[b,x]=w(g),E=e=>{let{__scopePopper:t,children:n}=e,[o,a]=r.useState(null);return(0,v.jsx)(b,{scope:t,anchor:o,onAnchorChange:a,children:n})};E.displayName=g;var C="PopperAnchor",M=r.forwardRef((e,t)=>
1{let{__scopePopper:n,virtualRef:o,...i}=e,l=x(C,n),s=r.useRef(null),u=(0,a.s)(t,s),d=r.useRef(null);return r.useEffect(()=>{let e=d.current;d.current=(null==o?void 0:o.current)||s.current,e!==d.current&&l.onAnchorChange(d.current)}),o?null:(0,v.jsx)(f.sG.div,{...i,ref:u})});M.displayName=C;var S="PopperContent",[k,D]=w(S),N=r.forwardRef((e,t)=>{var n,o,i,l,s,c,g,w;let{__scopePopper:y,side:b="bottom",sideOffset:E=0,align:C="center",alignOffset:M=0,arrowPadding:D=0,avoidCollisions:N=!0,collisionBoundary:R=[],collisionPadding:T=0,sticky:P="partial",hideWhenDetached:I=!1,updatePositionStrategy:L="optimized",onPlaced:_,...F}=e,W=x(S,y),[U,B]=r.useState(null),H=(0,a.s)(t,e=>B(e)),[G,Y]=r.useState(null),z=(0,h.X)(G),K=null!=(g=null==z?void 0:z.width)?g:0,q=null!=(w=null==z?void 0:z.height)?w:0,V="number"==typeof T?T:{top:0,right:0,bottom:0,left:0,...T},X=Array.isArray(R)?R:[R],Z=X.length>0,$={padding:V,boundary:X.filter(j),altBoundary:Z},{refs:Q,floatingStyles:J,placement:ee,isPositioned:et,middlewareData:en}=(0,u.we)({strategy:"fixed",placement:b+("center"!==C?"-"+C:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,d.ll)(...t,{animationFrame:"always"===L})},elements:{reference:W.anchor},middleware:[(0,u.cY)({mainAxis:E+q,alignmentAxis:M}),N&&(0,u.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===P?(0,u.ER)():void 0,...$}),N&&(0,u.UU)({...$}),(0,u.Ej)({...$,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:i}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),G&&(0,u.UE)({element:G,padding:D}),A({arrowWidth:K,arrowHeight:q}),I&&(0,u.jD)({strategy:"referenceHidden",...$})]}),[er,eo]=O(ee),ea=(0,p.c)(_);(0,m.N)(()=>{et&&(null==ea||ea())},[et,ea]);let ei=null==(n=en.arrow)?void 0:n.x,el=null==(o=en.arrow)?void 0:o.y,es=(null==(i=en.arrow)?void 0:i.centerOffset)!==0,[eu,ed]=r.useState();return(0,m.N)(()=>{U&&ed(window.getComputedStyle(U).zIndex)},[U]),(0,v.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:et?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null==(l=en.transformOrigin)?void 0:l.x,null==(s=en.transformOrigin)?void 0:s.y].join(" "),...(null==(c=en.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,v.jsx)(k,{scope:y,placedSide:er,onArrowChange:Y,arrowX:ei,arrowY:el,shouldHideArrow:es,children:(0,v.jsx)(f.sG.div,{"data-side":er,"data-align":eo,...F,ref:H,style:{...F.style,animation:et?void 0:"none"}})})})});N.displayName=S;var R="PopperArrow",T={top:"bottom",right:"left",bottom:"top",left:"right"},P=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=D(R,n),a=T[o.placedSide];return(0,v.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,v.jsx)(c.b,{...r,ref:t,style:{...r.style,display:"block"}})})});function j(e){return null!==e}P.displayName=R;var A=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;let{placement:l,rects:s,middlewareData:u}=t,d=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,c=d?0:e.arrowWidth,f=d?0:e.arrowHeight,[p,m]=O(l),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!=(a=null==(r=u.arrow)?void 0:r.x)?a:0)+c/2,g=(null!=(i=null==(o=u.arrow)?void 0:o.y)?i:0)+f/2,w="",y="";return"bottom"===p?(w=d?h:"".concat(v,"px"),y="".concat(-f,"px")):"top"===p?(w=d?h:"".concat(v,"px"),y="".concat(s.floating.height+f,"px")):"right"===p?(w="".concat(-f,"px"),y=d?h:"".concat(g,"px")):"left"===p&&(w="".concat(s.floating.width+f,"px"),y=d?h:"".concat(g,"px")),{data:{x:w,y}}}});function O(e){let[t,n="center"]=e.split("-");return[t,n]}var I=n(75433),L=n(76842),_=n(32467),F=n(23558),W=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"}),U=r.forwardRef((e,t)=>
1(0,v.jsx)(f.sG.span,{...e,ref:t,style:{...W,...e.style}}));U.displayName="VisuallyHidden";var[B,H]=(0,i.A)("Tooltip",[y]),G=y(),Y="TooltipProvider",z="tooltip.open",[K,q]=B(Y),V=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:i}=e,l=r.useRef(!0),s=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,v.jsx)(K,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),l.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l.current=!0,o)},[o]),isPointerInTransitRef:s,onPointerInTransitChange:r.useCallback(e=>{s.current=e},[]),disableHoverableContent:a,children:i})};V.displayName=Y;var X="Tooltip",[Z,$]=B(X),Q=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:a,onOpenChange:i,disableHoverableContent:l,delayDuration:u}=e,d=q(X,e.__scopeTooltip),c=G(t),[f,p]=r.useState(null),m=(0,s.B)(),h=r.useRef(0),g=null!=l?l:d.disableHoverableContent,w=null!=u?u:d.delayDuration,y=r.useRef(!1),[b,x]=(0,F.i)({prop:o,defaultProp:null!=a&&a,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(z))):d.onClose(),null==i||i(e)},caller:X}),C=r.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),M=r.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,x(!0)},[x]),S=r.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),k=r.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,x(!0),h.current=0},w)},[w,x]);return r.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),(0,v.jsx)(E,{...c,children:(0,v.jsx)(Z,{scope:t,contentId:m,open:b,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?k():M()},[d.isOpenDelayedRef,k,M]),onTriggerLeave:r.useCallback(()=>{g?S():(window.clearTimeout(h.current),h.current=0)},[S,g]),onOpen:M,onClose:S,disableHoverableContent:g,children:n})})};Q.displayName=X;var J="TooltipTrigger",ee=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...i}=e,l=$(J,n),s=q(J,n),u=G(n),d=r.useRef(null),c=(0,a.s)(t,d,l.onTriggerChange),p=r.useRef(!1),m=r.useRef(!1),h=r.useCallback(()=>p.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),(0,v.jsx)(M,{asChild:!0,...u,children:(0,v.jsx)(f.sG.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...i,ref:c,onPointerMove:o(e.onPointerMove,e=>{"touch"!==e.pointerType&&(m.current||s.isPointerInTransitRef.current||(l.onTriggerEnter(),m.current=!0))}),onPointerLeave:o(e.onPointerLeave,()=>{l.onTriggerLeave(),m.current=!1}),onPointerDown:o(e.onPointerDown,()=>{l.open&&l.onClose(),p.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:o(e.onFocus,()=>{p.current||l.onOpen()}),onBlur:o(e.onBlur,l.onClose),onClick:o(e.onClick,l.onClose)})})});ee.displayName=J;var et="TooltipPortal",[en,er]=B(et,{forceMount:void 0}),eo=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=$(et,t);return(0,v.jsx)(en,{scope:t,forceMount:n,children:(0,v.jsx)(L.C,{present:n||a.open,children:(0,v.jsx)(I.Z,{asChild:!0,container:o,children:r})})})};eo.displayName=et;var ea="TooltipContent",ei=r.forwardRef((e,t)=>{let n=er(ea,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=$(ea,e.__scopeTooltip);return(0,v.jsx)(L.C,{present:r||i.open,children:i.disableHoverableContent?(0,v.jsx)(ec,{side:o,...a,ref:t}):(0,v.jsx)(el,{side:o,...a,ref:t})})}),el=r.forwardRef((e,t)=>{let n=$(ea,e.__scopeTooltip),o=q(ea,e.__scopeTooltip),i=r.useRef(null),l=(0,a.s)(t,i),[s,u]=r.useState(null),{trigger:d,onClose:c}=n,f=i.current,{onPointerInTransitChange:p}=o,m=r.useCallback(()=>{u(null),p(!1)},[p]),h=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let 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 Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>
1e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,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})}return r}(r,o),...function(e){let{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}]}(t.getBoundingClientRect())])),p(!0)},[p]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(d&&f){let e=e=>h(e,f),t=e=>h(e,d);return d.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[d,f,h,m]),r.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==d?void 0:d.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e],l=t[a],s=i.x,u=i.y,d=l.x,c=l.y;u>r!=c>r&&n<(d-s)*(r-u)/(c-u)+s&&(o=!o)}return o}(n,s);r?m():o&&(m(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,f,s,c,m]),(0,v.jsx)(ec,{...e,ref:l})}),[es,eu]=B(X,{isInside:!1}),ed=(0,_.Dc)("TooltipContent"),ec=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:s,...u}=e,d=$(ea,n),c=G(n),{onClose:f}=d;return r.useEffect(()=>(document.addEventListener(z,f),()=>document.removeEventListener(z,f)),[f]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,f]),(0,v.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,v.jsxs)(N,{"data-state":d.stateAttribute,...c,...u,ref:t,style:{...u.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:[(0,v.jsx)(ed,{children:o}),(0,v.jsx)(es,{scope:n,isInside:!0,children:(0,v.jsx)(U,{id:d.contentId,role:"tooltip",children:a||o})})]})})});ei.displayName=ea;var ef="TooltipArrow",ep=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=G(n);return eu(ef,n).isInside?null:(0,v.jsx)(P,{...o,...r,ref:t})});ep.displayName=ef;var em=V,eh=Q,ev=ee,eg=eo,ew=ei,ey=ep},49972:(e,t,n)=>{function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function o(e,t){var n=r(e,t,"get");return n.get?n.get.call(e):n.value}function a(e,t,n){var o=r(e,t,"set");if(o.set)o.set.call(e,n);else{if(!o.writable)throw TypeError("attempted to set read only private field");o.value=n}return n}n.d(t,{N:()=>f});var i,l=n(12115),s=n(3468),u=n(94446),d=n(32467),c=n(95155);function f(e){let t=e+"CollectionProvider",[n,r]=(0,s.A)(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{let{scope:t,children:n}=e,r=l.useRef(null),a=l.useRef(new Map).current;return(0,c.jsx)(o,{scope:t,itemMap:a,collectionRef:r,children:n})};i.displayName=t;let f=e+"CollectionSlot",p=(0,d.TL)(f),m=l.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=a(f,n),i=(0,u.s)(t,o.collectionRef);return(0,c.jsx)(p,{ref:i,children:r})});m.displayName=f;let h=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,d.TL)(h),w=l.forwardRef((e,t)=>
1{let{scope:n,children:r,...o}=e,i=l.useRef(null),s=(0,u.s)(t,i),d=a(h,n);return l.useEffect(()=>(d.itemMap.set(i,{ref:i,...o}),()=>void d.itemMap.delete(i))),(0,c.jsx)(g,{...{[v]:""},ref:s,children:r})});return w.displayName=h,[{Provider:i,Slot:m,ItemSlot:w},function(t){let n=a(e+"CollectionConsumer",t);return l.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var p=new WeakMap;function m(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=h(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function h(e){return e!=e||0===e?0:Math.trunc(e)}i=new WeakMap,class e extends Map{set(e,t){return p.get(this)&&(this.has(e)?o(this,i)[o(this,i).indexOf(e)]=e:o(this,i).push(e)),super.set(e,t),this}insert(e,t,n){let r,a=this.has(t),l=o(this,i).length,s=h(e),u=s>=0?s:l+s,d=u<0||u>=l?-1:u;if(d===this.size||a&&d===this.size-1||-1===d)return this.set(t,n),this;let c=this.size+ +!a;s<0&&u++;let f=[...o(this,i)],p=!1;for(let e=u;e<c;e++)if(u===e){let o=f[e];f[e]===t&&(o=f[e+1]),a&&this.delete(t),r=this.get(o),this.set(t,n)}else{p||f[e-1]!==t||(p=!0);let n=f[p?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=o(this,i).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=o(this,i).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=o(this,i).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=o(this,i).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return a(this,i,[]),super.clear()}delete(e){let t=super.delete(e);return t&&o(this,i).splice(o(this,i).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=m(o(this,i),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=m(o(this,i),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return o(this,i).indexOf(e)}keyAt(e){return m(o(this,i),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,a=0,i=null!=o?o:this.at(0);for(let e of this)i=0===a&&1===t.length?e:Reflect.apply(r,this,[i,e,a,this]),a++;return i}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,a=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);a=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[a,n,e,this])}return a}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=[...this.entries()];return o.splice(...n),new e(o)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,i,{writable:!0,value:void 0}),a(this,i,[...super.keys()]),p.set(this,!0)}}},52731:(e,t,n)=>{n.d(t,{p:()=>i});var r=n(4168),o=n(3177),a=n(92118);function i(e,t){let n=(0,a.a)(e,null==t?void 0:t.in),i=n.getFullYear(),l=(0,r.w)(n,0);l.setFullYear(i+1,0,4),l.setHours(0,0,0,0);let s=(0,o.b)(l),u=(0,r.w)(n,0);
1u.setFullYear(i,0,4),u.setHours(0,0,0,0);let d=(0,o.b)(u);return n.getTime()>=s.getTime()?i+1:n.getTime()>=d.getTime()?i:i-1}},52986:(e,t,n)=>{n.d(t,{UC:()=>e5,YJ:()=>e6,In:()=>e1,q7:()=>e9,VF:()=>e3,p4:()=>e7,JU:()=>e8,ZL:()=>e2,bL:()=>eQ,wn:()=>tt,PP:()=>te,wv:()=>tn,l9:()=>eJ,WT:()=>e0,LM:()=>e4});var r=n(12115),o=n(47650),a=n(34212);function i(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var l=n(49972),s=n(94446),u=n(3468),d=n(66218),c=n(33045),f=0;function p(){let 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 m=n(69666),h=n(68946),v=n(88334),g=n(58146),w=n(72930),y=n(97602),b=n(70222),x=n(4129),E=n(84288),C=n(95155),M="Popper",[S,k]=(0,u.A)(M),[D,N]=S(M),R=e=>{let{__scopePopper:t,children:n}=e,[o,a]=r.useState(null);return(0,C.jsx)(D,{scope:t,anchor:o,onAnchorChange:a,children:n})};R.displayName=M;var T="PopperAnchor",P=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...a}=e,i=N(T,n),l=r.useRef(null),u=(0,s.s)(t,l),d=r.useRef(null);return r.useEffect(()=>{let e=d.current;d.current=(null==o?void 0:o.current)||l.current,e!==d.current&&i.onAnchorChange(d.current)}),o?null:(0,C.jsx)(y.sG.div,{...a,ref:u})});P.displayName=T;var j="PopperContent",[A,O]=S(j),I=r.forwardRef((e,t)=>{var n,o,a,i,l,u,d,c;let{__scopePopper:f,side:p="bottom",sideOffset:m=0,align:h="center",alignOffset:w=0,arrowPadding:M=0,avoidCollisions:S=!0,collisionBoundary:k=[],collisionPadding:D=0,sticky:R="partial",hideWhenDetached:T=!1,updatePositionStrategy:P="optimized",onPlaced:O,...I}=e,L=N(j,f),[_,F]=r.useState(null),H=(0,s.s)(t,e=>F(e)),[G,Y]=r.useState(null),z=(0,E.X)(G),K=null!=(d=null==z?void 0:z.width)?d:0,q=null!=(c=null==z?void 0:z.height)?c:0,V="number"==typeof D?D:{top:0,right:0,bottom:0,left:0,...D},X=Array.isArray(k)?k:[k],Z=X.length>0,$={padding:V,boundary:X.filter(W),altBoundary:Z},{refs:Q,floatingStyles:J,placement:ee,isPositioned:et,middlewareData:en}=(0,v.we)({strategy:"fixed",placement:p+("center"!==h?"-"+h:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,g.ll)(...t,{animationFrame:"always"===P})},elements:{reference:L.anchor},middleware:[(0,v.cY)({mainAxis:m+q,alignmentAxis:w}),S&&(0,v.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?(0,v.ER)():void 0,...$}),S&&(0,v.UU)({...$}),(0,v.Ej)({...$,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:i}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),G&&(0,v.UE)({element:G,padding:M}),U({arrowWidth:K,arrowHeight:q}),T&&(0,v.jD)({strategy:"referenceHidden",...$})]}),[er,eo]=B(ee),ea=(0,b.c)(O);(0,x.N)(()=>{et&&(null==ea||ea())},[et,ea]);let ei=null==(n=en.arrow)?void 0:n.x,el=null==(o=en.arrow)?void 0:o.y,es=(null==(a=en.arrow)?void 0:a.centerOffset)!==0,[eu,ed]=r.useState();return(0,x.N)(()=>{_&&ed(window.getComputedStyle(_).zIndex)},[_]),(0,C.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:et?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null==(i=en.transformOrigin)?void 0:i.x,null==(l=en.transformOrigin)?void 0:l.y].join(" "),...(null==(u=en.hide)?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,C.jsx)(A,{scope:f,placedSide:er,onArrowChange:Y,arrowX:ei,arrowY:el,shouldHideArrow:es,children:(0,C.jsx)(y.sG.div,{"data-side":er,"data-align":eo,...I,ref:H,style:{...I.style,animation:et?void 0:"none"}})})})});I.displayName=j;var L="PopperArrow",_={top:"bottom",right:"left",bottom:"top",left:"right"},F=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=O(L,n),a=_[o.placedSide];return(0,C.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,C.jsx)(w.b,{...r,ref:t,style:{...r.style,display:"block"}})})});function W(e){return null!==e}F.displayName=L;var U=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;let{placement:l,rects:s,middlewareData:u}=t,d=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,c=d?0:e.arrowWidth,f=d?0:e.arrowHeight,[p,m]=B(l),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!=(a=null==(r=u.arrow)?void 0:r.x)?a:0)+c/2,g=(null!=(i=null==(o=u.arrow)?void 0:o.y)?i:0)+f/2,w="",y="";return"bottom"===p?(w=d?h:"".concat(v,"px"),y="".concat(-f,"px")):"top"===p?(w=d?h:"".concat(v,"px"),y="".concat(s.floating.height+f,"px")):"right"===p?(w="".concat(-f,"px"),y=d?h:"".concat(g,"px")):"left"===p&&(w="".concat(s.floating.width+f,"px"),y=d?h:"".concat(g,"px")),{data:{x:w,y}}}});function B(e){let[t,n="center"]=e.split("-");return[t,n]}var H=n(75433),G=n(32467),Y=n(23558),z=n(78108),K=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"});r.forwardRef((e,t)=>
1(0,C.jsx)(y.sG.span,{...e,ref:t,style:{...K,...e.style}})).displayName="VisuallyHidden";var q=n(97745),V=n(14432),X=[" ","Enter","ArrowUp","ArrowDown"],Z=[" ","Enter"],$="Select",[Q,J,ee]=(0,l.N)($),[et,en]=(0,u.A)($,[ee,k]),er=k(),[eo,ea]=et($),[ei,el]=et($),es=e=>{let{__scopeSelect:t,children:n,open:o,defaultOpen:a,onOpenChange:i,value:l,defaultValue:s,onValueChange:u,dir:c,name:f,autoComplete:p,disabled:m,required:v,form:g}=e,w=er(t),[y,b]=r.useState(null),[x,E]=r.useState(null),[M,S]=r.useState(!1),k=(0,d.jH)(c),[D,N]=(0,Y.i)({prop:o,defaultProp:null!=a&&a,onChange:i,caller:$}),[T,P]=(0,Y.i)({prop:l,defaultProp:s,onChange:u,caller:$}),j=r.useRef(null),A=!y||g||!!y.closest("form"),[O,I]=r.useState(new Set),L=Array.from(O).map(e=>e.props.value).join(";");return(0,C.jsx)(R,{...w,children:(0,C.jsxs)(eo,{required:v,scope:t,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:E,valueNodeHasChildren:M,onValueNodeHasChildrenChange:S,contentId:(0,h.B)(),value:T,onValueChange:P,open:D,onOpenChange:N,dir:k,triggerPointerDownPosRef:j,disabled:m,children:[(0,C.jsx)(Q.Provider,{scope:t,children:(0,C.jsx)(ei,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{I(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{I(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),A?(0,C.jsxs)(eV,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:p,value:T,onChange:e=>P(e.target.value),disabled:m,form:g,children:[void 0===T?(0,C.jsx)("option",{value:""}):null,Array.from(O)]},L):null]})})};es.displayName=$;var eu="SelectTrigger",ed=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:o=!1,...a}=e,l=er(n),u=ea(eu,n),d=u.disabled||o,c=(0,s.s)(t,u.onTriggerChange),f=J(n),p=r.useRef("touch"),[m,h,v]=eZ(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===u.value),r=e$(t,e,n);void 0!==r&&u.onValueChange(r.value)}),g=e=>{d||(u.onOpenChange(!0),v()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,C.jsx)(P,{asChild:!0,...l,children:(0,C.jsx)(y.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":eX(u.value)?"":void 0,...a,ref:c,onClick:i(a.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&g(e)}),onPointerDown:i(a.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())}),onKeyDown:i(a.onKeyDown,e=>{let t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),(!t||" "!==e.key)&&X.includes(e.key)&&(g(),e.preventDefault())})})})});ed.displayName=eu;var ec="SelectValue",ef=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,u=ea(ec,n),{onValueNodeHasChildrenChange:d}=u,c=void 0!==a,f=(0,s.s)(t,u.onValueNodeChange);return(0,x.N)(()=>{d(c)},[d,c]),(0,C.jsx)(y.sG.span,{...l,ref:f,style:{pointerEvents:"none"},children:eX(u.value)?(0,C.jsx)(C.Fragment,{children:i}):a})});ef.displayName=ec;var ep=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,C.jsx)(y.sG.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ep.displayName="SelectIcon";var em=e=>(0,C.jsx)(H.Z,{asChild:!0,...e});em.displayName="SelectPortal";var eh="SelectContent",ev=r.forwardRef((e,t)=>{let n=ea(eh,e.__scopeSelect),[a,i]=r.useState();return((0,x.N)(()=>{i(new DocumentFragment)},[]),n.open)?(0,C.jsx)(eb,{...e,ref:t}):a?o.createPortal((0,C.jsx)(eg,{scope:e.__scopeSelect,children:(0,C.jsx)(Q.Slot,{scope:e.__scopeSelect,children:(0,C.jsx)("div",{children:e.children})})}),a):null});ev.displayName=eh;var[eg,ew]=et(eh),ey=(0,G.TL)("SelectContent.RemoveScroll"),eb=r.forwardRef((e,t)=>{let{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:l,onPointerDownOutside:u,side:d,sideOffset:h,align:v,alignOffset:g,arrowPadding:w,collisionBoundary:y,collisionPadding:b,sticky:x,hideWhenDetached:E,avoidCollisions:M,...S}=e,k=ea(eh,n),[D,N]=r.useState(null),[R,T]=r.useState(null),P=(0,s.s)(t,e=>N(e)),[j,A]=r.useState(null),[O,I]=r.useState(null),L=J(n),[_,F]=r.useState(!1),W=r.useRef(!1);r.useEffect(()=>{if(D)return(0,q.Eq)(D)},[D]),r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:p()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:p()),f++,()=>{1===f&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
1=>e.remove()),f--}},[]);let U=r.useCallback(e=>{let[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&R&&(R.scrollTop=0),n===r&&R&&(R.scrollTop=R.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[L,R]),B=r.useCallback(()=>U([j,D]),[U,j,D]);r.useEffect(()=>{_&&B()},[_,B]);let{onOpenChange:H,triggerPointerDownPosRef:G}=k;r.useEffect(()=>{if(D){let e={x:0,y:0},t=t=>{var n,r,o,a;e={x:Math.abs(Math.round(t.pageX)-(null!=(o=null==(n=G.current)?void 0:n.x)?o:0)),y:Math.abs(Math.round(t.pageY)-(null!=(a=null==(r=G.current)?void 0:r.y)?a:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():D.contains(n.target)||H(!1),document.removeEventListener("pointermove",t),G.current=null};return null!==G.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[D,H,G]),r.useEffect(()=>{let e=()=>H(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[H]);let[Y,z]=eZ(e=>{let t=L().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=e$(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),K=r.useCallback((e,t,n)=>{let r=!W.current&&!n;(void 0!==k.value&&k.value===t||r)&&(A(e),r&&(W.current=!0))},[k.value]),X=r.useCallback(()=>null==D?void 0:D.focus(),[D]),Z=r.useCallback((e,t,n)=>{let r=!W.current&&!n;(void 0!==k.value&&k.value===t||r)&&I(e)},[k.value]),$="popper"===o?eE:ex,Q=$===eE?{side:d,sideOffset:h,align:v,alignOffset:g,arrowPadding:w,collisionBoundary:y,collisionPadding:b,sticky:x,hideWhenDetached:E,avoidCollisions:M}:{};return(0,C.jsx)(eg,{scope:n,content:D,viewport:R,onViewportChange:T,itemRefCallback:K,selectedItem:j,onItemLeave:X,itemTextRefCallback:Z,focusSelectedItem:B,selectedItemText:O,position:o,isPositioned:_,searchRef:Y,children:(0,C.jsx)(V.A,{as:ey,allowPinchZoom:!0,children:(0,C.jsx)(m.n,{asChild:!0,trapped:k.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:i(a,e=>{var t;null==(t=k.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,C.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:(0,C.jsx)($,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:e=>e.preventDefault(),...S,...Q,onPlaced:()=>F(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:i(S.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>U(t)),e.preventDefault()}})})})})})})});eb.displayName="SelectContentImpl";var ex=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:o,...i}=e,l=ea(eh,n),u=ew(eh,n),[d,c]=r.useState(null),[f,p]=r.useState(null),m=(0,s.s)(t,e=>p(e)),h=J(n),v=r.useRef(!1),g=r.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:E,focusSelectedItem:M}=u,S=r.useCallback(()=>{if(l.trigger&&l.valueNode&&d&&f&&w&&b&&E){let e=l.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),r=E.getBoundingClientRect();if("rtl"!==l.dir){let o=r.left-t.left,i=n.left-o,l=e.left-i,s=e.width+l,u=Math.max(s,t.width),c=window.innerWidth-10,f=(0,a.q)(i,[10,Math.max(10,c-u)]);d.style.minWidth=s+"px",d.style.left=f+"px"}else{let o=t.right-r.right,i=window.innerWidth-n.right-o,l=window.innerWidth-e.right-i,s=e.width+l,u=Math.max(s,t.width),c=window.innerWidth-10,f=(0,a.q)(i,[10,Math.max(10,c-u)]);d.style.minWidth=s+"px",d.style.right=f+"px"}let i=h(),s=window.innerHeight-20,u=w.scrollHeight,c=window.getComputedStyle(f),p=parseInt(c.borderTopWidth,10),m=parseInt(c.paddingTop,10),g=parseInt(c.borderBottomWidth,10),y=p+m+u+parseInt(c.paddingBottom,10)+g,x=Math.min(5*b.offsetHeight,y),C=window.getComputedStyle(w),M=parseInt(C.paddingTop,10),S=parseInt(C.paddingBottom,10),k=e.top+e.height/2-10,D=b.offsetHeight/2,N=p+m+(b.offsetTop+D);if(N<=k){let e=i.length>0&&b===i[i.length-1].ref.current;d.style.bottom="0px";let t=Math.max(s-k,D+(e?S:0)+(f.clientHeight-w.offsetTop-w.offsetHeight)+g);d.style.height=N+t+"px"}else{let e=i.length>0&&b===i[0].ref.current;d.style.top="0px";let t=Math.max(k,p+w.offsetTop+(e?M:0)+D);d.style.height=t+(y-N)+"px",w.scrollTop=N-k+w.offsetTop}d.style.margin="".concat(10,"px 0"),d.style.minHeight=x+"px",d.style.maxHeight=s+"px",null==o||o(),requestAnimationFrame(()=>v.current=!0)}},[h,l.trigger,l.valueNode,d,f,w,b,E,l.dir,o]);(0,x.N)(()=>S(),[S]);let[k,D]=r.useState();(0,x.N)(()=>{f&&D(window.getComputedStyle(f).zIndex)},[f]);let N=r.useCallback(e=>{e&&!0===g.current&&(S(),null==M||M(),g.current=!1)},[S,M]);return(0,C.jsx)(eC,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:v,onScrollButtonChange:N,children:(0,C.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:(0,C.jsx)(y.sG.div,{...i,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});ex.displayName="SelectItemAlignedPosition";var eE=r.forwardRef((e,t)=>
1{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...a}=e,i=er(n);return(0,C.jsx)(I,{...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)"}})});eE.displayName="SelectPopperPosition";var[eC,eM]=et(eh,{}),eS="SelectViewport",ek=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:o,...a}=e,l=ew(eS,n),u=eM(eS,n),d=(0,s.s)(t,l.onViewportChange),c=r.useRef(0);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,C.jsx)(Q.Slot,{scope:n,children:(0,C.jsx)(y.sG.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:i(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;if((null==r?void 0:r.current)&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let a=o+e,i=Math.min(r,a),l=a-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});ek.displayName=eS;var eD="SelectGroup",[eN,eR]=et(eD),eT=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,h.B)();return(0,C.jsx)(eN,{scope:n,id:o,children:(0,C.jsx)(y.sG.div,{role:"group","aria-labelledby":o,...r,ref:t})})});eT.displayName=eD;var eP="SelectLabel",ej=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=eR(eP,n);return(0,C.jsx)(y.sG.div,{id:o.id,...r,ref:t})});ej.displayName=eP;var eA="SelectItem",[eO,eI]=et(eA),eL=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:o,disabled:a=!1,textValue:l,...u}=e,d=ea(eA,n),c=ew(eA,n),f=d.value===o,[p,m]=r.useState(null!=l?l:""),[v,g]=r.useState(!1),w=(0,s.s)(t,e=>{var t;return null==(t=c.itemRefCallback)?void 0:t.call(c,e,o,a)}),b=(0,h.B)(),x=r.useRef("touch"),E=()=>{a||(d.onValueChange(o),d.onOpenChange(!1))};if(""===o)throw 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(0,C.jsx)(eO,{scope:n,value:o,disabled:a,textId:b,isSelected:f,onItemTextChange:r.useCallback(e=>{m(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,C.jsx)(Q.ItemSlot,{scope:n,value:o,disabled:a,textValue:p,children:(0,C.jsx)(y.sG.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...u,ref:w,onFocus:i(u.onFocus,()=>g(!0)),onBlur:i(u.onBlur,()=>g(!1)),onClick:i(u.onClick,()=>{"mouse"!==x.current&&E()}),onPointerUp:i(u.onPointerUp,()=>{"mouse"===x.current&&E()}),onPointerDown:i(u.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:i(u.onPointerMove,e=>{if(x.current=e.pointerType,a){var t;null==(t=c.onItemLeave)||t.call(c)}else"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:i(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=c.onItemLeave)||t.call(c)}}),onKeyDown:i(u.onKeyDown,e=>{var t;((null==(t=c.searchRef)?void 0:t.current)===""||" "!==e.key)&&(Z.includes(e.key)&&E()," "===e.key&&e.preventDefault())})})})})});eL.displayName=eA;var e_="SelectItemText",eF=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:a,style:i,...l}=e,u=ea(e_,n),d=ew(e_,n),c=eI(e_,n),f=el(e_,n),[p,m]=r.useState(null),h=(0,s.s)(t,e=>m(e),c.onItemTextChange,e=>{var t;return null==(t=d.itemTextRefCallback)?void 0:t.call(d,e,c.value,c.disabled)}),v=null==p?void 0:p.textContent,g=r.useMemo(()=>(0,C.jsx)("option",{value:c.value,disabled:c.disabled,children:v},c.value),[c.disabled,c.value,v]),{onNativeOptionAdd:w,onNativeOptionRemove:b}=f;return(0,x.N)(()=>(w(g),()=>b(g)),[w,b,g]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(y.sG.span,{id:c.textId,...l,ref:h}),c.isSelected&&u.valueNode&&!u.valueNodeHasChildren?o.createPortal(l.children,u.valueNode):null]})});eF.displayName=e_;var eW="SelectItemIndicator",eU=r.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e;return eI(eW,n).isSelected?(0,C.jsx)(y.sG.span,{"aria-hidden":!0,...r,ref:t}):null});eU.displayName=eW;var eB="SelectScrollUpButton",eH=r.forwardRef((e,t)=>{let n=ew(eB,e.__scopeSelect),o=eM(eB,e.__scopeSelect),[a,i]=r.useState(!1),l=(0,s.s)(t,o.onScrollButtonChange);return(0,x.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){i(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?(0,C.jsx)(ez,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eH.displayName=eB;var eG="SelectScrollDownButton",eY=r.forwardRef((e,t)=>{let n=ew(eG,e.__scopeSelect),o=eM(eG,e.__scopeSelect),[a,i]=r.useState(!1),l=(0,s.s)(t,o.onScrollButtonChange);return(0,x.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?(0,C.jsx)(ez,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eY.displayName=eG;var ez=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:o,...a}=e,l=ew("SelectScrollButton",n),s=r.useRef(null),u=J(n),d=r.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return r.useEffect(()=>()=>d(),[d]),(0,x.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,C.jsx)(y.sG.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:i(a.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(o,50))}),onPointerMove:i(a.onPointerMove,()=>{var e;null==(e=l.onItemLeave)||e.call(l),null===s.current&&(s.current=window.setInterval(o,50))}),onPointerLeave:i(a.onPointerLeave,()=>{d()})})}),eK=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,C.jsx)(y.sG.div,{"aria-hidden":!0,...r,ref:t})});eK.displayName="SelectSeparator";var eq="SelectArrow";r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=er(n),a=ea(eq,n),i=ew(eq,n);return a.open&&"popper"===i.position?(0,C.jsx)(F,{...o,...r,ref:t}):null}).displayName=eq;var eV=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:o,...a}=e,i=r.useRef(null),l=(0,s.s)(t,i),u=(0,z.Z)(o);return r.useEffect(()=>{let e=i.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==o&&t){let n=new Event("change",{bubbles:!0});t.call(e,o),e.dispatchEvent(n)}},[u,o]),(0,C.jsx)(y.sG.select,{...a,style:{...K,...a.style},ref:l,defaultValue:o})});function eX(e){return""===e||void 0===e}function eZ(e){let t=(0,b.c)(e),n=r.useRef(""),o=r.useRef(0),a=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),i=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,a,i]}function e$(e,t,n){var r,o;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,l=(r=e,o=Math.max(i,0),r.map((e,t)=>r[(o+t)%r.length]));1===a.length&&(l=l.filter(e=>e!==n));let s=l.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return s!==n?s:void 0}eV.displayName="SelectBubbleInput";var eQ=es,eJ=ed,e0=ef,e1=ep,e2=em,e5=ev,e4=ek,e6=eT,e8=ej,e9=eL,e7=eF,e3=eU,te=eH,tt=eY,tn=eK},53317:(e,t,n)=>{n.d(t,{D:()=>o});var r=n(92118);function o(e,t){let n=(0,r.a)(e,null==t?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}},54964:(e,t,n)=>{n.d(t,{h:()=>l});var r=n(39781),o=n(4168),a=n(82192),i=n(92118);function l(e,t){var n,l,s,u,d,c,f,p;let m=(0,i.a)(e,null==t?void 0:t.in),h=m.getFullYear(),v=(0,r.q)(),g=null!=(p=null!=(f=null!=(c=null!=(d=null==t?void 0:t.firstWeekContainsDate)?d:null==t||null==(l=t.locale)||null==(n=l.options)?void 0:n.firstWeekContainsDate)?c:v.firstWeekContainsDate)?f:null==(u=v.locale)||null==(s=u.options)?void 0:s.firstWeekContainsDate)?p:1,w=(0,o.w)((null==t?void 0:t.in)||e,0);w.setFullYear(h+1,0,g),w.setHours(0,0,0,0);let y=(0,a.k)(w,t),b=(0,o.w)((null==t?void 0:t.in)||e,0);b.setFullYear(h,0,g),b.setHours(0,0,0,0);let x=(0,a.k)(b,t);return+m>=+y?h+1:+m>=+x?h:h-1}},57268:(e,t,n)=>{n.d(t,{b:()=>u});var r=n(12115),o=n(97602),a=n(95155),i="horizontal",l=["horizontal","vertical"],s=r.forwardRef((e,t)=>
1{var n;let{decorative:r,orientation:s=i,...u}=e,d=(n=s,l.includes(n))?s:i;return(0,a.jsx)(o.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...u,ref:t})});s.displayName="Separator";var u=s},58146:(e,t,n)=>{n.d(t,{UE:()=>ek,ll:()=>eb,rD:()=>eN,UU:()=>eC,jD:()=>eS,ER:()=>eD,cY:()=>ex,BN:()=>eE,Ej:()=>eM});let r=["top","right","bottom","left"],o=Math.min,a=Math.max,i=Math.round,l=Math.floor,s=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function c(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}let v=new Set(["top","bottom"]);function g(e){return v.has(f(e))?"y":"x"}function w(e){return e.replace(/start|end/g,e=>d[e])}let y=["left","right"],b=["right","left"],x=["top","bottom"],E=["bottom","top"];function C(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function M(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function S(e){let{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 k(e,t,n){let r,{reference:o,floating:a}=e,i=g(t),l=m(g(t)),s=h(l),u=f(t),d="y"===i,c=o.x+o.width/2-a.width/2,v=o.y+o.height/2-a.height/2,w=o[s]/2-a[s]/2;switch(u){case"top":r={x:c,y:o.y-a.height};break;case"bottom":r={x:c,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:v};break;case"left":r={x:o.x-a.width,y:v};break;default:r={x:o.x,y:o.y}}switch(p(t)){case"start":r[l]-=w*(n&&d?-1:1);break;case"end":r[l]+=w*(n&&d?-1:1)}return r}let D=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await (null==i.isRTL?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=k(u,r,s),f=r,p={},m=0;for(let n=0;n<l.length;n++){let{name:a,fn:h}=l[n],{x:v,y:g,data:w,reset:y}=await h({x:d,y:c,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});d=null!=v?v:d,c=null!=g?g:c,p={...p,[a]:{...p[a],...w}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(u=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):y.rects),{x:d,y:c}=k(u,f,s)),n=-1)}return{x:d,y:c,placement:f,strategy:o,middlewareData:p}};async function N(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=c(t,e),h=M(m),v=l[p?"floating"===f?"reference":"floating":f],g=S(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(v)))||n?v:v.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:s})),w="floating"===f?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),b=await (null==a.isElement?void 0:a.isElement(y))&&await (null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},x=S(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:y,strategy:s}):w);return{top:(g.top-x.top+h.top)/b.y,bottom:(x.bottom-g.bottom+h.bottom)/b.y,left:(g.left-x.left+h.left)/b.x,right:(x.right-g.right+h.right)/b.x}}function R(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function T(e){return r.some(t=>e[t]>=0)}let P=new Set(["left","top"]);async function j(e,t){let{placement:n,platform:r,elements:o}=e,a=await (null==r.isRTL?void 0:r.isRTL(o.floating)),i=f(n),l=p(n),s="y"===g(n),u=P.has(i)?-1:1,d=a&&s?-1:1,m=c(t,e),{mainAxis:h,crossAxis:v,alignmentAxis:w}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&"number"==typeof w&&(v="end"===l?-1*w:w),s?{x:v*d,y:h*u}:{x:h*u,y:v*d}}function A(){return"undefined"!=typeof window}function O(e){return _(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function L(e){var t;return null==(t=(_(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function _(e){return!!A()&&(e instanceof Node||e instanceof I(e).Node)}function F(e){return!!A()&&(e instanceof Element||e instanceof I(e).Element)}function W(e){return!!A()&&(e instanceof HTMLElement||e instanceof I(e).HTMLElement)}function U(e){return!!A()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof I(e).ShadowRoot)}let B=new Set(["inline","contents"]);function H(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);
1return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!B.has(o)}let G=new Set(["table","td","th"]),Y=[":popover-open",":modal"];function z(e){return Y.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let K=["transform","translate","scale","rotate","perspective"],q=["transform","translate","scale","rotate","perspective","filter"],V=["paint","layout","strict","content"];function X(e){let t=Z(),n=F(e)?J(e):e;return K.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||q.some(e=>(n.willChange||"").includes(e))||V.some(e=>(n.contain||"").includes(e))}function Z(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let $=new Set(["html","body","#document"]);function Q(e){return $.has(O(e))}function J(e){return I(e).getComputedStyle(e)}function ee(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if("html"===O(e))return e;let t=e.assignedSlot||e.parentNode||U(e)&&e.host||L(e);return U(t)?t.host:t}function en(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=et(t);return Q(n)?t.ownerDocument?t.ownerDocument.body:t.body:W(n)&&H(n)?n:e(n)}(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=I(o);if(a){let e=er(i);return t.concat(i,i.visualViewport||[],H(o)?o:[],e&&n?en(e):[])}return t.concat(o,en(o,[],n))}function er(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eo(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=W(e),a=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=i(n)!==a||i(r)!==l;return s&&(n=a,r=l),{width:n,height:r,$:s}}function ea(e){return F(e)?e:e.contextElement}function ei(e){let t=ea(e);if(!W(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:a}=eo(t),l=(a?i(n.width):n.width)/r,u=(a?i(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}let el=s(0);function es(e){let t=I(e);return Z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function eu(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),i=ea(e),l=s(1);t&&(r?F(r)&&(l=ei(r)):l=ei(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===I(i))&&o)?es(i):s(0),d=(a.left+u.x)/l.x,c=(a.top+u.y)/l.y,f=a.width/l.x,p=a.height/l.y;if(i){let e=I(i),t=r&&F(r)?I(r):r,n=e,o=er(n);for(;o&&r&&t!==n;){let e=ei(o),t=o.getBoundingClientRect(),r=J(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;d*=e.x,c*=e.y,f*=e.x,p*=e.y,d+=a,c+=i,o=er(n=I(o))}}return S({width:f,height:p,x:d,y:c})}function ed(e,t){let n=ee(e).scrollLeft;return t?t.left+n:eu(L(e)).left+n}function ec(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ed(e,n),y:n.top+t.scrollTop}}let ef=new Set(["absolute","fixed"]);function ep(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=I(e),r=L(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;let e=Z();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}let u=ed(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else u<=25&&(a+=u);return{width:a,height:i,x:l,y:s}}(e,n);else if("document"===t)r=function(e){let t=L(e),n=ee(e),r=e.ownerDocument.body,o=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+ed(e),s=-n.scrollTop;return"rtl"===J(r).direction&&(l+=a(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}(L(e));else if(F(t))r=function(e,t){let n=eu(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=W(e)?ei(e):s(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y;return{width:i,height:l,x:o*a.x,y:r*a.y}}(t,n);else{let n=es(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return S(r)}function em(e){return"static"===J(e).position}function eh(e,t){if(!W(e)||"fixed"===J(e).position)return null;if(t)return t(e);let n=e.offsetParent;return L(e)===n&&(n=n.ownerDocument.body),n}function ev(e,t){var n;let r=I(e);if(z(e))return r;if(!W(e)){let t=et(e);for(;t&&!Q(t);){if(F(t)&&!em(t))return t;t=et(t)}return r}let o=eh(e,t);for(;o&&(n=o,G.has(O(n)))&&em(o);)o=eh(o,t);return o&&Q(o)&&em(o)&&!X(o)?r:o||function(e){let t=et(e);for(;W(t)&&!Q(t);){if(X(t))return t;if(z(t))break;t=et(t)}return null}(e)||r}let eg=async function(e){let t=this.getOffsetParent||ev,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=W(t),o=L(t),a="fixed"===n,i=eu(e,!0,a,t),l={scrollLeft:0,scrollTop:0},u=s(0);if(r||!r&&!a)if(("body"!==O(t)||H(o))&&(l=ee(t)),r){let e=eu(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ed(o));a&&!r&&o&&(u.x=ed(o));let d=!o||r||a?s(0):ec(o,l);return{x:i.left+l.scrollLeft-u.x-d.x,y:i.top+l.scrollTop-u.y-d.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ew={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,a="fixed"===o,i=L(r),l=!!t&&z(t.floating);if(r===i||l&&a)return n;let u={scrollLeft:0,scrollTop:0},d=s(1),c=s(0),f=W(r);
1if((f||!f&&!a)&&(("body"!==O(r)||H(i))&&(u=ee(r)),W(r))){let e=eu(r);d=ei(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let p=!i||f||a?s(0):ec(i,u);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+c.x+p.x,y:n.y*d.y-u.scrollTop*d.y+c.y+p.y}},getDocumentElement:L,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,l=[..."clippingAncestors"===n?z(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=en(e,[],!1).filter(e=>F(e)&&"body"!==O(e)),o=null,a="fixed"===J(e).position,i=a?et(e):e;for(;F(i)&&!Q(i);){let t=J(i),n=X(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&!!o&&ef.has(o.position)||H(i)&&!n&&function e(t,n){let r=et(t);return!(r===n||!F(r)||Q(r))&&("fixed"===J(r).position||e(r,n))}(e,i))?r=r.filter(e=>e!==i):o=t,i=et(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=l[0],u=l.reduce((e,n)=>{let r=ep(t,n,i);return e.top=a(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=a(r.left,e.left),e},ep(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ev,getElementRects:eg,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eo(e);return{width:t,height:n}},getScale:ei,isElement:F,isRTL:function(e){return"rtl"===J(e).direction}};function ey(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eb(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:d="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=ea(e),m=s||u?[...p?en(p):[],...en(t)]:[];m.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let h=p&&c?function(e,t){let n,r=null,i=L(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(d,c){void 0===d&&(d=!1),void 0===c&&(c=1),s();let f=e.getBoundingClientRect(),{left:p,top:m,width:h,height:v}=f;if(d||t(),!h||!v)return;let g=l(m),w=l(i.clientWidth-(p+h)),y={rootMargin:-g+"px "+-w+"px "+-l(i.clientHeight-(m+v))+"px "+-l(p)+"px",threshold:a(0,o(1,c))||1},b=!0;function x(t){let r=t[0].intersectionRatio;if(r!==c){if(!b)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||ey(f,e.getBoundingClientRect())||u(),b=!1}try{r=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(x,y)}r.observe(e)}(!0),s}(p,n):null,v=-1,g=null;d&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!f&&g.observe(p),g.observe(t));let w=f?eu(e):null;return f&&function t(){let r=eu(e);w&&!ey(w,r)&&n(),w=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(i)}}let ex=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:a,placement:i,middlewareData:l}=t,s=await j(t,e);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:i}}}}},eE=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=c(e,t),p={x:n,y:r},h=await N(t,d),v=g(f(i)),w=m(v),y=p[w],b=p[v];if(l){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",n=y+h[e],r=y-h[t];y=a(n,o(y,r))}if(s){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=b+h[e],r=b-h[t];b=a(n,o(b,r))}let x=u.fn({...t,[w]:y,[v]:b});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[w]:l,[v]:s}}}}}},eC=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,a,i;let{placement:l,middlewareData:s,rects:u,initialPlacement:d,platform:v,elements:M}=t,{mainAxis:S=!0,crossAxis:k=!0,fallbackPlacements:D,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:P=!0,...j}=c(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let A=f(l),O=g(d),I=f(d)===d,L=await (null==v.isRTL?void 0:v.isRTL(M.floating)),_=D||(I||!P?[C(d)]:function(e){let t=C(e);return[w(e),t,w(t)]}(d)),F="none"!==T;!D&&F&&_.push(...function(e,t,n,r){let o=p(e),a=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:y;return t?y:b;case"left":case"right":return t?x:E;default:return[]}}(f(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(w)))),a}(d,P,T,L));let W=[d,..._],U=await N(t,j),B=[],H=(null==(r=s.flip)?void 0:r.overflows)||[];if(S&&B.push(U[A]),k){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),o=m(g(e)),a=h(o),i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=C(i)),[i,C(i)]}(l,u,L);B.push(U[e[0]],U[e[1]])}if(H=[...H,{placement:l,overflows:B}],!B.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=W[e];if(t&&("alignment"!==k||O===g(t)||H.every(e=>g(e.placement)!==O||e.overflows[0]>0)))return{data:{index:e,overflows:H},reset:{placement:t}};let n=null==(a=H.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(R){case"bestFit":{let e=null==(i=H.filter(e=>{if(F){let t=g(e.placement);return t===O||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=d}if(l!==n)return{reset:{placement:n}}}return{}}}},eM=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let i,l,{placement:s,rects:u,platform:d,elements:m}=t,{apply:h=()=>{},...v}=c(e,t),w=await N(t,v),y=f(s),b=p(s),x="y"===g(s),{width:E,height:C}=u.floating;"top"===y||"bottom"===y?(i=y,l=b===(await (null==d.isRTL?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(l=y,i="end"===b?"top":"bottom");let M=C-w.top-w.bottom,S=E-w.left-w.right,k=o(C-w[i],M),D=o(E-w[l],S),R=!t.middlewareData.shift,T=k,P=D;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(P=S),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(T=M),R&&!b){let e=a(w.left,0),t=a(w.right,0),n=a(w.top,0),r=a(w.bottom,0);x?P=E-2*(0!==e||0!==t?e+t:a(w.left,w.right)):T=C-2*(0!==n||0!==r?n+r:a(w.top,w.bottom))}await h({...t,availableWidth:P,availableHeight:T});let j=await d.getDimensions(m.floating);return E!==j.width||C!==j.height?{reset:{rects:!0}}:{}}}},eS=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=c(e,t);switch(r){case"referenceHidden":{let e=R(await N(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:T(e)}}}case"escaped":{let e=R(await N(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:T(e)}}}default:return{}}}}},ek=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:l,platform:s,elements:u,middlewareData:d}=t,{element:f,padding:v=0}=c(e,t)||{};if(null==f)return{};let w=M(v),y={x:n,y:r},b=m(g(i)),x=h(b),E=await s.getDimensions(f),C="y"===b,S=C?"clientHeight":"clientWidth",k=l.reference[x]+l.reference[b]-y[b]-l.floating[x],D=y[b]-l.reference[b],N=await (null==s.getOffsetParent?void 0:s.getOffsetParent(f)),R=N?N[S]:0;R&&await (null==s.isElement?void 0:s.isElement(N))||(R=u.floating[S]||l.floating[x]);let T=R/2-E[x]/2-1,P=o(w[C?"top":"left"],T),j=o(w[C?"bottom":"right"],T),A=R-E[x]-j,O=R/2-E[x]/2+(k/2-D/2),I=a(P,o(O,A)),L=!d.arrow&&null!=p(i)&&O!==I&&l.reference[x]/2-(O<P?P:j)-E[x]/2<0,_=L?O<P?O-P:O-A:0;return{[b]:y[b]+_,data:{[b]:I,centerOffset:O-I-_,...L&&{alignmentOffset:_}},reset:L}}}),eD=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=c(e,t),d={x:n,y:r},p=g(o),h=m(p),v=d[h],w=d[p],y=c(l,t),b="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){let e="y"===h?"height":"width",t=a.reference[h]-a.floating[e]+b.mainAxis,n=a.reference[h]+a.reference[e]-b.mainAxis;v<t?v=t:v>n&&(v=n)}if(u){var x,E;let e="y"===h?"width":"height",t=P.has(f(o)),n=a.reference[p]-a.floating[e]+(t&&(null==(x=i.offset)?void 0:x[p])||0)+(t?0:b.crossAxis),r=a.reference[p]+a.reference[e]+(t?0:(null==(E=i.offset)?void 0:E[p])||0)-(t?b.crossAxis:0);w<n?w=n:w>r&&(w=r)}return{[h]:v,[p]:w}}}},eN=(e,t,n)=>{let r=new Map,o={platform:ew,...n},a={...o.platform,_c:r};return D(e,t,{...o,platform:a})}},59584:(e,t,n)=>{n.d(t,{U:()=>a});var r=n(12115),o=n(70222);function a(e,t=globalThis?.document){let n=(0,o.c)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}},62898:(e,t,n)=>{n.d(t,{N:()=>u});var r=n(9180),o=n(82192),a=n(39781),i=n(4168),l=n(54964),s=n(92118);function u(e,t){let n=(0,s.a)(e,null==t?void 0:t.in);return Math.round(((0,o.k)(n,t)-function(e,t){var n,r,s,u,d,c,f,p;let m=(0,a.q)(),h=null!=(p=null!=(f=null!=(c=null!=(d=null==t?void 0:t.firstWeekContainsDate)?d:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?c:m.firstWeekContainsDate)?f:null==(u=m.locale)||null==(s=u.options)?void 0:s.firstWeekContainsDate)?p:1,v=(0,l.h)(e,t),g=(0,i.w)((null==t?void 0:t.in)||e,0);return g.setFullYear(v,0,h),g.setHours(0,0,0,0),(0,o.k)(g,t)}(n,t))/r.my)+1}}
1,65229:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},66218:(e,t,n)=>{n.d(t,{jH:()=>a});var r=n(12115);n(95155);var o=r.createContext(void 0);function a(e){let t=r.useContext(o);return e||t||"ltr"}},68946:(e,t,n)=>{n.d(t,{B:()=>s});var r,o=n(12115),a=n(4129),i=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),l=0;function s(e){let[t,n]=o.useState(i());return(0,a.N)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},69666:(e,t,n)=>{n.d(t,{n:()=>c});var r=n(12115),o=n(94446),a=n(97602),i=n(70222),l=n(95155),s="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},c=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:c=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...w}=e,[y,b]=r.useState(null),x=(0,i.c)(v),E=(0,i.c)(g),C=r.useRef(null),M=(0,o.s)(t,e=>b(e)),S=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(c){let e=function(e){if(S.paused||!y)return;let t=e.target;y.contains(t)?C.current=t:m(C.current,{select:!0})},t=function(e){if(S.paused||!y)return;let t=e.relatedTarget;null!==t&&(y.contains(t)||m(C.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(y)});return y&&n.observe(y,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[c,y,S.paused]),r.useEffect(()=>{if(y){h.add(S);let e=document.activeElement;if(!y.contains(e)){let t=new CustomEvent(s,d);y.addEventListener(s,x),y.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(f(y).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(y))}return()=>{y.removeEventListener(s,x),setTimeout(()=>{let t=new CustomEvent(u,d);y.addEventListener(u,E),y.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),y.removeEventListener(u,E),h.remove(S)},0)}}},[y,x,E,S]);let k=r.useCallback(e=>{if(!n&&!c||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,a]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&a?e.shiftKey||r!==a?e.shiftKey&&r===o&&(e.preventDefault(),n&&m(a,{select:!0})):(e.preventDefault(),n&&m(o,{select:!0})):r===t&&e.preventDefault()}},[n,c,S.paused]);return(0,l.jsx)(a.sG.div,{tabIndex:-1,...w,ref:M,onKeyDown:k})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}c.displayName="FocusScope";var h=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=v(e,t)).unshift(t)},remove(t){var n;null==(n=(e=v(e,t))[0])||n.resume()}}}();function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},70222:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(12115);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},70858:(e,t,n)=>{n.d(t,{UC:()=>el,Y9:()=>ea,q7:()=>eo,bL:()=>er,l9:()=>ei});var r=n(12115),o=n(3468),a=n(49972),i=n(94446),l=n(92556),s=n(23558),u=n(97602),d=n(4129),c=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,a]=r.useState(),i=r.useRef(null),l=r.useRef(e),s=r.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>
1{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=f(i.current);s.current="mounted"===u?e:"none"},[u]),(0,d.N)(()=>{let t=i.current,n=l.current;if(n!==e){let r=s.current,o=f(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),l.current=e}},[e,c]),(0,d.N)(()=>{if(o){var e;let t,n=null!=(e=o.ownerDocument.defaultView)?e:window,r=e=>{let r=f(i.current).includes(e.animationName);if(e.target===o&&r&&(c("ANIMATION_END"),!l.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(s.current=f(i.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}c("ANIMATION_END")},[o,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:r.useCallback(e=>{i.current=e?getComputedStyle(e):null,a(e)},[])}}(t),a="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),l=(0,i.s)(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||o.isPresent?r.cloneElement(a,{ref:l}):null};function f(e){return(null==e?void 0:e.animationName)||"none"}c.displayName="Presence";var p=n(68946),m=n(95155),h="Collapsible",[v,g]=(0,o.A)(h),[w,y]=v(h),b=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:a,disabled:i,onOpenChange:l,...d}=e,[c,f]=(0,s.i)({prop:o,defaultProp:null!=a&&a,onChange:l,caller:h});return(0,m.jsx)(w,{scope:n,disabled:i,contentId:(0,p.B)(),open:c,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),children:(0,m.jsx)(u.sG.div,{"data-state":k(c),"data-disabled":i?"":void 0,...d,ref:t})})});b.displayName=h;var x="CollapsibleTrigger",E=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=y(x,n);return(0,m.jsx)(u.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":k(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,l.m)(e.onClick,o.onOpenToggle)})});E.displayName=x;var C="CollapsibleContent",M=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=y(C,e.__scopeCollapsible);return(0,m.jsx)(c,{present:n||o.open,children:e=>{let{present:n}=e;return(0,m.jsx)(S,{...r,ref:t,present:n})}})});M.displayName=C;var S=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:a,...l}=e,s=y(C,n),[c,f]=r.useState(o),p=r.useRef(null),h=(0,i.s)(t,p),v=r.useRef(0),g=v.current,w=r.useRef(0),b=w.current,x=s.open||c,E=r.useRef(x),M=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.N)(()=>{let e=p.current;if(e){M.current=M.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,w.current=t.width,E.current||(e.style.transitionDuration=M.current.transitionDuration,e.style.animationName=M.current.animationName),f(o)}},[s.open,o]),(0,m.jsx)(u.sG.div,{"data-state":k(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!x,...l,ref:h,style:{"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":b?"".concat(b,"px"):void 0,...e.style},children:x&&a})});function k(e){return e?"open":"closed"}var D=n(66218),N="Accordion",R=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[T,P,j]=(0,a.N)(N),[A,O]=(0,o.A)(N,[j,g]),I=g(),L=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,m.jsx)(T.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,m.jsx)(H,{...r,ref:t}):(0,m.jsx)(B,{...r,ref:t})})});L.displayName=N;var[_,F]=A(N),[W,U]=A(N,{collapsible:!1}),B=r.forwardRef((e,t)=>
1{let{value:n,defaultValue:o,onValueChange:a=()=>{},collapsible:i=!1,...l}=e,[u,d]=(0,s.i)({prop:n,defaultProp:null!=o?o:"",onChange:a,caller:N});return(0,m.jsx)(_,{scope:e.__scopeAccordion,value:r.useMemo(()=>u?[u]:[],[u]),onItemOpen:d,onItemClose:r.useCallback(()=>i&&d(""),[i,d]),children:(0,m.jsx)(W,{scope:e.__scopeAccordion,collapsible:i,children:(0,m.jsx)(z,{...l,ref:t})})})}),H=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:a=()=>{},...i}=e,[l,u]=(0,s.i)({prop:n,defaultProp:null!=o?o:[],onChange:a,caller:N}),d=r.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[u]),c=r.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[u]);return(0,m.jsx)(_,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:c,children:(0,m.jsx)(W,{scope:e.__scopeAccordion,collapsible:!0,children:(0,m.jsx)(z,{...i,ref:t})})})}),[G,Y]=A(N),z=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:o,dir:a,orientation:s="vertical",...d}=e,c=r.useRef(null),f=(0,i.s)(c,t),p=P(n),h="ltr"===(0,D.jH)(a),v=(0,l.m)(e.onKeyDown,e=>{var t;if(!R.includes(e.key))return;let n=e.target,r=p().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),o=r.findIndex(e=>e.ref.current===n),a=r.length;if(-1===o)return;e.preventDefault();let i=o,l=a-1,u=()=>{(i=o+1)>l&&(i=0)},d=()=>{(i=o-1)<0&&(i=l)};switch(e.key){case"Home":i=0;break;case"End":i=l;break;case"ArrowRight":"horizontal"===s&&(h?u():d());break;case"ArrowDown":"vertical"===s&&u();break;case"ArrowLeft":"horizontal"===s&&(h?d():u());break;case"ArrowUp":"vertical"===s&&d()}null==(t=r[i%a].ref.current)||t.focus()});return(0,m.jsx)(G,{scope:n,disabled:o,direction:a,orientation:s,children:(0,m.jsx)(T.Slot,{scope:n,children:(0,m.jsx)(u.sG.div,{...d,"data-orientation":s,ref:f,onKeyDown:o?void 0:v})})})}),K="AccordionItem",[q,V]=A(K),X=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...o}=e,a=Y(K,n),i=F(K,n),l=I(n),s=(0,p.B)(),u=r&&i.value.includes(r)||!1,d=a.disabled||e.disabled;return(0,m.jsx)(q,{scope:n,open:u,disabled:d,triggerId:s,children:(0,m.jsx)(b,{"data-orientation":a.orientation,"data-state":en(u),...l,...o,ref:t,disabled:d,open:u,onOpenChange:e=>{e?i.onItemOpen(r):i.onItemClose(r)}})})});X.displayName=K;var Z="AccordionHeader",$=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=Y(N,n),a=V(Z,n);return(0,m.jsx)(u.sG.h3,{"data-orientation":o.orientation,"data-state":en(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});$.displayName=Z;var Q="AccordionTrigger",J=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=Y(N,n),a=V(Q,n),i=U(Q,n),l=I(n);return(0,m.jsx)(T.ItemSlot,{scope:n,children:(0,m.jsx)(E,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...r,ref:t})})});J.displayName=Q;var ee="AccordionContent",et=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=Y(N,n),a=V(ee,n),i=I(n);return(0,m.jsx)(M,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function en(e){return e?"open":"closed"}et.displayName=ee;var er=L,eo=X,ea=$,ei=J,el=et},71163:(e,t,n)=>{n.d(t,{GP:()=>P});var r=n(26217),o=n(39781),a=n(2146),i=n(53317),l=n(92118),s=n(76716),u=n(52731),d=n(62898),c=n(54964);function f(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let p={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return f("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):f(n+1,2)},d:(e,t)=>f(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>f(e.getHours()%12||12,t.length),H:(e,t)=>f(e.getHours(),t.length),m:(e,t)=>f(e.getMinutes(),t.length),s:(e,t)=>f(e.getSeconds(),t.length),S(e,t){let n=t.length;
1return f(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},m={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},h={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,r){let o=(0,c.h)(e,r),a=o>0?o:1-o;return"YY"===t?f(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):f(a,t.length)},R:function(e,t){return f((0,u.p)(e),t.length)},u:function(e,t){return f(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return f(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return f(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return f(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let o=(0,d.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,n){let r=(0,s.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):f(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){let r=function(e,t){let n=(0,l.a)(e,void 0);return(0,a.m)(n,(0,i.D)(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return f(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"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return f(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"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return f(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,o=e.getHours();switch(r=12===o?m.noon:0===o?m.midnight:o/12>
1=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,o=e.getHours();switch(r=o>=17?m.evening:o>=12?m.afternoon:o>=4?m.morning:m.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return g(r);case"XXXX":case"XX":return w(r);default:return w(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return g(r);case"xxxx":case"xx":return w(r);default:return w(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+v(r,":");default:return"GMT"+w(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+v(r,":");default:return"GMT"+w(r,":")}},t:function(e,t,n){return f(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return f(+e,t.length)}};function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+f(a,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):w(e,t)}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+f(Math.trunc(n/60),2)+t+f(n%60,2)}let y=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},b=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},x={p:b,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return y(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",y(o,t)).replace("{{time}}",b(a,t))}},E=/^D+$/,C=/^Y+$/,M=["D","DD","YY","YYYY"];var S=n(80011);let k=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N=/^'([^]*?)'?$/,R=/''/g,T=/[a-zA-Z]/;function P(e,t,n){var a,i,s,u,d,c,f,p,m,v,g,w,y,b,P,j,A,O;let I=(0,o.q)(),L=null!=(v=null!=(m=null==n?void 0:n.locale)?m:I.locale)?v:r.c,_=null!=(b=null!=(y=null!=(w=null!=(g=null==n?void 0:n.firstWeekContainsDate)?g:null==n||null==(i=n.locale)||null==(a=i.options)?void 0:a.firstWeekContainsDate)?w:I.firstWeekContainsDate)?y:null==(u=I.locale)||null==(s=u.options)?void 0:s.firstWeekContainsDate)?b:1,F=null!=(O=null!=(A=null!=(j=null!=(P=null==n?void 0:n.weekStartsOn)?P:null==n||null==(c=n.locale)||null==(d=c.options)?void 0:d.weekStartsOn)?j:I.weekStartsOn)?A:null==(p=I.locale)||null==(f=p.options)?void 0:f.weekStartsOn)?O:0,W=(0,l.a)(e,null==n?void 0:n.in);if(!(0,S.$)(W)&&"number"!=typeof W||isNaN(+(0,l.a)(W)))throw RangeError("Invalid time value");let U=t.match(D).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,x[t])(e,L.formatLong):e}).join("").match(k).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(N);return t?t[1].replace(R,"'"):e}(e)};if(h[t])return{isToken:!0,value:e};
1if(t.match(T))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});L.localize.preprocessor&&(U=L.localize.preprocessor(W,U));let B={firstWeekContainsDate:_,weekStartsOn:F,locale:L};return U.map(r=>{if(!r.isToken)return r.value;let o=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&C.test(o)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&E.test(o))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),M.includes(e))throw RangeError(r)}(o,t,String(e)),(0,h[o[0]])(W,o,L.localize,B)}).join("")}},71753:(e,t,n)=>{n.d(t,{UO:()=>h,dK:()=>c,wE:()=>f});var r=n(12115),o=Object.defineProperty,a=Object.defineProperties,i=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=r.createContext({}),f=r.forwardRef((e,t)=>{var n,o,f,h,v,{value:g,onChange:w,maxLength:y,textAlign:b="left",pattern:x,placeholder:E,inputMode:C="numeric",onComplete:M,pushPasswordManagerStrategy:S="increase-width",pasteTransformer:k,containerClassName:D,noScriptCSSFallback:N=m,render:R,children:T}=e,P=((e,t)=>{var n={};for(var r in e)s.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&l)for(var r of l(e))0>t.indexOf(r)&&u.call(e,r)&&(n[r]=e[r]);return n})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[j,A]=r.useState("string"==typeof P.defaultValue?P.defaultValue:""),O=null!=g?g:j,I=function(e){let t=r.useRef();return r.useEffect(()=>{t.current=e}),t.current}(O),L=r.useCallback(e=>{null==w||w(e),A(e)},[w]),_=r.useMemo(()=>x?"string"==typeof x?new RegExp(x):x:null,[x]),F=r.useRef(null),W=r.useRef(null),U=r.useRef({value:O,onChange:L,isIOS:"undefined"!=typeof window&&(null==(o=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:o.call(n,"-webkit-touch-callout","none"))}),B=r.useRef({prev:[null==(f=F.current)?void 0:f.selectionStart,null==(h=F.current)?void 0:h.selectionEnd,null==(v=F.current)?void 0:v.selectionDirection]});r.useImperativeHandle(t,()=>F.current,[]),r.useEffect(()=>{let e=F.current,t=W.current;if(!e||!t)return;function n(){if(document.activeElement!==e){q(null),X(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,o=e.maxLength,a=e.value,i=B.current.prev,l=-1,s=-1,u;if(0!==a.length&&null!==t&&null!==n){let e=t===n,r=t===a.length&&a.length<o;if(e&&!r){if(0===t)l=0,s=1,u="forward";else if(t===o)l=t-1,s=t,u="backward";else if(o>1&&a.length>1){let e=0;if(null!==i[0]&&null!==i[1]){u=t<i[1]?"backward":"forward";let n=i[0]===i[1]&&i[0]<o;"backward"!==u||n||(e=-1)}l=e+t,s=e+t+1}}-1!==l&&-1!==s&&l!==s&&F.current.setSelectionRange(l,s,u)}let d=-1!==l?l:t,c=-1!==s?s:n,f=null!=u?u:r;q(d),X(c),B.current.prev=[d,c,f]}if(U.current.value!==e.value&&U.current.onChange(e.value),B.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&z(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";p(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),p(e.sheet,`[data-input-otp]:autofill { ${t} }`),p(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }
1`),p(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),p(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let o=new ResizeObserver(r);return o.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),o.disconnect()}},[]);let[H,G]=r.useState(!1),[Y,z]=r.useState(!1),[K,q]=r.useState(null),[V,X]=r.useState(null);r.useEffect(()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}(()=>{var e,t,n,r;null==(e=F.current)||e.dispatchEvent(new Event("input"));let o=null==(t=F.current)?void 0:t.selectionStart,a=null==(n=F.current)?void 0:n.selectionEnd,i=null==(r=F.current)?void 0:r.selectionDirection;null!==o&&null!==a&&(q(o),X(a),B.current.prev=[o,a,i])})},[O,Y]),r.useEffect(()=>{void 0!==I&&O!==I&&I.length<y&&O.length===y&&(null==M||M(O))},[y,M,I,O]);let Z=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:o}){let[a,i]=r.useState(!1),[l,s]=r.useState(!1),[u,d]=r.useState(!1),c=r.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&a&&l,[a,l,n]),f=r.useCallback(()=>{let r=e.current,o=t.current;if(!r||!o||u||"none"===n)return;let a=r.getBoundingClientRect().left+r.offsetWidth,l=r.getBoundingClientRect().top+r.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(a-18,l)===r||(i(!0),d(!0))},[e,t,u,n]);return r.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function r(){s(window.innerWidth-t.getBoundingClientRect().right>=40)}r();let o=setInterval(r,1e3);return()=>{clearInterval(o)}},[e,n]),r.useEffect(()=>{let e=o||document.activeElement===t.current;if("none"===n||!e)return;let r=setTimeout(f,0),a=setTimeout(f,2e3),i=setTimeout(f,5e3),l=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(r),clearTimeout(a),clearTimeout(i),clearTimeout(l)}},[t,o,n,f]),{hasPWMBadge:a,willPushPWMBadge:c,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:W,inputRef:F,pushPasswordManagerStrategy:S,isFocused:Y}),$=r.useCallback(e=>{let t=e.currentTarget.value.slice(0,y);if(t.length>0&&_&&!_.test(t))return void e.preventDefault();"string"==typeof I&&t.length<I.length&&document.dispatchEvent(new Event("selectionchange")),L(t)},[y,L,I,_]),Q=r.useCallback(()=>{var e;if(F.current){let t=Math.min(F.current.value.length,y-1),n=F.current.value.length;null==(e=F.current)||e.setSelectionRange(t,n),q(t),X(n)}z(!0)},[y]),J=r.useCallback(e=>{var t,n;let r=F.current;if(!k&&(!U.current.isIOS||!e.clipboardData||!r))return;let o=e.clipboardData.getData("text/plain"),a=k?k(o):o;e.preventDefault();let i=null==(t=F.current)?void 0:t.selectionStart,l=null==(n=F.current)?void 0:n.selectionEnd,s=(i!==l?O.slice(0,i)+a+O.slice(l):O.slice(0,i)+a+O.slice(i)).slice(0,y);if(s.length>0&&_&&!_.test(s))return;r.value=s,L(s);let u=Math.min(s.length,y-1),d=s.length;r.setSelectionRange(u,d),q(u),X(d)},[y,L,_,O]),ee=r.useMemo(()=>({position:"relative",cursor:P.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[P.disabled]),et=r.useMemo(()=>({position:"absolute",inset:0,width:Z.willPushPWMBadge?`calc(100% + ${Z.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Z.willPushPWMBadge?`inset(0 ${Z.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:b,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Z.PWM_BADGE_SPACE_WIDTH,Z.willPushPWMBadge,b]),en=r.useMemo(()=>r.createElement("input",a(((e,t)=>{for(var n in t||(t={}))s.call(t,n)&&d(e,n,t[n]);if(l)for(var n of l(t))u.call(t,n)&&d(e,n,t[n]);return e})({autoComplete:P.autoComplete||"one-time-code"},P),i({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===O.length||void 0,"data-input-otp-mss":K,"data-input-otp-mse":V,inputMode:C,pattern:null==_?void 0:_.source,"aria-placeholder":E,style:et,maxLength:y,value:O,ref:F,onPaste:e=>{var t;J(e),null==(t=P.onPaste)||t.call(P,e)},onChange:$,onMouseOver:e=>{var t;G(!0),null==(t=P.onMouseOver)||t.call(P,e)},onMouseLeave:e=>{var t;G(!1),null==(t=P.onMouseLeave)||t.call(P,e)},onFocus:e=>{var t;Q(),null==(t=P.onFocus)||t.call(P,e)},onBlur:e=>{var t;z(!1),null==(t=P.onBlur)||t.call(P,e)}}))),[$,Q,J,C,et,y,V,K,P,null==_?void 0:_.source,O]),er=r.useMemo(()=>({slots:Array.from({length:y}).map((e,t)=>{var n;let r=Y&&null!==K&&null!==V&&(K===V&&t===K||t>=K&&t<V),o=void 0!==O[t]?O[t]:null;return{char:o,placeholderChar:void 0!==O[0]?null:null!=(n=null==E?void 0:E[t])?n:null,isActive:r,hasFakeCaret:r&&null===o}}),isFocused:Y,isHovering:!P.disabled&&H}),[Y,H,y,V,K,P.disabled,O]),eo=r.useMemo(()=>R?R(er):r.createElement(c.Provider,{value:er},T),[T,er,R]);return r.createElement(r.Fragment,null,null!==N&&r.createElement("noscript",null,r.createElement("style",null,N)),r.createElement("div",{ref:W,"data-input-otp-container":!0,style:ee,className:D},eo,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},en)))});function p(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}f.displayName="Input";var m=` 2[data-input-otp] { 3 --nojs-bg: white !important; 4 --nojs-fg: black !important; 5 6 background-color: var(--nojs-bg) !important; 7 color: var(--nojs-fg) !important; 8 caret-color: var(--nojs-fg) !important; 9 letter-spacing: .25em !important; 10 text-align: center !important; 11 border: 1px solid var(--nojs-fg) !important; 12 border-radius: 4px !important; 13 width: 100% !important; 14} 15@media (prefers-color-scheme: dark) { 16 [data-input-otp] { 17 --nojs-bg: black !important; 18 --nojs-fg: white !important; 19 } 20}`,h="^\\d+$"},71847:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(12115);let o=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];
20return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var i={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"};let l=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:u="",children:d,iconNode:c,...f}=e;return(0,r.createElement)("svg",{ref:t,...i,width:o,height:o,stroke:n,strokeWidth:s?24*Number(l)/Number(o):l,className:a("lucide",u),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(f)&&{"aria-hidden":"true"},...f},[...c.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(d)?d:[d]])}),s=(e,t)=>{let n=(0,r.forwardRef)((n,i)=>{let{className:s,...u}=n;return(0,r.createElement)(l,{ref:i,iconNode:t,className:a("lucide-".concat(o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),s),...u})});return n.displayName=o(e),n}},72502:(e,t,n)=>{n.d(t,{C1:()=>C,bL:()=>x});var r=n(12115),o=n(94446),a=n(3468);function i(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var l=n(23558),s=n(78108),u=n(84288),d=n(76842),c=n(97602),f=n(95155),p="Checkbox",[m,h]=(0,a.A)(p),[v,g]=m(p);function w(e){let{__scopeCheckbox:t,checked:n,children:o,defaultChecked:a,disabled:i,form:s,name:u,onCheckedChange:d,required:c,value:m="on",internal_do_not_use_render:h}=e,[g,w]=(0,l.i)({prop:n,defaultProp:null!=a&&a,onChange:d,caller:p}),[y,b]=r.useState(null),[x,E]=r.useState(null),C=r.useRef(!1),M=!y||!!s||!!y.closest("form"),S={checked:g,disabled:i,setChecked:w,control:y,setControl:b,name:u,form:s,value:m,hasConsumerStoppedPropagationRef:C,required:c,defaultChecked:!k(a)&&a,isFormControl:M,bubbleInput:x,setBubbleInput:E};return(0,f.jsx)(v,{scope:t,...S,children:"function"==typeof h?h(S):o})}var y="CheckboxTrigger",b=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,onKeyDown:a,onClick:l,...s}=e,{control:u,value:d,disabled:p,checked:m,required:h,setControl:v,setChecked:w,hasConsumerStoppedPropagationRef:b,isFormControl:x,bubbleInput:E}=g(y,n),C=(0,o.s)(t,v),M=r.useRef(m);return r.useEffect(()=>{let e=null==u?void 0:u.form;if(e){let t=()=>w(M.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,w]),(0,f.jsx)(c.sG.button,{type:"button",role:"checkbox","aria-checked":k(m)?"mixed":m,"aria-required":h,"data-state":D(m),"data-disabled":p?"":void 0,disabled:p,value:d,...s,ref:C,onKeyDown:i(a,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:i(l,e=>{w(e=>!!k(e)||!e),E&&x&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})});b.displayName=y;var x=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:s,onCheckedChange:u,form:d,...c}=e;return(0,f.jsx)(w,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:l,required:i,onCheckedChange:u,name:r,form:d,value:s,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(b,{...c,ref:t,__scopeCheckbox:n}),r&&(0,f.jsx)(S,{__scopeCheckbox:n})]})}})});x.displayName=p;var E="CheckboxIndicator",C=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...o}=e,a=g(E,n);return(0,f.jsx)(d.C,{present:r||k(a.checked)||!0===a.checked,children:(0,f.jsx)(c.sG.span,{"data-state":D(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});C.displayName=E;var M="CheckboxBubbleInput",S=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,...a}=e,{control:i,hasConsumerStoppedPropagationRef:l,checked:d,defaultChecked:p,required:m,disabled:h,name:v,value:w,form:y,bubbleInput:b,setBubbleInput:x}=g(M,n),E=(0,o.s)(t,x),C=(0,s.Z)(d),S=(0,u.X)(i);r.useEffect(()=>{if(!b)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!l.current;if(C!==d&&e){let n=new Event("click",{bubbles:t});b.indeterminate=k(d),e.call(b,!k(d)&&d),b.dispatchEvent(n)}},[b,C,d,l]);let D=r.useRef(!k(d)&&d);return(0,f.jsx)(c.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=p?p:D.current,required:m,disabled:h,name:v,value:w,form:y,...a,tabIndex:-1,ref:E,style:{...a.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function k(e){return"indeterminate"===e}function D(e){return k(e)?"indeterminate":e?"checked":"unchecked"}S.displayName=M},72930:(e,t,n)=>{n.d(t,{b:()=>l});var r=n(12115),o=n(97602),a=n(95155),i=r.forwardRef((e,t)=>
20{let{children:n,width:r=10,height:i=5,...l}=e;return(0,a.jsx)(o.sG.svg,{...l,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})});i.displayName="Arrow";var l=i},74854:(e,t,n)=>{n.d(t,{a:()=>o});var r=n(82247);function o(){let e={};for(let t in r.UI)e[r.UI[t]]=`rdp-${r.UI[t]}`;for(let t in r.pL)e[r.pL[t]]=`rdp-${r.pL[t]}`;for(let t in r.wc)e[r.wc[t]]=`rdp-${r.wc[t]}`;for(let t in r.X5)e[r.X5[t]]=`rdp-${r.X5[t]}`;return e}},75433:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(12115),o=n(47650),a=n(97602),i=n(4129),l=n(95155),s=r.forwardRef((e,t)=>{var n,s;let{container:u,...d}=e,[c,f]=r.useState(!1);(0,i.N)(()=>f(!0),[]);let p=u||c&&(null==(s=globalThis)||null==(n=s.document)?void 0:n.body);return p?o.createPortal((0,l.jsx)(a.sG.div,{...d,ref:t}),p):null});s.displayName="Portal"},76716:(e,t,n)=>{n.d(t,{s:()=>s});var r=n(9180),o=n(3177),a=n(4168),i=n(52731),l=n(92118);function s(e,t){let n=(0,l.a)(e,null==t?void 0:t.in);return Math.round(((0,o.b)(n)-function(e,t){let n=(0,i.p)(e,void 0),r=(0,a.w)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,o.b)(r)}(n))/r.my)+1}},76842:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(12115),o=n(94446),a=n(4129),i=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[o,i]=r.useState(),s=r.useRef(null),u=r.useRef(e),d=r.useRef("none"),[c,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(s.current);d.current="mounted"===c?e:"none"},[c]),(0,a.N)(()=>{let t=s.current,n=u.current;if(n!==e){let r=d.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,a.N)(()=>{if(o){var e;let t,n=null!=(e=o.ownerDocument.defaultView)?e:window,r=e=>{let r=l(s.current).includes(CSS.escape(e.animationName));if(e.target===o&&r&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(d.current=l(s.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{s.current=e?getComputedStyle(e):null,i(e)},[])}}(t),s="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),u=(0,o.s)(i.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof n||i.isPresent?r.cloneElement(s,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},78108:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(12115);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},79313:(e,t,n)=>{n.d(t,{C1:()=>er,q7:()=>en,bL:()=>et});var r=n(12115);function o(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var a=n(94446),i=n(3468),l=n(97602),s=n(49972),u=n(68946),d=n(70222),c=n(23558),f=n(66218),p=n(95155),m="rovingFocusGroup.onEntryFocus",h={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[g,w,y]=(0,s.N)(v),[b,x]=(0,i.A)(v,[y]),[E,C]=b(v),M=r.forwardRef((e,t)=>(0,p.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(S,{...e,ref:t})})}));M.displayName=v;var S=r.forwardRef((e,t)=>
20{let{__scopeRovingFocusGroup:n,orientation:i,loop:s=!1,dir:u,currentTabStopId:g,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:b,onEntryFocus:x,preventScrollOnEntryFocus:C=!1,...M}=e,S=r.useRef(null),k=(0,a.s)(t,S),D=(0,f.jH)(u),[N,T]=(0,c.i)({prop:g,defaultProp:null!=y?y:null,onChange:b,caller:v}),[P,j]=r.useState(!1),A=(0,d.c)(x),O=w(n),I=r.useRef(!1),[L,_]=r.useState(0);return r.useEffect(()=>{let e=S.current;if(e)return e.addEventListener(m,A),()=>e.removeEventListener(m,A)},[A]),(0,p.jsx)(E,{scope:n,orientation:i,dir:D,loop:s,currentTabStopId:N,onItemFocus:r.useCallback(e=>T(e),[T]),onItemShiftTab:r.useCallback(()=>j(!0),[]),onFocusableItemAdd:r.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>_(e=>e-1),[]),children:(0,p.jsx)(l.sG.div,{tabIndex:P||0===L?-1:0,"data-orientation":i,...M,ref:k,style:{outline:"none",...e.style},onMouseDown:o(e.onMouseDown,()=>{I.current=!0}),onFocus:o(e.onFocus,e=>{let t=!I.current;if(e.target===e.currentTarget&&t&&!P){let t=new CustomEvent(m,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);R([e.find(e=>e.active),e.find(e=>e.id===N),...e].filter(Boolean).map(e=>e.ref.current),C)}}I.current=!1}),onBlur:o(e.onBlur,()=>j(!1))})})}),k="RovingFocusGroupItem",D=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:i=!1,tabStopId:s,children:d,...c}=e,f=(0,u.B)(),m=s||f,h=C(k,n),v=h.currentTabStopId===m,y=w(n),{onFocusableItemAdd:b,onFocusableItemRemove:x,currentTabStopId:E}=h;return r.useEffect(()=>{if(a)return b(),()=>x()},[a,b,x]),(0,p.jsx)(g.ItemSlot,{scope:n,id:m,focusable:a,active:i,children:(0,p.jsx)(l.sG.span,{tabIndex:v?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:o(e.onMouseDown,e=>{a?h.onItemFocus(m):e.preventDefault()}),onFocus:o(e.onFocus,()=>h.onItemFocus(m)),onKeyDown:o(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return N[o]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=h.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>R(n))}}),children:"function"==typeof d?d({isCurrentTabStop:v,hasTabStop:null!=E}):d})})});D.displayName=k;var N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function R(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var T=n(84288),P=n(78108),j=n(76842),A="Radio",[O,I]=(0,i.A)(A),[L,_]=O(A),F=r.forwardRef((e,t)=>{let{__scopeRadio:n,name:i,checked:s=!1,required:u,disabled:d,value:c="on",onCheck:f,form:m,...h}=e,[v,g]=r.useState(null),w=(0,a.s)(t,e=>g(e)),y=r.useRef(!1),b=!v||m||!!v.closest("form");return(0,p.jsxs)(L,{scope:n,checked:s,disabled:d,children:[(0,p.jsx)(l.sG.button,{type:"button",role:"radio","aria-checked":s,"data-state":H(s),"data-disabled":d?"":void 0,disabled:d,value:c,...h,ref:w,onClick:o(e.onClick,e=>{s||null==f||f(),b&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})}),b&&(0,p.jsx)(B,{control:v,bubbles:!y.current,name:i,value:c,checked:s,required:u,disabled:d,form:m,style:{transform:"translateX(-100%)"}})]})});F.displayName=A;var W="RadioIndicator",U=r.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...o}=e,a=_(W,n);return(0,p.jsx)(j.C,{present:r||a.checked,children:(0,p.jsx)(l.sG.span,{"data-state":H(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});U.displayName=W;var B=r.forwardRef((e,t)=>{let{__scopeRadio:n,control:o,checked:i,bubbles:s=!0,...u}=e,d=r.useRef(null),c=(0,a.s)(d,t),f=(0,P.Z)(i),m=(0,T.X)(o);return r.useEffect(()=>{let e=d.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(f!==i&&t){let n=new Event("click",{bubbles:s});t.call(e,i),e.dispatchEvent(n)}},[f,i,s]),(0,p.jsx)(l.sG.input,{type:"radio","aria-hidden":!0,defaultChecked:i,...u,tabIndex:-1,ref:c,style:{...u.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function H(e){return e?"checked":"unchecked"}B.displayName="RadioBubbleInput";var G=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Y="RadioGroup",[z,K]=(0,i.A)(Y,[x,I]
20),q=x(),V=I(),[X,Z]=z(Y),$=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:s=!1,orientation:u,dir:d,loop:m=!0,onValueChange:h,...v}=e,g=q(n),w=(0,f.jH)(d),[y,b]=(0,c.i)({prop:a,defaultProp:null!=o?o:null,onChange:h,caller:Y});return(0,p.jsx)(X,{scope:n,name:r,required:i,disabled:s,value:y,onValueChange:b,children:(0,p.jsx)(M,{asChild:!0,...g,orientation:u,dir:w,loop:m,children:(0,p.jsx)(l.sG.div,{role:"radiogroup","aria-required":i,"aria-orientation":u,"data-disabled":s?"":void 0,dir:w,...v,ref:t})})})});$.displayName=Y;var Q="RadioGroupItem",J=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:i,...l}=e,s=Z(Q,n),u=s.disabled||i,d=q(n),c=V(n),f=r.useRef(null),m=(0,a.s)(t,f),h=s.value===l.value,v=r.useRef(!1);return r.useEffect(()=>{let e=e=>{G.includes(e.key)&&(v.current=!0)},t=()=>v.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,p.jsx)(D,{asChild:!0,...d,focusable:!u,active:h,children:(0,p.jsx)(F,{disabled:u,required:s.required,
20checked:h,...c,...l,name:s.name,ref:m,onCheck:()=>s.onValueChange(l.value),onKeyDown:o(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:o(l.onFocus,()=>{var e;v.current&&(null==(e=f.current)||e.click())})})})});J.displayName=Q;var ee=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,o=V(n);return(0,p.jsx)(U,{...o,...r,ref:t})});ee.displayName="RadioGroupIndicator";var et=$,en=J,er=ee},80011:(e,t,n)=>{n.d(t,{$:()=>r});function r(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}},82192:(e,t,n)=>{n.d(t,{k:()=>a});var r=n(39781),o=n(92118);function a(e,t){var n,a,i,l,s,u,d,c;let f=(0,r.q)(),p=null!=(c=null!=(d=null!=(u=null!=(s=null==t?void 0:t.weekStartsOn)?s:null==t||null==(a=t.locale)||null==(n=a.options)?void 0:n.weekStartsOn)?u:f.weekStartsOn)?d:null==(l=f.locale)||null==(i=l.options)?void 0:i.weekStartsOn)?c:0,m=(0,o.a)(e,null==t?void 0:t.in),h=m.getDay();return m.setDate(m.getDate()-(7*(h<p)+h-p)),m.setHours(0,0,0,0),m}},82201:(e,t,n)=>{n.d(t,{bL:()=>x,zi:()=>E});var r=n(12115);"undefined"!=typeof window&&window.document&&window.document.createElement;var o=n(94446),a=n(3468),i=n(23558),l=n(78108),s=n(84288),u=n(97602),d=n(95155),c="Switch",[f,p]=(0,a.A)(c),[m,h]=f(c),v=r.forwardRef((e,t)=>{let{__scopeSwitch:n,name:a,checked:l,defaultChecked:s,required:f,disabled:p,value:h="on",onCheckedChange:v,form:g,...w}=e,[x,E]=r.useState(null),C=(0,o.s)(t,e=>E(e)),M=r.useRef(!1),S=!x||g||!!x.closest("form"),[k,D]=(0,i.i)({prop:l,defaultProp:null!=s&&s,onChange:v,caller:c});return(0,d.jsxs)(m,{scope:n,checked:k,disabled:p,children:[(0,d.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":k,"aria-required":f,"data-state":b(k),"data-disabled":p?"":void 0,disabled:p,value:h,...w,ref:C,onClick:function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onClick,e=>{D(e=>!e),S&&(M.current=e.isPropagationStopped(),M.current||e.stopPropagation())})}),S&&(0,d.jsx)(y,{control:x,bubbles:!M.current,name:a,value:h,checked:k,required:f,disabled:p,form:g,style:{transform:"translateX(-100%)"}})]})});v.displayName=c;var g="SwitchThumb",w=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,o=h(g,n);return(0,d.jsx)(u.sG.span,{"data-state":b(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});w.displayName=g;var y=r.forwardRef((e,t)=>{let{__scopeSwitch:n,control:a,checked:i,bubbles:u=!0,...c}=e,f=r.useRef(null),p=(0,o.s)(f,t),m=(0,l.Z)(i),h=(0,s.X)(a);return r.useEffect(()=>{let e=f.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(m!==i&&t){let n=new Event("click",{bubbles:u});t.call(e,i),e.dispatchEvent(n)}},[m,i,u]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i,...c,tabIndex:-1,ref:p,style:{...c.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function b(e){return e?"checked":"unchecked"}y.displayName="SwitchBubbleInput";var x=v,E=w},82247:(e,t,n)=>{var r,o,a,i;n.d(t,{UI:()=>r,X5:()=>i,pL:()=>o,wc:()=>a}),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"}(r||(r={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(o||(o={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(a||(a={})),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"}(i||(i={}))},83055:(e,t,n)=>{n.d(t,{H_:()=>tH,UC:()=>tF,YJ:()=>tW,q7:()=>tB,VF:()=>tz,JU:()=>tU,ZL:()=>t_,z6:()=>tG,hN:()=>tY,bL:()=>tI,wv:()=>tK,Pb:()=>tq,G5:()=>tX,ZP:()=>tV,l9:()=>tL});var r,o=n(12115),a=n(92556),i=n(94446),l=n(3468),s=n(23558),u=n(97602),d=n(49972),c=n(66218),f=n(70222),p=n(59584),m=n(95155),h="dism
20issableLayer.update",v=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g=o.forwardRef((e,t)=>{var n,l;let{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:g,onInteractOutside:b,onDismiss:x,...E}=e,C=o.useContext(v),[M,S]=o.useState(null),k=null!=(l=null==M?void 0:M.ownerDocument)?l:null==(n=globalThis)?void 0:n.document,[,D]=o.useState({}),N=(0,i.s)(t,e=>S(e)),R=Array.from(C.layers),[T]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),P=R.indexOf(T),j=M?R.indexOf(M):-1,A=C.layersWithOutsidePointerEventsDisabled.size>0,O=j>=P,I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,f.c)(e),a=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let t=function(){y("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);a.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,n=[...C.branches].some(e=>e.contains(t));O&&!n&&(null==c||c(e),null==b||b(e),e.defaultPrevented||null==x||x())},k),L=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,f.c)(e),a=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!a.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;![...C.branches].some(e=>e.contains(t))&&(null==g||g(e),null==b||b(e),e.defaultPrevented||null==x||x())},k);return(0,p.U)(e=>{j===C.layers.size-1&&(null==d||d(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},k),o.useEffect(()=>{if(M)return s&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(r=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(M)),C.layers.add(M),w(),()=>{s&&1===C.layersWithOutsidePointerEventsDisabled.size&&(k.body.style.pointerEvents=r)}},[M,k,s,C]),o.useEffect(()=>()=>{M&&(C.layers.delete(M),C.layersWithOutsidePointerEventsDisabled.delete(M),w())},[M,C]),o.useEffect(()=>{let e=()=>D({});return document.addEventListener(h,e),()=>document.removeEventListener(h,e)},[]),(0,m.jsx)(u.sG.div,{...E,ref:N,style:{pointerEvents:A?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.m)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,a.m)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,a.m)(e.onPointerDownCapture,I.onPointerDownCapture)})});function w(){let e=new CustomEvent(h);document.dispatchEvent(e)}function y(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?(0,u.hO)(a,i):a.dispatchEvent(i)}g.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(v),r=o.useRef(null),a=(0,i.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,m.jsx)(u.sG.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var b=0;function x(){let 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 E=n(69666),C=n(68946),M=n(88334),S=n(58146),k=n(72930),D=n(4129),N=n(84288),R="Popper",[T,P]=(0,l.A)(R),[j,A]=T(R),O=e=>{let{__scopePopper:t,children:n}=e,[r,a]=o.useState(null);return(0,m.jsx)(j,{scope:t,anchor:r,onAnchorChange:a,children:n})};O.displayName=R;var I="PopperAnchor",L=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...a}=e,l=A(I,n),s=o.useRef(null),d=(0,i.s)(t,s);return o.useEffect(()=>{l.onAnchorChange((null==r?void 0:r.current)||s.current)}),r?null:(0,m.jsx)(u.sG.div,{...a,ref:d})});L.displayName=I;var _="PopperContent",[F,W]=T(_),U=o.forwardRef((e,t)=>
20{var n,r,a,l,s,d,c,p;let{__scopePopper:h,side:v="bottom",sideOffset:g=0,align:w="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:x=!0,collisionBoundary:E=[],collisionPadding:C=0,sticky:k="partial",hideWhenDetached:R=!1,updatePositionStrategy:T="optimized",onPlaced:P,...j}=e,O=A(_,h),[I,L]=o.useState(null),W=(0,i.s)(t,e=>L(e)),[U,B]=o.useState(null),H=(0,N.X)(U),G=null!=(c=null==H?void 0:H.width)?c:0,q=null!=(p=null==H?void 0:H.height)?p:0,V="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},X=Array.isArray(E)?E:[E],Z=X.length>0,$={padding:V,boundary:X.filter(Y),altBoundary:Z},{refs:Q,floatingStyles:J,placement:ee,isPositioned:et,middlewareData:en}=(0,M.we)({strategy:"fixed",placement:v+("center"!==w?"-"+w:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,S.ll)(...t,{animationFrame:"always"===T})},elements:{reference:O.anchor},middleware:[(0,M.cY)({mainAxis:g+q,alignmentAxis:y}),x&&(0,M.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===k?(0,M.ER)():void 0,...$}),x&&(0,M.UU)({...$}),(0,M.Ej)({...$,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:i}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),U&&(0,M.UE)({element:U,padding:b}),z({arrowWidth:G,arrowHeight:q}),R&&(0,M.jD)({strategy:"referenceHidden",...$})]}),[er,eo]=K(ee),ea=(0,f.c)(P);(0,D.N)(()=>{et&&(null==ea||ea())},[et,ea]);let ei=null==(n=en.arrow)?void 0:n.x,el=null==(r=en.arrow)?void 0:r.y,es=(null==(a=en.arrow)?void 0:a.centerOffset)!==0,[eu,ed]=o.useState();return(0,D.N)(()=>{I&&ed(window.getComputedStyle(I).zIndex)},[I]),(0,m.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:et?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null==(l=en.transformOrigin)?void 0:l.x,null==(s=en.transformOrigin)?void 0:s.y].join(" "),...(null==(d=en.hide)?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,m.jsx)(F,{scope:h,placedSide:er,onArrowChange:B,arrowX:ei,arrowY:el,shouldHideArrow:es,children:(0,m.jsx)(u.sG.div,{"data-side":er,"data-align":eo,...j,ref:W,style:{...j.style,animation:et?void 0:"none"}})})})});U.displayName=_;var B="PopperArrow",H={top:"bottom",right:"left",bottom:"top",left:"right"},G=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=W(B,n),a=H[o.placedSide];return(0,m.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,m.jsx)(k.b,{...r,ref:t,style:{...r.style,display:"block"}})})});function Y(e){return null!==e}G.displayName=B;var z=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;let{placement:l,rects:s,middlewareData:u}=t,d=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,c=d?0:e.arrowWidth,f=d?0:e.arrowHeight,[p,m]=K(l),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!=(a=null==(r=u.arrow)?void 0:r.x)?a:0)+c/2,g=(null!=(i=null==(o=u.arrow)?void 0:o.y)?i:0)+f/2,w="",y="";return"bottom"===p?(w=d?h:"".concat(v,"px"),y="".concat(-f,"px")):"top"===p?(w=d?h:"".concat(v,"px"),y="".concat(s.floating.height+f,"px")):"right"===p?(w="".concat(-f,"px"),y=d?h:"".concat(g,"px")):"left"===p&&(w="".concat(s.floating.width+f,"px"),y=d?h:"".concat(g,"px")),{data:{x:w,y}}}});function K(e){let[t,n="center"]=e.split("-");return[t,n]}var q=n(75433),V=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,a]=o.useState(),i=o.useRef(null),l=o.useRef(e),s=o.useRef("none"),[u,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>
20{let r=n[e][t];return null!=r?r:e},t));return o.useEffect(()=>{let e=X(i.current);s.current="mounted"===u?e:"none"},[u]),(0,D.N)(()=>{let t=i.current,n=l.current;if(n!==e){let r=s.current,o=X(t);e?d("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),(0,D.N)(()=>{if(r){var e;let t,n=null!=(e=r.ownerDocument.defaultView)?e:window,o=e=>{let o=X(i.current).includes(e.animationName);if(e.target===r&&o&&(d("ANIMATION_END"),!l.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},a=e=>{e.target===r&&(s.current=X(i.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:o.useCallback(e=>{i.current=e?getComputedStyle(e):null,a(e)},[])}}(t),a="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),l=(0,i.s)(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?o.cloneElement(a,{ref:l}):null};function X(e){return(null==e?void 0:e.animationName)||"none"}V.displayName="Presence";var Z="rovingFocusGroup.onEntryFocus",$={bubbles:!1,cancelable:!0},Q="RovingFocusGroup",[J,ee,et]=(0,d.N)(Q),[en,er]=(0,l.A)(Q,[et]),[eo,ea]=en(Q),ei=o.forwardRef((e,t)=>(0,m.jsx)(J.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(J.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(el,{...e,ref:t})})}));ei.displayName=Q;var el=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:l=!1,dir:d,currentTabStopId:p,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:v,onEntryFocus:g,preventScrollOnEntryFocus:w=!1,...y}=e,b=o.useRef(null),x=(0,i.s)(t,b),E=(0,c.jH)(d),[C,M]=(0,s.i)({prop:p,defaultProp:null!=h?h:null,onChange:v,caller:Q}),[S,k]=o.useState(!1),D=(0,f.c)(g),N=ee(n),R=o.useRef(!1),[T,P]=o.useState(0);return o.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(Z,D),()=>e.removeEventListener(Z,D)},[D]),(0,m.jsx)(eo,{scope:n,orientation:r,dir:E,loop:l,currentTabStopId:C,onItemFocus:o.useCallback(e=>M(e),[M]),onItemShiftTab:o.useCallback(()=>k(!0),[]),onFocusableItemAdd:o.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>P(e=>e-1),[]),children:(0,m.jsx)(u.sG.div,{tabIndex:S||0===T?-1:0,"data-orientation":r,...y,ref:x,style:{outline:"none",...e.style},onMouseDown:(0,a.m)(e.onMouseDown,()=>{R.current=!0}),onFocus:(0,a.m)(e.onFocus,e=>{let t=!R.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(Z,$);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=N().filter(e=>e.focusable);ec([e.find(e=>e.active),e.find(e=>e.id===C),...e].filter(Boolean).map(e=>e.ref.current),w)}}R.current=!1}),onBlur:(0,a.m)(e.onBlur,()=>k(!1))})})}),es="RovingFocusGroupItem",eu=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:l,children:s,...d}=e,c=(0,C.B)(),f=l||c,p=ea(es,n),h=p.currentTabStopId===f,v=ee(n),{onFocusableItemAdd:g,onFocusableItemRemove:w,currentTabStopId:y}=p;return o.useEffect(()=>{if(r)return g(),()=>w()},[r,g,w]),(0,m.jsx)(J.ItemSlot,{scope:n,id:f,focusable:r,active:i,children:(0,m.jsx)(u.sG.span,{tabIndex:h?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{r?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,a.m)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,a.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return ed[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>
20e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>ec(n))}}),children:"function"==typeof s?s({isCurrentTabStop:h,hasTabStop:null!=y}):s})})});eu.displayName=es;var ed={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ec(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var ef=n(32467),ep=n(97745),em=n(14432),eh=["Enter"," "],ev=["ArrowUp","PageDown","End"],eg=["ArrowDown","PageUp","Home",...ev],ew={ltr:[...eh,"ArrowRight"],rtl:[...eh,"ArrowLeft"]},ey={ltr:["ArrowLeft"],rtl:["ArrowRight"]},eb="Menu",[ex,eE,eC]=(0,d.N)(eb),[eM,eS]=(0,l.A)(eb,[eC,P,er]),ek=P(),eD=er(),[eN,eR]=eM(eb),[eT,eP]=eM(eb),ej=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:i,modal:l=!0}=e,s=ek(t),[u,d]=o.useState(null),p=o.useRef(!1),h=(0,f.c)(i),v=(0,c.jH)(a);return o.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,m.jsx)(O,{...s,children:(0,m.jsx)(eN,{scope:t,open:n,onOpenChange:h,content:u,onContentChange:d,children:(0,m.jsx)(eT,{scope:t,onClose:o.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:p,dir:v,modal:l,children:r})})})};ej.displayName=eb;var eA=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=ek(n);return(0,m.jsx)(L,{...o,...r,ref:t})});eA.displayName="MenuAnchor";var eO="MenuPortal",[eI,eL]=eM(eO,{forceMount:void 0}),e_=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=eR(eO,t);return(0,m.jsx)(eI,{scope:t,forceMount:n,children:(0,m.jsx)(V,{present:n||a.open,children:(0,m.jsx)(q.Z,{asChild:!0,container:o,children:r})})})};e_.displayName=eO;var eF="MenuContent",[eW,eU]=eM(eF),eB=o.forwardRef((e,t)=>{let n=eL(eF,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=eR(eF,e.__scopeMenu),i=eP(eF,e.__scopeMenu);return(0,m.jsx)(ex.Provider,{scope:e.__scopeMenu,children:(0,m.jsx)(V,{present:r||a.open,children:(0,m.jsx)(ex.Slot,{scope:e.__scopeMenu,children:i.modal?(0,m.jsx)(eH,{...o,ref:t}):(0,m.jsx)(eG,{...o,ref:t})})})})}),eH=o.forwardRef((e,t)=>{let n=eR(eF,e.__scopeMenu),r=o.useRef(null),l=(0,i.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,ep.Eq)(e)},[]),(0,m.jsx)(ez,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),eG=o.forwardRef((e,t)=>{let n=eR(eF,e.__scopeMenu);return(0,m.jsx)(ez,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),eY=(0,ef.TL)("MenuContent.ScrollLock"),ez=o.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEntryFocus:c,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:h,onInteractOutside:v,onDismiss:w,disableOutsideScroll:y,...C}=e,M=eR(eF,n),S=eP(eF,n),k=ek(n),D=eD(n),N=eE(n),[R,T]=o.useState(null),P=o.useRef(null),j=(0,i.s)(t,P,M.onContentChange),A=o.useRef(0),O=o.useRef(""),I=o.useRef(0),L=o.useRef(null),_=o.useRef("right"),F=o.useRef(0),W=y?em.A:o.Fragment;o.useEffect(()=>()=>window.clearTimeout(A.current),[]),o.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:x()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:x()),b++,()=>{1===b&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
20=>e.remove()),b--}},[]);let B=o.useCallback(e=>{var t,n;return _.current===(null==(t=L.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e],l=t[a],s=i.x,u=i.y,d=l.x,c=l.y;u>r!=c>r&&n<(d-s)*(r-u)/(c-u)+s&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(n=L.current)?void 0:n.area)},[]);return(0,m.jsx)(eW,{scope:n,searchRef:O,onItemEnter:o.useCallback(e=>{B(e)&&e.preventDefault()},[B]),onItemLeave:o.useCallback(e=>{var t;B(e)||(null==(t=P.current)||t.focus(),T(null))},[B]),onTriggerLeave:o.useCallback(e=>{B(e)&&e.preventDefault()},[B]),pointerGraceTimerRef:I,onPointerGraceIntentChange:o.useCallback(e=>{L.current=e},[]),children:(0,m.jsx)(W,{...y?{as:eY,allowPinchZoom:!0}:void 0,children:(0,m.jsx)(E.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,a.m)(s,e=>{var t;e.preventDefault(),null==(t=P.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,m.jsx)(g,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:h,onInteractOutside:v,onDismiss:w,children:(0,m.jsx)(ei,{asChild:!0,...D,dir:S.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:T,onEntryFocus:(0,a.m)(c,e=>{S.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,m.jsx)(U,{role:"menu","aria-orientation":"vertical","data-state":tu(M.open),"data-radix-menu-content":"",dir:S.dir,...k,...C,ref:j,style:{outline:"none",...C.style},onKeyDown:(0,a.m)(C.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;let r=O.current+e,o=N().filter(e=>!e.disabled),a=document.activeElement,i=null==(t=o.find(e=>
20e.ref.current===a))?void 0:t.textValue,l=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1,i=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,i),s=null==(n=o.find(e=>e.textValue===l))?void 0:n.ref.current;!function e(t){O.current=t,window.clearTimeout(A.current),""!==t&&(A.current=window.setTimeout(()=>e(""),1e3))}(r),s&&setTimeout(()=>s.focus())})(e.key));let o=P.current;if(e.target!==o||!eg.includes(e.key))return;e.preventDefault();let a=N().filter(e=>!e.disabled).map(e=>e.ref.current);ev.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,a.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),O.current="")}),onPointerMove:(0,a.m)(e.onPointerMove,tf(e=>{let t=e.target,n=F.current!==e.clientX;e.currentTarget.contains(t)&&n&&(_.current=e.clientX>F.current?"right":"left",F.current=e.clientX)}))})})})})})})});eB.displayName=eF;var eK=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,m.jsx)(u.sG.div,{role:"group",...r,ref:t})});eK.displayName="MenuGroup";var eq=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,m.jsx)(u.sG.div,{...r,ref:t})});eq.displayName="MenuLabel";var eV="MenuItem",eX="menu.itemSelect",eZ=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...l}=e,s=o.useRef(null),d=eP(eV,e.__scopeMenu),c=eU(eV,e.__scopeMenu),f=(0,i.s)(t,s),p=o.useRef(!1);return(0,m.jsx)(e$,{...l,ref:f,disabled:n,onClick:(0,a.m)(e.onClick,()=>{let e=s.current;if(!n&&e){let t=new CustomEvent(eX,{bubbles:!0,cancelable:!0});e.addEventListener(eX,e=>null==r?void 0:r(e),{once:!0}),(0,u.hO)(e,t),t.defaultPrevented?p.current=!1:d.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),p.current=!0},onPointerUp:(0,a.m)(e.onPointerUp,e=>{var t;p.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=""!==c.searchRef.current;n||t&&" "===e.key||eh.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eZ.displayName=eV;var e$=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:l,...s}=e,d=eU(eV,n),c=eD(n),f=o.useRef(null),p=(0,i.s)(t,f),[h,v]=o.useState(!1),[g,w]=o.useState("");return o.useEffect(()=>{let e=f.current;if(e){var t;w((null!=(t=e.textContent)?t:"").trim())}},[s.children]),(0,m.jsx)(ex.ItemSlot,{scope:n,disabled:r,textValue:null!=l?l:g,children:(0,m.jsx)(eu,{asChild:!0,...c,focusable:!r,children:(0,m.jsx)(u.sG.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:p,onPointerMove:(0,a.m)(e.onPointerMove,tf(e=>{r?d.onItemLeave(e):(d.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,a.m)(e.onPointerLeave,tf(e=>d.onItemLeave(e))),onFocus:(0,a.m)(e.onFocus,()=>v(!0)),onBlur:(0,a.m)(e.onBlur,()=>v(!1))})})})}),eQ=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,m.jsx)(e8,{scope:e.__scopeMenu,checked:n,children:(0,m.jsx)(eZ,{role:"menuitemcheckbox","aria-checked":td(n)?"mixed":n,...o,ref:t,"data-state":tc(n),onSelect:(0,a.m)(o.onSelect,()=>null==r?void 0:r(!!td(n)||!n),{checkForDefaultPrevented:!1})})})});eQ.displayName="MenuCheckboxItem";var eJ="MenuRadioGroup",[e0,e1]=eM(eJ,{value:void 0,onValueChange:()=>{}}),e2=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,a=(0,f.c)(r);return(0,m.jsx)(e0,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,m.jsx)(eK,{...o,ref:t})})});e2.displayName=eJ;var e5="MenuRadioItem",e4=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=e1(e5,e.__scopeMenu),i=n===o.value;return(0,m.jsx)(e8,{scope:e.__scopeMenu,checked:i,children:(0,m.jsx)(eZ,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":tc(i),onSelect:(0,a.m)(r.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});e4.displayName=e5;var e6="MenuItemIndicator",[e8,e9]=eM(e6,{checked:!1}
20),e7=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,a=e9(e6,n);return(0,m.jsx)(V,{present:r||td(a.checked)||!0===a.checked,children:(0,m.jsx)(u.sG.span,{...o,ref:t,"data-state":tc(a.checked)})})});e7.displayName=e6;var e3=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,m.jsx)(u.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});e3.displayName="MenuSeparator";var te=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=ek(n);return(0,m.jsx)(G,{...o,...r,ref:t})});te.displayName="MenuArrow";var tt="MenuSub",[tn,tr]=eM(tt),to=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:a}=e,i=eR(tt,t),l=ek(t),[s,u]=o.useState(null),[d,c]=o.useState(null),p=(0,f.c)(a);return o.useEffect(()=>(!1===i.open&&p(!1),()=>p(!1)),[i.open,p]),(0,m.jsx)(O,{...l,children:(0,m.jsx)(eN,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:c,children:(0,m.jsx)(tn,{scope:t,contentId:(0,C.B)(),triggerId:(0,C.B)(),trigger:s,onTriggerChange:u,children:n})})})};to.displayName=tt;var ta="MenuSubTrigger",ti=o.forwardRef((e,t)=>{let n=eR(ta,e.__scopeMenu),r=eP(ta,e.__scopeMenu),l=tr(ta,e.__scopeMenu),s=eU(ta,e.__scopeMenu),u=o.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:c}=s,f={__scopeMenu:e.__scopeMenu},p=o.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return o.useEffect(()=>p,[p]),o.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),c(null)}},[d,c]),(0,m.jsx)(eA,{asChild:!0,...f,children:(0,m.jsx)(e$,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":tu(n.open),...e,ref:(0,i.t)(t,l.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,a.m)(e.onPointerMove,tf(t=>{s.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||u.current||(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,a.m)(e.onPointerLeave,tf(e=>{var t,r;p();let o=null==(t=n.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(r=n.content)?void 0:r.dataset.side,a="right"===t,i=o[a?"left":"right"],l=o[a?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:i,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:i,y:o.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.m)(e.onKeyDown,t=>{let o=""!==s.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&ew[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null==(a=n.content)||a.focus(),t.preventDefault()}})})})});ti.displayName=ta;var tl="MenuSubContent",ts=o.forwardRef((e,t)=>{let n=eL(eF,e.__scopeMenu),{forceMount:r=n.forceMount,...l}=e,s=eR(eF,e.__scopeMenu),u=eP(eF,e.__scopeMenu),d=tr(tl,e.__scopeMenu),c=o.useRef(null),f=(0,i.s)(t,c);return(0,m.jsx)(ex.Provider,{scope:e.__scopeMenu,children:(0,m.jsx)(V,{present:r||s.open,children:(0,m.jsx)(ex.Slot,{scope:e.__scopeMenu,children:(0,m.jsx)(ez,{id:d.contentId,"aria-labelledby":d.triggerId,...l,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null==(t=c.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>{e.target!==d.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=ey[u.dir].includes(e.key);if(t&&n){var r;s.onOpenChange(!1),null==(r=d.trigger)||r.focus(),e.preventDefault()}})})})})})});function tu(e){return e?"open":"closed"}function td(e){return"indeterminate"===e}function tc(e){return td(e)?"indeterminate":e?"checked":"unchecked"}function tf(e){return t=>"mouse"===t.pointerType?e(t):void 0}ts.displayName=tl;var tp="DropdownMenu",[tm,th]=(0,l.A)(tp,[eS]),tv=eS(),[tg,tw]=tm(tp),ty=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:a,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,d=tv(t),c=o.useRef(null),[f,p]=(0,s.i)({prop:a,defaultProp:null!=i&&i,onChange:l,caller:tp}
20);return(0,m.jsx)(tg,{scope:t,triggerId:(0,C.B)(),triggerRef:c,contentId:(0,C.B)(),open:f,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:u,children:(0,m.jsx)(ej,{...d,open:f,onOpenChange:p,dir:r,modal:u,children:n})})};ty.displayName=tp;var tb="DropdownMenuTrigger",tx=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,l=tw(tb,n),s=tv(n);return(0,m.jsx)(eA,{asChild:!0,...s,children:(0,m.jsx)(u.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,i.t)(t,l.triggerRef),onPointerDown:(0,a.m)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tx.displayName=tb;var tE=e=>{let{__scopeDropdownMenu:t,...n}=e,r=tv(t);return(0,m.jsx)(e_,{...r,...n})};tE.displayName="DropdownMenuPortal";var tC="DropdownMenuContent",tM=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tw(tC,n),l=tv(n),s=o.useRef(!1);return(0,m.jsx)(eB,{id:i.contentId,"aria-labelledby":i.triggerId,...l,...r,ref:t,onCloseAutoFocus:(0,a.m)(e.onCloseAutoFocus,e=>{var t;s.current||null==(t=i.triggerRef.current)||t.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,a.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tM.displayName=tC;var tS=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tv(n);return(0,m.jsx)(eK,{...o,...r,ref:t})});tS.displayName="DropdownMenuGroup";var tk=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tv(n);return(0,m.jsx)(eq,{...o,...r,ref:t})});tk.displayName="DropdownMenuLabel";var tD=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tv(n);return(0,m.jsx)(eZ,{...o,...r,ref:t})});tD.displayName="DropdownMenuItem";var tN=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tv(n);return(0,m.jsx)(eQ,{...o,...r,ref:t})});tN.displayName="DropdownMenuCheckboxItem";var tR=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tv(n);return(0,m.jsx)(e2,{...o,...r,ref:t})});tR.displayName="DropdownMenuRadioGroup";var tT=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tv(n);return(0,m.jsx)(e4,{...o,...r,ref:t})});tT.displayName="DropdownMenuRadioItem";var tP=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tv(n);return(0,m.jsx)(e7,{...o,...r,ref:t})});tP.displayName="DropdownMenuItemIndicator";var tj=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tv(n);return(0,m.jsx)(e3,{...o,...r,ref:t})});tj.displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tv(n);return(0,m.jsx)(te,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var tA=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tv(n);return(0,m.jsx)(ti,{...o,...r,ref:t})});tA.displayName="DropdownMenuSubTrigger";var tO=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tv(n);return(0,m.jsx)(ts,{...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)"}})});tO.displayName="DropdownMenuSubContent";var tI=ty,tL=tx,t_=tE,tF=tM,tW=tS,tU=tk,tB=tD,tH=tN,tG=tR,tY=tT,tz=tP,tK=tj,tq=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=tv(t),[l,u]=(0,s.i)({prop:r,defaultProp:null!=a&&a,onChange:o,caller:"DropdownMenuSub"});return(0,m.jsx)(to,{...i,open:l,onOpenChange:u,children:n})},tV=tA,tX=tO},83101:(e,t,n)=>{n.d(t,{F:()=>i});var r=n(2821);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=r.$,i=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return a(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:l}=t,s=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],r=null==l?void 0:l[e];
20if(null===t)return null;let a=o(t)||o(r);return i[e][a]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return a(e,s,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...u}[t]):({...l,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},84288:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(12115),o=n(4129);function a(e){let[t,n]=r.useState(void 0);return(0,o.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},88334:(e,t,n)=>{n.d(t,{BN:()=>p,ER:()=>m,Ej:()=>v,UE:()=>w,UU:()=>h,cY:()=>f,jD:()=>g,we:()=>c});var r=n(58146),o=n(12115),a=n(47650),i="undefined"!=typeof document?o.useLayoutEffect:function(){};function l(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!l(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!l(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function s(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=s(e);return Math.round(t*n)/n}function d(e){let t=o.useRef(e);return i(()=>{t.current=e}),t}function c(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:c=[],platform:f,elements:{reference:p,floating:m}={},transform:h=!0,whileElementsMounted:v,open:g}=e,[w,y]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,x]=o.useState(c);l(b,c)||x(c);let[E,C]=o.useState(null),[M,S]=o.useState(null),k=o.useCallback(e=>{e!==T.current&&(T.current=e,C(e))},[]),D=o.useCallback(e=>{e!==P.current&&(P.current=e,S(e))},[]),N=p||E,R=m||M,T=o.useRef(null),P=o.useRef(null),j=o.useRef(w),A=null!=v,O=d(v),I=d(f),L=d(g),_=o.useCallback(()=>{if(!T.current||!P.current)return;let e={placement:t,strategy:n,middleware:b};I.current&&(e.platform=I.current),(0,r.rD)(T.current,P.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};F.current&&!l(j.current,t)&&(j.current=t,a.flushSync(()=>{y(t)}))})},[b,t,n,I,L]);i(()=>{!1===g&&j.current.isPositioned&&(j.current.isPositioned=!1,y(e=>({...e,isPositioned:!1})))},[g]);let F=o.useRef(!1);i(()=>(F.current=!0,()=>{F.current=!1}),[]),i(()=>{if(N&&(T.current=N),R&&(P.current=R),N&&R){if(O.current)return O.current(N,R,_);_()}},[N,R,_,O,A]);let W=o.useMemo(()=>({reference:T,floating:P,setReference:k,setFloating:D}),[k,D]),U=o.useMemo(()=>({reference:N,floating:R}),[N,R]),B=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!U.floating)return e;let t=u(U.floating,w.x),r=u(U.floating,w.y);return h?{...e,transform:"translate("+t+"px, "+r+"px)",...s(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,h,U.floating,w.x,w.y]);return o.useMemo(()=>({...w,update:_,refs:W,elements:U,floatingStyles:B}),[w,_,W,U,B])}let f=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),p=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),m=(e,t)=>({...(0,r.ER)(e),options:[e,t]}),h=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),v=(e,t)=>
20({...(0,r.Ej)(e),options:[e,t]}),g=(e,t)=>({...(0,r.jD)(e),options:[e,t]}),w=(e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.UE)({element:n.current,padding:o}).fn(t):{}:n?(0,r.UE)({element:n,padding:o}).fn(t):{}}}))(e),options:[e,t]})},90368:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},92118:(e,t,n)=>{n.d(t,{a:()=>o});var r=n(4168);function o(e,t){return(0,r.w)(t||e,e)}},92556:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},93366:(e,t,n)=>{n.d(t,{o:()=>o});var r=n(92118);function o(e,t){let n=(0,r.a)(e,null==t?void 0:t.in);return n.setHours(0,0,0,0),n}},94446:(e,t,n)=>{n.d(t,{s:()=>i,t:()=>a});var r=n(12115);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function i(...e){return r.useCallback(a(...e),e)}},97602:(e,t,n)=>{n.d(t,{hO:()=>s,sG:()=>l});var r=n(12115),o=n(47650),a=n(32467),i=n(95155),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,a.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o?n:t,{...a,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function s(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},97745:(e,t,n)=>{n.d(t,{Eq:()=>u});var r=new WeakMap,o=new WeakMap,a={},i=0,l=function(e){return e&&(e.host||l(e.parentNode))},s=function(e,t,n,s){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=l(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});a[n]||(a[n]=new WeakMap);var d=a[n],c=[],f=new Set,p=new Set(u),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};u.forEach(m);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var t=e.getAttribute(s),a=null!==t&&"false"!==t,i=(r.get(e)||0)+1,l=(d.get(e)||0)+1;r.set(e,i),d.set(e,l),c.push(e),1===i&&a&&o.set(e,!0),1===l&&e.setAttribute(n,"true"),a||e.setAttribute(s,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),f.clear(),i++,function(){c.forEach(function(e){var t=r.get(e)-1,a=d.get(e)-1;r.set(e,t),d.set(e,a),t||(o.has(e)||e.removeAttribute(s),o.delete(e)),a||e.removeAttribute(n)}),--i||(r=new WeakMap,r=new WeakMap,o=new WeakMap,a={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),s(r,o,n,"aria-hidden")):function(){return null}}},99051:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.