!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7e44ab18-788d-44cd-938c-a58a15357cb2",e._sentryDebugIdIdentifier="sentry-dbid-7e44ab18-788d-44cd-938c-a58a15357cb2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6599],{74548:function(e){var r,n,o,a,i,u,c,s,f,p,b,m,v,g,w,S,E,x,_,A,C,R;e.exports=(r="millisecond",n="second",o="minute",a="hour",i="week",u="month",c="quarter",s="year",f="date",p="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v=function(e,r,n){var o=String(e);return!o||o.length>=r?e:""+Array(r+1-o.length).join(n)+e},(w={})[g="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var r=["th","st","nd","rd"],n=e%100;return"["+e+(r[(n-20)%10]||r[n]||"th")+"]"}},S="$isDayjsObject",E=function(e){return e instanceof C||!(!e||!e[S])},x=function t(e,r,n){var o;if(!e)return g;if("string"==typeof e){var a=e.toLowerCase();w[a]&&(o=a),r&&(w[a]=r,o=a);var i=e.split("-");if(!o&&i.length>1)return t(i[0])}else{var u=e.name;w[u]=e,o=u}return!n&&o&&(g=o),o||!n&&g},_=function(e,r){if(E(e))return e.clone();var n="object"==typeof r?r:{};return n.date=e,n.args=arguments,new C(n)},(A={s:v,z:function(e){var r=-e.utcOffset(),n=Math.abs(r);return(r<=0?"+":"-")+v(Math.floor(n/60),2,"0")+":"+v(n%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),o=e.clone().add(n,u),a=r-o<0,i=e.clone().add(n+(a?-1:1),u);return+(-(n+(r-o)/(a?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return({M:u,y:s,w:i,d:"day",D:f,h:a,m:o,s:n,ms:r,Q:c})[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}}).l=x,A.i=E,A.w=function(e,r){return _(e,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},R=(C=function(){function M(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var e=M.prototype;return e.parse=function(e){this.$d=function(e){var r=e.date,n=e.utc;if(null===r)return new Date(NaN);if(A.u(r))return new Date;if(r instanceof Date)return new Date(r);if("string"==typeof r&&!/Z$/i.test(r)){var o=r.match(b);if(o){var a=o[2]-1||0,i=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],a,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],a,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(r)}(e),this.init()},e.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},e.$utils=function(){return A},e.isValid=function(){return this.$d.toString()!==p},e.isSame=function(e,r){var n=_(e);return this.startOf(r)<=n&&n<=this.endOf(r)},e.isAfter=function(e,r){return _(e)<this.startOf(r)},e.isBefore=function(e,r){return this.endOf(r)<_(e)},e.$g=function(e,r,n){return A.u(e)?this[r]:this.set(n,e)},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(e,r){var c=this,p=!!A.u(r)||r,b=A.p(e),l=function(e,r){var n=A.w(c.$u?Date.UTC(c.$y,r,e):new Date(c.$y,r,e),c);return p?n:n.endOf("day")},$=function(e,r){return A.w(c.toDate()[e].apply(c.toDate("s"),(p?[0,0,0,0]:[23,59,59,999]).slice(r)),c)},m=this.$W,v=this.$M,g=this.$D,w="set"+(this.$u?"UTC":"");switch(b){case s:return p?l(1,0):l(31,11);case u:return p?l(1,v):l(0,v+1);case i:var S=this.$locale().weekStart||0,E=(m<S?m+7:m)-S;return l(p?g-E:g+(6-E),v);case"day":case f:return $(w+"Hours",0);case a:return $(w+"Minutes",1);case o:return $(w+"Seconds",2);case n:return $(w+"Milliseconds",3);default:return this.clone()}},e.endOf=function(e){return this.startOf(e,!1)},e.$set=function(e,i){var c,p=A.p(e),b="set"+(this.$u?"UTC":""),m=((c={}).day=b+"Date",c[f]=b+"Date",c[u]=b+"Month",c[s]=b+"FullYear",c[a]=b+"Hours",c[o]=b+"Minutes",c[n]=b+"Seconds",c[r]=b+"Milliseconds",c)[p],v="day"===p?this.$D+(i-this.$W):i;if(p===u||p===s){var g=this.clone().set(f,1);g.$d[m](v),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else m&&this.$d[m](v);return this.init(),this},e.set=function(e,r){return this.clone().$set(e,r)},e.get=function(e){return this[A.p(e)]()},e.add=function(e,r){var c,f=this;e=Number(e);var p=A.p(r),y=function(r){var n=_(f);return A.w(n.date(n.date()+Math.round(r*e)),f)};if(p===u)return this.set(u,this.$M+e);if(p===s)return this.set(s,this.$y+e);if("day"===p)return y(1);if(p===i)return y(7);var b=((c={})[o]=6e4,c[a]=36e5,c[n]=1e3,c)[p]||1,m=this.$d.getTime()+e*b;return A.w(m,this)},e.subtract=function(e,r){return this.add(-1*e,r)},e.format=function(e){var r=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var o=e||"YYYY-MM-DDTHH:mm:ssZ",a=A.z(this),i=this.$H,u=this.$m,c=this.$M,s=n.weekdays,f=n.months,b=n.meridiem,h=function(e,n,a,i){return e&&(e[n]||e(r,o))||a[n].slice(0,i)},d=function(e){return A.s(i%12||12,e,"0")},v=b||function(e,r,n){var o=e<12?"AM":"PM";return n?o.toLowerCase():o};return o.replace(m,function(e,o){return o||function(e){switch(e){case"YY":return String(r.$y).slice(-2);case"YYYY":return A.s(r.$y,4,"0");case"M":return c+1;case"MM":return A.s(c+1,2,"0");case"MMM":return h(n.monthsShort,c,f,3);case"MMMM":return h(f,c);case"D":return r.$D;case"DD":return A.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return h(n.weekdaysMin,r.$W,s,2);case"ddd":return h(n.weekdaysShort,r.$W,s,3);case"dddd":return s[r.$W];case"H":return String(i);case"HH":return A.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return v(i,u,!0);case"A":return v(i,u,!1);case"m":return String(u);case"mm":return A.s(u,2,"0");case"s":return String(r.$s);case"ss":return A.s(r.$s,2,"0");case"SSS":return A.s(r.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")})},e.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},e.diff=function(e,r,f){var p,b=this,m=A.p(r),v=_(e),g=(v.utcOffset()-this.utcOffset())*6e4,w=this-v,D=function(){return A.m(b,v)};switch(m){case s:p=D()/12;break;case u:p=D();break;case c:p=D()/3;break;case i:p=(w-g)/6048e5;break;case"day":p=(w-g)/864e5;break;case a:p=w/36e5;break;case o:p=w/6e4;break;case n:p=w/1e3;break;default:p=w}return f?p:A.a(p)},e.daysInMonth=function(){return this.endOf(u).$D},e.$locale=function(){return w[this.$L]},e.locale=function(e,r){if(!e)return this.$L;var n=this.clone(),o=x(e,r,!0);return o&&(n.$L=o),n},e.clone=function(){return A.w(this.$d,this)},e.toDate=function(){return new Date(this.valueOf())},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toISOString=function(){return this.$d.toISOString()},e.toString=function(){return this.$d.toUTCString()},M}()).prototype,_.prototype=R,[["$ms",r],["$s",n],["$m",o],["$H",a],["$W","day"],["$M",u],["$y",s],["$D",f]].forEach(function(e){R[e[1]]=function(r){return this.$g(r,e[0],e[1])}}),_.extend=function(e,r){return e.$i||(e(r,C,_),e.$i=!0),_},_.locale=x,_.isDayjs=E,_.unix=function(e){return _(1e3*e)},_.en=w[g],_.Ls=w,_.p={},_)},13428:function(e,r,n){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(r,{Z:function(){return _extends}})},35290:function(e,r,n){"use strict";n.d(r,{z$:function(){return er},ck:function(){return et},fC:function(){return ee}});var o=n(13428),a=n(2265),i=n.t(a,2);function $e42e1063c40fb3ef$export$b9ecd428b558ff10(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(null==e||e(o),!1===n||!o.defaultPrevented)return null==r?void 0:r(o)}}function $6ed0406888f73fc4$export$43e446d32b3d21af(...e){return r=>e.forEach(e=>{"function"==typeof e?e(r):null!=e&&(e.current=r)})}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...e){return(0,a.useCallback)($6ed0406888f73fc4$export$43e446d32b3d21af(...e),e)}function $c512c27ab02ef895$export$50c7b4e9d9f19c1(e,r=[]){let n=[],createScope=()=>{let r=n.map(e=>(0,a.createContext)(e));return function(n){let o=(null==n?void 0:n[e])||r;return(0,a.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return createScope.scopeName=e,[function(r,o){let i=(0,a.createContext)(o),u=n.length;function Provider(r){let{scope:n,children:o,...c}=r,s=(null==n?void 0:n[e][u])||i,f=(0,a.useMemo)(()=>c,Object.values(c));return(0,a.createElement)(s.Provider,{value:f},o)}return n=[...n,o],Provider.displayName=r+"Provider",[Provider,function(n,c){let s=(null==c?void 0:c[e][u])||i,f=(0,a.useContext)(s);if(f)return f;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${r}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let createScope1=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((r,{useScope:n,scopeName:o})=>{let a=n(e),i=a[`__scope${o}`];return{...r,...i}},{});return(0,a.useMemo)(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return createScope1.scopeName=r.scopeName,createScope1}(createScope,...r)]}var u=n(54887);let c=(0,a.forwardRef)((e,r)=>{let{children:n,...i}=e,u=a.Children.toArray(n),c=u.find($5e63c961fc1ce211$var$isSlottable);if(c){let e=c.props.children,n=u.map(r=>r!==c?r:a.Children.count(e)>1?a.Children.only(null):(0,a.isValidElement)(e)?e.props.children:null);return(0,a.createElement)(s,(0,o.Z)({},i,{ref:r}),(0,a.isValidElement)(e)?(0,a.cloneElement)(e,void 0,n):null)}return(0,a.createElement)(s,(0,o.Z)({},i,{ref:r}),n)});c.displayName="Slot";let s=(0,a.forwardRef)((e,r)=>{let{children:n,...o}=e;return(0,a.isValidElement)(n)?(0,a.cloneElement)(n,{...function(e,r){let n={...r};for(let o in r){let a=e[o],i=r[o],u=/^on[A-Z]/.test(o);u?a&&i?n[o]=(...e)=>{i(...e),a(...e)}:a&&(n[o]=a):"style"===o?n[o]={...a,...i}:"className"===o&&(n[o]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:r?$6ed0406888f73fc4$export$43e446d32b3d21af(r,n.ref):n.ref}):a.Children.count(n)>1?a.Children.only(null):null});s.displayName="SlotClone";let $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children:e})=>(0,a.createElement)(a.Fragment,null,e);function $5e63c961fc1ce211$var$isSlottable(e){return(0,a.isValidElement)(e)&&e.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}let f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>{let n=(0,a.forwardRef)((e,n)=>{let{asChild:i,...u}=e,s=i?c:r;return(0,a.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,a.createElement)(s,(0,o.Z)({},u,{ref:n}))});return n.displayName=`Primitive.${r}`,{...e,[r]:n}},{}),p=(null==globalThis?void 0:globalThis.document)?a.useLayoutEffect:()=>{},b=i["useId".toString()]||(()=>void 0),m=0;function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(e){let r=(0,a.useRef)(e);return(0,a.useEffect)(()=>{r.current=e}),(0,a.useMemo)(()=>(...e)=>{var n;return null===(n=r.current)||void 0===n?void 0:n.call(r,...e)},[])}function $71cd76cc60e0454e$export$6f32135080cb4c3({prop:e,defaultProp:r,onChange:n=()=>{}}){let[o,i]=function({defaultProp:e,onChange:r}){let n=(0,a.useState)(e),[o]=n,i=(0,a.useRef)(o),u=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(r);return(0,a.useEffect)(()=>{i.current!==o&&(u(o),i.current=o)},[o,i,u]),n}({defaultProp:r,onChange:n}),u=void 0!==e,c=u?e:o,s=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(n),f=(0,a.useCallback)(r=>{if(u){let n="function"==typeof r?r(e):r;n!==e&&s(n)}else i(r)},[u,e,i,s]);return[c,f]}let v=(0,a.createContext)(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(e){let r=(0,a.useContext)(v);return e||r||"ltr"}let g="rovingFocusGroup.onEntryFocus",w={bubbles:!1,cancelable:!0},S="RovingFocusGroup",[E,x,_]=function(e){let r=e+"CollectionProvider",[n,o]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(r),[i,u]=n(r,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",f=a.forwardRef((e,r)=>{let{scope:n,children:o}=e,i=u(s,n),f=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,i.collectionRef);return a.createElement(c,{ref:f},o)}),p=e+"CollectionItemSlot",b="data-radix-collection-item",m=a.forwardRef((e,r)=>{let{scope:n,children:o,...i}=e,s=a.useRef(null),f=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,s),m=u(p,n);return a.useEffect(()=>(m.itemMap.set(s,{ref:s,...i}),()=>void m.itemMap.delete(s))),a.createElement(c,{[b]:"",ref:f},o)});return[{Provider:e=>{let{scope:r,children:n}=e,o=a.useRef(null),u=a.useRef(new Map).current;return a.createElement(i,{scope:r,itemMap:u,collectionRef:o},n)},Slot:f,ItemSlot:m},function(r){let n=u(e+"CollectionConsumer",r),o=a.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let r=Array.from(e.querySelectorAll(`[${b}]`)),o=Array.from(n.itemMap.values()),a=o.sort((e,n)=>r.indexOf(e.ref.current)-r.indexOf(n.ref.current));return a},[n.collectionRef,n.itemMap]);return o},o]}(S),[A,C]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(S,[_]),[R,k]=A(S),I=(0,a.forwardRef)((e,r)=>(0,a.createElement)(E.Provider,{scope:e.__scopeRovingFocusGroup},(0,a.createElement)(E.Slot,{scope:e.__scopeRovingFocusGroup},(0,a.createElement)(N,(0,o.Z)({},e,{ref:r}))))),N=(0,a.forwardRef)((e,r)=>{let{__scopeRovingFocusGroup:n,orientation:i,loop:u=!1,dir:c,currentTabStopId:s,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:b,onEntryFocus:m,...v}=e,S=(0,a.useRef)(null),E=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,S),_=$f631663db3294ace$export$b39126d51d94e6f3(c),[A=null,C]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:s,defaultProp:p,onChange:b}),[k,I]=(0,a.useState)(!1),N=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(m),O=x(n),T=(0,a.useRef)(!1),[F,L]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=S.current;if(e)return e.addEventListener(g,N),()=>e.removeEventListener(g,N)},[N]),(0,a.createElement)(R,{scope:n,orientation:i,dir:_,loop:u,currentTabStopId:A,onItemFocus:(0,a.useCallback)(e=>C(e),[C]),onItemShiftTab:(0,a.useCallback)(()=>I(!0),[]),onFocusableItemAdd:(0,a.useCallback)(()=>L(e=>e+1),[]),onFocusableItemRemove:(0,a.useCallback)(()=>L(e=>e-1),[])},(0,a.createElement)(f.div,(0,o.Z)({tabIndex:k||0===F?-1:0,"data-orientation":i},v,{ref:E,style:{outline:"none",...e.style},onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onMouseDown,()=>{T.current=!0}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onFocus,e=>{let r=!T.current;if(e.target===e.currentTarget&&r&&!k){let r=new CustomEvent(g,w);if(e.currentTarget.dispatchEvent(r),!r.defaultPrevented){let e=O().filter(e=>e.focusable),r=e.find(e=>e.active),n=e.find(e=>e.id===A),o=[r,n,...e].filter(Boolean),a=o.map(e=>e.ref.current);$d7bdfb9eb0fdf311$var$focusFirst(a)}}T.current=!1}),onBlur:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onBlur,()=>I(!1))})))}),O=(0,a.forwardRef)((e,r)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:u=!1,tabStopId:c,...s}=e,v=function(e){let[r,n]=a.useState(b());return p(()=>{e||n(e=>null!=e?e:String(m++))},[e]),e||(r?`radix-${r}`:"")}(),g=c||v,w=k("RovingFocusGroupItem",n),S=w.currentTabStopId===g,_=x(n),{onFocusableItemAdd:A,onFocusableItemRemove:C}=w;return(0,a.useEffect)(()=>{if(i)return A(),()=>C()},[i,A,C]),(0,a.createElement)(E.ItemSlot,{scope:n,id:g,focusable:i,active:u},(0,a.createElement)(f.span,(0,o.Z)({tabIndex:S?0:-1,"data-orientation":w.orientation},s,{ref:r,onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onMouseDown,e=>{i?w.onItemFocus(g):e.preventDefault()}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onFocus,()=>w.onItemFocus(g)),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){w.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let r=function(e,r,n){var o;let a=(o=e.key,"rtl"!==n?o:"ArrowLeft"===o?"ArrowRight":"ArrowRight"===o?"ArrowLeft":o);if(!("vertical"===r&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===r&&["ArrowUp","ArrowDown"].includes(a)))return T[a]}(e,w.orientation,w.dir);if(void 0!==r){e.preventDefault();let a=_().filter(e=>e.focusable),i=a.map(e=>e.ref.current);if("last"===r)i.reverse();else if("prev"===r||"next"===r){var n,o;"prev"===r&&i.reverse();let a=i.indexOf(e.currentTarget);i=w.loop?(n=i,o=a+1,n.map((e,r)=>n[(o+r)%n.length])):i.slice(a+1)}setTimeout(()=>$d7bdfb9eb0fdf311$var$focusFirst(i))}})})))}),T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $d7bdfb9eb0fdf311$var$focusFirst(e){let r=document.activeElement;for(let n of e)if(n===r||(n.focus(),document.activeElement!==r))return}let $921a889cee6df7e8$export$99c2b779aa4e8b8b=e=>{let{present:r,children:n}=e,o=function(e){var r;let[n,o]=(0,a.useState)(),i=(0,a.useRef)({}),c=(0,a.useRef)(e),s=(0,a.useRef)("none"),f=e?"mounted":"unmounted",[b,m]=(r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,a.useReducer)((e,n)=>{let o=r[e][n];return null!=o?o:e},f));return(0,a.useEffect)(()=>{let e=$921a889cee6df7e8$var$getAnimationName(i.current);s.current="mounted"===b?e:"none"},[b]),p(()=>{let r=i.current,n=c.current,o=n!==e;if(o){let o=s.current,a=$921a889cee6df7e8$var$getAnimationName(r);e?m("MOUNT"):"none"===a||(null==r?void 0:r.display)==="none"?m("UNMOUNT"):n&&o!==a?m("ANIMATION_OUT"):m("UNMOUNT"),c.current=e}},[e,m]),p(()=>{if(n){let handleAnimationEnd=e=>{let r=$921a889cee6df7e8$var$getAnimationName(i.current),o=r.includes(e.animationName);e.target===n&&o&&(0,u.flushSync)(()=>m("ANIMATION_END"))},handleAnimationStart=e=>{e.target===n&&(s.current=$921a889cee6df7e8$var$getAnimationName(i.current))};return n.addEventListener("animationstart",handleAnimationStart),n.addEventListener("animationcancel",handleAnimationEnd),n.addEventListener("animationend",handleAnimationEnd),()=>{n.removeEventListener("animationstart",handleAnimationStart),n.removeEventListener("animationcancel",handleAnimationEnd),n.removeEventListener("animationend",handleAnimationEnd)}}m("ANIMATION_END")},[n,m]),{isPresent:["mounted","unmountSuspended"].includes(b),ref:(0,a.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),o(e)},[])}}(r),i="function"==typeof n?n({present:o.isPresent}):a.Children.only(n),c=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(o.ref,i.ref),s="function"==typeof n;return s||o.isPresent?(0,a.cloneElement)(i,{ref:c}):null};function $921a889cee6df7e8$var$getAnimationName(e){return(null==e?void 0:e.animationName)||"none"}$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";let F="Radio",[L,P]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(F),[U,Z]=L(F),H=(0,a.forwardRef)((e,r)=>{let{__scopeRadio:n,name:i,checked:u=!1,required:c,disabled:s,value:p="on",onCheck:b,...m}=e,[v,g]=(0,a.useState)(null),w=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,e=>g(e)),S=(0,a.useRef)(!1),E=!v||!!v.closest("form");return(0,a.createElement)(U,{scope:n,checked:u,disabled:s},(0,a.createElement)(f.button,(0,o.Z)({type:"button",role:"radio","aria-checked":u,"data-state":$ce77a8961b41be9e$var$getState(u),"data-disabled":s?"":void 0,disabled:s,value:p},m,{ref:w,onClick:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onClick,e=>{u||null==b||b(),E&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})})),E&&(0,a.createElement)($ce77a8961b41be9e$var$BubbleInput,{control:v,bubbles:!S.current,name:i,value:p,checked:u,required:c,disabled:s,style:{transform:"translateX(-100%)"}}))}),Y=(0,a.forwardRef)((e,r)=>{let{__scopeRadio:n,forceMount:i,...u}=e,c=Z("RadioIndicator",n);return(0,a.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:i||c.checked},(0,a.createElement)(f.span,(0,o.Z)({"data-state":$ce77a8961b41be9e$var$getState(c.checked),"data-disabled":c.disabled?"":void 0},u,{ref:r})))}),$ce77a8961b41be9e$var$BubbleInput=e=>{let{control:r,checked:n,bubbles:i=!0,...u}=e,c=(0,a.useRef)(null),s=function(e){let r=(0,a.useRef)({value:e,previous:e});return(0,a.useMemo)(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}(n),f=function(e){let[r,n]=(0,a.useState)(void 0);return p(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(r=>{let o,a;if(!Array.isArray(r)||!r.length)return;let i=r[0];if("borderBoxSize"in i){let e=i.borderBoxSize,r=Array.isArray(e)?e[0]:e;o=r.inlineSize,a=r.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}n(void 0)},[e]),r}(r);return(0,a.useEffect)(()=>{let e=c.current,r=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(r,"checked"),a=o.set;if(s!==n&&a){let r=new Event("click",{bubbles:i});a.call(e,n),e.dispatchEvent(r)}},[s,n,i]),(0,a.createElement)("input",(0,o.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},u,{tabIndex:-1,ref:c,style:{...e.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function $ce77a8961b41be9e$var$getState(e){return e?"checked":"unchecked"}let G=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],j="RadioGroup",[V,W]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(j,[C,P]),z=C(),K=P(),[q,B]=V(j),J=(0,a.forwardRef)((e,r)=>{let{__scopeRadioGroup:n,name:i,defaultValue:u,value:c,required:s=!1,disabled:p=!1,orientation:b,dir:m,loop:v=!0,onValueChange:g,...w}=e,S=z(n),E=$f631663db3294ace$export$b39126d51d94e6f3(m),[x,_]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:c,defaultProp:u,onChange:g});return(0,a.createElement)(q,{scope:n,name:i,required:s,disabled:p,value:x,onValueChange:_},(0,a.createElement)(I,(0,o.Z)({asChild:!0},S,{orientation:b,dir:E,loop:v}),(0,a.createElement)(f.div,(0,o.Z)({role:"radiogroup","aria-required":s,"aria-orientation":b,"data-disabled":p?"":void 0,dir:E},w,{ref:r}))))}),Q=(0,a.forwardRef)((e,r)=>{let{__scopeRadioGroup:n,disabled:i,...u}=e,c=B("RadioGroupItem",n),s=c.disabled||i,f=z(n),p=K(n),b=(0,a.useRef)(null),m=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,b),v=c.value===u.value,g=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let handleKeyDown=e=>{G.includes(e.key)&&(g.current=!0)},handleKeyUp=()=>g.current=!1;return document.addEventListener("keydown",handleKeyDown),document.addEventListener("keyup",handleKeyUp),()=>{document.removeEventListener("keydown",handleKeyDown),document.removeEventListener("keyup",handleKeyUp)}},[]),(0,a.createElement)(O,(0,o.Z)({asChild:!0},f,{focusable:!s,active:v}),(0,a.createElement)(H,(0,o.Z)({disabled:s,required:c.required,checked:v},p,u,{name:c.name,ref:m,onCheck:()=>c.onValueChange(u.value),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(u.onFocus,()=>{var e;g.current&&(null===(e=b.current)||void 0===e||e.click())})})))}),X=(0,a.forwardRef)((e,r)=>{let{__scopeRadioGroup:n,...i}=e,u=K(n);return(0,a.createElement)(Y,(0,o.Z)({},u,i,{ref:r}))}),ee=J,et=Q,er=X}}]);