import{r as b,R as N,d as on,e as Aa,j as P,c as ke,t as ai,C as si,a as Pa,Q as $a,b as Ia}from"./QueryClientProvider-B2RIBDNu.js?v=89463454277";import{b as vn,S as at,H as ci,T as Nt,u as Gt,C as _a,a as Na}from"./analytics-BLhEC5mU.js?v=89463454277";var sr=function(){return sr=Object.assign||function(t){for(var n,r=1,o=arguments.length;rn.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Va="$$material";function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?se(Rt,--le):0,Ct--,oe===10&&(Ct=1,wn--),oe}function he(){return oe=le2||Lt(oe)>3?"":" "}function ts(e,t){for(;--t&&he()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return Dt(e,Jt()+(t<6&&Ie()==32&&he()==32))}function mr(e){for(;he();)switch(oe){case e:return le;case 34:case 39:e!==34&&e!==39&&mr(oe);break;case 40:e===41&&mr(e);break;case 92:he();break}return le}function ns(e,t){for(;he()&&e+oe!==57;)if(e+oe===84&&Ie()===47)break;return"/*"+Dt(t,le-1)+"*"+xn(e===47?e:he())}function rs(e){for(;!Lt(Ie());)he();return Dt(e,le)}function os(e){return vi(tn("",null,null,null,[""],e=bi(e),0,[0],e))}function tn(e,t,n,r,o,i,a,s,c){for(var l=0,f=0,p=a,g=0,m=0,h=0,d=1,y=1,S=1,v=0,C="",E=o,T=i,O=r,R=C;y;)switch(h=v,v=he()){case 40:if(h!=108&&se(R,p-1)==58){pr(R+=H(en(v),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:R+=en(v);break;case 9:case 10:case 13:case 32:R+=es(h);break;case 92:R+=ts(Jt()-1,7);continue;case 47:switch(Ie()){case 42:case 47:qt(is(ns(he(),Jt()),t,n),c);break;default:R+="/"}break;case 123*d:s[l++]=Ae(R)*S;case 125*d:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+f:S==-1&&(R=H(R,/\f/g,"")),m>0&&Ae(R)-p&&qt(m>32?Qr(R+";",r,n,p-1):Qr(H(R," ","")+";",r,n,p-2),c);break;case 59:R+=";";default:if(qt(O=Zr(R,t,n,l,f,o,s,C,E=[],T=[],p),i),v===123)if(f===0)tn(R,t,O,O,E,i,p,s,T);else switch(g===99&&se(R,3)===110?100:g){case 100:case 108:case 109:case 115:tn(e,O,O,r&&qt(Zr(e,O,O,0,0,o,s,C,o,E=[],p),T),o,T,p,s,r?E:T);break;default:tn(R,O,O,O,[""],T,0,s,T)}}l=f=m=0,d=S=1,C=R="",p=a;break;case 58:p=1+Ae(R),m=h;default:if(d<1){if(v==123)--d;else if(v==125&&d++==0&&Ja()==125)continue}switch(R+=xn(v),v*d){case 38:S=f>0?1:(R+="\f",-1);break;case 44:s[l++]=(Ae(R)-1)*S,S=1;break;case 64:Ie()===45&&(R+=en(he())),g=Ie(),f=p=Ae(C=R+=rs(Jt())),v++;break;case 45:h===45&&Ae(R)==2&&(d=0)}}return i}function Zr(e,t,n,r,o,i,a,s,c,l,f){for(var p=o-1,g=o===0?i:[""],m=Nr(g),h=0,d=0,y=0;h0?g[S]+" "+v:H(v,/&\f/g,g[S])))&&(c[y++]=C);return Sn(e,t,n,o===0?Ir:s,c,l,f)}function is(e,t,n){return Sn(e,t,n,mi,xn(Qa()),Ft(e,2,-2),0)}function Qr(e,t,n,r){return Sn(e,t,n,_r,Ft(e,0,r),Ft(e,r+1,-1),r)}function yt(e,t){for(var n="",r=Nr(e),o=0;o6)switch(se(e,t+1)){case 109:if(se(e,t+4)!==45)break;case 102:return H(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+an+(se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~pr(e,"stretch")?wi(H(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(se(e,t+1)!==115)break;case 6444:switch(se(e,Ae(e)-3-(~pr(e,"!important")&&10))){case 107:return H(e,":",":"+z)+e;case 101:return H(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(se(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+ce+"$2box$3")+e}break;case 5936:switch(se(e,t+11)){case 114:return z+e+ce+H(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+ce+H(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+ce+H(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+ce+e+e}return e}var ms=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case _r:t.return=wi(t.value,t.length);break;case gi:return yt([At(t,{value:H(t.value,"@","@"+z)})],o);case Ir:if(t.length)return Za(t.props,function(i){switch(Xa(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yt([At(t,{props:[H(i,/:(read-\w+)/,":"+an+"$1")]})],o);case"::placeholder":return yt([At(t,{props:[H(i,/:(plac\w+)/,":"+z+"input-$1")]}),At(t,{props:[H(i,/:(plac\w+)/,":"+an+"$1")]}),At(t,{props:[H(i,/:(plac\w+)/,ce+"input-$1")]})],o)}return""})}},gs=[ms],hs=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(d){var y=d.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(d),d.setAttribute("data-s",""))})}var o=t.stylisPlugins||gs,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(d){for(var y=d.getAttribute("data-emotion").split(" "),S=1;S=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ws={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ss=/[A-Z]|^ms/g,Cs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ci=function(t){return t.charCodeAt(1)===45},eo=function(t){return t!=null&&typeof t!="boolean"},Gn=xi(function(e){return Ci(e)?e:e.replace(Ss,"-$&").toLowerCase()}),to=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Cs,function(r,o,i){return Pe={name:o,styles:i,next:Pe},o})}return ws[t]!==1&&!Ci(t)&&typeof n=="number"&&n!==0?n+"px":n};function jt(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Pe={name:o.name,styles:o.styles,next:Pe},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Pe={name:a.name,styles:a.styles,next:Pe},a=a.next;var s=i.styles+";";return s}return Es(e,t,n)}case"function":{if(e!==void 0){var c=Pe,l=n(e);return Pe=c,jt(e,t,l)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function Es(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Is:_s},oo=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Ns=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Si(n,r,o),Rs(function(){return vs(n,r,o)}),null},Ms=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=oo(t,n,r),c=s||ro(o),l=!c("as");return function(){var f=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{var g=f[0];p.push(g[0]);for(var m=f.length,h=1;h{t[n]=Ri(e[n])}),t}function ye(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Be(e)&&Be(t)&&Object.keys(t).forEach(o=>{b.isValidElement(t[o])||ki.isValidElementType(t[o])?r[o]=t[o]:Be(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Be(e[o])?r[o]=ye(e[o],t[o],n):n.clone?r[o]=Be(t[o])?Ri(t[o]):t[o]:r[o]=t[o]}),r}const Vs=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Ws(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=Vs(t),a=Object.keys(i);function s(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function c(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function l(g,m){const h=a.indexOf(m);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(h!==-1&&typeof t[a[h]]=="number"?t[a[h]]:m)-r/100}${n})`}function f(g){return a.indexOf(g)+1r.startsWith("@container")).sort((r,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(r.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function zs(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Hs(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function Ks(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const c=t(e.breakpoints.not(...s),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Us={borderRadius:4};function It(e,t){return t?ye(e,t,{clone:!1}):e}const Cn={xs:0,sm:600,md:900,lg:1200,xl:1536},lo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cn[e]}px)`},Gs={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Cn[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ve(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||lo;return t.reduce((a,s,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||lo;return Object.keys(t).reduce((a,s)=>{if(zs(i.keys,s)){const c=Hs(r.containerQueries?r:Gs,s);c&&(a[c]=n(t[s],s))}else if(Object.keys(i.values||Cn).includes(s)){const c=i.up(s);a[c]=n(t[s],s)}else{const c=s;a[c]=t[c]}return a},{})}return n(t)}function qs(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function uo(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function pe(e){if(typeof e!="string")throw new Error(st(7));return e.charAt(0).toUpperCase()+e.slice(1)}function En(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function sn(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=En(e,n)||r,t&&(o=t(o,r,e)),o}function ne(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],c=a.theme,l=En(c,r)||{};return Ve(a,s,p=>{let g=sn(l,o,p);return p===g&&typeof p=="string"&&(g=sn(l,o,`${t}${p==="default"?"":pe(p)}`,p)),n===!1?g:{[n]:g}})};return i.propTypes={},i.filterProps=[t],i}function Ys(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Xs={m:"margin",p:"padding"},Zs={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Qs=Ys(e=>{if(e.length>2)if(fo[e])e=fo[e];else return[e];const[t,n]=e.split(""),r=Xs[t],o=Zs[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Mr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Mr,...Fr];function Vt(e,t,n,r){const o=En(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function Lr(e){return Vt(e,"spacing",8)}function Wt(e,t){return typeof t=="string"||t==null?t:e(t)}function Js(e,t){return n=>e.reduce((r,o)=>(r[o]=Wt(t,n),r),{})}function ec(e,t,n,r){if(!t.includes(n))return null;const o=Qs(n),i=Js(o,r),a=e[n];return Ve(e,a,i)}function Ti(e,t){const n=Lr(e.theme);return Object.keys(e).map(r=>ec(e,t,r,n)).reduce(It,{})}function Q(e){return Ti(e,Mr)}Q.propTypes={};Q.filterProps=Mr;function J(e){return Ti(e,Fr)}J.propTypes={};J.filterProps=Fr;function Ai(e=8,t=Lr({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function On(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?It(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function we(e){return typeof e!="number"?e:`${e}px solid`}function Ee(e,t){return ne({prop:e,themeKey:"borders",transform:t})}const tc=Ee("border",we),nc=Ee("borderTop",we),rc=Ee("borderRight",we),oc=Ee("borderBottom",we),ic=Ee("borderLeft",we),ac=Ee("borderColor"),sc=Ee("borderTopColor"),cc=Ee("borderRightColor"),lc=Ee("borderBottomColor"),uc=Ee("borderLeftColor"),fc=Ee("outline",we),dc=Ee("outlineColor"),kn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vt(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Wt(t,r)});return Ve(e,e.borderRadius,n)}return null};kn.propTypes={};kn.filterProps=["borderRadius"];On(tc,nc,rc,oc,ic,ac,sc,cc,lc,uc,kn,fc,dc);const Rn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vt(e.theme,"spacing",8),n=r=>({gap:Wt(t,r)});return Ve(e,e.gap,n)}return null};Rn.propTypes={};Rn.filterProps=["gap"];const Tn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vt(e.theme,"spacing",8),n=r=>({columnGap:Wt(t,r)});return Ve(e,e.columnGap,n)}return null};Tn.propTypes={};Tn.filterProps=["columnGap"];const An=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vt(e.theme,"spacing",8),n=r=>({rowGap:Wt(t,r)});return Ve(e,e.rowGap,n)}return null};An.propTypes={};An.filterProps=["rowGap"];const pc=ne({prop:"gridColumn"}),mc=ne({prop:"gridRow"}),gc=ne({prop:"gridAutoFlow"}),hc=ne({prop:"gridAutoColumns"}),yc=ne({prop:"gridAutoRows"}),bc=ne({prop:"gridTemplateColumns"}),vc=ne({prop:"gridTemplateRows"}),xc=ne({prop:"gridTemplateAreas"}),wc=ne({prop:"gridArea"});On(Rn,Tn,An,pc,mc,gc,hc,yc,bc,vc,xc,wc);function bt(e,t){return t==="grey"?t:e}const Sc=ne({prop:"color",themeKey:"palette",transform:bt}),Cc=ne({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bt}),Ec=ne({prop:"backgroundColor",themeKey:"palette",transform:bt});On(Sc,Cc,Ec);function me(e){return e<=1&&e!==0?`${e*100}%`:e}const Oc=ne({prop:"width",transform:me}),jr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Cn[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:me(n)}};return Ve(e,e.maxWidth,t)}return null};jr.filterProps=["maxWidth"];const kc=ne({prop:"minWidth",transform:me}),Rc=ne({prop:"height",transform:me}),Tc=ne({prop:"maxHeight",transform:me}),Ac=ne({prop:"minHeight",transform:me});ne({prop:"size",cssProperty:"width",transform:me});ne({prop:"size",cssProperty:"height",transform:me});const Pc=ne({prop:"boxSizing"});On(Oc,jr,kc,Rc,Tc,Ac,Pc);const Pn={border:{themeKey:"borders",transform:we},borderTop:{themeKey:"borders",transform:we},borderRight:{themeKey:"borders",transform:we},borderBottom:{themeKey:"borders",transform:we},borderLeft:{themeKey:"borders",transform:we},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:we},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:kn},color:{themeKey:"palette",transform:bt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bt},backgroundColor:{themeKey:"palette",transform:bt},p:{style:J},pt:{style:J},pr:{style:J},pb:{style:J},pl:{style:J},px:{style:J},py:{style:J},padding:{style:J},paddingTop:{style:J},paddingRight:{style:J},paddingBottom:{style:J},paddingLeft:{style:J},paddingX:{style:J},paddingY:{style:J},paddingInline:{style:J},paddingInlineStart:{style:J},paddingInlineEnd:{style:J},paddingBlock:{style:J},paddingBlockStart:{style:J},paddingBlockEnd:{style:J},m:{style:Q},mt:{style:Q},mr:{style:Q},mb:{style:Q},ml:{style:Q},mx:{style:Q},my:{style:Q},margin:{style:Q},marginTop:{style:Q},marginRight:{style:Q},marginBottom:{style:Q},marginLeft:{style:Q},marginX:{style:Q},marginY:{style:Q},marginInline:{style:Q},marginInlineStart:{style:Q},marginInlineEnd:{style:Q},marginBlock:{style:Q},marginBlockStart:{style:Q},marginBlockEnd:{style:Q},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Rn},rowGap:{style:An},columnGap:{style:Tn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:me},maxWidth:{style:jr},minWidth:{transform:me},height:{transform:me},maxHeight:{transform:me},minHeight:{transform:me},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function $c(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Ic(e,t){return typeof e=="function"?e(t):e}function _c(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:f,style:p}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const g=En(o,l)||{};return p?p(a):Ve(a,r,h=>{let d=sn(g,f,h);return h===d&&typeof h=="string"&&(d=sn(g,f,`${n}${h==="default"?"":pe(h)}`,h)),c===!1?d:{[c]:d}})}function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Pn;function s(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const f=qs(o.breakpoints),p=Object.keys(f);let g=f;return Object.keys(l).forEach(m=>{const h=Ic(l[m],o);if(h!=null)if(typeof h=="object")if(a[m])g=It(g,e(m,h,o,a));else{const d=Ve({theme:o},h,y=>({[m]:y}));$c(d,h)?g[m]=t({sx:h,theme:o,nested:!0}):g=It(g,d)}else g=It(g,e(m,h,o,a))}),!i&&o.modularCssLayers?{"@layer sx":co(o,uo(p,g))}:co(o,uo(p,g))}return Array.isArray(r)?r.map(s):s(r)}return t}const Et=_c();Et.filterProps=["sx"];function Nc(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Pi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=Ws(n),c=Ai(o);let l=ye({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...Us,...i}},a);return l=Ks(l),l.applyStyles=Nc,l=t.reduce((f,p)=>ye(f,p),l),l.unstable_sxConfig={...Pn,...a?.unstable_sxConfig},l.unstable_sx=function(p){return Et({sx:p,theme:this})},l}const po=e=>e,Mc=()=>{let e=po;return{configure(t){e=t},generate(t){return e(t)},reset(){e=po}}},Fc=Mc();function $i(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=Ii(e,o,n)}),r}function _i(e){const{variants:t,...n}=e,r={variants:t,style:ot(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=ot(o.style))}),r}const Bc=Pi();function Yn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function rt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Dc(e){return e?(t,n)=>n[e]:null}function Vc(e,t,n){e.theme=Hc(e.theme)?n:e.theme[t]||e.theme}function nn(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>nn(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?rt(r.style,n):r.style;else{const{variants:i,...a}=r;o=n?rt(ot(a),n):a}return Ni(e,r.variants,[o],n)}return r?.isProcessed?n?rt(ot(r.style),n):r.style:n?rt(ot(r),n):r}function Ni(e,t,n=[],r=void 0){let o;e:for(let i=0;i{js(s,O=>O.filter(R=>R!==Et));const{name:l,slot:f,skipVariantsResolver:p,skipSx:g,overridesResolver:m=Dc(Uc(f)),...h}=c,d=l&&l.startsWith("Mui")||f?"components":"custom",y=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,S=g||!1;let v=Yn;f==="Root"||f==="root"?v=r:f?v=o:Kc(s)&&(v=void 0);const C=Ls(s,{shouldForwardProp:v,label:zc(),...h}),E=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(M){return nn(M,O,M.theme.modularCssLayers?d:void 0)};if(Be(O)){const R=_i(O);return function(L){return R.variants?nn(L,R,L.theme.modularCssLayers?d:void 0):L.theme.modularCssLayers?rt(R.style,d):R.style}}return O},T=(...O)=>{const R=[],M=O.map(E),L=[];if(R.push(i),l&&m&&L.push(function($){const k=$.theme.components?.[l]?.styleOverrides;if(!k)return null;const I={};for(const F in k)I[F]=nn($,k[F],$.theme.modularCssLayers?"theme":void 0);return m($,I)}),l&&!y&&L.push(function($){const k=$.theme?.components?.[l]?.variants;return k?Ni($,k,[],$.theme.modularCssLayers?"theme":void 0):null}),S||L.push(Et),Array.isArray(M[0])){const u=M.shift(),$=new Array(R.length).fill(""),x=new Array(L.length).fill("");let k;k=[...$,...u,...x],k.raw=[...$,...u.raw,...x],R.unshift(k)}const j=[...R,...M,...L],_=C(...j);return s.muiName&&(_.muiName=s.muiName),_};return C.withConfig&&(T.withConfig=C.withConfig),T}}function zc(e,t){return void 0}function Hc(e){for(const t in e)return!1;return!0}function Kc(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Uc(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function hr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],s=t[i];if(!s)r[i]=a||{};else if(!a)r[i]=s;else{r[i]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const l=c;r[i][l]=hr(a[l],s[l],n)}}}else i==="className"&&n&&t.className?r.className=cn(e?.className,t?.className):i==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[i]===void 0&&(r[i]=e[i])}return r}function Gc(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Br(e,t=0,n=1){return Gc(e,t,n)}function qc(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Qe(e){if(e.type)return e;if(e.charAt(0)==="#")return Qe(qc(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(st(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(st(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Yc=e=>{const t=Qe(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Pt=(e,t)=>{try{return Yc(e)}catch{return e}};function $n(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Mi(e){e=Qe(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(l,f=(l+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),$n({type:s,values:c})}function yr(e){e=Qe(e);let t=e.type==="hsl"||e.type==="hsla"?Qe(Mi(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Xc(e,t){const n=yr(e),r=yr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Fi(e,t){return e=Qe(e),t=Br(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$n(e)}function nt(e,t,n){try{return Fi(e,t)}catch{return e}}function In(e,t){if(e=Qe(e),t=Br(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return $n(e)}function U(e,t,n){try{return In(e,t)}catch{return e}}function _n(e,t){if(e=Qe(e),t=Br(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return $n(e)}function G(e,t,n){try{return _n(e,t)}catch{return e}}function Zc(e,t=.15){return yr(e)>.5?In(e,t):_n(e,t)}function Yt(e,t,n){try{return Zc(e,t)}catch{return e}}const Qc=b.createContext(void 0);function Jc(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?hr(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?hr(o,r,t.components.mergeClassNameAndStyle):r}function el({props:e,name:t}){const n=b.useContext(Qc);return Jc({props:e,name:t,theme:{components:n}})}const mo={theme:void 0};function tl(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(mo.theme=o.theme,i=_i(e(mo)),t=i,n=o.theme),i}}function nl(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const go=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},rl=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,c])=>{(!n||n&&!n([...i,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...i,s],Array.isArray(c)?[...a,s]:a):t([...i,s],c,a))})}r(e)},ol=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Xn(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return rl(e,(s,c,l)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(s,c))){const f=`--${n?`${n}-`:""}${s.join("-")}`,p=ol(s,c);Object.assign(o,{[f]:p}),go(i,s,`var(${f})`,l),go(a,s,`var(${f}, ${p})`,l)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function il(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...l}=e,{vars:f,css:p,varsWithDefaults:g}=Xn(l,t);let m=g;const h={},{[c]:d,...y}=a;if(Object.entries(y||{}).forEach(([E,T])=>{const{vars:O,css:R,varsWithDefaults:M}=Xn(T,t);m=ye(m,M),h[E]={css:R,vars:O}}),d){const{css:E,vars:T,varsWithDefaults:O}=Xn(d,t);m=ye(m,O),h[c]={css:E,vars:T}}function S(E,T){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),E){if(O==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${a[E]?.palette?.mode||E})`]:{":root":T}};if(O)return e.defaultColorScheme===E?`:root, ${O.replace("%s",String(E))}`:O.replace("%s",String(E))}return":root"}return{vars:m,generateThemeVars:()=>{let E={...f};return Object.entries(h).forEach(([,{vars:T}])=>{E=ye(E,T)}),E},generateStyleSheets:()=>{const E=[],T=e.defaultColorScheme||"light";function O(L,j){Object.keys(j).length&&E.push(typeof L=="string"?{[L]:{...j}}:L)}O(n(void 0,{...p}),p);const{[T]:R,...M}=h;if(R){const{css:L}=R,j=a[T]?.palette?.mode,_=!r&&j?{colorScheme:j,...L}:{...L};O(n(T,{..._}),_)}return Object.entries(M).forEach(([L,{css:j}])=>{const _=a[L]?.palette?.mode,u=!r&&_?{colorScheme:_,...j}:{...j};O(n(L,{...u}),u)}),i&&E.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),E}}}function al(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function sl(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let c=0;c=n?br.text.primary:ji.text.primary}const m=({color:y,name:S,mainShade:v=500,lightShade:C=300,darkShade:E=700})=>{if(y={...y},!y.main&&y[v]&&(y.main=y[v]),!y.hasOwnProperty("main"))throw new Error(st(11,S?` (${S})`:"",v));if(typeof y.main!="string")throw new Error(st(12,S?` (${S})`:"",JSON.stringify(y.main)));return o?(yo(o,y,"light",C,r),yo(o,y,"dark",E,r)):(ho(y,"light",C,r),ho(y,"dark",E,r)),y.contrastText||(y.contrastText=g(y.main)),y};let h;return t==="light"?h=Li():t==="dark"&&(h=Bi()),ye({common:{...Mt},mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:f,name:"success"}),grey:Da,contrastThreshold:n,getContrastText:g,augmentColor:m,tonalOffset:r,...h},i)}function gl(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function hl(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function yl(e){return Math.round(e*1e5)/1e5}const bo={textTransform:"uppercase"},vo='"Roboto", "Helvetica", "Arial", sans-serif';function bl(e,t){const{fontFamily:n=vo,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:f,...p}=typeof t=="function"?t(e):t,g=r/14,m=f||(y=>`${y/c*g}rem`),h=(y,S,v,C,E)=>({fontFamily:n,fontWeight:y,fontSize:m(S),lineHeight:v,...n===vo?{letterSpacing:`${yl(C/S)}em`}:{},...E,...l}),d={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,bo),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,bo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ye({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...d},p,{clone:!1})}const vl=.2,xl=.14,wl=.12;function Z(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${vl})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xl})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wl})`].join(",")}const Sl=["none",Z(0,2,1,-1,0,1,1,0,0,1,3,0),Z(0,3,1,-2,0,2,2,0,0,1,5,0),Z(0,3,3,-2,0,3,4,0,0,1,8,0),Z(0,2,4,-1,0,4,5,0,0,1,10,0),Z(0,3,5,-1,0,5,8,0,0,1,14,0),Z(0,3,5,-1,0,6,10,0,0,1,18,0),Z(0,4,5,-2,0,7,10,1,0,2,16,1),Z(0,5,5,-3,0,8,10,1,0,3,14,2),Z(0,5,6,-3,0,9,12,1,0,3,16,2),Z(0,6,6,-3,0,10,14,1,0,4,18,3),Z(0,6,7,-4,0,11,15,1,0,4,20,3),Z(0,7,8,-4,0,12,17,2,0,5,22,4),Z(0,7,8,-4,0,13,19,2,0,5,24,4),Z(0,7,9,-4,0,14,21,2,0,5,26,4),Z(0,8,9,-5,0,15,22,2,0,6,28,5),Z(0,8,10,-5,0,16,24,2,0,6,30,5),Z(0,8,11,-5,0,17,26,2,0,6,32,5),Z(0,9,11,-5,0,18,28,2,0,7,34,6),Z(0,9,12,-6,0,19,29,2,0,7,36,6),Z(0,10,13,-6,0,20,31,3,0,8,38,7),Z(0,10,13,-6,0,21,33,3,0,8,40,7),Z(0,10,14,-6,0,22,35,3,0,8,42,7),Z(0,11,14,-7,0,23,36,3,0,9,44,8),Z(0,11,15,-7,0,24,38,3,0,9,46,8)],Cl={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},El={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xo(e){return`${Math.round(e)}ms`}function Ol(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function kl(e){const t={...Cl,...e.easing},n={...El,...e.duration};return{getAutoHeightDuration:Ol,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0,...l}=i;return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:xo(a)} ${s} ${typeof c=="string"?c:xo(c)}`).join(",")},...e,easing:t,duration:n}}const Rl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Tl(e){return Be(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Di(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;rye(h,d),m),m.unstable_sxConfig={...Pn,...f?.unstable_sxConfig},m.unstable_sx=function(d){return Et({sx:d,theme:this})},m.toRuntimeSource=Di,Pl(m),m}function $l(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Il=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=$l(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Vi(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Wi(e){return e==="dark"?Il:[]}function _l(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=Dr({...t,colorSpace:o});return{palette:a,opacity:{...Vi(a.mode),...n},overlays:r||Wi(a.mode),...i}}function Nl(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Ml=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Fl=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Ml(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Ll(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function w(e,t,n){!e[t]&&n&&(e[t]=n)}function $t(e){return typeof e!="string"||!e.startsWith("hsl")?e:Mi(e)}function je(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Pt($t(e[t])))}function jl(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Te=e=>{try{return e()}catch{}},Bl=(e="mui")=>nl(e);function Zn(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=_l({...n,palette:{mode:i,...n?.palette},colorSpace:e});return}const{palette:a,...s}=vr({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...Vi(i),...n?.opacity},overlays:n?.overlays||Wi(i)},s}function Dl(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Nl,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...f}=e,p=Object.keys(n)[0],g=r||(n.light&&p!=="light"?"light":p),m=Bl(i),{[g]:h,light:d,dark:y,...S}=n,v={...S};let C=h;if((g==="dark"&&!("dark"in n)||g==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(st(21,g));let E;a&&(E="oklch");const T=Zn(E,v,C,f,g);d&&!v.light&&Zn(E,v,d,void 0,"light"),y&&!v.dark&&Zn(E,v,y,void 0,"dark");let O={defaultColorScheme:g,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:m,colorSchemes:v,font:{...gl(T.typography),...T.font},spacing:jl(f.spacing)};Object.keys(O.colorSchemes).forEach(_=>{const u=O.colorSchemes[_].palette,$=k=>{const I=k.split("-"),F=I[1],A=I[2];return m(k,u[F][A])};u.mode==="light"&&(w(u.common,"background","#fff"),w(u.common,"onBackground","#000")),u.mode==="dark"&&(w(u.common,"background","#000"),w(u.common,"onBackground","#fff"));function x(k,I,F){if(E){let A;return k===nt&&(A=`transparent ${((1-F)*100).toFixed(0)}%`),k===U&&(A=`#000 ${(F*100).toFixed(0)}%`),k===G&&(A=`#fff ${(F*100).toFixed(0)}%`),`color-mix(in ${E}, ${I}, ${A})`}return k(I,F)}if(Ll(u,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),u.mode==="light"){w(u.Alert,"errorColor",x(U,u.error.light,.6)),w(u.Alert,"infoColor",x(U,u.info.light,.6)),w(u.Alert,"successColor",x(U,u.success.light,.6)),w(u.Alert,"warningColor",x(U,u.warning.light,.6)),w(u.Alert,"errorFilledBg",$("palette-error-main")),w(u.Alert,"infoFilledBg",$("palette-info-main")),w(u.Alert,"successFilledBg",$("palette-success-main")),w(u.Alert,"warningFilledBg",$("palette-warning-main")),w(u.Alert,"errorFilledColor",Te(()=>u.getContrastText(u.error.main))),w(u.Alert,"infoFilledColor",Te(()=>u.getContrastText(u.info.main))),w(u.Alert,"successFilledColor",Te(()=>u.getContrastText(u.success.main))),w(u.Alert,"warningFilledColor",Te(()=>u.getContrastText(u.warning.main))),w(u.Alert,"errorStandardBg",x(G,u.error.light,.9)),w(u.Alert,"infoStandardBg",x(G,u.info.light,.9)),w(u.Alert,"successStandardBg",x(G,u.success.light,.9)),w(u.Alert,"warningStandardBg",x(G,u.warning.light,.9)),w(u.Alert,"errorIconColor",$("palette-error-main")),w(u.Alert,"infoIconColor",$("palette-info-main")),w(u.Alert,"successIconColor",$("palette-success-main")),w(u.Alert,"warningIconColor",$("palette-warning-main")),w(u.AppBar,"defaultBg",$("palette-grey-100")),w(u.Avatar,"defaultBg",$("palette-grey-400")),w(u.Button,"inheritContainedBg",$("palette-grey-300")),w(u.Button,"inheritContainedHoverBg",$("palette-grey-A100")),w(u.Chip,"defaultBorder",$("palette-grey-400")),w(u.Chip,"defaultAvatarColor",$("palette-grey-700")),w(u.Chip,"defaultIconColor",$("palette-grey-700")),w(u.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),w(u.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),w(u.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),w(u.LinearProgress,"primaryBg",x(G,u.primary.main,.62)),w(u.LinearProgress,"secondaryBg",x(G,u.secondary.main,.62)),w(u.LinearProgress,"errorBg",x(G,u.error.main,.62)),w(u.LinearProgress,"infoBg",x(G,u.info.main,.62)),w(u.LinearProgress,"successBg",x(G,u.success.main,.62)),w(u.LinearProgress,"warningBg",x(G,u.warning.main,.62)),w(u.Skeleton,"bg",E?x(nt,u.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),w(u.Slider,"primaryTrack",x(G,u.primary.main,.62)),w(u.Slider,"secondaryTrack",x(G,u.secondary.main,.62)),w(u.Slider,"errorTrack",x(G,u.error.main,.62)),w(u.Slider,"infoTrack",x(G,u.info.main,.62)),w(u.Slider,"successTrack",x(G,u.success.main,.62)),w(u.Slider,"warningTrack",x(G,u.warning.main,.62));const k=E?x(U,u.background.default,.6825):Yt(u.background.default,.8);w(u.SnackbarContent,"bg",k),w(u.SnackbarContent,"color",Te(()=>E?br.text.primary:u.getContrastText(k))),w(u.SpeedDialAction,"fabHoverBg",Yt(u.background.paper,.15)),w(u.StepConnector,"border",$("palette-grey-400")),w(u.StepContent,"border",$("palette-grey-400")),w(u.Switch,"defaultColor",$("palette-common-white")),w(u.Switch,"defaultDisabledColor",$("palette-grey-100")),w(u.Switch,"primaryDisabledColor",x(G,u.primary.main,.62)),w(u.Switch,"secondaryDisabledColor",x(G,u.secondary.main,.62)),w(u.Switch,"errorDisabledColor",x(G,u.error.main,.62)),w(u.Switch,"infoDisabledColor",x(G,u.info.main,.62)),w(u.Switch,"successDisabledColor",x(G,u.success.main,.62)),w(u.Switch,"warningDisabledColor",x(G,u.warning.main,.62)),w(u.TableCell,"border",x(G,x(nt,u.divider,1),.88)),w(u.Tooltip,"bg",x(nt,u.grey[700],.92))}if(u.mode==="dark"){w(u.Alert,"errorColor",x(G,u.error.light,.6)),w(u.Alert,"infoColor",x(G,u.info.light,.6)),w(u.Alert,"successColor",x(G,u.success.light,.6)),w(u.Alert,"warningColor",x(G,u.warning.light,.6)),w(u.Alert,"errorFilledBg",$("palette-error-dark")),w(u.Alert,"infoFilledBg",$("palette-info-dark")),w(u.Alert,"successFilledBg",$("palette-success-dark")),w(u.Alert,"warningFilledBg",$("palette-warning-dark")),w(u.Alert,"errorFilledColor",Te(()=>u.getContrastText(u.error.dark))),w(u.Alert,"infoFilledColor",Te(()=>u.getContrastText(u.info.dark))),w(u.Alert,"successFilledColor",Te(()=>u.getContrastText(u.success.dark))),w(u.Alert,"warningFilledColor",Te(()=>u.getContrastText(u.warning.dark))),w(u.Alert,"errorStandardBg",x(U,u.error.light,.9)),w(u.Alert,"infoStandardBg",x(U,u.info.light,.9)),w(u.Alert,"successStandardBg",x(U,u.success.light,.9)),w(u.Alert,"warningStandardBg",x(U,u.warning.light,.9)),w(u.Alert,"errorIconColor",$("palette-error-main")),w(u.Alert,"infoIconColor",$("palette-info-main")),w(u.Alert,"successIconColor",$("palette-success-main")),w(u.Alert,"warningIconColor",$("palette-warning-main")),w(u.AppBar,"defaultBg",$("palette-grey-900")),w(u.AppBar,"darkBg",$("palette-background-paper")),w(u.AppBar,"darkColor",$("palette-text-primary")),w(u.Avatar,"defaultBg",$("palette-grey-600")),w(u.Button,"inheritContainedBg",$("palette-grey-800")),w(u.Button,"inheritContainedHoverBg",$("palette-grey-700")),w(u.Chip,"defaultBorder",$("palette-grey-700")),w(u.Chip,"defaultAvatarColor",$("palette-grey-300")),w(u.Chip,"defaultIconColor",$("palette-grey-300")),w(u.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),w(u.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),w(u.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),w(u.LinearProgress,"primaryBg",x(U,u.primary.main,.5)),w(u.LinearProgress,"secondaryBg",x(U,u.secondary.main,.5)),w(u.LinearProgress,"errorBg",x(U,u.error.main,.5)),w(u.LinearProgress,"infoBg",x(U,u.info.main,.5)),w(u.LinearProgress,"successBg",x(U,u.success.main,.5)),w(u.LinearProgress,"warningBg",x(U,u.warning.main,.5)),w(u.Skeleton,"bg",E?x(nt,u.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),w(u.Slider,"primaryTrack",x(U,u.primary.main,.5)),w(u.Slider,"secondaryTrack",x(U,u.secondary.main,.5)),w(u.Slider,"errorTrack",x(U,u.error.main,.5)),w(u.Slider,"infoTrack",x(U,u.info.main,.5)),w(u.Slider,"successTrack",x(U,u.success.main,.5)),w(u.Slider,"warningTrack",x(U,u.warning.main,.5));const k=E?x(G,u.background.default,.985):Yt(u.background.default,.98);w(u.SnackbarContent,"bg",k),w(u.SnackbarContent,"color",Te(()=>E?ji.text.primary:u.getContrastText(k))),w(u.SpeedDialAction,"fabHoverBg",Yt(u.background.paper,.15)),w(u.StepConnector,"border",$("palette-grey-600")),w(u.StepContent,"border",$("palette-grey-600")),w(u.Switch,"defaultColor",$("palette-grey-300")),w(u.Switch,"defaultDisabledColor",$("palette-grey-600")),w(u.Switch,"primaryDisabledColor",x(U,u.primary.main,.55)),w(u.Switch,"secondaryDisabledColor",x(U,u.secondary.main,.55)),w(u.Switch,"errorDisabledColor",x(U,u.error.main,.55)),w(u.Switch,"infoDisabledColor",x(U,u.info.main,.55)),w(u.Switch,"successDisabledColor",x(U,u.success.main,.55)),w(u.Switch,"warningDisabledColor",x(U,u.warning.main,.55)),w(u.TableCell,"border",x(U,x(nt,u.divider,1),.68)),w(u.Tooltip,"bg",x(nt,u.grey[700],.92))}je(u.background,"default"),je(u.background,"paper"),je(u.common,"background"),je(u.common,"onBackground"),je(u,"divider"),Object.keys(u).forEach(k=>{const I=u[k];k!=="tonalOffset"&&I&&typeof I=="object"&&(I.main&&w(u[k],"mainChannel",Pt($t(I.main))),I.light&&w(u[k],"lightChannel",Pt($t(I.light))),I.dark&&w(u[k],"darkChannel",Pt($t(I.dark))),I.contrastText&&w(u[k],"contrastTextChannel",Pt($t(I.contrastText))),k==="text"&&(je(u[k],"primary"),je(u[k],"secondary")),k==="action"&&(I.active&&je(u[k],"active"),I.selected&&je(u[k],"selected")))})}),O=t.reduce((_,u)=>ye(_,u),O);const R={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Fl(O),enableContrastVars:a},{vars:M,generateThemeVars:L,generateStyleSheets:j}=il(O,R);return O.vars=M,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([_,u])=>{O[_]=u}),O.generateThemeVars=L,O.generateStyleSheets=j,O.generateSpacing=function(){return Ai(f.spacing,Lr(this))},O.getColorSchemeSelector=al(c),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=s,O.unstable_sxConfig={...Pn,...f?.unstable_sxConfig},O.unstable_sx=function(u){return Et({sx:u,theme:this})},O.toRuntimeSource=Di,O}function So(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Dr({...n===!0?{}:n.palette,mode:t})})}function Vl(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",c=o?.[s],l={...o,...n?{[s]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return vr(e,...t);let f=n;"palette"in e||l[s]&&(l[s]!==!0?f=l[s].palette:s==="dark"&&(f={mode:"dark"}));const p=vr({...e,palette:f},...t);return p.defaultColorScheme=s,p.colorSchemes=l,p.palette.mode==="light"&&(p.colorSchemes.light={...l.light!==!0&&l.light,palette:p.palette},So(p,"dark",l.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:p.palette},So(p,"light",l.light)),p}return!n&&!("light"in l)&&s==="light"&&(l.light=!0),Dl({...a,colorSchemes:l,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Wl=Vl();function zl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hl=e=>zl(e)&&e!=="classes",zi=Wc({themeId:Va,defaultTheme:Wl,rootShouldForwardProp:Hl}),Kl=tl;function Ul(e){return el(e)}function Gl(...e){const t=b.useRef(void 0),n=b.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,s=a(r);return typeof s=="function"?s:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i?.())}},e);return b.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}var Vr=Aa();function ql(e){return typeof e=="string"}function Yl(e,t,n){return e===void 0||ql(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Xl(e,t,n){return typeof e=="function"?e(t,n):e}function Zl(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Co(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Ql(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=cn(n?.className,i,o?.className,r?.className),h={...n?.style,...o?.style,...r?.style},d={...n,...o,...r};return m.length>0&&(d.className=m),Object.keys(h).length>0&&(d.style=h),{props:d,internalRef:void 0}}const a=Zl({...o,...r}),s=Co(r),c=Co(o),l=t(a),f=cn(l?.className,n?.className,i,o?.className,r?.className),p={...l?.style,...n?.style,...o?.style,...r?.style},g={...l,...n,...c,...s};return f.length>0&&(g.className=f),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:l.ref}}function Eo(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:f={[e]:void 0},slotProps:p={[e]:void 0},...g}=i,m=f[e]||r,h=Xl(p[e],o),{props:{component:d,...y},internalRef:S}=Ql({className:n,...c,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:h}),v=Gl(S,h?.ref,t.ref),C=e==="root"?d||l:d,E=Yl(m,{...e==="root"&&!l&&!f[e]&&a,...e!=="root"&&!f[e]&&a,...y,...C&&!s&&{as:C},...C&&s&&{component:C},ref:v},o);return[m,E]}function Jl(e){return typeof e.main=="string"}function eu(e,t=[]){if(!Jl(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function tu(e=[]){return([,t])=>t&&eu(t,e)}function Hi(e){const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current}function nu(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=Hi({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:c=r}=a?i:e,l=s&&Number(s)>c?`${c}+`:s;return{badgeContent:s,invisible:a,max:c,displayValue:l}}function ru(e){return Ii("MuiBadge",e)}const Ge=jc("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Qn=10,Jn=4,ou=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${pe(n.vertical)}${pe(n.horizontal)}`,`anchorOrigin${pe(n.vertical)}${pe(n.horizontal)}${pe(o)}`,`overlap${pe(o)}`,t!=="default"&&`color${pe(t)}`]};return sl(s,ru,a)},iu=zi("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),au=zi("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${pe(n.anchorOrigin.vertical)}${pe(n.anchorOrigin.horizontal)}${pe(n.overlap)}`],n.color!=="default"&&t[`color${pe(n.color)}`],n.invisible&&t.invisible]}})(Kl(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Qn*2,lineHeight:1,padding:"0 6px",height:Qn*2,borderRadius:Qn,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(tu(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Jn,height:Jn*2,minWidth:Jn*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ge.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ge.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ge.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ge.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ge.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ge.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ge.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ge.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function Oo(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const Ki=b.forwardRef(function(t,n){const r=Ul({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:i,classes:a,component:s,components:c={},componentsProps:l={},children:f,overlap:p="rectangular",color:g="default",invisible:m=!1,max:h=99,badgeContent:d,slots:y,slotProps:S,showZero:v=!1,variant:C="standard",...E}=r,{badgeContent:T,invisible:O,max:R,displayValue:M}=nu({max:h,invisible:m,badgeContent:d,showZero:v}),L=Hi({anchorOrigin:Oo(o),color:g,overlap:p,variant:C,badgeContent:d}),j=O||T==null&&C!=="dot",{color:_=g,overlap:u=p,anchorOrigin:$,variant:x=C}=j?L:r,k=Oo($),I=x!=="dot"?M:void 0,F={...r,badgeContent:T,invisible:j,max:R,displayValue:I,showZero:v,anchorOrigin:k,color:_,overlap:u,variant:x},A=ou(F),D={slots:{root:y?.root??c.Root,badge:y?.badge??c.Badge},slotProps:{root:S?.root??l.root,badge:S?.badge??l.badge}},[X,ue]=Eo("root",{elementType:iu,externalForwardedProps:{...D,...E},ownerState:F,className:cn(A.root,i),ref:n,additionalProps:{as:s}}),[ze,W]=Eo("badge",{elementType:au,externalForwardedProps:D,ownerState:F,className:A.badge});return P.jsxs(X,{...ue,children:[f,P.jsx(ze,{...W,children:I})]})});var xr=function(){return xr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u"?!1:e instanceof ShadowRoot||e instanceof be(e).ShadowRoot}const pu=new Set(["inline","contents"]);function zt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!pu.has(o)}const mu=new Set(["table","td","th"]);function gu(e){return mu.has(et(e))}const hu=[":popover-open",":modal"];function Ln(e){return hu.some(t=>{try{return e.matches(t)}catch{return!1}})}const yu=["transform","translate","scale","rotate","perspective"],bu=["transform","translate","scale","rotate","perspective","filter"],vu=["paint","layout","strict","content"];function zr(e){const t=jn(),n=te(e)?Ce(e):e;return yu.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||bu.some(r=>(n.willChange||"").includes(r))||vu.some(r=>(n.contain||"").includes(r))}function xu(e){let t=We(e);for(;ie(t)&&!De(t);){if(zr(t))return t;if(Ln(t))return null;t=We(t)}return null}function jn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wu=new Set(["html","body","#document"]);function De(e){return wu.has(et(e))}function Ce(e){return be(e).getComputedStyle(e)}function Bn(e){return te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function We(e){if(et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wr(e)&&e.host||Me(e);return wr(t)?t.host:t}function Gi(e){const t=We(e);return De(t)?e.ownerDocument?e.ownerDocument.body:e.body:ie(t)&&zt(t)?t:Gi(t)}function Ze(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Gi(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=be(o);if(i){const s=Sr(a);return t.concat(a,a.visualViewport||[],zt(o)?o:[],s&&n?Ze(s):[])}return t.concat(o,Ze(o,[],n))}function Sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ln=Math.min,it=Math.max,un=Math.round,Xt=Math.floor,_e=e=>({x:e,y:e}),Su={left:"right",right:"left",bottom:"top",top:"bottom"},Cu={start:"end",end:"start"};function ko(e,t,n){return it(e,ln(t,n))}function Dn(e,t){return typeof e=="function"?e(t):e}function ct(e){return e.split("-")[0]}function Vn(e){return e.split("-")[1]}function qi(e){return e==="x"?"y":"x"}function Yi(e){return e==="y"?"height":"width"}const Eu=new Set(["top","bottom"]);function Ye(e){return Eu.has(ct(e))?"y":"x"}function Xi(e){return qi(Ye(e))}function Ou(e,t,n){n===void 0&&(n=!1);const r=Vn(e),o=Xi(e),i=Yi(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=fn(a)),[a,fn(a)]}function ku(e){const t=fn(e);return[Cr(e),t,Cr(t)]}function Cr(e){return e.replace(/start|end/g,t=>Cu[t])}const Ro=["left","right"],To=["right","left"],Ru=["top","bottom"],Tu=["bottom","top"];function Au(e,t,n){switch(e){case"top":case"bottom":return n?t?To:Ro:t?Ro:To;case"left":case"right":return t?Ru:Tu;default:return[]}}function Pu(e,t,n,r){const o=Vn(e);let i=Au(ct(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Cr)))),i}function fn(e){return e.replace(/left|right|bottom|top/g,t=>Su[t])}function $u(e){return{top:0,right:0,bottom:0,left:0,...e}}function Iu(e){return typeof e!="number"?$u(e):{top:e,right:e,bottom:e,left:e}}function dn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var _u=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],pn=_u.join(","),Zi=typeof Element>"u",kt=Zi?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,mn=!Zi&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},gn=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",a=i||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):gn(t.parentNode));return a},Nu=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Qi=function(t,n,r){if(gn(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(pn));return n&&kt.call(t,pn)&&o.unshift(t),o=o.filter(r),o},hn=function(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!gn(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),c=s.length?s:a.children,l=hn(c,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{var f=kt.call(a,pn);f&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var p=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),g=!gn(p,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(p&&g){var m=hn(p===!0?a.children:p.children,!0,r);r.flatten?o.push.apply(o,m):o.push({scopeParent:a,candidates:m})}else i.unshift.apply(i,a.children)}}return o},Ji=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},ea=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Nu(t))&&!Ji(t)?0:t.tabIndex},Mu=function(t,n){var r=ea(t);return r<0&&n&&!Ji(t)?0:r},Fu=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},ta=function(t){return t.tagName==="INPUT"},Lu=function(t){return ta(t)&&t.type==="hidden"},ju=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Bu=function(t,n){for(var r=0;rsummary:first-of-type"),s=a?t.parentElement:t;if(kt.call(s,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var c=t;t;){var l=t.parentElement,f=mn(t);if(l&&!l.shadowRoot&&o(l)===!0)return Ao(t);t.assignedSlot?t=t.assignedSlot:!l&&f!==t.ownerDocument?t=f.host:t=l}t=c}if(zu(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Ao(t);return!1},Ku=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},na=function(t){var n=[],r=[];return t.forEach(function(o,i){var a=!!o.scopeParent,s=a?o.scopeParent:o,c=Mu(s,a),l=a?na(o.candidates):s;c===0?a?n.push.apply(n,l):n.push(s):r.push({documentOrder:i,tabIndex:c,item:o,isScope:a,content:l})}),r.sort(Fu).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},Wn=function(t,n){n=n||{};var r;return n.getShadowRoot?r=hn([t],n.includeContainer,{filter:Or.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Uu}):r=Qi(t,n.includeContainer,Or.bind(null,n)),na(r)},Gu=function(t,n){n=n||{};var r;return n.getShadowRoot?r=hn([t],n.includeContainer,{filter:Er.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Qi(t,n.includeContainer,Er.bind(null,n)),r},ra=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return kt.call(t,pn)===!1?!1:Or(n,t)};function qu(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function oa(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Yu(){return/apple/i.test(navigator.vendor)}function kr(){const e=/android/i;return e.test(qu())||e.test(oa())}function Xu(){return oa().includes("jsdom/")}const Po="data-floating-ui-focusable",Zu="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ht(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function de(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&wr(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function qe(e){return"composedPath"in e?e.composedPath()[0]:e.target}function er(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Qu(e){return e.matches("html,body")}function Oe(e){return e?.ownerDocument||document}function ia(e){return ie(e)&&e.matches(Zu)}function $o(e){return e?e.getAttribute("role")==="combobox"&&ia(e):!1}function Rr(e){return e?e.hasAttribute(Po)?e:e.querySelector("["+Po+"]")||e:null}function vt(e,t,n){return n===void 0&&(n=!0),e.filter(o=>{var i;return o.parentId===t&&(!n||((i=o.context)==null?void 0:i.open))}).flatMap(o=>[o,...vt(e,o.id,n)])}function Io(e,t){var n;let r=[],o=(n=e.find(i=>i.id===t))==null?void 0:n.parentId;for(;o;){const i=e.find(a=>a.id===o);o=i?.parentId,i&&(r=r.concat(i))}return r}function tr(e){e.preventDefault(),e.stopPropagation()}function Ju(e){return"nativeEvent"in e}function ef(e){return e.mozInputSource===0&&e.isTrusted?!0:kr()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function tf(e){return Xu()?!1:!kr()&&e.width===0&&e.height===0||kr()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function _o(e,t){return["mouse","pen"].includes(e)}var nf=typeof document<"u",rf=function(){},ge=nf?b.useLayoutEffect:rf;const of={...on};function nr(e){const t=b.useRef(e);return ge(()=>{t.current=e}),t}const af=of.useInsertionEffect,sf=af||(e=>e());function $e(e){const t=b.useRef(()=>{});return sf(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function aa(e,t){const n=Wn(e,Ht()),r=n.length;if(r===0)return;const o=ht(Oe(e)),i=n.indexOf(o),a=i===-1?t===1?0:r-1:i+t;return n[a]}function sa(e){return aa(Oe(e).body,1)||e}function ca(e){return aa(Oe(e).body,-1)||e}function _t(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!de(n,r)}function cf(e){Wn(e,Ht()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function No(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function Mo(e,t,n){let{reference:r,floating:o}=e;const i=Ye(t),a=Xi(t),s=Yi(a),c=ct(t),l=i==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[s]/2-o[s]/2;let m;switch(c){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-o.width,y:p};break;default:m={x:r.x,y:r.y}}switch(Vn(t)){case"start":m[a]-=g*(n&&l?-1:1);break;case"end":m[a]+=g*(n&&l?-1:1);break}return m}const lf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Mo(l,r,c),g=r,m={},h=0;for(let d=0;dx<=0)){var _,u;const x=(((_=i.flip)==null?void 0:_.index)||0)+1,k=R[x];if(k&&(!(p==="alignment"?v!==Ye(k):!1)||j.every(A=>Ye(A.placement)===v?A.overflows[0]>0:!0)))return{data:{index:x,overflows:j},reset:{placement:k}};let I=(u=j.filter(F=>F.overflows[0]<=0).sort((F,A)=>F.overflows[1]-A.overflows[1])[0])==null?void 0:u.placement;if(!I)switch(m){case"bestFit":{var $;const F=($=j.filter(A=>{if(O){const D=Ye(A.placement);return D===v||D==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(D=>D>0).reduce((D,X)=>D+X,0)]).sort((A,D)=>A[1]-D[1])[0])==null?void 0:$[0];F&&(I=F);break}case"initialPlacement":I=s;break}if(o!==I)return{reset:{placement:I}}}return{}}}},ff=new Set(["left","top"]);async function df(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ct(n),s=Vn(n),c=Ye(n)==="y",l=ff.has(a)?-1:1,f=i&&c?-1:1,p=Dn(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:h}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof h=="number"&&(m=s==="end"?h*-1:h),c?{x:m*f,y:g*l}:{x:g*l,y:m*f}}const pf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await df(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},mf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:y=>{let{x:S,y:v}=y;return{x:S,y:v}}},...c}=Dn(e,t),l={x:n,y:r},f=await la(t,c),p=Ye(ct(o)),g=qi(p);let m=l[g],h=l[p];if(i){const y=g==="y"?"top":"left",S=g==="y"?"bottom":"right",v=m+f[y],C=m-f[S];m=ko(v,m,C)}if(a){const y=p==="y"?"top":"left",S=p==="y"?"bottom":"right",v=h+f[y],C=h-f[S];h=ko(v,h,C)}const d=s.fn({...t,[g]:m,[p]:h});return{...d,data:{x:d.x-n,y:d.y-r,enabled:{[g]:i,[p]:a}}}}}};function ua(e){const t=Ce(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ie(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=un(n)!==i||un(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Hr(e){return te(e)?e:e.contextElement}function xt(e){const t=Hr(e);if(!ie(t))return _e(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ua(t);let a=(i?un(n.width):n.width)/r,s=(i?un(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const gf=_e(0);function fa(e){const t=be(e);return!jn()||!t.visualViewport?gf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==be(e)?!1:t}function lt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Hr(e);let a=_e(1);t&&(r?te(r)&&(a=xt(r)):a=xt(e));const s=hf(i,n,r)?fa(i):_e(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(i){const g=be(i),m=r&&te(r)?be(r):r;let h=g,d=Sr(h);for(;d&&r&&m!==h;){const y=xt(d),S=d.getBoundingClientRect(),v=Ce(d),C=S.left+(d.clientLeft+parseFloat(v.paddingLeft))*y.x,E=S.top+(d.clientTop+parseFloat(v.paddingTop))*y.y;c*=y.x,l*=y.y,f*=y.x,p*=y.y,c+=C,l+=E,h=be(d),d=Sr(h)}}return dn({width:f,height:p,x:c,y:l})}function zn(e,t){const n=Bn(e).scrollLeft;return t?t.left+n:lt(Me(e)).left+n}function da(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-zn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function yf(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=Me(r),s=t?Ln(t.floating):!1;if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=_e(1);const f=_e(0),p=ie(r);if((p||!p&&!i)&&((et(r)!=="body"||zt(a))&&(c=Bn(r)),ie(r))){const m=lt(r);l=xt(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const g=a&&!p&&!i?da(a,c):_e(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+g.x,y:n.y*l.y-c.scrollTop*l.y+f.y+g.y}}function bf(e){return Array.from(e.getClientRects())}function vf(e){const t=Me(e),n=Bn(e),r=e.ownerDocument.body,o=it(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=it(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+zn(e);const s=-n.scrollTop;return Ce(r).direction==="rtl"&&(a+=it(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const Fo=25;function xf(e,t){const n=be(e),r=Me(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const f=jn();(!f||f&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const l=zn(r);if(l<=0){const f=r.ownerDocument,p=f.body,g=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,h=Math.abs(r.clientWidth-p.clientWidth-m);h<=Fo&&(i-=h)}else l<=Fo&&(i+=l);return{width:i,height:a,x:s,y:c}}const wf=new Set(["absolute","fixed"]);function Sf(e,t){const n=lt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ie(e)?xt(e):_e(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:a,height:s,x:c,y:l}}function Lo(e,t,n){let r;if(t==="viewport")r=xf(e,n);else if(t==="document")r=vf(Me(e));else if(te(t))r=Sf(t,n);else{const o=fa(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return dn(r)}function pa(e,t){const n=We(e);return n===t||!te(n)||De(n)?!1:Ce(n).position==="fixed"||pa(n,t)}function Cf(e,t){const n=t.get(e);if(n)return n;let r=Ze(e,[],!1).filter(s=>te(s)&&et(s)!=="body"),o=null;const i=Ce(e).position==="fixed";let a=i?We(e):e;for(;te(a)&&!De(a);){const s=Ce(a),c=zr(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&wf.has(o.position)||zt(a)&&!c&&pa(e,a))?r=r.filter(f=>f!==a):o=s,a=We(a)}return t.set(e,r),r}function Ef(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Ln(t)?[]:Cf(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((l,f)=>{const p=Lo(t,f,o);return l.top=it(p.top,l.top),l.right=ln(p.right,l.right),l.bottom=ln(p.bottom,l.bottom),l.left=it(p.left,l.left),l},Lo(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Of(e){const{width:t,height:n}=ua(e);return{width:t,height:n}}function kf(e,t,n){const r=ie(t),o=Me(t),i=n==="fixed",a=lt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=_e(0);function l(){c.x=zn(o)}if(r||!r&&!i)if((et(t)!=="body"||zt(o))&&(s=Bn(t)),r){const m=lt(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();i&&!r&&o&&l();const f=o&&!r&&!i?da(o,s):_e(0),p=a.left+s.scrollLeft-c.x-f.x,g=a.top+s.scrollTop-c.y-f.y;return{x:p,y:g,width:a.width,height:a.height}}function rr(e){return Ce(e).position==="static"}function jo(e,t){if(!ie(e)||Ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Me(e)===n&&(n=n.ownerDocument.body),n}function ma(e,t){const n=be(e);if(Ln(e))return n;if(!ie(e)){let o=We(e);for(;o&&!De(o);){if(te(o)&&!rr(o))return o;o=We(o)}return n}let r=jo(e,t);for(;r&&gu(r)&&rr(r);)r=jo(r,t);return r&&De(r)&&rr(r)&&!zr(r)?n:r||xu(e)||n}const Rf=async function(e){const t=this.getOffsetParent||ma,n=this.getDimensions,r=await n(e.floating);return{reference:kf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tf(e){return Ce(e).direction==="rtl"}const Af={convertOffsetParentRelativeRectToViewportRelativeRect:yf,getDocumentElement:Me,getClippingRect:Ef,getOffsetParent:ma,getElementRects:Rf,getClientRects:bf,getDimensions:Of,getScale:xt,isElement:te,isRTL:Tf};function ga(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pf(e,t){let n=null,r;const o=Me(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:f,top:p,width:g,height:m}=l;if(s||t(),!g||!m)return;const h=Xt(p),d=Xt(o.clientWidth-(f+g)),y=Xt(o.clientHeight-(p+m)),S=Xt(f),C={rootMargin:-h+"px "+-d+"px "+-y+"px "+-S+"px",threshold:it(0,ln(1,c))||1};let E=!0;function T(O){const R=O[0].intersectionRatio;if(R!==c){if(!E)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!ga(l,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(T,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return a(!0),i}function $f(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Hr(e),f=o||i?[...l?Ze(l):[],...Ze(t)]:[];f.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),i&&S.addEventListener("resize",n)});const p=l&&s?Pf(l,n):null;let g=-1,m=null;a&&(m=new ResizeObserver(S=>{let[v]=S;v&&v.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),l&&!c&&m.observe(l),m.observe(t));let h,d=c?lt(e):null;c&&y();function y(){const S=lt(e);d&&!ga(d,S)&&n(),d=S,h=requestAnimationFrame(y)}return n(),()=>{var S;f.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),p?.(),(S=m)==null||S.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const If=pf,_f=mf,Nf=uf,Mf=(e,t,n)=>{const r=new Map,o={platform:Af,...n},i={...o.platform,_c:r};return lf(e,t,{...o,platform:i})};var Ff=typeof document<"u",Lf=function(){},rn=Ff?b.useLayoutEffect:Lf;function yn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!yn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!yn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ha(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bo(e,t){const n=ha(e);return Math.round(t*n)/n}function or(e){const t=b.useRef(e);return rn(()=>{t.current=e}),t}function jf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[f,p]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=b.useState(r);yn(g,r)||m(r);const[h,d]=b.useState(null),[y,S]=b.useState(null),v=b.useCallback(A=>{A!==O.current&&(O.current=A,d(A))},[]),C=b.useCallback(A=>{A!==R.current&&(R.current=A,S(A))},[]),E=i||h,T=a||y,O=b.useRef(null),R=b.useRef(null),M=b.useRef(f),L=c!=null,j=or(c),_=or(o),u=or(l),$=b.useCallback(()=>{if(!O.current||!R.current)return;const A={placement:t,strategy:n,middleware:g};_.current&&(A.platform=_.current),Mf(O.current,R.current,A).then(D=>{const X={...D,isPositioned:u.current!==!1};x.current&&!yn(M.current,X)&&(M.current=X,Vr.flushSync(()=>{p(X)}))})},[g,t,n,_,u]);rn(()=>{l===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,p(A=>({...A,isPositioned:!1})))},[l]);const x=b.useRef(!1);rn(()=>(x.current=!0,()=>{x.current=!1}),[]),rn(()=>{if(E&&(O.current=E),T&&(R.current=T),E&&T){if(j.current)return j.current(E,T,$);$()}},[E,T,$,j,L]);const k=b.useMemo(()=>({reference:O,floating:R,setReference:v,setFloating:C}),[v,C]),I=b.useMemo(()=>({reference:E,floating:T}),[E,T]),F=b.useMemo(()=>{const A={position:n,left:0,top:0};if(!I.floating)return A;const D=Bo(I.floating,f.x),X=Bo(I.floating,f.y);return s?{...A,transform:"translate("+D+"px, "+X+"px)",...ha(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:X}},[n,s,I.floating,f.x,f.y]);return b.useMemo(()=>({...f,update:$,refs:k,elements:I,floatingStyles:F}),[f,$,k,I,F])}const Bf=(e,t)=>({...If(e),options:[e,t]}),Df=(e,t)=>({..._f(e),options:[e,t]}),Vf=(e,t)=>({...Nf(e),options:[e,t]});function ya(e){const t=b.useRef(void 0),n=b.useCallback(r=>{const o=e.map(i=>{if(i!=null){if(typeof i=="function"){const a=i,s=a(r);return typeof s=="function"?s:()=>{a(null)}}return i.current=r,()=>{i.current=null}}});return()=>{o.forEach(i=>i?.())}},e);return b.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const Wf="data-floating-ui-focusable",Do="active",Vo="selected",zf={...on};let Wo=!1,Hf=0;const zo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Hf++;function Kf(){const[e,t]=b.useState(()=>Wo?zo():void 0);return ge(()=>{e==null&&t(zo())},[]),b.useEffect(()=>{Wo=!0},[]),e}const Uf=zf.useId,Kr=Uf||Kf;function Gf(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const qf=b.createContext(null),Yf=b.createContext(null),ba=()=>{var e;return((e=b.useContext(qf))==null?void 0:e.id)||null},Ur=()=>b.useContext(Yf);function Bt(e){return"data-floating-ui-"+e}function Xf(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}let Ho=0;function gt(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Ho);const i=()=>e?.focus({preventScroll:n});o?i():Ho=requestAnimationFrame(i)}function Zf(e){return e?.ownerDocument||document}const wt={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Ko(e){return e==="inert"?wt.inert:e==="aria-hidden"?wt["aria-hidden"]:wt.none}let Zt=new WeakSet,Qt={},ir=0;const Qf=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,va=e=>e&&(e.host||va(e.parentNode)),Jf=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=va(n);return e.contains(r)?r:null}).filter(n=>n!=null);function ed(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=Jf(t,e),s=new Set,c=new Set(a),l=[];Qt[o]||(Qt[o]=new WeakMap);const f=Qt[o];a.forEach(p),g(t),s.clear();function p(m){!m||s.has(m)||(s.add(m),m.parentNode&&p(m.parentNode))}function g(m){!m||c.has(m)||[].forEach.call(m.children,h=>{if(et(h)!=="script")if(s.has(h))g(h);else{const d=i?h.getAttribute(i):null,y=d!==null&&d!=="false",S=Ko(i),v=(S.get(h)||0)+1,C=(f.get(h)||0)+1;S.set(h,v),f.set(h,C),l.push(h),v===1&&y&&Zt.add(h),C===1&&h.setAttribute(o,""),!y&&i&&h.setAttribute(i,i==="inert"?"":"true")}})}return ir++,()=>{l.forEach(m=>{const h=Ko(i),y=(h.get(m)||0)-1,S=(f.get(m)||0)-1;h.set(m,y),f.set(m,S),y||(!Zt.has(m)&&i&&m.removeAttribute(i),Zt.delete(m)),S||m.removeAttribute(o)}),ir--,ir||(wt.inert=new WeakMap,wt["aria-hidden"]=new WeakMap,wt.none=new WeakMap,Zt=new WeakSet,Qt={})}}function Uo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=Zf(e[0]).body;return ed(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Hn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},bn=b.forwardRef(function(t,n){const[r,o]=b.useState();ge(()=>{Yu()&&o("button")},[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Bt("focus-guard")]:"",style:Hn};return P.jsx("span",{...t,...i})}),xa=b.createContext(null),Go=Bt("portal");function td(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Kr(),o=wa(),[i,a]=b.useState(null),s=b.useRef(null);return ge(()=>()=>{i?.remove(),queueMicrotask(()=>{s.current=null})},[i]),ge(()=>{if(!r||s.current)return;const c=t?document.getElementById(t):null;if(!c)return;const l=document.createElement("div");l.id=r,l.setAttribute(Go,""),c.appendChild(l),s.current=l,a(l)},[t,r]),ge(()=>{if(n===null||!r||s.current)return;let c=n||o?.portalNode;c&&!Wr(c)&&(c=c.current),c=c||document.body;let l=null;t&&(l=document.createElement("div"),l.id=t,c.appendChild(l));const f=document.createElement("div");f.id=r,f.setAttribute(Go,""),c=l||c,c.appendChild(f),s.current=f,a(f)},[t,n,r,o]),i}function nd(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=td({id:n,root:r}),[a,s]=b.useState(null),c=b.useRef(null),l=b.useRef(null),f=b.useRef(null),p=b.useRef(null),g=a?.modal,m=a?.open,h=!!a&&!a.modal&&a.open&&o&&!!(r||i);return b.useEffect(()=>{if(!i||!o||g)return;function d(y){i&&_t(y)&&(y.type==="focusin"?No:cf)(i)}return i.addEventListener("focusin",d,!0),i.addEventListener("focusout",d,!0),()=>{i.removeEventListener("focusin",d,!0),i.removeEventListener("focusout",d,!0)}},[i,o,g]),b.useEffect(()=>{i&&(m||No(i))},[m,i]),P.jsxs(xa.Provider,{value:b.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:l,beforeInsideRef:f,afterInsideRef:p,portalNode:i,setFocusManagerState:s}),[o,i]),children:[h&&i&&P.jsx(bn,{"data-type":"outside",ref:c,onFocus:d=>{if(_t(d,i)){var y;(y=f.current)==null||y.focus()}else{const S=a?a.domReference:null,v=ca(S);v?.focus()}}}),h&&i&&P.jsx("span",{"aria-owns":i.id,style:Hn}),i&&Vr.createPortal(t,i),h&&i&&P.jsx(bn,{"data-type":"outside",ref:l,onFocus:d=>{if(_t(d,i)){var y;(y=p.current)==null||y.focus()}else{const S=a?a.domReference:null,v=sa(S);v?.focus(),a?.closeOnFocusOut&&a?.onOpenChange(!1,d.nativeEvent,"focus-out")}}})]})}const wa=()=>b.useContext(xa);function qo(e){return b.useMemo(()=>t=>{e.forEach(n=>{n&&(n.current=t)})},e)}const rd=20;let Xe=[];function Gr(){Xe=Xe.filter(e=>e.isConnected)}function od(e){Gr(),e&&et(e)!=="body"&&(Xe.push(e),Xe.length>rd&&(Xe=Xe.slice(-20)))}function Yo(){return Gr(),Xe[Xe.length-1]}function id(e){const t=Ht();return ra(e,t)?e:Wn(e,t)[0]||e}function Xo(e,t){var n;if(!t.current.includes("floating")&&!((n=e.getAttribute("role"))!=null&&n.includes("dialog")))return;const r=Ht(),i=Gu(e,r).filter(s=>{const c=s.getAttribute("data-tabindex")||"";return ra(s,r)||s.hasAttribute("data-tabindex")&&!c.startsWith("-")}),a=e.getAttribute("tabindex");t.current.includes("floating")||i.length===0?a!=="0"&&e.setAttribute("tabindex","0"):(a!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const ad=b.forwardRef(function(t,n){return P.jsx("button",{...t,type:"button",ref:n,tabIndex:-1,style:Hn})});function sd(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:c=!1,modal:l=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:p=!0,outsideElementsInert:g=!1,getInsideElements:m=()=>[]}=e,{open:h,onOpenChange:d,events:y,dataRef:S,elements:{domReference:v,floating:C}}=t,E=$e(()=>{var B;return(B=S.current.floatingContext)==null?void 0:B.nodeId}),T=$e(m),O=typeof a=="number"&&a<0,R=$o(v)&&O,M=Qf(),L=M?i:!0,j=!L||M&&g,_=nr(o),u=nr(a),$=nr(s),x=Ur(),k=wa(),I=b.useRef(null),F=b.useRef(null),A=b.useRef(!1),D=b.useRef(!1),X=b.useRef(-1),ue=b.useRef(-1),ze=k!=null,W=Rr(C),Re=$e(function(B){return B===void 0&&(B=W),B?Wn(B,Ht()):[]}),re=$e(B=>{const K=Re(B);return _.current.map(V=>v&&V==="reference"?v:W&&V==="floating"?W:K).filter(Boolean).flat()});b.useEffect(()=>{if(r||!l)return;function B(V){if(V.key==="Tab"){de(W,ht(Oe(W)))&&Re().length===0&&!R&&tr(V);const ee=re(),ae=qe(V);_.current[0]==="reference"&&ae===v&&(tr(V),V.shiftKey?gt(ee[ee.length-1]):gt(ee[1])),_.current[1]==="floating"&&ae===W&&V.shiftKey&&(tr(V),gt(ee[0]))}}const K=Oe(W);return K.addEventListener("keydown",B),()=>{K.removeEventListener("keydown",B)}},[r,v,W,l,_,R,Re,re]),b.useEffect(()=>{if(r||!C)return;function B(K){const V=qe(K),ae=Re().indexOf(V);ae!==-1&&(X.current=ae)}return C.addEventListener("focusin",B),()=>{C.removeEventListener("focusin",B)}},[r,C,Re]),b.useEffect(()=>{if(r||!p)return;function B(){D.current=!0,setTimeout(()=>{D.current=!1})}function K(ae){const q=ae.relatedTarget,Fe=ae.currentTarget,xe=qe(ae);queueMicrotask(()=>{const fe=E(),tt=!(de(v,q)||de(C,q)||de(q,C)||de(k?.portalNode,q)||q!=null&&q.hasAttribute(Bt("focus-guard"))||x&&(vt(x.nodesRef.current,fe).find(Ke=>{var Le,Ue;return de((Le=Ke.context)==null?void 0:Le.elements.floating,q)||de((Ue=Ke.context)==null?void 0:Ue.elements.domReference,q)})||Io(x.nodesRef.current,fe).find(Ke=>{var Le,Ue,Xr;return[(Le=Ke.context)==null?void 0:Le.elements.floating,Rr((Ue=Ke.context)==null?void 0:Ue.elements.floating)].includes(q)||((Xr=Ke.context)==null?void 0:Xr.elements.domReference)===q})));if(Fe===v&&W&&Xo(W,_),c&&Fe!==v&&!(xe!=null&&xe.isConnected)&&ht(Oe(W))===Oe(W).body){ie(W)&&W.focus();const Ke=X.current,Le=Re(),Ue=Le[Ke]||Le[Le.length-1]||W;ie(Ue)&&Ue.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(R||!l)&&q&&tt&&!D.current&&q!==Yo()&&(A.current=!0,d(!1,ae,"focus-out"))})}const V=!!(!x&&k);function ee(){Xf(ue),S.current.insideReactTree=!0,ue.current=window.setTimeout(()=>{S.current.insideReactTree=!1})}if(C&&ie(v))return v.addEventListener("focusout",K),v.addEventListener("pointerdown",B),C.addEventListener("focusout",K),V&&C.addEventListener("focusout",ee,!0),()=>{v.removeEventListener("focusout",K),v.removeEventListener("pointerdown",B),C.removeEventListener("focusout",K),V&&C.removeEventListener("focusout",ee,!0)}},[r,v,C,W,l,x,k,d,p,c,Re,R,E,_,S]);const ve=b.useRef(null),He=b.useRef(null),Kn=qo([ve,k?.beforeInsideRef]),Un=qo([He,k?.afterInsideRef]);b.useEffect(()=>{var B,K;if(r||!C)return;const V=Array.from((k==null||(B=k.portalNode)==null?void 0:B.querySelectorAll("["+Bt("portal")+"]"))||[]),ae=(K=(x?Io(x.nodesRef.current,E()):[]).find(xe=>{var fe;return $o(((fe=xe.context)==null?void 0:fe.elements.domReference)||null)}))==null||(K=K.context)==null?void 0:K.elements.domReference,q=[C,ae,...V,...T(),I.current,F.current,ve.current,He.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,_.current.includes("reference")||R?v:null].filter(xe=>xe!=null),Fe=l||R?Uo(q,!j,j):Uo(q);return()=>{Fe()}},[r,v,C,l,_,k,R,L,j,x,E,T]),ge(()=>{if(r||!ie(W))return;const B=Oe(W),K=ht(B);queueMicrotask(()=>{const V=re(W),ee=u.current,ae=(typeof ee=="number"?V[ee]:ee.current)||W,q=de(W,K);!O&&!q&&h&>(ae,{preventScroll:ae===W})})},[r,h,W,O,re,u]),ge(()=>{if(r||!W)return;const B=Oe(W),K=ht(B);od(K);function V(q){let{reason:Fe,event:xe,nested:fe}=q;if(["hover","safe-polygon"].includes(Fe)&&xe.type==="mouseleave"&&(A.current=!0),Fe==="outside-press")if(fe)A.current=!1;else if(ef(xe)||tf(xe))A.current=!1;else{let tt=!1;document.createElement("div").focus({get preventScroll(){return tt=!0,!1}}),tt?A.current=!1:A.current=!0}}y.on("openchange",V);const ee=B.createElement("span");ee.setAttribute("tabindex","-1"),ee.setAttribute("aria-hidden","true"),Object.assign(ee.style,Hn),ze&&v&&v.insertAdjacentElement("afterend",ee);function ae(){if(typeof $.current=="boolean"){const q=v||Yo();return q&&q.isConnected?q:ee}return $.current.current||ee}return()=>{y.off("openchange",V);const q=ht(B),Fe=de(C,q)||x&&vt(x.nodesRef.current,E(),!1).some(fe=>{var tt;return de((tt=fe.context)==null?void 0:tt.elements.floating,q)}),xe=ae();queueMicrotask(()=>{const fe=id(xe);$.current&&!A.current&&ie(fe)&&(!(fe!==q&&q!==B.body)||Fe)&&fe.focus({preventScroll:!0}),ee.remove()})}},[r,C,W,$,S,y,x,ze,v,E]),b.useEffect(()=>(queueMicrotask(()=>{A.current=!1}),()=>{queueMicrotask(Gr)}),[r]),ge(()=>{if(!r&&k)return k.setFocusManagerState({modal:l,closeOnFocusOut:p,open:h,onOpenChange:d,domReference:v}),()=>{k.setFocusManagerState(null)}},[r,k,l,h,d,p,v]),ge(()=>{r||W&&Xo(W,_)},[r,W,_]);function Kt(B){return r||!f||!l?null:P.jsx(ad,{ref:B==="start"?I:F,onClick:K=>d(!1,K.nativeEvent),children:typeof f=="string"?f:"Dismiss"})}const Ut=!r&&L&&(l?!R:!0)&&(ze||l);return P.jsxs(P.Fragment,{children:[Ut&&P.jsx(bn,{"data-type":"inside",ref:Kn,onFocus:B=>{if(l){const V=re();gt(o[0]==="reference"?V[0]:V[V.length-1])}else if(k!=null&&k.preserveTabOrder&&k.portalNode)if(A.current=!1,_t(B,k.portalNode)){const V=sa(v);V?.focus()}else{var K;(K=k.beforeOutsideRef.current)==null||K.focus()}}}),!R&&Kt("start"),n,Kt("end"),Ut&&P.jsx(bn,{"data-type":"inside",ref:Un,onFocus:B=>{if(l)gt(re()[0]);else if(k!=null&&k.preserveTabOrder&&k.portalNode)if(p&&(A.current=!0),_t(B,k.portalNode)){const V=ca(v);V?.focus()}else{var K;(K=k.afterOutsideRef.current)==null||K.focus()}}})]})}function Zo(e){return ie(e.target)&&e.target.tagName==="BUTTON"}function cd(e){return ie(e.target)&&e.target.tagName==="A"}function Qo(e){return ia(e)}function ld(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:c=!0,ignoreMouse:l=!1,keyboardHandlers:f=!0,stickIfOpen:p=!0}=t,g=b.useRef(),m=b.useRef(!1),h=b.useMemo(()=>({onPointerDown(d){g.current=d.pointerType},onMouseDown(d){const y=g.current;d.button===0&&s!=="click"&&(_o(y)&&l||(n&&c&&(!(o.current.openEvent&&p)||o.current.openEvent.type==="mousedown")?r(!1,d.nativeEvent,"click"):(d.preventDefault(),r(!0,d.nativeEvent,"click"))))},onClick(d){const y=g.current;if(s==="mousedown"&&g.current){g.current=void 0;return}_o(y)&&l||(n&&c&&(!(o.current.openEvent&&p)||o.current.openEvent.type==="click")?r(!1,d.nativeEvent,"click"):r(!0,d.nativeEvent,"click"))},onKeyDown(d){g.current=void 0,!(d.defaultPrevented||!f||Zo(d))&&(d.key===" "&&!Qo(i)&&(d.preventDefault(),m.current=!0),!cd(d)&&d.key==="Enter"&&r(!(n&&c),d.nativeEvent,"click"))},onKeyUp(d){d.defaultPrevented||!f||Zo(d)||Qo(i)||d.key===" "&&m.current&&(m.current=!1,r(!(n&&c),d.nativeEvent,"click"))}}),[o,i,s,l,f,r,n,p,c]);return b.useMemo(()=>a?{reference:h}:{},[a,h])}const ud={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},fd={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Jo=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function dd(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:f=!1,referencePressEvent:p="pointerdown",ancestorScroll:g=!1,bubbles:m,capture:h}=t,d=Ur(),y=$e(typeof c=="function"?c:()=>!1),S=typeof c=="function"?y:c,v=b.useRef(!1),{escapeKey:C,outsidePress:E}=Jo(m),{escapeKey:T,outsidePress:O}=Jo(h),R=b.useRef(!1),M=$e(x=>{var k;if(!n||!a||!s||x.key!=="Escape"||R.current)return;const I=(k=i.current.floatingContext)==null?void 0:k.nodeId,F=d?vt(d.nodesRef.current,I):[];if(!C&&(x.stopPropagation(),F.length>0)){let A=!0;if(F.forEach(D=>{var X;if((X=D.context)!=null&&X.open&&!D.context.dataRef.current.__escapeKeyBubbles){A=!1;return}}),!A)return}r(!1,Ju(x)?x.nativeEvent:x,"escape-key")}),L=$e(x=>{var k;const I=()=>{var F;M(x),(F=qe(x))==null||F.removeEventListener("keydown",I)};(k=qe(x))==null||k.addEventListener("keydown",I)}),j=$e(x=>{var k;const I=i.current.insideReactTree;i.current.insideReactTree=!1;const F=v.current;if(v.current=!1,l==="click"&&F||I||typeof S=="function"&&!S(x))return;const A=qe(x),D="["+Bt("inert")+"]",X=Oe(o.floating).querySelectorAll(D);let ue=te(A)?A:null;for(;ue&&!De(ue);){const re=We(ue);if(De(re)||!te(re))break;ue=re}if(X.length&&te(A)&&!Qu(A)&&!de(A,o.floating)&&Array.from(X).every(re=>!de(ue,re)))return;if(ie(A)&&$){const re=De(A),ve=Ce(A),He=/auto|scroll/,Kn=re||He.test(ve.overflowX),Un=re||He.test(ve.overflowY),Kt=Kn&&A.clientWidth>0&&A.scrollWidth>A.clientWidth,Ut=Un&&A.clientHeight>0&&A.scrollHeight>A.clientHeight,B=ve.direction==="rtl",K=Ut&&(B?x.offsetX<=A.offsetWidth-A.clientWidth:x.offsetX>A.clientWidth),V=Kt&&x.offsetY>A.clientHeight;if(K||V)return}const ze=(k=i.current.floatingContext)==null?void 0:k.nodeId,W=d&&vt(d.nodesRef.current,ze).some(re=>{var ve;return er(x,(ve=re.context)==null?void 0:ve.elements.floating)});if(er(x,o.floating)||er(x,o.domReference)||W)return;const Re=d?vt(d.nodesRef.current,ze):[];if(Re.length>0){let re=!0;if(Re.forEach(ve=>{var He;if((He=ve.context)!=null&&He.open&&!ve.context.dataRef.current.__outsidePressBubbles){re=!1;return}}),!re)return}r(!1,x,"outside-press")}),_=$e(x=>{var k;const I=()=>{var F;j(x),(F=qe(x))==null||F.removeEventListener(l,I)};(k=qe(x))==null||k.addEventListener(l,I)});b.useEffect(()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=C,i.current.__outsidePressBubbles=E;let x=-1;function k(X){r(!1,X,"ancestor-scroll")}function I(){window.clearTimeout(x),R.current=!0}function F(){x=window.setTimeout(()=>{R.current=!1},jn()?5:0)}const A=Oe(o.floating);s&&(A.addEventListener("keydown",T?L:M,T),A.addEventListener("compositionstart",I),A.addEventListener("compositionend",F)),S&&A.addEventListener(l,O?_:j,O);let D=[];return g&&(te(o.domReference)&&(D=Ze(o.domReference)),te(o.floating)&&(D=D.concat(Ze(o.floating))),!te(o.reference)&&o.reference&&o.reference.contextElement&&(D=D.concat(Ze(o.reference.contextElement)))),D=D.filter(X=>{var ue;return X!==((ue=A.defaultView)==null?void 0:ue.visualViewport)}),D.forEach(X=>{X.addEventListener("scroll",k,{passive:!0})}),()=>{s&&(A.removeEventListener("keydown",T?L:M,T),A.removeEventListener("compositionstart",I),A.removeEventListener("compositionend",F)),S&&A.removeEventListener(l,O?_:j,O),D.forEach(X=>{X.removeEventListener("scroll",k)}),window.clearTimeout(x)}},[i,o,s,S,l,n,r,g,a,C,E,M,T,L,j,O,_]),b.useEffect(()=>{i.current.insideReactTree=!1},[i,S,l]);const u=b.useMemo(()=>({onKeyDown:M,...f&&{[ud[p]]:x=>{r(!1,x.nativeEvent,"reference-press")},...p!=="click"&&{onClick(x){r(!1,x.nativeEvent,"reference-press")}}}}),[M,r,f,p]),$=b.useMemo(()=>({onKeyDown:M,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[fd[l]]:()=>{i.current.insideReactTree=!0}}),[M,l,i]);return b.useMemo(()=>a?{reference:u,floating:$}:{},[a,u,$])}function pd(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Kr(),i=b.useRef({}),[a]=b.useState(()=>Gf()),s=ba()!=null,[c,l]=b.useState(r.reference),f=$e((m,h,d)=>{i.current.openEvent=m?h:void 0,a.emit("openchange",{open:m,event:h,reason:d,nested:s}),n?.(m,h,d)}),p=b.useMemo(()=>({setPositionReference:l}),[]),g=b.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return b.useMemo(()=>({dataRef:i,open:t,onOpenChange:f,elements:g,events:a,floatingId:o,refs:p}),[t,f,g,a,o,p])}function md(e){e===void 0&&(e={});const{nodeId:t}=e,n=pd({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=b.useState(null),[s,c]=b.useState(null),f=o?.domReference||i,p=b.useRef(null),g=Ur();ge(()=>{f&&(p.current=f)},[f]);const m=jf({...e,elements:{...o,...s&&{reference:s}}}),h=b.useCallback(C=>{const E=te(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;c(E),m.refs.setReference(E)},[m.refs]),d=b.useCallback(C=>{(te(C)||C===null)&&(p.current=C,a(C)),(te(m.refs.reference.current)||m.refs.reference.current===null||C!==null&&!te(C))&&m.refs.setReference(C)},[m.refs]),y=b.useMemo(()=>({...m.refs,setReference:d,setPositionReference:h,domReference:p}),[m.refs,d,h]),S=b.useMemo(()=>({...m.elements,domReference:f}),[m.elements,f]),v=b.useMemo(()=>({...m,...r,refs:y,elements:S,nodeId:t}),[m,y,S,t,r]);return ge(()=>{r.dataRef.current.floatingContext=v;const C=g?.nodesRef.current.find(E=>E.id===t);C&&(C.context=v)}),b.useMemo(()=>({...m,context:v,refs:y,elements:S}),[m,y,S,v])}function ar(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[Do]:a,[Vo]:s,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[Wf]:""},...i,...t.map(a=>{const s=a?a[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((a,s)=>(s&&Object.entries(s).forEach(c=>{let[l,f]=c;if(!(o&&[Do,Vo].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof f=="function"){var p;(p=r.get(l))==null||p.push(f),a[l]=function(){for(var g,m=arguments.length,h=new Array(m),d=0;dy(...h)).find(y=>y!==void 0)}}}else a[l]=f}),a),{})}}function gd(e){e===void 0&&(e=[]);const t=e.map(s=>s?.reference),n=e.map(s=>s?.floating),r=e.map(s=>s?.item),o=b.useCallback(s=>ar(s,e,"reference"),t),i=b.useCallback(s=>ar(s,e,"floating"),n),a=b.useCallback(s=>ar(s,e,"item"),r);return b.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}const hd=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function yd(e,t){var n,r;t===void 0&&(t={});const{open:o,elements:i,floatingId:a}=e,{enabled:s=!0,role:c="dialog"}=t,l=Kr(),f=((n=i.domReference)==null?void 0:n.id)||l,p=b.useMemo(()=>{var v;return((v=Rr(i.floating))==null?void 0:v.id)||a},[i.floating,a]),g=(r=hd.get(c))!=null?r:c,h=ba()!=null,d=b.useMemo(()=>g==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:o?p:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":o?p:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:f},...g==="menu"&&h&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[g,p,h,o,f,c]),y=b.useMemo(()=>{const v={id:p,...g&&{role:g}};return g==="tooltip"||c==="label"?v:{...v,...g==="menu"&&{"aria-labelledby":f}}},[g,p,f,c]),S=b.useCallback(v=>{let{active:C,selected:E}=v;const T={role:"option",...C&&{id:p+"-fui-option"}};switch(c){case"select":case"combobox":return{...T,"aria-selected":E}}return{}},[p,c]);return b.useMemo(()=>s?{reference:d,floating:y,item:S}:{},[s,d,y,S])}function bd(e,t){const[n,r]=b.useState(e);return e&&!n&&r(!0),b.useEffect(()=>{if(!e&&n){const o=setTimeout(()=>r(!1),t);return()=>clearTimeout(o)}},[e,n,t]),n}function vd(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,a=(typeof o=="number"?o:o.close)||0,[s,c]=b.useState("unmounted"),l=bd(n,a);return!l&&s==="close"&&c("unmounted"),ge(()=>{if(r){if(n){c("initial");const f=requestAnimationFrame(()=>{Vr.flushSync(()=>{c("open")})});return()=>{cancelAnimationFrame(f)}}c("close")}},[n,r]),{isMounted:l,status:s}}var Je=function(){return Je=Object.assign||function(t){for(var n,r=1,o=arguments.length;r.");return e}function Td(e){return N.isValidElement(e)}var Ad=function(e){var t=e.children,n=qr().floatingUi;if(!Td(t))return null;var r=t.props,o=ya([r.ref,n.refs.setReference]);return N.cloneElement(t,Je(Je({},n.getReferenceProps(t.props)),{ref:o}))},Pd=N.forwardRef(function(e,t){var n,r=e.className,o=e.children,i=e.initialFocus,a=i===void 0?0:i,s=e.padding,c=s===void 0?"md":s,l=e.portalMount,f=Sa(e,["className","children","initialFocus","padding","portalMount"]),p=qr().floatingUi,g=ya([t,p.refs.setFloating]),m=vd(p.context,{duration:Ed}),h=m.isMounted,d=m.status,y=ke("rds-Popover",(n={},n["rds-Popover--".concat(c,"Padding")]=c!=="md",n["is-open"]=d==="open",n),r);return h?N.createElement(nd,{root:l??document.body},N.createElement(sd,{context:p.context,modal:!1,initialFocus:a},N.createElement("div",Je({className:y,ref:g,style:p.floatingStyles},p.getFloatingProps(f)),o))):null}),$d=N.forwardRef(function(e,t){var n=e.className,r=Sa(e,["className"]),o=qr().setOpen,i=ke("rds-Popover-close",n),a=function(s){var c;(c=r.onClick)===null||c===void 0||c.call(r,s),o(!1)};return N.createElement(si,Je({},r,{appearance:"neutralSubtle",icon:ui,ref:t,type:"button","aria-label":"close popover",className:i,iconOnly:!0,onClick:a}))}),Ne=function(e){var t=e.children,n=e.initialOpen,r=n===void 0?!1:n,o=e.open,i=e.onOpenChange,a=e.position,s=a===void 0?"bottom-end":a,c=Rd({open:o,onOpenChange:i,initialOpen:r,position:s});return N.createElement(Ca.Provider,{value:c},t)};Ne.displayName="Popover";Ne.Trigger=Ad;Ne.Content=Pd;Ne.Close=$d;const Id=N.createContext({}),Ea=!0;function _d({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:i,direction:a,duration:s,enableAnimation:c=Ea,customHighlightBackground:l}){const f={};return a==="rtl"&&(f["--animation-direction"]="reverse"),typeof s=="number"&&(f["--animation-duration"]=`${s}s`),c||(f["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(f.width=n),(typeof r=="string"||typeof r=="number")&&(f.height=r),(typeof o=="string"||typeof o=="number")&&(f.borderRadius=o),i&&(f.borderRadius="50%"),typeof e<"u"&&(f["--base-color"]=e),typeof t<"u"&&(f["--highlight-color"]=t),typeof l=="string"&&(f["--custom-highlight-background"]=l),f}function Nd({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:o,circle:i=!1,style:a,...s}){var c,l,f;const p=N.useContext(Id),g={...s};for(const[C,E]of Object.entries(s))typeof E>"u"&&delete g[C];const m={...p,...g,circle:i},h={...a,..._d(m)};let d="react-loading-skeleton";n&&(d+=` ${n}`);const y=(c=m.inline)!==null&&c!==void 0?c:!1,S=[],v=Math.ceil(e);for(let C=0;Ce&&C===v-1){const O=(l=E.width)!==null&&l!==void 0?l:"100%",R=e%1,M=typeof O=="number"?O*R:`calc(${O} * ${R})`;E={...E,width:M}}const T=N.createElement("span",{className:d,style:E,key:C},"‌");y?S.push(T):S.push(N.createElement(N.Fragment,{key:C},T,N.createElement("br",null)))}return N.createElement("span",{className:r,"data-testid":o,"aria-live":"polite","aria-busy":(f=m.enableAnimation)!==null&&f!==void 0?f:Ea},t?S.map((C,E)=>N.createElement(t,{key:E},C)):S)}const Md=e=>(document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}),Fd=()=>document.visibilityState,Ld=()=>{throw Error("useVisibilityChange is a client-only hook")};function jd(){return b.useSyncExternalStore(Md,Fd,Ld)==="visible"}const Yr=b.createContext();var St=function(e){return"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))},Tr=function(){return Tr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0,l=n?.hasTakenCoverageCheckup!==void 0&&!n?.hasTakenCoverageCheckup,f=!o,p=n?.hasTakenCoverageCheckup!==void 0&&n?.hasTakenCoverageCheckup&&(n?.numberOfCriticalRecommendations>0||n?.numberOfImportantRecommendations>0),g=zd(n,r),m=[];return p?m.push(g.viewCoverageCheckupResults):f&&l?m.push(g.takeGetStartedAssessment):l&&m.push(g.takeCoverageCheckup),s&&m.push(g.everydollar),c&&m.push(g.everyDollarToDos),m}function Vd(e){const t=e.map(n=>n.typeLabel);return["everydollar","everydollar-todos","take-coverage-checkup","take-get-started-assessment","view-coverage-checkup-results"].some(n=>{if(!t.includes(n))return!1;const r=localStorage.getItem(`aec-notification-${n}-clicked`);return r==null||r=="true"||Number.parseInt(r,10){const n=[];return e!==void 0&&e>0&&n.push(`${e} Critical Item${e>1?"s":""}`),t!==void 0&&t>0&&n.push(`${t} Important Item${t>1?"s":""}`),`You need to take care of ${n.join(" and ")} from your Coverage Checkup.`};function zd(e,t){return{everydollar:{typeLabel:"everydollar",heading:"Set Up Your Free Budget",href:t.everydollar,imgSource:"https://cdn.ramseysolutions.net/media/ramsey-apps/rpd/everydollar-get-everydollar-notification.svg",subcopy:"Create or update your EveryDollar budget to give every dollar a job."},everyDollarToDos:{typeLabel:"everydollar-todos",heading:"Complete Your To-Dos",href:t["everydollar-mobile"],imgSource:"https://cdn.ramseysolutions.net/media/ramsey-apps/rpd/everydollar-to-do-notification.svg",subcopy:"Update your progress on your To-Dos in EveryDollar."},takeCoverageCheckup:{typeLabel:"take-coverage-checkup",heading:"Take the Coverage Checkup",href:t["coverage-checkup-smart-link"],imgSource:"https://cdn.ramseysolutions.net/media/ramsey-apps/rpd/take-the-coverage-checkup-notification.svg",subcopy:"Find out what insurance you need (or don't need) in five minutes or less."},takeGetStartedAssessment:{typeLabel:"take-get-started-assessment",heading:"Find Out Your Baby Step",href:t["get-started-assessment"],imgSource:"https://cdn.ramseysolutions.net/media/homepage/authenticated/2025/take-gsa-notification-gem.svg",subcopy:"Take our assessment and get clear on your next money move."},viewCoverageCheckupResults:{typeLabel:"view-coverage-checkup-results",heading:"Complete Your Action Items",href:t["coverage-checkup-smart-link"],imgSource:"https://cdn.ramseysolutions.net/media/ramsey-apps/rpd/coverage-checkup-items-notification.svg",subcopy:Wd(e?.numberOfCriticalRecommendations,e?.numberOfImportantRecommendations)}}}function Hd({typeLabel:e,heading:t,href:n,imgSource:r,subcopy:o}){const i=vn(),[a,s]=b.useState(!0),c=b.useRef(!1);b.useEffect(()=>{c.current||(i({element:`aec-notification-${e}`}),c.current=!0);const f=localStorage.getItem(`aec-notification-${e}-clicked`);Number.parseInt(f,10)>ka.getTime()&&s(!1)},[e,i]);function l(){localStorage.setItem(`aec-notification-${e}-clicked`,String(Date.now()))}return P.jsx(Se.Item,{href:n,"data-analytics-link-label":`aec-notification-${e}`,"data-testid":`notification-card-${e}`,onClick:l,children:t&&P.jsxs(at,{spacing:"sm",wrap:!1,verticalAlignment:"top",children:[P.jsx("div",{className:"w-6 flex justify-center shrink-0",children:r&&P.jsx("img",{src:r,alt:"",className:"w-6 h-6 object-contain"})}),P.jsxs(at,{vertical:!0,spacing:"2xs",children:[P.jsx(ci,{level:"1",size:"xsmall",children:t}),P.jsx(Oa,{lineHeight:"medium",size:"small",className:"flex-1",children:o})]}),a&&P.jsx(Ki,{color:"error",invisible:!a,overlap:"circular",badgeContent:"",sx:{position:"absolute",right:"8%","& .MuiBadge-badge":{height:"10px",width:"10px",padding:"0px",minWidth:"10px"}},"data-testid":`aec-notification-${e}-badge`})]})},e)}let ei=!1;function Kd(){const e=vn();return ei||(e({element:"aec-notifications-empty-state"}),ei=!0),P.jsxs(at,{vertical:!0,spacing:"xs",horizontalAlignment:"center",className:"mt-1 mb-2","data-testid":"notifications-empty-state",children:[P.jsx("img",{alt:"No notifications",src:"https://cdn.ramseysolutions.net/media/ramsey-apps/rpd/notification-empty-state-illustration.svg"}),P.jsx(Nt,{size:"bodySmall",className:"font-semibold",children:"You’re all caught up!"}),P.jsx(Nt,{size:"bodyXSmall",className:"text-center",children:"This is where you’ll see action items and tips to help you work the Ramsey plan."})]})}function Ud({availableNotifications:e}){return e.length===0?P.jsx(Kd,{}):P.jsx(Se.Group,{children:e.map(t=>P.jsx(Hd,{...t},t.typeLabel))})}function Gd({altText:e,appLink:t,displayName:n,icon:r,name:o}){return P.jsx(Se.Item,{href:`${t}?source=auth-masthead`,"data-analytics-link-label":`aec-apps-dropdown-${o}`,"data-testid":`menu-item-${o}`,children:P.jsxs(at,{spacing:"sm",children:[P.jsx("img",{alt:e,className:"w-4",src:r}),P.jsx(Nt,{className:"font-semibold",size:"bodyLarge",children:n})]})},n)}function qd({products:e}){const t=window._cpa_user_menu.environmentAwareUrls,r=[{altText:"The Ask Ramsey app logo.",appLink:t["ask-ramsey"],displayName:"Ask Ramsey",icon:"https://cdn.ramseysolutions.net/media/ramsey-apps/rpd/ask-ramsey.svg",imageUrl:"https://cdn.ramseysolutions.net/media/ramsey-apps/rpd/ask-ramsey.svg",isAccessible:!0,isProvisioned:!0,marketingLink:t["ask-ramsey"],name:"ask-ramsey"},...e??[]];return P.jsx(Se.Group,{children:r?.map(Gd)})}const Yd="https://cdn.ramseysolutions.net/cms/sites/ramseysolutions-com/favicons/favicon.ico",Xd="https://cdn.ramseysolutions.net/cms/sites/ramseysolutions-com/favicons/favicon-block-r-red-dot-notification.ico";async function Zd(){const e=await fetch("/mpop/api/user/coverage-checkup"),{hasTakenCoverageCheckup:t,numberOfCriticalRecommendations:n,numberOfImportantRecommendations:r}=await e.json();return{hasTakenCoverageCheckup:t,numberOfCriticalRecommendations:n,numberOfImportantRecommendations:r}}async function Qd(){const e=await fetch("/mpop/api/user/get-started/has-taken-survey"),{hasTakenSurvey:t}=await e.json();return t??!0}async function Jd(){const e=await fetch("/mpop/api/user/product"),{products:t}=await e.json();return t.filter(n=>n.isAccessible)}async function ep(){return await(await fetch("/mpop/api/user/todos")).json()}function tp(){const{data:e}=Gt({queryKey:["ccResponse"],queryFn:Zd,staleTime:1/0,refetchOnWindowFocus:!1}),{data:t}=Gt({queryKey:["products"],queryFn:Jd,staleTime:1/0,refetchOnWindowFocus:!1}),n=t?.some(v=>v.name==="everydollar"&&v.isProvisioned),{isLoading:r,data:o=0}=Gt({queryKey:["everyDollarToDos"],queryFn:ep,staleTime:1/0,refetchOnWindowFocus:!1}),{data:i}=Gt({queryKey:["getStartedAssessment"],queryFn:Qd,staleTime:1/0,refetchOnWindowFocus:!1}),a=b.useContext(Yr),s=jd(),c=window._cpa_user_menu.environmentAwareUrls,l=vn(),[f,p]=b.useState(!1),[g,m]=b.useState([]),[h,d]=b.useState(!1),y=document.querySelector("link[type='image/x-icon']");b.useEffect(()=>{y instanceof HTMLLinkElement&&(!s&&f?y.href=Xd:s&&(y.href=Yd))},[s]),b.useEffect(()=>{if(n!==void 0&&e!==void 0&&o!==void 0&&i!==void 0){const v=Dd(n,o,e,c,i);m(v),p(Vd(v))}},[n,e,i]),b.useEffect(()=>{f&&l({element:"aec-notifications-badge"})},[f]);function S(v){d(v)}return P.jsxs(Ne,{open:h,onOpenChange:S,children:[P.jsx(Ne.Trigger,{children:P.jsx(Ki,{color:"error",invisible:!f,overlap:"circular","data-testid":`waffle-menu-badge-${f?"visible":"hidden"}`,badgeContent:"",sx:{"& .MuiBadge-badge":{height:"10px",width:"10px",padding:"0px",minWidth:"10px"}},children:P.jsx(si,{appearance:"subtle","aria-label":"Products",iconOnly:!0,icon:li,size:"medium","data-analytics-link-label":"aec-apps-dropdown","data-testid":"waffle-menu-button"})})}),P.jsxs(Ne.Content,{portalMount:a,initialFocus:-1,className:"min-w-[360px]",children:[P.jsxs(Se,{className:"mb-1",children:[P.jsx(Se.Title,{level:1,children:"Notifications"}),r?P.jsx(Nd,{containerClassName:"[&br]:hidden",className:"block h-24 rounded-lg"}):P.jsx(Ud,{availableNotifications:g}),P.jsx("hr",{className:"mb-2 mt-1 text-gray-40"}),P.jsx(Se.Title,{level:1,children:"Available Apps"}),P.jsx(qd,{products:t})]}),P.jsx("hr",{className:"my-1 text-gray-40"}),P.jsxs(at,{className:"p-inset-sm","data-analytics-link-label":"aec-apps-dropdown-rpd",children:[P.jsx(Nn,{icon:pi,size:"xlarge",className:"text-blue-50"}),P.jsx(_a,{href:c["rs-homepage"],children:"My Ramsey Homepage"})]})]})]})}var Ar=function(){return Ar=Object.assign||function(t){for(var n,r=1,o=arguments.length;r{for(const r of t)r(n);e.push(n)},registerListener:n=>{t.push(n);for(const r of e)n(r)}}}const Ta=lp();window.addEventListener("message",Ta.emit);window._rsMasthead={messageOrchestrator:{registerListener:Ta.registerListener}};function up(){return window._rs_masthead_renderComponentType=="CPA"}function fp(){const e=document.createElement("div");return e.id="user-menu-root",e}if(up()){const e=document.getElementById("rsMastheadActions"),t=fp();e.appendChild(t);const n=Pa.createRoot(t);e.classList.add("userMenuComponent"),n.render(P.jsx(N.StrictMode,{children:P.jsx($a,{client:new Ia,children:P.jsx(Yr.Provider,{value:t,children:P.jsx(cp,{})})})})),window._cpa_user_menu&&window.postMessage({eventName:"isAuthenticated",user:{userId:window._cpa_user_menu.user_userId}},window.location.origin)}