@riddix/hamh 2.0.29 → 2.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -144,7 +144,7 @@ export default theme;`}function MN(e){return typeof e=="number"?`${(e*100).toFix
|
|
|
144
144
|
animation: ${xk} 1.4s linear infinite;
|
|
145
145
|
`:null,N1e=typeof Sk!="string"?Nm`
|
|
146
146
|
animation: ${Sk} 1.4s ease-in-out infinite;
|
|
147
|
-
`:null,F1e=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${ye(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ye(n)}`,i&&"circleDisableShrink"]};return et(o,$1e,t)},B1e=me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ye(n.color)}`]]}})(Ge(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:L1e||{animation:`${xk} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),z1e=me("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),H1e=me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ye(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ge(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:N1e||{animation:`${Sk} 1.4s ease-in-out infinite`}}]}))),U1e=me("circle",{name:"MuiCircularProgress",slot:"Track"})(Ge(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),zr=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,enableTrackSlot:a=!1,size:l=40,style:c,thickness:u=3.6,value:f=0,variant:h="indeterminate",...g}=r,y={...r,color:o,disableShrink:s,size:l,thickness:u,value:f,variant:h,enableTrackSlot:a},b=F1e(y),v={},S={},C={};if(h==="determinate"){const w=2*Math.PI*((ja-u)/2);v.strokeDasharray=w.toFixed(3),C["aria-valuenow"]=Math.round(f),v.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,S.transform="rotate(-90deg)"}return m.jsx(B1e,{className:Te(b.root,i),style:{width:l,height:l,...S,...c},ownerState:y,ref:n,role:"progressbar",...C,...g,children:m.jsxs(z1e,{className:b.svg,ownerState:y,viewBox:`${ja/2} ${ja/2} ${ja} ${ja}`,children:[a?m.jsx(U1e,{className:b.track,ownerState:y,cx:ja,cy:ja,r:(ja-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,m.jsx(H1e,{className:b.circle,style:v,ownerState:y,cx:ja,cy:ja,r:(ja-u)/2,fill:"none",strokeWidth:u})]})})});function V1e(e){return Qe("MuiIconButton",e)}const LN=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),W1e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o,loading:s}=e,a={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${ye(r)}`,i&&`edge${ye(i)}`,`size${ye(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return et(a,V1e,t)},q1e=me(ba,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ye(n.color)}`],n.edge&&t[`edge${ye(n.edge)}`],t[`size${ye(n.size)}`]]}})(Ge(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ge(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${LN.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${LN.loading}`]:{color:"transparent"}}))),G1e=me("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),_n=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:f,loading:h=null,loadingIndicator:g,...y}=r,b=Ou(f),v=g??m.jsx(zr,{"aria-labelledby":b,color:"inherit",size:16}),S={...r,edge:i,color:a,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:v,size:u},C=W1e(S);return m.jsxs(q1e,{id:h?b:f,className:Te(C.root,s),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...y,ownerState:S,children:[typeof h=="boolean"&&m.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:m.jsx(G1e,{className:C.loadingIndicator,ownerState:S,children:h&&v})}),o]})}),K1e=_e(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),Y1e=_e(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),X1e=_e(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Z1e=_e(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),yX=_e(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),J1e=e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${ye(n||r)}`,`${t}${ye(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return et(o,l1e,i)},Q1e=me(Ur,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ye(n.color||n.severity)}`]]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Fn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${PN.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Fn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${PN.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Fn(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),eye=me("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),tye=me("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),nye=me("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),NN={success:m.jsx(K1e,{fontSize:"inherit"}),warning:m.jsx(Y1e,{fontSize:"inherit"}),error:m.jsx(X1e,{fontSize:"inherit"}),info:m.jsx(Z1e,{fontSize:"inherit"})},vn=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAlert"}),{action:i,children:o,className:s,closeText:a="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=NN,onClose:g,role:y="alert",severity:b="success",slotProps:v={},slots:S={},variant:C="standard",...w}=r,A={...r,color:l,severity:b,variant:C,colorSeverity:l||b},E=J1e(A),D={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...S},slotProps:{...u,...v}},[O,T]=lt("root",{ref:n,shouldForwardComponentProp:!0,className:Te(E.root,s),elementType:Q1e,externalForwardedProps:{...D,...w},ownerState:A,additionalProps:{role:y,elevation:0}}),[I,N]=lt("icon",{className:E.icon,elementType:eye,externalForwardedProps:D,ownerState:A}),[$,R]=lt("message",{className:E.message,elementType:tye,externalForwardedProps:D,ownerState:A}),[F,j]=lt("action",{className:E.action,elementType:nye,externalForwardedProps:D,ownerState:A}),[z,L]=lt("closeButton",{elementType:_n,externalForwardedProps:D,ownerState:A}),[q,V]=lt("closeIcon",{elementType:yX,externalForwardedProps:D,ownerState:A});return m.jsxs(O,{...T,children:[f!==!1?m.jsx(I,{...N,children:f||h[b]||NN[b]}):null,m.jsx($,{...R,children:o}),i!=null?m.jsx(F,{...j,children:i}):null,i==null&&g?m.jsx(F,{...j,children:m.jsx(z,{size:"small","aria-label":a,title:a,color:"inherit",onClick:g,...L,children:m.jsx(q,{fontSize:"small",...V})})}):null]})});function rye(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,s=Od();_.useEffect(()=>{if(!i)return;function S(C){C.defaultPrevented||C.key==="Escape"&&r?.(C,"escapeKeyDown")}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[i,r]);const a=Ni((S,C)=>{r?.(S,C)}),l=Ni(S=>{!r||S==null||s.start(S,()=>{a(null,"timeout")})});_.useEffect(()=>(i&&l(t),s.clear),[i,t,l,s]);const c=S=>{r?.(S,"clickaway")},u=s.clear,f=_.useCallback(()=>{t!=null&&l(o??t*.5)},[t,o,l]),h=S=>C=>{const w=S.onBlur;w?.(C),f()},g=S=>C=>{const w=S.onFocus;w?.(C),u()},y=S=>C=>{const w=S.onMouseEnter;w?.(C),u()},b=S=>C=>{const w=S.onMouseLeave;w?.(C),f()};return _.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,i,f,u]),{getRootProps:(S={})=>{const C={...Yi(e),...Yi(S)};return{role:"presentation",...S,...C,onBlur:h(C),onFocus:g(C),onMouseEnter:y(C),onMouseLeave:b(C)}},onClickAway:c}}function gf(e){return parseInt(_.version,10)>=19?e?.props?.ref||null:e?.ref||null}function FN(e){return e.substring(2).toLowerCase()}function iye(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function oye(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,s=_.useRef(!1),a=_.useRef(null),l=_.useRef(!1),c=_.useRef(!1);_.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Tr(gf(t),a),f=Ni(y=>{const b=c.current;c.current=!1;const v=Di(a.current);if(!l.current||!a.current||"clientX"in y&&iye(y,v))return;if(s.current){s.current=!1;return}let S;y.composedPath?S=y.composedPath().includes(a.current):S=!v.documentElement.contains(y.target)||a.current.contains(y.target),!S&&(n||!b)&&i(y)}),h=y=>b=>{c.current=!0;const v=t.props[y];v&&v(b)},g={ref:u};return o!==!1&&(g[o]=h(o)),_.useEffect(()=>{if(o!==!1){const y=FN(o),b=Di(a.current),v=()=>{s.current=!0};return b.addEventListener(y,f),b.addEventListener("touchmove",v),()=>{b.removeEventListener(y,f),b.removeEventListener("touchmove",v)}}},[f,o]),r!==!1&&(g[r]=h(r)),_.useEffect(()=>{if(r!==!1){const y=FN(r),b=Di(a.current);return b.addEventListener(y,f),()=>{b.removeEventListener(y,f)}}},[f,r]),_.cloneElement(t,g)}const IO=e=>e.scrollTop;function Kd(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function wk(e){return`scale(${e}, ${e**2})`}const sye={entering:{opacity:1,transform:wk(1)},entered:{opacity:1,transform:"none"}},C7=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wy=_.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:g,style:y,timeout:b="auto",TransitionComponent:v=Ta,...S}=t,C=Od(),w=_.useRef(),A=ro(),E=_.useRef(null),D=Tr(E,gf(o),n),O=z=>L=>{if(z){const q=E.current;L===void 0?z(q):z(q,L)}},T=O(u),I=O((z,L)=>{IO(z);const{duration:q,delay:V,easing:U}=Kd({style:y,timeout:b,easing:s},{mode:"enter"});let K;b==="auto"?(K=A.transitions.getAutoHeightDuration(z.clientHeight),w.current=K):K=q,z.style.transition=[A.transitions.create("opacity",{duration:K,delay:V}),A.transitions.create("transform",{duration:C7?K:K*.666,delay:V,easing:U})].join(","),l&&l(z,L)}),N=O(c),$=O(g),R=O(z=>{const{duration:L,delay:q,easing:V}=Kd({style:y,timeout:b,easing:s},{mode:"exit"});let U;b==="auto"?(U=A.transitions.getAutoHeightDuration(z.clientHeight),w.current=U):U=L,z.style.transition=[A.transitions.create("opacity",{duration:U,delay:q}),A.transitions.create("transform",{duration:C7?U:U*.666,delay:C7?q:q||U*.333,easing:V})].join(","),z.style.opacity=0,z.style.transform=wk(.75),f&&f(z)}),F=O(h),j=z=>{b==="auto"&&C.start(w.current||0,z),r&&r(E.current,z)};return m.jsx(v,{appear:i,in:a,nodeRef:E,onEnter:I,onEntered:N,onEntering:T,onExit:R,onExited:F,onExiting:$,addEndListener:j,timeout:b==="auto"?null:b,...S,children:(z,{ownerState:L,...q})=>_.cloneElement(o,{style:{opacity:0,transform:wk(.75),visibility:z==="exited"&&!a?"hidden":void 0,...sye[z],...y,...o.props.style},ref:D,...q})})});Wy&&(Wy.muiSupportAuto=!0);function aye(e){return Qe("MuiSnackbarContent",e)}tt("MuiSnackbarContent",["root","message","action"]);const lye=e=>{const{classes:t}=e;return et({root:["root"],action:["action"],message:["message"]},aye,t)},cye=me(Ur,{name:"MuiSnackbarContent",slot:"Root"})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Uy(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Uy(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),uye=me("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),dye=me("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),fye=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:a="alert",...l}=r,c=r,u=lye(c);return m.jsxs(cye,{role:a,elevation:6,className:Te(u.root,o),ownerState:c,ref:n,...l,children:[m.jsx(uye,{className:u.message,ownerState:c,children:s}),i?m.jsx(dye,{className:u.action,ownerState:c,children:i}):null]})});function hye(e){return Qe("MuiSnackbar",e)}tt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const pye=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ye(n.vertical)}${ye(n.horizontal)}`]};return et(r,hye,t)},mye=me("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ye(n.anchorOrigin.vertical)}${ye(n.anchorOrigin.horizontal)}`]]}})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),PO=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiSnackbar"}),i=ro(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:g,disableWindowBlurListener:y=!1,message:b,onBlur:v,onClose:S,onFocus:C,onMouseEnter:w,onMouseLeave:A,open:E,resumeHideDuration:D,slots:O={},slotProps:T={},TransitionComponent:I,transitionDuration:N=o,TransitionProps:{onEnter:$,onExited:R,...F}={},...j}=r,z={...r,anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:I,transitionDuration:N},L=pye(z),{getRootProps:q,onClickAway:V}=rye(z),[U,K]=_.useState(!0),B=re=>{K(!0),R&&R(re)},W=(re,oe)=>{K(!1),$&&$(re,oe)},X={slots:{transition:I,...O},slotProps:{content:g,clickAwayListener:h,transition:F,...T}},[H,Y]=lt("root",{ref:n,className:[L.root,f],elementType:mye,getSlotProps:q,externalForwardedProps:{...X,...j},ownerState:z}),[J,{ownerState:ne,...ee}]=lt("clickAwayListener",{elementType:oye,externalForwardedProps:X,getSlotProps:re=>({onClickAway:(...oe)=>{const fe=oe[0];re.onClickAway?.(...oe),!fe?.defaultMuiPrevented&&V(...oe)}}),ownerState:z}),[se,ue]=lt("content",{elementType:fye,shouldForwardComponentProp:!0,externalForwardedProps:X,additionalProps:{message:b,action:s},ownerState:z}),[te,Z]=lt("transition",{elementType:Wy,externalForwardedProps:X,getSlotProps:re=>({onEnter:(...oe)=>{re.onEnter?.(...oe),W(...oe)},onExited:(...oe)=>{re.onExited?.(...oe),B(...oe)}}),additionalProps:{appear:!0,in:E,timeout:N,direction:a==="top"?"down":"up"},ownerState:z});return!E&&U?null:m.jsx(J,{...ee,...O.clickAwayListener&&{ownerState:ne},children:m.jsx(H,{...Y,children:m.jsx(te,{...Z,children:u||m.jsx(se,{...ue})})})})}),bX=_.createContext({show:()=>{}});let gye=0;const yye=e=>{const[t,n]=_.useState([]),r=_.useCallback(o=>{n(s=>[...s,{...o,autoHideDuration:o.autoHideDuration??6e3,notificationId:gye++}])},[]),i=o=>{n(s=>s.filter(a=>a.notificationId!==o))};return m.jsxs(bX.Provider,{value:{show:r},children:[e.children,t.map(o=>m.jsx(PO,{open:!0,autoHideDuration:o.autoHideDuration,onClose:()=>i(o.notificationId),children:m.jsx(vn,{severity:o.severity,variant:"filled",sx:{minWidth:"300px"},children:o.message})},o.notificationId))]})};function fo(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bye=typeof Symbol=="function"&&Symbol.observable||"@@observable",BN=bye,E7=()=>Math.random().toString(36).substring(7).split("").join("."),vye={INIT:`@@redux/INIT${E7()}`,REPLACE:`@@redux/REPLACE${E7()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${E7()}`},$4=vye;function jO(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function vX(e,t,n){if(typeof e!="function")throw new Error(fo(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(fo(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(fo(1));return n(vX)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((v,S)=>{s.set(S,v)}))}function u(){if(l)throw new Error(fo(3));return i}function f(v){if(typeof v!="function")throw new Error(fo(4));if(l)throw new Error(fo(5));let S=!0;c();const C=a++;return s.set(C,v),function(){if(S){if(l)throw new Error(fo(6));S=!1,c(),s.delete(C),o=null}}}function h(v){if(!jO(v))throw new Error(fo(7));if(typeof v.type>"u")throw new Error(fo(8));if(typeof v.type!="string")throw new Error(fo(17));if(l)throw new Error(fo(9));try{l=!0,i=r(i,v)}finally{l=!1}return(o=s).forEach(C=>{C()}),v}function g(v){if(typeof v!="function")throw new Error(fo(10));r=v,h({type:$4.REPLACE})}function y(){const v=f;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(fo(11));function C(){const A=S;A.next&&A.next(u())}return C(),{unsubscribe:v(C)}},[BN](){return this}}}return h({type:$4.INIT}),{dispatch:h,subscribe:f,getState:u,replaceReducer:g,[BN]:y}}function xye(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:$4.INIT})>"u")throw new Error(fo(12));if(typeof n(void 0,{type:$4.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fo(13))})}function Sye(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{xye(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const c={};for(let u=0;u<r.length;u++){const f=r[u],h=n[f],g=s[f],y=h(g,a);if(typeof y>"u")throw a&&a.type,new Error(fo(14));c[f]=y,l=l||y!==g}return l=l||r.length!==Object.keys(s).length,l?c:s}}function L4(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function wye(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(fo(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=L4(...a)(i.dispatch),{...i,dispatch:o}}}function Cye(e){return jO(e)&&"type"in e&&typeof e.type=="string"}var xX=Symbol.for("immer-nothing"),zN=Symbol.for("immer-draftable"),Uo=Symbol.for("immer-state");function Ba(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Is=Object,om=Is.getPrototypeOf,N4="constructor",XS="prototype",Ck="configurable",F4="enumerable",$5="writable",qy="value",yu=e=>!!e&&!!e[Uo];function nl(e){return e?SX(e)||JS(e)||!!e[zN]||!!e[N4]?.[zN]||QS(e)||ew(e):!1}var Eye=Is[XS][N4].toString(),HN=new WeakMap;function SX(e){if(!e||!$O(e))return!1;const t=om(e);if(t===null||t===Is[XS])return!0;const n=Is.hasOwnProperty.call(t,N4)&&t[N4];if(n===Object)return!0;if(!u0(n))return!1;let r=HN.get(n);return r===void 0&&(r=Function.toString.call(n),HN.set(n,r)),r===Eye}function ZS(e,t,n=!0){gb(e)===0?(n?Reflect.ownKeys(e):Is.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function gb(e){const t=e[Uo];return t?t.type_:JS(e)?1:QS(e)?2:ew(e)?3:0}var UN=(e,t,n=gb(e))=>n===2?e.has(t):Is[XS].hasOwnProperty.call(e,t),Ek=(e,t,n=gb(e))=>n===2?e.get(t):e[t],B4=(e,t,n,r=gb(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Aye(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var JS=Array.isArray,QS=e=>e instanceof Map,ew=e=>e instanceof Set,$O=e=>typeof e=="object",u0=e=>typeof e=="function",A7=e=>typeof e=="boolean";function kye(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var eu=e=>e.copy_||e.base_,LO=e=>e.modified_?e.copy_:e.base_;function Ak(e,t){if(QS(e))return new Map(e);if(ew(e))return new Set(e);if(JS(e))return Array[XS].slice.call(e);const n=SX(e);if(t===!0||t==="class_only"&&!n){const r=Is.getOwnPropertyDescriptors(e);delete r[Uo];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a[$5]===!1&&(a[$5]=!0,a[Ck]=!0),(a.get||a.set)&&(r[s]={[Ck]:!0,[$5]:!0,[F4]:a[F4],[qy]:e[s]})}return Is.create(om(e),r)}else{const r=om(e);if(r!==null&&n)return{...e};const i=Is.create(r);return Is.assign(i,e)}}function NO(e,t=!1){return tw(e)||yu(e)||!nl(e)||(gb(e)>1&&Is.defineProperties(e,{set:kx,add:kx,clear:kx,delete:kx}),Is.freeze(e),t&&ZS(e,(n,r)=>{NO(r,!0)},!1)),e}function _ye(){Ba(2)}var kx={[qy]:_ye};function tw(e){return e===null||!$O(e)?!0:Is.isFrozen(e)}var z4="MapSet",kk="Patches",VN="ArrayMethods",wX={};function Rh(e){const t=wX[e];return t||Ba(0,e),t}var WN=e=>!!wX[e],Gy,CX=()=>Gy,Dye=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:WN(z4)?Rh(z4):void 0,arrayMethodsPlugin_:WN(VN)?Rh(VN):void 0});function qN(e,t){t&&(e.patchPlugin_=Rh(kk),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function _k(e){Dk(e),e.drafts_.forEach(Oye),e.drafts_=null}function Dk(e){e===Gy&&(Gy=e.parent_)}var GN=e=>Gy=Dye(Gy,e);function Oye(e){const t=e[Uo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function KN(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Uo].modified_&&(_k(t),Ba(4)),nl(e)&&(e=YN(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Uo].base_,e,t)}else e=YN(t,n);return Tye(t,e,!0),_k(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==xX?e:void 0}function YN(e,t){if(tw(t))return t;const n=t[Uo];if(!n)return H4(t,e.handledSet_,e);if(!nw(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);kX(n,e)}return n.copy_}function Tye(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&NO(t,n)}function EX(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var nw=(e,t)=>e.scope_===t,Mye=[];function AX(e,t,n,r){const i=eu(e),o=e.type_;if(r!==void 0&&Ek(i,r,o)===t){B4(i,r,n,o);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;ZS(i,(l,c)=>{if(yu(c)){const u=a.get(c)||[];u.push(l),a.set(c,u)}})}const s=e.draftLocations_.get(t)??Mye;for(const a of s)B4(i,a,n,o)}function Rye(e,t,n){e.callbacks_.push(function(i){const o=t;if(!o||!nw(o,i))return;i.mapSetPlugin_?.fixSetContents(o);const s=LO(o);AX(e,o.draft_??o,s,n),kX(o,i)})}function kX(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}EX(e)}}function Iye(e,t,n){const{scope_:r}=e;if(yu(n)){const i=n[Uo];nw(i,r)&&i.callbacks_.push(function(){L5(e);const s=LO(i);AX(e,n,s,t)})}else nl(n)&&e.callbacks_.push(function(){const o=eu(e);e.type_===3?o.has(n)&&H4(n,r.handledSet_,r):Ek(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&H4(Ek(e.copy_,t,e.type_),r.handledSet_,r)})}function H4(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||yu(e)||t.has(e)||!nl(e)||tw(e)||(t.add(e),ZS(e,(r,i)=>{if(yu(i)){const o=i[Uo];if(nw(o,n)){const s=LO(o);B4(e,r,s,e.type_),EX(o)}}else nl(i)&&H4(i,t,n)})),e}function Pye(e,t){const n=JS(e),r={type_:n?1:0,scope_:t?t.scope_:CX(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,o=U4;n&&(i=[r],o=Ky);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,[a,r]}var U4={get(e,t){if(t===Uo)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=eu(e);if(!UN(i,t,e.type_))return jye(e,i,t);const o=i[t];if(e.finalized_||!nl(o)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&kye(t))return o;if(o===k7(e.base_,t)){L5(e);const s=e.type_===1?+t:t,a=Tk(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in eu(e)},ownKeys(e){return Reflect.ownKeys(eu(e))},set(e,t,n){const r=_X(eu(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=k7(eu(e),t),o=i?.[Uo];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Aye(n,i)&&(n!==void 0||UN(e.base_,t,e.type_)))return!0;L5(e),Ok(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Iye(e,t,n)),!0},deleteProperty(e,t){return L5(e),k7(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ok(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=eu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[$5]:!0,[Ck]:e.type_!==1||t!=="length",[F4]:r[F4],[qy]:n[t]}},defineProperty(){Ba(11)},getPrototypeOf(e){return om(e.base_)},setPrototypeOf(){Ba(12)}},Ky={};for(let e in U4){let t=U4[e];Ky[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Ky.deleteProperty=function(e,t){return Ky.set.call(this,e,t,void 0)};Ky.set=function(e,t,n){return U4.set.call(this,e[0],t,n,e[0])};function k7(e,t){const n=e[Uo];return(n?eu(n):e)[t]}function jye(e,t,n){const r=_X(t,n);return r?qy in r?r[qy]:r.get?.call(e.draft_):void 0}function _X(e,t){if(!(t in e))return;let n=om(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=om(n)}}function Ok(e){e.modified_||(e.modified_=!0,e.parent_&&Ok(e.parent_))}function L5(e){e.copy_||(e.assigned_=new Map,e.copy_=Ak(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var $ye=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(u0(t)&&!u0(n)){const o=n;n=t;const s=this;return function(l=o,...c){return s.produce(l,u=>n.call(this,u,...c))}}u0(n)||Ba(6),r!==void 0&&!u0(r)&&Ba(7);let i;if(nl(t)){const o=GN(this),s=Tk(o,t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?_k(o):Dk(o)}return qN(o,r),KN(i,o)}else if(!t||!$O(t)){if(i=n(t),i===void 0&&(i=t),i===xX&&(i=void 0),this.autoFreeze_&&NO(i,!0),r){const o=[],s=[];Rh(kk).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:s}),r(o,s)}return i}else Ba(1,t)},this.produceWithPatches=(t,n)=>{if(u0(t))return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},A7(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),A7(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),A7(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){nl(e)||Ba(8),yu(e)&&(e=Lye(e));const t=GN(this),n=Tk(t,e,void 0);return n[Uo].isManual_=!0,Dk(t),n}finishDraft(e,t){const n=e&&e[Uo];(!n||!n.isManual_)&&Ba(9);const{scope_:r}=n;return qN(r,t),KN(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Rh(kk).applyPatches_;return yu(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Tk(e,t,n,r){const[i,o]=QS(t)?Rh(z4).proxyMap_(t,n):ew(t)?Rh(z4).proxySet_(t,n):Pye(t,n);return(n?.scope_??CX()).drafts_.push(i),o.callbacks_=n?.callbacks_??[],o.key_=r,n&&r!==void 0?Rye(n,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);const{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),i}function Lye(e){return yu(e)||Ba(10,e),DX(e)}function DX(e){if(!nl(e)||tw(e))return e;const t=e[Uo];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ak(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Ak(e,!0);return ZS(n,(i,o)=>{B4(n,i,DX(o))},r),t&&(t.finalized_=!1),n}var Nye=new $ye,OX=Nye.produce,V4=Symbol("NOT_FOUND");function Fye(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Bye(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function zye(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var XN=e=>Array.isArray(e)?e:[e];function Hye(e){const t=Array.isArray(e[0])?e[0]:e;return zye(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Uye(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function Vye(e){let t;return{get(n){return t&&e(t.key,n)?t.value:V4},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Wye(e,t){let n=[];function r(a){const l=n.findIndex(c=>t(a,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return V4}function i(a,l){r(a)===V4&&(n.unshift({key:a,value:l}),n.length>e&&n.pop())}function o(){return n}function s(){n=[]}return{get:r,put:i,getEntries:o,clear:s}}var qye=(e,t)=>e===t;function Gye(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}}function Kye(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=qye,maxSize:i=1,resultEqualityCheck:o}=n,s=Gye(r);let a=0;const l=i<=1?Vye(s):Wye(i,s);function c(){let u=l.get(arguments);if(u===V4){if(u=e.apply(null,arguments),a++,o){const h=l.getEntries().find(g=>o(g.value,u));h&&(u=h.value,a!==0&&a--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var Yye=class{constructor(e){this.value=e}deref(){return this.value}},Xye=typeof WeakRef<"u"?WeakRef:Yye,Zye=0,ZN=1;function _x(){return{s:Zye,v:void 0,o:null,p:null}}function TX(e,t={}){let n=_x();const{resultEqualityCheck:r}=t;let i,o=0;function s(){let a=n;const{length:l}=arguments;for(let f=0,h=l;f<h;f++){const g=arguments[f];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=a.o;y===null&&(a.o=y=new WeakMap);const b=y.get(g);b===void 0?(a=_x(),y.set(g,a)):a=b}else{let y=a.p;y===null&&(a.p=y=new Map);const b=y.get(g);b===void 0?(a=_x(),y.set(g,a)):a=b}}const c=a;let u;if(a.s===ZN)u=a.v;else if(u=e.apply(null,arguments),o++,r){const f=i?.deref?.()??i;f!=null&&r(f,u)&&(u=f,o!==0&&o--),i=typeof u=="object"&&u!==null||typeof u=="function"?new Xye(u):u}return c.s=ZN,c.v=u,u}return s.clearCache=()=>{n=_x(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function MX(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,a,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),Fye(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:f,memoizeOptions:h=[],argsMemoize:g=TX,argsMemoizeOptions:y=[]}=u,b=XN(h),v=XN(y),S=Hye(i),C=f(function(){return o++,c.apply(null,arguments)},...b),w=g(function(){s++;const E=Uye(S,arguments);return a=C.apply(null,E),a},...v);return Object.assign(w,{resultFunc:c,memoizedResultFunc:C,dependencies:S,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var RX=MX(TX),Jye=Object.assign((e,t=RX)=>{Bye(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>Jye});function IX(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Qye=IX(),e2e=IX,t2e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?L4:L4.apply(null,arguments)},n2e=e=>e&&typeof e.match=="function";function oy(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(W4(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Cye(r)&&r.type===e,n}var PX=class B1 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,B1.prototype)}static get[Symbol.species](){return B1}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new B1(...t[0].concat(this)):new B1(...t.concat(this))}};function JN(e){return nl(e)?OX(e,()=>{}):e}function r2e(e){return typeof e=="boolean"}var i2e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new PX;return n&&(r2e(n)?s.push(Qye):s.push(e2e(n.extraArgument))),s},o2e="RTK_autoBatch",QN=e=>t=>{setTimeout(t,e)},s2e=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:QN(10):e.type==="callback"?e.queueNotification:QN(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const f=()=>i&&u(),h=r.subscribe(f);return a.add(u),()=>{h(),a.delete(u)}},dispatch(u){try{return i=!u?.meta?.[o2e],o=!i,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{i=!0}}})},a2e=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new PX(e);return r&&i.push(s2e(typeof r=="object"?r:void 0)),i};function l2e(e){const t=i2e(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(jO(n))a=Sye(n);else throw new Error(W4(1));let l;typeof r=="function"?l=r(t):l=t();let c=L4;i&&(c=t2e({trace:!1,...typeof i=="object"&&i}));const u=wye(...l),f=a2e(u);let h=typeof s=="function"?s(f):f();const g=c(...h);return vX(a,o,g)}function c2e(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(W4(28));if(a in t)throw new Error(W4(29));return t[a]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function u2e(e){return typeof e=="function"}function FO(e,t){let[n,r,i]=c2e(t),o;if(u2e(e))o=()=>JN(e());else{const a=JN(e);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,f)=>{if(f)if(yu(u)){const g=f(u,l);return g===void 0?u:g}else{if(nl(u))return OX(u,h=>f(h,l));{const h=f(u,l);if(h===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return u},a)}return s.getInitialState=o,s}var d2e=(e,t)=>n2e(e)?e.match(t):e(t);function f2e(...e){return t=>e.some(n=>d2e(n,t))}var h2e="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",p2e=(e=21)=>{let t="",n=e;for(;n--;)t+=h2e[Math.random()*64|0];return t},m2e=["name","message","stack","code"],_7=class{constructor(e,t){this.payload=e,this.meta=t}_type},eF=class{constructor(e,t){this.payload=e,this.meta=t}_type},g2e=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of m2e)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},tF="External signal was aborted",y2e=(()=>{function e(t,n,r){const i=oy(t+"/fulfilled",(l,c,u,f)=>({payload:l,meta:{...f||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=oy(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=oy(t+"/rejected",(l,c,u,f,h)=>({payload:f,error:(r&&r.serializeError||g2e)(l||"Rejected"),meta:{...h||{},arg:u,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,f,h)=>{const g=r?.idGenerator?r.idGenerator(l):p2e(),y=new AbortController;let b,v;function S(w){v=w,y.abort()}c&&(c.aborted?S(tF):c.addEventListener("abort",()=>S(tF),{once:!0}));const C=(async function(){let w;try{let E=r?.condition?.(l,{getState:f,extra:h});if(v2e(E)&&(E=await E),E===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const D=new Promise((O,T)=>{b=()=>{T({name:"AbortError",message:v||"Aborted"})},y.signal.addEventListener("abort",b,{once:!0})});u(o(g,l,r?.getPendingMeta?.({requestId:g,arg:l},{getState:f,extra:h}))),w=await Promise.race([D,Promise.resolve(n(l,{dispatch:u,getState:f,extra:h,requestId:g,signal:y.signal,abort:S,rejectWithValue:(O,T)=>new _7(O,T),fulfillWithValue:(O,T)=>new eF(O,T)})).then(O=>{if(O instanceof _7)throw O;return O instanceof eF?i(O.payload,g,l,O.meta):i(O,g,l)})])}catch(E){w=E instanceof _7?s(null,g,l,E.payload,E.meta):s(E,g,l)}finally{b&&y.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&s.match(w)&&w.meta.condition||u(w),w})();return Object.assign(C,{abort:S,requestId:g,arg:l,unwrap(){return C.then(b2e)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:i,settled:f2e(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function b2e(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function v2e(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}function W4(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}async function x2e(){return await(await fetch(`api/matter/bridges?_s=${Date.now()}`)).json()}async function jX(e){return fetch("api/matter/bridges",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>t.json())}async function $X(e){return fetch(`api/matter/bridges/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>t.json())}async function S2e(e){await fetch(`api/matter/bridges/${e}`,{method:"DELETE"})}async function w2e(e){return await fetch(`api/matter/bridges/${e}/actions/factory-reset`,{method:"POST"}).then(t=>t.json())}async function LX(e){return await fetch(`api/matter/bridges/${e}/actions/force-sync`,{method:"POST"}).then(t=>t.json())}async function C2e(e){const t=await fetch(`api/matter/bridges/${e}/actions/open-commissioning-window`,{method:"POST"});if(!t.ok){const n=await t.json().catch(()=>({error:"Failed to open commissioning window"}));throw new Error(n.error??"Failed to open commissioning window")}return t.json()}async function E2e(e){if(!(await fetch("api/matter/bridges/priorities",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({updates:e})})).ok)throw new Error("Failed to update priorities")}async function NX(){return(await fetch("api/matter/bridges/actions/start-all",{method:"POST"})).json()}async function FX(){return(await fetch("api/matter/bridges/actions/stop-all",{method:"POST"})).json()}async function BX(){return(await fetch("api/matter/bridges/actions/restart-all",{method:"POST"})).json()}const zm=y2e.withTypes(),rw=RX.withTypes(),Bo=zm("bridges/load",x2e),zX=zm("bridges/create",jX),HX=zm("bridges/delete",S2e),UX=zm("bridges/update",$X),VX=zm("bridges/reset",w2e),WX=oy("bridges/setFromWebSocket"),qX=oy("bridges/updateFromWebSocket"),Hs=kde.withTypes(),Hm=Ode.withTypes(),GX=_.createContext({isConnected:!1,error:null});function A2e(){return _.useContext(GX)}function k2e({children:e}){const t=Hs(),[n,r]=_.useState(!1),[i,o]=_.useState(null),s=_.useRef(null),a=_.useRef(void 0),l=_.useCallback(u=>{switch(u.type){case"bridges_update":t(WX(u.data));break;case"bridge_update":t(qX(u.data));break;case"ping":s.current?.send(JSON.stringify({type:"pong"}));break}},[t]),c=_.useCallback(()=>{if(s.current?.readyState===WebSocket.OPEN)return;const u=window.location.protocol==="https:"?"wss:":"ws:",f=document.querySelector("base")?.href||window.location.origin,h=new URL(f),g=`${u}//${h.host}${h.pathname}api/ws`.replace(/\/+/g,"/").replace(":/","://");try{const y=new WebSocket(g);s.current=y,y.onopen=()=>{r(!0),o(null)},y.onmessage=b=>{try{const v=JSON.parse(b.data);l(v)}catch{console.warn("Invalid WebSocket message")}},y.onclose=()=>{r(!1),s.current=null,a.current=setTimeout(c,3e3)},y.onerror=()=>{o(new Error("WebSocket connection error")),y.close()}}catch(y){o(y instanceof Error?y:new Error("Failed to connect"))}},[l]);return _.useEffect(()=>(c(),()=>{a.current&&clearTimeout(a.current),s.current?.close()}),[c]),m.jsx(GX.Provider,{value:{isConnected:n,error:i},children:e})}const _2e=()=>{const e=Hs();return _.useEffect(()=>{e(Bo())},[e]),m.jsx(yY,{})},yb=_e(m.jsx("path",{d:"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10.69l4.05-4.05c.47-.47 1.15-.68 1.81-.55zM11.17 17s3.74-1.55 5.89-3.7c5.4-5.4 4.5-9.62 4.21-10.57-.95-.3-5.17-1.19-10.57 4.21C8.55 9.09 7 12.83 7 12.83zm6.48-2.19c-2.29 2.04-5.58 3.44-5.89 3.57L13.31 22l4.05-4.05c.47-.47.68-1.15.55-1.81zM9 18c0 .83-.34 1.58-.88 2.12C6.94 21.3 2 22 2 22s.7-4.94 1.88-6.12C4.42 15.34 5.17 15 6 15c1.66 0 3 1.34 3 3m4-9c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2"})),iw=_e(m.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));function D2e(e){return Qe("MuiTypography",e)}const nF=tt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),O2e={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},T2e=qge(),M2e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${ye(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return et(a,D2e,s)},R2e=me("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ye(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ge(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ye(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),rF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ie=_.forwardRef(function(t,n){const{color:r,...i}=it({props:t,name:"MuiTypography"}),o=!O2e[r],s=T2e({...i,...o&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:g="body1",variantMapping:y=rF,...b}=s,v={...s,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:f,paragraph:h,variant:g,variantMapping:y},S=c||(h?"p":y[g]||rF[g])||"span",C=M2e(v);return m.jsx(R2e,{as:S,ref:n,className:Te(C.root,l),...b,ownerState:v,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...b.style}})});function I2e(e){return Qe("MuiAlertTitle",e)}tt("MuiAlertTitle",["root"]);const P2e=e=>{const{classes:t}=e;return et({root:["root"]},I2e,t)},j2e=me(ie,{name:"MuiAlertTitle",slot:"Root"})(Ge(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),q4=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAlertTitle"}),{className:i,...o}=r,s=r,a=P2e(s);return m.jsx(j2e,{gutterBottom:!0,component:"div",ownerState:s,ref:n,className:Te(a.root,i),...o})}),$2e=tt("MuiBox",["root"]),L2e=WS(),ce=tme({themeId:da,defaultTheme:L2e,defaultClassName:$2e.root,generateClassName:UY.generate});function N2e(e){return Qe("MuiButton",e)}const Vf=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),F2e=_.createContext({}),B2e=_.createContext(void 0),z2e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,loading:s,loadingPosition:a,classes:l}=e,c={root:["root",s&&"loading",o,`${o}${ye(t)}`,`size${ye(i)}`,`${o}Size${ye(i)}`,`color${ye(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${ye(a)}`],startIcon:["icon","startIcon",`iconSize${ye(i)}`],endIcon:["icon","endIcon",`iconSize${ye(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=et(c,N2e,l);return{...l,...u}},KX=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],H2e=me(ba,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ye(n.color)}`],t[`size${ye(n.size)}`],t[`${n.variant}Size${ye(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Vf.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Vf.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Vf.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Vf.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Fn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vf.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Vf.loading}`]:{color:"transparent"}}}]}})),U2e=me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ye(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...KX]})),V2e=me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ye(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...KX]})),W2e=me("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),iF=me("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),kt=_.forwardRef(function(t,n){const r=_.useContext(F2e),i=_.useContext(B2e),o=im(r,t),s=it({props:o,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:y,focusVisibleClassName:b,fullWidth:v=!1,id:S,loading:C=null,loadingIndicator:w,loadingPosition:A="center",size:E="medium",startIcon:D,type:O,variant:T="text",...I}=s,N=Ou(S),$=w??m.jsx(zr,{"aria-labelledby":N,color:"inherit",size:16}),R={...s,color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:g,fullWidth:v,loading:C,loadingIndicator:$,loadingPosition:A,size:E,type:O,variant:T},F=z2e(R),j=(D||C&&A==="start")&&m.jsx(U2e,{className:F.startIcon,ownerState:R,children:D||m.jsx(iF,{className:F.loadingIconPlaceholder,ownerState:R})}),z=(y||C&&A==="end")&&m.jsx(V2e,{className:F.endIcon,ownerState:R,children:y||m.jsx(iF,{className:F.loadingIconPlaceholder,ownerState:R})}),L=i||"",q=typeof C=="boolean"?m.jsx("span",{className:F.loadingWrapper,style:{display:"contents"},children:C&&m.jsx(W2e,{className:F.loadingIndicator,ownerState:R,children:$})}):null;return m.jsxs(H2e,{ownerState:R,className:Te(r.className,F.root,u,L),component:c,disabled:f||C,focusRipple:!g,focusVisibleClassName:Te(F.focusVisible,b),ref:n,type:O,id:C?N:S,...I,classes:F,children:[j,A!=="end"&&q,a,A==="end"&&q,z]})});function q2e(e){return Qe("MuiCollapse",e)}tt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const G2e=e=>{const{orientation:t,classes:n}=e;return et({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},q2e,n)},K2e=me("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Ge(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Y2e=me("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),X2e=me("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),fa=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:f,onEntered:h,onEntering:g,onExit:y,onExited:b,onExiting:v,orientation:S="vertical",slots:C={},slotProps:w={},style:A,timeout:E=aX.standard,TransitionComponent:D=Ta,...O}=r,T={...r,orientation:S,collapsedSize:a},I=G2e(T),N=ro(),$=Od(),R=_.useRef(null),F=_.useRef(),j=typeof a=="number"?`${a}px`:a,z=S==="horizontal",L=z?"width":"height",q=_.useRef(null),V=Tr(n,q),U=fe=>be=>{if(fe){const De=q.current;be===void 0?fe(De):fe(De,be)}},K=()=>R.current?R.current[z?"clientWidth":"clientHeight"]:0,B=U((fe,be)=>{R.current&&z&&(R.current.style.position="absolute"),fe.style[L]=j,f&&f(fe,be)}),W=U((fe,be)=>{const De=K();R.current&&z&&(R.current.style.position="");const{duration:Oe,easing:Ke}=Kd({style:A,timeout:E,easing:c},{mode:"enter"});if(E==="auto"){const xe=N.transitions.getAutoHeightDuration(De);fe.style.transitionDuration=`${xe}ms`,F.current=xe}else fe.style.transitionDuration=typeof Oe=="string"?Oe:`${Oe}ms`;fe.style[L]=`${De}px`,fe.style.transitionTimingFunction=Ke,g&&g(fe,be)}),X=U((fe,be)=>{fe.style[L]="auto",h&&h(fe,be)}),H=U(fe=>{fe.style[L]=`${K()}px`,y&&y(fe)}),Y=U(b),J=U(fe=>{const be=K(),{duration:De,easing:Oe}=Kd({style:A,timeout:E,easing:c},{mode:"exit"});if(E==="auto"){const Ke=N.transitions.getAutoHeightDuration(be);fe.style.transitionDuration=`${Ke}ms`,F.current=Ke}else fe.style.transitionDuration=typeof De=="string"?De:`${De}ms`;fe.style[L]=j,fe.style.transitionTimingFunction=Oe,v&&v(fe)}),ne=fe=>{E==="auto"&&$.start(F.current||0,fe),i&&i(q.current,fe)},ee={slots:C,slotProps:w,component:l},[se,ue]=lt("root",{ref:V,className:Te(I.root,s),elementType:K2e,externalForwardedProps:ee,ownerState:T,additionalProps:{style:{[z?"minWidth":"minHeight"]:j,...A}}}),[te,Z]=lt("wrapper",{ref:R,className:I.wrapper,elementType:Y2e,externalForwardedProps:ee,ownerState:T}),[re,oe]=lt("wrapperInner",{className:I.wrapperInner,elementType:X2e,externalForwardedProps:ee,ownerState:T});return m.jsx(D,{in:u,onEnter:B,onEntered:X,onEntering:W,onExit:H,onExited:Y,onExiting:J,addEndListener:ne,nodeRef:q,timeout:E==="auto"?null:E,...O,children:(fe,{ownerState:be,...De})=>{const Oe={...T,state:fe};return m.jsx(se,{...ue,className:Te(ue.className,{entered:I.entered,exited:!u&&j==="0px"&&I.hidden}[fe]),ownerState:Oe,...De,children:m.jsx(te,{...Z,ownerState:Oe,children:m.jsx(re,{...oe,ownerState:Oe,children:o})})})}})});fa&&(fa.muiSupportAuto=!0);const Xa=_.createContext({});function Z2e(e){return Qe("MuiList",e)}tt("MuiList",["root","padding","dense","subheader"]);const J2e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return et({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Z2e,t)},Q2e=me("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),bc=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,f=_.useMemo(()=>({dense:a}),[a]),h={...r,component:s,dense:a,disablePadding:l},g=J2e(h);return m.jsx(Xa.Provider,{value:f,children:m.jsxs(Q2e,{as:s,className:Te(g.root,o),ref:n,ownerState:h,...u,children:[c,i]})})});function ebe(e){return Qe("MuiListItem",e)}tt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function tbe(e){return Qe("MuiListItemButton",e)}const d0=tt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),nbe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},rbe=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:a}=e,c=et({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},tbe,n);return{...n,...c}},ibe=me(ba,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:nbe})(Ge(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${d0.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${d0.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${d0.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${d0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${d0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),obe=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:s="div",children:a,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:f,selected:h=!1,className:g,...y}=r,b=_.useContext(Xa),v=_.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:c}),[i,b.dense,l,c]),S=_.useRef(null);Ho(()=>{o&&S.current&&S.current.focus()},[o]);const C={...r,alignItems:i,dense:v.dense,disableGutters:c,divider:u,selected:h},w=rbe(C),A=Tr(S,n);return m.jsx(Xa.Provider,{value:v,children:m.jsx(ibe,{ref:A,href:y.href||y.to,component:(y.href||y.to)&&s==="div"?"button":s,focusVisibleClassName:Te(w.focusVisible,f),ownerState:C,className:Te(w.root,g),...y,classes:w,children:a})})});function sbe(e){return Qe("MuiListItemSecondaryAction",e)}tt("MuiListItemSecondaryAction",["root","disableGutters"]);const abe=e=>{const{disableGutters:t,classes:n}=e;return et({root:["root",t&&"disableGutters"]},sbe,n)},lbe=me("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),BO=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...o}=r,s=_.useContext(Xa),a={...r,disableGutters:s.disableGutters},l=abe(a);return m.jsx(lbe,{className:Te(l.root,i),ownerState:a,ref:n,...o})});BO.muiName="ListItemSecondaryAction";const cbe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},ube=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:o,divider:s,hasSecondaryAction:a}=e;return et({root:["root",r&&"dense",!i&&"gutters",!o&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},ebe,n)},dbe=me("div",{name:"MuiListItem",slot:"Root",overridesResolver:cbe})(Ge(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${d0.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),fbe=me("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),yf=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItem"}),{alignItems:i="center",children:o,className:s,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:f,...h}={},dense:g=!1,disableGutters:y=!1,disablePadding:b=!1,divider:v=!1,secondaryAction:S,slotProps:C={},slots:w={},...A}=r,E=_.useContext(Xa),D=_.useMemo(()=>({dense:g||E.dense||!1,alignItems:i,disableGutters:y}),[i,E.dense,g,y]),O=_.useRef(null),T=_.Children.toArray(o),I=T.length&&iy(T[T.length-1],["ListItemSecondaryAction"]),N={...r,alignItems:i,dense:D.dense,disableGutters:y,disablePadding:b,divider:v,hasSecondaryAction:I},$=ube(N),R=Tr(O,n),F={slots:w,slotProps:C},[j,z]=lt("secondaryAction",{elementType:BO,externalForwardedProps:F,ownerState:N,className:$.secondaryAction}),L=w.root||l.Root||dbe,q=C.root||c.root||{},V={className:Te($.root,q.className,s),...A};let U=a||"li";return I?(U=!V.component&&!a?"div":U,u==="li"&&(U==="li"?U="div":V.component==="li"&&(V.component="div")),m.jsx(Xa.Provider,{value:D,children:m.jsxs(fbe,{as:u,className:Te($.container,f),ref:R,ownerState:N,...h,children:[m.jsx(L,{...q,...!ic(L)&&{as:U,ownerState:{...N,...q.ownerState}},...V,children:T}),T.pop()]})})):m.jsx(Xa.Provider,{value:D,children:m.jsxs(L,{...q,as:U,ref:R,...!ic(L)&&{ownerState:{...N,...q.ownerState}},...V,children:[T,S&&m.jsx(j,{...z,children:S})]})})});function hbe(e){return Qe("MuiListItemIcon",e)}const oF=tt("MuiListItemIcon",["root","alignItemsFlexStart"]),pbe=e=>{const{alignItems:t,classes:n}=e;return et({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},hbe,n)},mbe=me("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ge(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ul=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemIcon"}),{className:i,...o}=r,s=_.useContext(Xa),a={...r,alignItems:s.alignItems},l=pbe(a);return m.jsx(mbe,{className:Te(l.root,i),ownerState:a,ref:n,...o})});function gbe(e){return Qe("MuiListItemText",e)}const y0=tt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ybe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return et({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},gbe,t)},bbe=me("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${y0.primary}`]:t.primary},{[`& .${y0.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${nF.root}:where(& .${y0.primary})`]:{display:"block"},[`.${nF.root}:where(& .${y0.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Va=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f,slots:h={},slotProps:g={},...y}=r,{dense:b}=_.useContext(Xa);let v=l??i,S=u;const C={...r,disableTypography:s,inset:a,primary:!!v,secondary:!!S,dense:b},w=ybe(C),A={slots:h,slotProps:{primary:c,secondary:f,...g}},[E,D]=lt("root",{className:Te(w.root,o),elementType:bbe,externalForwardedProps:{...A,...y},ownerState:C,ref:n}),[O,T]=lt("primary",{className:w.primary,elementType:ie,externalForwardedProps:A,ownerState:C}),[I,N]=lt("secondary",{className:w.secondary,elementType:ie,externalForwardedProps:A,ownerState:C});return v!=null&&v.type!==ie&&!s&&(v=m.jsx(O,{variant:b?"body2":"body1",component:T?.variant?void 0:"span",...T,children:v})),S!=null&&S.type!==ie&&!s&&(S=m.jsx(I,{variant:"body2",color:"textSecondary",...N,children:S})),m.jsxs(E,{...D,children:[v,S]})}),zt=pge({createStyledComponent:me("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>it({props:e,name:"MuiStack"})});var os="top",va="bottom",xa="right",ss="left",zO="auto",bb=[os,va,xa,ss],sm="start",Yy="end",vbe="clippingParents",YX="viewport",u1="popper",xbe="reference",sF=bb.reduce(function(e,t){return e.concat([t+"-"+sm,t+"-"+Yy])},[]),XX=[].concat(bb,[zO]).reduce(function(e,t){return e.concat([t,t+"-"+sm,t+"-"+Yy])},[]),Sbe="beforeRead",wbe="read",Cbe="afterRead",Ebe="beforeMain",Abe="main",kbe="afterMain",_be="beforeWrite",Dbe="write",Obe="afterWrite",Tbe=[Sbe,wbe,Cbe,Ebe,Abe,kbe,_be,Dbe,Obe];function dc(e){return e?(e.nodeName||"").toLowerCase():null}function Ns(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ih(e){var t=Ns(e).Element;return e instanceof t||e instanceof Element}function ha(e){var t=Ns(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function HO(e){if(typeof ShadowRoot>"u")return!1;var t=Ns(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mbe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ha(o)||!dc(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Rbe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!ha(i)||!dc(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Ibe={name:"applyStyles",enabled:!0,phase:"write",fn:Mbe,effect:Rbe,requires:["computeStyles"]};function oc(e){return e.split("-")[0]}var Eh=Math.max,G4=Math.min,am=Math.round;function Mk(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ZX(){return!/^((?!chrome|android).)*safari/i.test(Mk())}function lm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ha(e)&&(i=e.offsetWidth>0&&am(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&am(r.height)/e.offsetHeight||1);var s=Ih(e)?Ns(e):window,a=s.visualViewport,l=!ZX()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,f=r.width/i,h=r.height/o;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function UO(e){var t=lm(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function JX(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&HO(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bu(e){return Ns(e).getComputedStyle(e)}function Pbe(e){return["table","td","th"].indexOf(dc(e))>=0}function bf(e){return((Ih(e)?e.ownerDocument:e.document)||window.document).documentElement}function ow(e){return dc(e)==="html"?e:e.assignedSlot||e.parentNode||(HO(e)?e.host:null)||bf(e)}function aF(e){return!ha(e)||bu(e).position==="fixed"?null:e.offsetParent}function jbe(e){var t=/firefox/i.test(Mk()),n=/Trident/i.test(Mk());if(n&&ha(e)){var r=bu(e);if(r.position==="fixed")return null}var i=ow(e);for(HO(i)&&(i=i.host);ha(i)&&["html","body"].indexOf(dc(i))<0;){var o=bu(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function vb(e){for(var t=Ns(e),n=aF(e);n&&Pbe(n)&&bu(n).position==="static";)n=aF(n);return n&&(dc(n)==="html"||dc(n)==="body"&&bu(n).position==="static")?t:n||jbe(e)||t}function VO(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sy(e,t,n){return Eh(e,G4(t,n))}function $be(e,t,n){var r=sy(e,t,n);return r>n?n:r}function QX(){return{top:0,right:0,bottom:0,left:0}}function eZ(e){return Object.assign({},QX(),e)}function tZ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Lbe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,eZ(typeof t!="number"?t:tZ(t,bb))};function Nbe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=oc(n.placement),l=VO(a),c=[ss,xa].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var f=Lbe(i.padding,n),h=UO(o),g=l==="y"?os:ss,y=l==="y"?va:xa,b=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],v=s[l]-n.rects.reference[l],S=vb(o),C=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,w=b/2-v/2,A=f[g],E=C-h[u]-f[y],D=C/2-h[u]/2+w,O=sy(A,D,E),T=l;n.modifiersData[r]=(t={},t[T]=O,t.centerOffset=O-D,t)}}function Fbe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||JX(t.elements.popper,i)&&(t.elements.arrow=i))}const Bbe={name:"arrow",enabled:!0,phase:"main",fn:Nbe,effect:Fbe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cm(e){return e.split("-")[1]}var zbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hbe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:am(n*i)/i||0,y:am(r*i)/i||0}}function lF(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=s.x,g=h===void 0?0:h,y=s.y,b=y===void 0?0:y,v=typeof u=="function"?u({x:g,y:b}):{x:g,y:b};g=v.x,b=v.y;var S=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),w=ss,A=os,E=window;if(c){var D=vb(n),O="clientHeight",T="clientWidth";if(D===Ns(n)&&(D=bf(n),bu(D).position!=="static"&&a==="absolute"&&(O="scrollHeight",T="scrollWidth")),D=D,i===os||(i===ss||i===xa)&&o===Yy){A=va;var I=f&&D===E&&E.visualViewport?E.visualViewport.height:D[O];b-=I-r.height,b*=l?1:-1}if(i===ss||(i===os||i===va)&&o===Yy){w=xa;var N=f&&D===E&&E.visualViewport?E.visualViewport.width:D[T];g-=N-r.width,g*=l?1:-1}}var $=Object.assign({position:a},c&&zbe),R=u===!0?Hbe({x:g,y:b},Ns(n)):{x:g,y:b};if(g=R.x,b=R.y,l){var F;return Object.assign({},$,(F={},F[A]=C?"0":"",F[w]=S?"0":"",F.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",F))}return Object.assign({},$,(t={},t[A]=C?b+"px":"",t[w]=S?g+"px":"",t.transform="",t))}function Ube(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:oc(t.placement),variation:cm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,lF(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,lF(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Vbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ube,data:{}};var Dx={passive:!0};function Wbe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=Ns(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Dx)}),a&&l.addEventListener("resize",n.update,Dx),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Dx)}),a&&l.removeEventListener("resize",n.update,Dx)}}const qbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wbe,data:{}};var Gbe={left:"right",right:"left",bottom:"top",top:"bottom"};function N5(e){return e.replace(/left|right|bottom|top/g,function(t){return Gbe[t]})}var Kbe={start:"end",end:"start"};function cF(e){return e.replace(/start|end/g,function(t){return Kbe[t]})}function WO(e){var t=Ns(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function qO(e){return lm(bf(e)).left+WO(e).scrollLeft}function Ybe(e,t){var n=Ns(e),r=bf(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=ZX();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+qO(e),y:l}}function Xbe(e){var t,n=bf(e),r=WO(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Eh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Eh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+qO(e),l=-r.scrollTop;return bu(i||n).direction==="rtl"&&(a+=Eh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function GO(e){var t=bu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function nZ(e){return["html","body","#document"].indexOf(dc(e))>=0?e.ownerDocument.body:ha(e)&&GO(e)?e:nZ(ow(e))}function ay(e,t){var n;t===void 0&&(t=[]);var r=nZ(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ns(r),s=i?[o].concat(o.visualViewport||[],GO(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(ay(ow(s)))}function Rk(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zbe(e,t){var n=lm(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function uF(e,t,n){return t===YX?Rk(Ybe(e,n)):Ih(t)?Zbe(t,n):Rk(Xbe(bf(e)))}function Jbe(e){var t=ay(ow(e)),n=["absolute","fixed"].indexOf(bu(e).position)>=0,r=n&&ha(e)?vb(e):e;return Ih(r)?t.filter(function(i){return Ih(i)&&JX(i,r)&&dc(i)!=="body"}):[]}function Qbe(e,t,n,r){var i=t==="clippingParents"?Jbe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var u=uF(e,c,r);return l.top=Eh(u.top,l.top),l.right=G4(u.right,l.right),l.bottom=G4(u.bottom,l.bottom),l.left=Eh(u.left,l.left),l},uF(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rZ(e){var t=e.reference,n=e.element,r=e.placement,i=r?oc(r):null,o=r?cm(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case os:l={x:s,y:t.y-n.height};break;case va:l={x:s,y:t.y+t.height};break;case xa:l={x:t.x+t.width,y:a};break;case ss:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?VO(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case sm:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Yy:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Xy(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?vbe:a,c=n.rootBoundary,u=c===void 0?YX:c,f=n.elementContext,h=f===void 0?u1:f,g=n.altBoundary,y=g===void 0?!1:g,b=n.padding,v=b===void 0?0:b,S=eZ(typeof v!="number"?v:tZ(v,bb)),C=h===u1?xbe:u1,w=e.rects.popper,A=e.elements[y?C:h],E=Qbe(Ih(A)?A:A.contextElement||bf(e.elements.popper),l,u,s),D=lm(e.elements.reference),O=rZ({reference:D,element:w,placement:i}),T=Rk(Object.assign({},w,O)),I=h===u1?T:D,N={top:E.top-I.top+S.top,bottom:I.bottom-E.bottom+S.bottom,left:E.left-I.left+S.left,right:I.right-E.right+S.right},$=e.modifiersData.offset;if(h===u1&&$){var R=$[i];Object.keys(N).forEach(function(F){var j=[xa,va].indexOf(F)>=0?1:-1,z=[os,va].indexOf(F)>=0?"y":"x";N[F]+=R[z]*j})}return N}function eve(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?XX:l,u=cm(r),f=u?a?sF:sF.filter(function(y){return cm(y)===u}):bb,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var g=h.reduce(function(y,b){return y[b]=Xy(e,{placement:b,boundary:i,rootBoundary:o,padding:s})[oc(b)],y},{});return Object.keys(g).sort(function(y,b){return g[y]-g[b]})}function tve(e){if(oc(e)===zO)return[];var t=N5(e);return[cF(e),t,cF(t)]}function nve(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,b=n.allowedAutoPlacements,v=t.options.placement,S=oc(v),C=S===v,w=l||(C||!y?[N5(v)]:tve(v)),A=[v].concat(w).reduce(function(H,Y){return H.concat(oc(Y)===zO?eve(t,{placement:Y,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:b}):Y)},[]),E=t.rects.reference,D=t.rects.popper,O=new Map,T=!0,I=A[0],N=0;N<A.length;N++){var $=A[N],R=oc($),F=cm($)===sm,j=[os,va].indexOf(R)>=0,z=j?"width":"height",L=Xy(t,{placement:$,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),q=j?F?xa:ss:F?va:os;E[z]>D[z]&&(q=N5(q));var V=N5(q),U=[];if(o&&U.push(L[R]<=0),a&&U.push(L[q]<=0,L[V]<=0),U.every(function(H){return H})){I=$,T=!1;break}O.set($,U)}if(T)for(var K=y?3:1,B=function(Y){var J=A.find(function(ne){var ee=O.get(ne);if(ee)return ee.slice(0,Y).every(function(se){return se})});if(J)return I=J,"break"},W=K;W>0;W--){var X=B(W);if(X==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const rve={name:"flip",enabled:!0,phase:"main",fn:nve,requiresIfExists:["offset"],data:{_skip:!1}};function dF(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fF(e){return[os,xa,va,ss].some(function(t){return e[t]>=0})}function ive(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Xy(t,{elementContext:"reference"}),a=Xy(t,{altBoundary:!0}),l=dF(s,r),c=dF(a,i,o),u=fF(l),f=fF(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const ove={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ive};function sve(e,t,n){var r=oc(e),i=[ss,os].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[ss,xa].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function ave(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=XX.reduce(function(u,f){return u[f]=sve(f,t.rects,o),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const lve={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ave};function cve(e){var t=e.state,n=e.name;t.modifiersData[n]=rZ({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const uve={name:"popperOffsets",enabled:!0,phase:"read",fn:cve,data:{}};function dve(e){return e==="x"?"y":"x"}function fve(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,y=n.tetherOffset,b=y===void 0?0:y,v=Xy(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),S=oc(t.placement),C=cm(t.placement),w=!C,A=VO(S),E=dve(A),D=t.modifiersData.popperOffsets,O=t.rects.reference,T=t.rects.popper,I=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,N=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(D){if(o){var F,j=A==="y"?os:ss,z=A==="y"?va:xa,L=A==="y"?"height":"width",q=D[A],V=q+v[j],U=q-v[z],K=g?-T[L]/2:0,B=C===sm?O[L]:T[L],W=C===sm?-T[L]:-O[L],X=t.elements.arrow,H=g&&X?UO(X):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:QX(),J=Y[j],ne=Y[z],ee=sy(0,O[L],H[L]),se=w?O[L]/2-K-ee-J-N.mainAxis:B-ee-J-N.mainAxis,ue=w?-O[L]/2+K+ee+ne+N.mainAxis:W+ee+ne+N.mainAxis,te=t.elements.arrow&&vb(t.elements.arrow),Z=te?A==="y"?te.clientTop||0:te.clientLeft||0:0,re=(F=$?.[A])!=null?F:0,oe=q+se-re-Z,fe=q+ue-re,be=sy(g?G4(V,oe):V,q,g?Eh(U,fe):U);D[A]=be,R[A]=be-q}if(a){var De,Oe=A==="x"?os:ss,Ke=A==="x"?va:xa,xe=D[E],Le=E==="y"?"height":"width",Me=xe+v[Oe],ht=xe-v[Ke],mt=[os,ss].indexOf(S)!==-1,ze=(De=$?.[E])!=null?De:0,Pe=mt?Me:xe-O[Le]-T[Le]-ze+N.altAxis,He=mt?xe+O[Le]+T[Le]-ze-N.altAxis:ht,Je=g&&mt?$be(Pe,xe,He):sy(g?Pe:Me,xe,g?He:ht);D[E]=Je,R[E]=Je-xe}t.modifiersData[r]=R}}const hve={name:"preventOverflow",enabled:!0,phase:"main",fn:fve,requiresIfExists:["offset"]};function pve(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mve(e){return e===Ns(e)||!ha(e)?WO(e):pve(e)}function gve(e){var t=e.getBoundingClientRect(),n=am(t.width)/e.offsetWidth||1,r=am(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yve(e,t,n){n===void 0&&(n=!1);var r=ha(t),i=ha(t)&&gve(t),o=bf(t),s=lm(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((dc(t)!=="body"||GO(o))&&(a=mve(t)),ha(t)?(l=lm(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=qO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function bve(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function vve(e){var t=bve(e);return Tbe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function xve(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Sve(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var hF={placement:"bottom",modifiers:[],strategy:"absolute"};function pF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function wve(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?hF:i;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},hF,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],h=!1,g={state:u,setOptions:function(S){var C=typeof S=="function"?S(u.options):S;b(),u.options=Object.assign({},o,u.options,C),u.scrollParents={reference:Ih(a)?ay(a):a.contextElement?ay(a.contextElement):[],popper:ay(l)};var w=vve(Sve([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(A){return A.enabled}),y(),g.update()},forceUpdate:function(){if(!h){var S=u.elements,C=S.reference,w=S.popper;if(pF(C,w)){u.rects={reference:yve(C,vb(w),u.options.strategy==="fixed"),popper:UO(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var A=0;A<u.orderedModifiers.length;A++){if(u.reset===!0){u.reset=!1,A=-1;continue}var E=u.orderedModifiers[A],D=E.fn,O=E.options,T=O===void 0?{}:O,I=E.name;typeof D=="function"&&(u=D({state:u,options:T,name:I,instance:g})||u)}}}},update:xve(function(){return new Promise(function(v){g.forceUpdate(),v(u)})}),destroy:function(){b(),h=!0}};if(!pF(a,l))return g;g.setOptions(c).then(function(v){!h&&c.onFirstUpdate&&c.onFirstUpdate(v)});function y(){u.orderedModifiers.forEach(function(v){var S=v.name,C=v.options,w=C===void 0?{}:C,A=v.effect;if(typeof A=="function"){var E=A({state:u,name:S,instance:g,options:w}),D=function(){};f.push(E||D)}})}function b(){f.forEach(function(v){return v()}),f=[]}return g}}var Cve=[qbe,uve,Vbe,Ibe,lve,rve,hve,Bbe,ove],Eve=wve({defaultModifiers:Cve});function Yr(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,s=i?{}:R4(n,r),{props:a,internalRef:l}=pX({...o,externalSlotProps:s}),c=Tr(l,s?.ref,e.additionalProps?.ref);return hX(t,{...a,ref:c},r)}function Ave(e){return typeof e=="function"?e():e}const iZ=_.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,a]=_.useState(null),l=Tr(_.isValidElement(r)?gf(r):null,n);if(Ho(()=>{o||a(Ave(i)||document.body)},[i,o]),Ho(()=>{if(s&&!o)return gk(n,s),()=>{gk(n,null)}},[n,s,o]),o){if(_.isValidElement(r)){const c={ref:l};return _.cloneElement(r,c)}return r}return s&&Dd.createPortal(r,s)});function kve(e){return Qe("MuiPopper",e)}tt("MuiPopper",["root"]);function _ve(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Ik(e){return typeof e=="function"?e():e}function Dve(e){return e.nodeType!==void 0}const Ove=e=>{const{classes:t}=e;return et({root:["root"]},kve,t)},Tve={},Mve=_.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:o,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:f,slotProps:h={},slots:g={},TransitionProps:y,ownerState:b,...v}=t,S=_.useRef(null),C=Tr(S,n),w=_.useRef(null),A=Tr(w,f),E=_.useRef(A);Ho(()=>{E.current=A},[A]),_.useImperativeHandle(f,()=>w.current,[]);const D=_ve(c,o),[O,T]=_.useState(D),[I,N]=_.useState(Ik(r));_.useEffect(()=>{w.current&&w.current.forceUpdate()}),_.useEffect(()=>{r&&N(Ik(r))},[r]),Ho(()=>{if(!I||!l)return;const z=V=>{T(V.placement)};let L=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{z(V)}}];a!=null&&(L=L.concat(a)),u&&u.modifiers!=null&&(L=L.concat(u.modifiers));const q=Eve(I,S.current,{placement:D,...u,modifiers:L});return E.current(q),()=>{q.destroy(),E.current(null)}},[I,s,a,l,u,D]);const $={placement:O};y!==null&&($.TransitionProps=y);const R=Ove(t),F=g.root??"div",j=Yr({elementType:F,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:R.root});return m.jsx(F,{...j,children:typeof i=="function"?i($):i})}),Rve=_.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:h=Tve,popperRef:g,style:y,transition:b=!1,slotProps:v={},slots:S={},...C}=t,[w,A]=_.useState(!0),E=()=>{A(!1)},D=()=>{A(!0)};if(!l&&!u&&(!b||w))return null;let O;if(o)O=o;else if(r){const N=Ik(r);O=N&&Dve(N)?Di(N).body:Di(null).body}const T=!u&&l&&(!b||w)?"none":void 0,I=b?{in:u,onEnter:E,onExited:D}:void 0;return m.jsx(iZ,{disablePortal:a,container:O,children:m.jsx(Mve,{anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:b?!w:u,placement:f,popperOptions:h,popperRef:g,slotProps:v,slots:S,...C,style:{position:"fixed",top:0,left:0,display:T,...y},TransitionProps:I,children:i})})}),Ive=me(Rve,{name:"MuiPopper",slot:"Root"})({}),sw=_.forwardRef(function(t,n){const r=mf(),i=it({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:g,placement:y,popperOptions:b,popperRef:v,transition:S,slots:C,slotProps:w,...A}=i,E=C?.root??a?.Root,D={anchorEl:o,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:g,placement:y,popperOptions:b,popperRef:v,transition:S,...A};return m.jsx(Ive,{as:s,direction:r?"rtl":"ltr",slots:{root:E},slotProps:w??l,...D,ref:n})});function Pve(e){return Qe("MuiTooltip",e)}const si=tt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function jve(e){return Math.round(e*1e5)/1e5}const $ve=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ye(o.split("-")[0])}`],arrow:["arrow"]};return et(s,Pve,t)},Lve=me(sw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${si.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${si.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${si.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${si.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${si.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${si.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${si.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${si.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Nve=me("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ye(n.placement.split("-")[0])}`]]}})(Ge(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${si.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${si.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${si.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${si.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${jve(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${si.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${si.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Fve=me("span",{name:"MuiTooltip",slot:"Arrow"})(Ge(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ox=!1;const mF=new YS;let d1={x:0,y:0};function Tx(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const cn=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:s,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:b=0,enterTouchDelay:v=700,followCursor:S=!1,id:C,leaveDelay:w=0,leaveTouchDelay:A=1500,onClose:E,onOpen:D,open:O,placement:T="bottom",PopperComponent:I,PopperProps:N={},slotProps:$={},slots:R={},title:F,TransitionComponent:j,TransitionProps:z,...L}=r,q=_.isValidElement(o)?o:m.jsx("span",{children:o}),V=ro(),U=mf(),[K,B]=_.useState(),[W,X]=_.useState(null),H=_.useRef(!1),Y=h||S,J=Od(),ne=Od(),ee=Od(),se=Od(),[ue,te]=Ya({controlled:O,default:!1,name:"Tooltip",state:"open"});let Z=ue;const re=Ou(C),oe=_.useRef(),fe=Ni(()=>{oe.current!==void 0&&(document.body.style.WebkitUserSelect=oe.current,oe.current=void 0),se.clear()});_.useEffect(()=>fe,[fe]);const be=St=>{mF.clear(),Ox=!0,te(!0),D&&!Z&&D(St)},De=Ni(St=>{mF.start(800+w,()=>{Ox=!1}),te(!1),E&&Z&&E(St),J.start(V.transitions.duration.shortest,()=>{H.current=!1})}),Oe=St=>{H.current&&St.type!=="touchstart"||(K&&K.removeAttribute("title"),ne.clear(),ee.clear(),y||Ox&&b?ne.start(Ox?b:y,()=>{be(St)}):be(St))},Ke=St=>{ne.clear(),ee.start(w,()=>{De(St)})},[,xe]=_.useState(!1),Le=St=>{Gd(St.target)||(xe(!1),Ke(St))},Me=St=>{K||B(St.currentTarget),Gd(St.target)&&(xe(!0),Oe(St))},ht=St=>{H.current=!0;const mn=q.props;mn.onTouchStart&&mn.onTouchStart(St)},mt=St=>{ht(St),ee.clear(),J.clear(),fe(),oe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.start(v,()=>{document.body.style.WebkitUserSelect=oe.current,Oe(St)})},ze=St=>{q.props.onTouchEnd&&q.props.onTouchEnd(St),fe(),ee.start(A,()=>{De(St)})};_.useEffect(()=>{if(!Z)return;function St(mn){mn.key==="Escape"&&De(mn)}return document.addEventListener("keydown",St),()=>{document.removeEventListener("keydown",St)}},[De,Z]);const Pe=Tr(gf(q),B,n);!F&&F!==0&&(Z=!1);const He=_.useRef(),Je=St=>{const mn=q.props;mn.onMouseMove&&mn.onMouseMove(St),d1={x:St.clientX,y:St.clientY},He.current&&He.current.update()},nt={},ot=typeof F=="string";c?(nt.title=!Z&&ot&&!f?F:null,nt["aria-describedby"]=Z?re:null):(nt["aria-label"]=ot?F:null,nt["aria-labelledby"]=Z&&!ot?re:null);const Xe={...nt,...L,...q.props,className:Te(L.className,q.props.className),onTouchStart:ht,ref:Pe,...S?{onMouseMove:Je}:{}},Lt={};g||(Xe.onTouchStart=mt,Xe.onTouchEnd=ze),f||(Xe.onMouseOver=Tx(Oe,Xe.onMouseOver),Xe.onMouseLeave=Tx(Ke,Xe.onMouseLeave),Y||(Lt.onMouseOver=Oe,Lt.onMouseLeave=Ke)),u||(Xe.onFocus=Tx(Me,Xe.onFocus),Xe.onBlur=Tx(Le,Xe.onBlur),Y||(Lt.onFocus=Me,Lt.onBlur=Le));const Nt={...r,isRtl:U,arrow:i,disableInteractive:Y,placement:T,PopperComponentProp:I,touch:H.current},Ot=typeof $.popper=="function"?$.popper(Nt):$.popper,Xn=_.useMemo(()=>{let St=[{name:"arrow",enabled:!!W,options:{element:W,padding:4}}];return N.popperOptions?.modifiers&&(St=St.concat(N.popperOptions.modifiers)),Ot?.popperOptions?.modifiers&&(St=St.concat(Ot.popperOptions.modifiers)),{...N.popperOptions,...Ot?.popperOptions,modifiers:St}},[W,N.popperOptions,Ot?.popperOptions]),rn=$ve(Nt),at=typeof $.transition=="function"?$.transition(Nt):$.transition,Ht={slots:{popper:a.Popper,transition:a.Transition??j,tooltip:a.Tooltip,arrow:a.Arrow,...R},slotProps:{arrow:$.arrow??l.arrow,popper:{...N,...Ot??l.popper},tooltip:$.tooltip??l.tooltip,transition:{...z,...at??l.transition}}},[Dn,Gn]=lt("popper",{elementType:Lve,externalForwardedProps:Ht,ownerState:Nt,className:Te(rn.popper,N?.className)}),[yr,Dt]=lt("transition",{elementType:Wy,externalForwardedProps:Ht,ownerState:Nt}),[jt,Jt]=lt("tooltip",{elementType:Nve,className:rn.tooltip,externalForwardedProps:Ht,ownerState:Nt}),[jn,on]=lt("arrow",{elementType:Fve,className:rn.arrow,externalForwardedProps:Ht,ownerState:Nt,ref:X});return m.jsxs(_.Fragment,{children:[_.cloneElement(q,Xe),m.jsx(Dn,{as:I??sw,placement:T,anchorEl:S?{getBoundingClientRect:()=>({top:d1.y,left:d1.x,right:d1.x,bottom:d1.y,width:0,height:0})}:K,popperRef:He,open:K?Z:!1,id:re,transition:!0,...Lt,...Gn,popperOptions:Xn,children:({TransitionProps:St})=>m.jsx(yr,{timeout:V.transitions.duration.shorter,...St,...Dt,children:m.jsxs(jt,{...Jt,children:[F,i?m.jsx(jn,{...on}):null]})})})]})}),Bve=_e(m.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),zve=me(ba,{name:"MuiBreadcrumbCollapsed"})(Ge(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:Uy(e.palette.grey[200],.12)}:{backgroundColor:Uy(e.palette.grey[600],.12)}}}))),Hve=me(Bve)({width:24,height:16});function Uve(e){const{slots:t={},slotProps:n={},...r}=e,i=e;return m.jsx("li",{children:m.jsx(zve,{focusRipple:!0,...r,ownerState:i,children:m.jsx(Hve,{as:t.CollapsedIcon,ownerState:i,...n.collapsedIcon})})})}function Vve(e){return Qe("MuiBreadcrumbs",e)}const Wve=tt("MuiBreadcrumbs",["root","ol","li","separator"]),qve=e=>{const{classes:t}=e;return et({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Vve,t)},Gve=me(ie,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Wve.li}`]:t.li},t.root]})({}),Kve=me("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Yve=me("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Xve(e,t,n,r){return e.reduce((i,o,s)=>(s<e.length-1?i=i.concat(o,m.jsx(Yve,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${s}`)):i.push(o),i),[])}const Zve=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiBreadcrumbs"}),{children:i,className:o,component:s="nav",slots:a={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:f=1,maxItems:h=8,separator:g="/",...y}=r,[b,v]=_.useState(!1),S={...r,component:s,expanded:b,expandText:c,itemsAfterCollapse:u,itemsBeforeCollapse:f,maxItems:h,separator:g},C=qve(S),w=Yr({elementType:a.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:S}),A=_.useRef(null),E=O=>{const T=()=>{v(!0);const I=A.current.querySelector("a[href],button,[tabindex]");I&&I.focus()};return f+u>=O.length?O:[...O.slice(0,f),m.jsx(Uve,{"aria-label":c,slots:{CollapsedIcon:a.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:T},"ellipsis"),...O.slice(O.length-u,O.length)]},D=_.Children.toArray(i).filter(O=>_.isValidElement(O)).map((O,T)=>m.jsx("li",{className:C.li,children:O},`child-${T}`));return m.jsx(Gve,{ref:n,component:s,color:"textSecondary",className:Te(C.root,o),ownerState:S,...y,children:m.jsx(Kve,{className:C.ol,ref:A,ownerState:S,children:Xve(b||h&&D.length<=h?D:E(D),C.separator,g,S)})})});function Jve(e){return Qe("MuiLink",e)}const Qve=tt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),exe=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const o=Rl(e,`palette.${n}.main`)||Rl(e,`palette.${n}`)||t.color;return e.alpha(o,.4)}const r=Rl(e,`palette.${n}.main`,!1)||Rl(e,`palette.${n}`,!1)||t.color,i=Rl(e,`palette.${n}.mainChannel`)||Rl(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Hl(r,.4)},gF={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},txe=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${ye(i)}`,n==="button"&&"button",r&&"focusVisible"]};return et(o,Jve,t)},nxe=me(ie,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ye(n.underline)}`],n.component==="button"&&t.button]}})(Ge(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Qve.focusVisible}`]:{outline:"auto"}}}]}))),aw=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiLink"}),i=ro(),{className:o,color:s="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:f="always",variant:h="inherit",sx:g,...y}=r,[b,v]=_.useState(!1),S=E=>{Gd(E.target)||v(!1),l&&l(E)},C=E=>{Gd(E.target)&&v(!0),c&&c(E)},w={...r,color:s,component:a,focusVisible:b,underline:f,variant:h},A=txe(w);return m.jsx(nxe,{color:s,className:Te(A.root,o),classes:u,component:a,onBlur:S,onFocus:C,ref:n,ownerState:w,variant:h,...y,sx:[...gF[s]===void 0?[{color:s}]:[],...Array.isArray(g)?g:[g]],style:{...y.style,...f==="always"&&s!=="inherit"&&!gF[s]&&{"--Link-underlineColor":exe({theme:i,ownerState:w})}}})}),rxe=({name:e,to:t})=>m.jsx(aw,{color:"inherit",underline:"hover",component:Du,to:t,children:e}),lw=({items:e})=>m.jsx(Zve,{separator:"›",children:e.map((t,n)=>m.jsx(rxe,{...t},n.toString()))}),fc=_e(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),Ah=_e(m.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),Fs=_e(m.jsx("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"})),cw=_e(m.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),KO=_e(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),uw=_e(m.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"})),YO=_e(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),F5=_e(m.jsx("path",{d:"M15 21h-2v-2h2zm-2-7h-2v5h2zm8-2h-2v4h2zm-2-2h-2v2h2zM7 12H5v2h2zm-2-2H3v2h2zm7-5h2V3h-2zm-7.5-.5v3h3v-3zM9 9H3V3h6zm-4.5 7.5v3h3v-3zM9 21H3v-6h6zm7.5-16.5v3h3v-3zM21 9h-6V3h6zm-2 10v-3h-4v2h2v3h4v-2zm-2-7h-4v2h4zm-4-2H7v2h2v2h2v-2h2zm1-1V7h-2V5h-2v4zM6.75 5.25h-1.5v1.5h1.5zm0 12h-1.5v1.5h1.5zm12-12h-1.5v1.5h1.5z"})),oZ=_e(m.jsx("path",{d:"M19 13H5v-2h14z"})),dw=_e(m.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Yd=_e([m.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),m.jsx("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")]),sZ=_e(m.jsx("path",{d:"m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9m8 8 3 3 3-3c-1.65-1.66-4.34-1.66-6 0m-4-4 2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13"})),ixe=_e(m.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function oxe(e){return Qe("MuiAvatar",e)}tt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const sxe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return et({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},oxe,t)},axe=me("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ge(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),lxe=me("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),cxe=me(ixe,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function uxe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=_.useState(!1);return _.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&o("loaded")},a.onerror=()=>{s&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const rl=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:g,variant:y="circular",...b}=r;let v=null;const S={...r,component:a,variant:y},C=uxe({...u,...typeof c.img=="function"?c.img(S):c.img,src:h,srcSet:g}),w=h||g,A=w&&C!=="error";S.colorDefault=!A,delete S.ownerState;const E=sxe(S),[D,O]=lt("root",{ref:n,className:Te(E.root,s),elementType:axe,externalForwardedProps:{slots:l,slotProps:c,component:a,...b},ownerState:S}),[T,I]=lt("img",{className:E.img,elementType:lxe,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:i,src:h,srcSet:g,sizes:f},ownerState:S}),[N,$]=lt("fallback",{className:E.fallback,elementType:cxe,externalForwardedProps:{slots:l,slotProps:c},shouldForwardComponentProp:!0,ownerState:S});return A?v=m.jsx(T,{...I}):o||o===0?v=o:w&&i?v=i[0]:v=m.jsx(N,{...$}),m.jsx(D,{...O,children:v})});function dxe(e){return Qe("MuiCard",e)}tt("MuiCard",["root"]);const fxe=e=>{const{classes:t}=e;return et({root:["root"]},dxe,t)},hxe=me(Ur,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),tr=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCard"}),{className:i,raised:o=!1,...s}=r,a={...r,raised:o},l=fxe(a);return m.jsx(hxe,{className:Te(l.root,i),elevation:o?8:void 0,ref:n,ownerState:a,...s})});function pxe(e){return Qe("MuiCardContent",e)}tt("MuiCardContent",["root"]);const mxe=e=>{const{classes:t}=e;return et({root:["root"]},pxe,t)},gxe=me("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),gr=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCardContent"}),{className:i,component:o="div",...s}=r,a={...r,component:o},l=mxe(a);return m.jsx(gxe,{as:o,className:Te(l.root,i),ownerState:a,ref:n,...s})}),yxe=_e(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function bxe(e){return Qe("MuiChip",e)}const En=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),vxe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ye(r)}`,`color${ye(i)}`,a&&"clickable",a&&`clickableColor${ye(i)}`,s&&"deletable",s&&`deletableColor${ye(i)}`,`${l}${ye(i)}`],label:["label",`label${ye(r)}`],avatar:["avatar",`avatar${ye(r)}`,`avatarColor${ye(i)}`],icon:["icon",`icon${ye(r)}`,`iconColor${ye(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ye(r)}`,`deleteIconColor${ye(i)}`,`deleteIcon${ye(l)}Color${ye(i)}`]};return et(c,bxe,t)},xxe=me("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${En.avatar}`]:t.avatar},{[`& .${En.avatar}`]:t[`avatar${ye(a)}`]},{[`& .${En.avatar}`]:t[`avatarColor${ye(r)}`]},{[`& .${En.icon}`]:t.icon},{[`& .${En.icon}`]:t[`icon${ye(a)}`]},{[`& .${En.icon}`]:t[`iconColor${ye(i)}`]},{[`& .${En.deleteIcon}`]:t.deleteIcon},{[`& .${En.deleteIcon}`]:t[`deleteIcon${ye(a)}`]},{[`& .${En.deleteIcon}`]:t[`deleteIconColor${ye(r)}`]},{[`& .${En.deleteIcon}`]:t[`deleteIcon${ye(l)}Color${ye(r)}`]},t.root,t[`size${ye(a)}`],t[`color${ye(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${ye(r)}`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ye(r)}`],t[l],t[`${l}${ye(r)}`]]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${En.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${En.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${En.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${En.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${En.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${En.icon}`]:{marginLeft:5,marginRight:-6},[`& .${En.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${En.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${En.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Fn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${En.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${En.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${En.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Fn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${En.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Fn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${En.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${En.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${En.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${En.avatar}`]:{marginLeft:4},[`& .${En.avatarSmall}`]:{marginLeft:2},[`& .${En.icon}`]:{marginLeft:4},[`& .${En.iconSmall}`]:{marginLeft:2},[`& .${En.deleteIcon}`]:{marginRight:5},[`& .${En.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Fn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${En.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${En.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Sxe=me("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ye(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function yF(e){return e.key==="Backspace"||e.key==="Delete"}const Et=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:g,onDelete:y,onKeyDown:b,onKeyUp:v,size:S="medium",variant:C="filled",tabIndex:w,skipFocusWhenDisabled:A=!1,slots:E={},slotProps:D={},...O}=r,T=_.useRef(null),I=Tr(T,n),N=J=>{J.stopPropagation(),y(J)},$=J=>{J.currentTarget===J.target&&yF(J)&&J.preventDefault(),b&&b(J)},R=J=>{J.currentTarget===J.target&&y&&yF(J)&&y(J),v&&v(J)},F=s!==!1&&g?!0:s,j=F||y?ba:l||"div",z={...r,component:j,disabled:u,size:S,color:a,iconColor:_.isValidElement(f)&&f.props.color||a,onDelete:!!y,clickable:F,variant:C},L=vxe(z),q=j===ba?{component:l||"div",focusVisibleClassName:L.focusVisible,...y&&{disableRipple:!0}}:{};let V=null;y&&(V=c&&_.isValidElement(c)?_.cloneElement(c,{className:Te(c.props.className,L.deleteIcon),onClick:N}):m.jsx(yxe,{className:L.deleteIcon,onClick:N}));let U=null;i&&_.isValidElement(i)&&(U=_.cloneElement(i,{className:Te(L.avatar,i.props.className)}));let K=null;f&&_.isValidElement(f)&&(K=_.cloneElement(f,{className:Te(L.icon,f.props.className)}));const B={slots:E,slotProps:D},[W,X]=lt("root",{elementType:xxe,externalForwardedProps:{...B,...O},ownerState:z,shouldForwardComponentProp:!0,ref:I,className:Te(L.root,o),additionalProps:{disabled:F&&u?!0:void 0,tabIndex:A&&u?-1:w,...q},getSlotProps:J=>({...J,onClick:ne=>{J.onClick?.(ne),g?.(ne)},onKeyDown:ne=>{J.onKeyDown?.(ne),$(ne)},onKeyUp:ne=>{J.onKeyUp?.(ne),R(ne)}})}),[H,Y]=lt("label",{elementType:Sxe,externalForwardedProps:B,ownerState:z,className:L.label});return m.jsxs(W,{as:j,...X,children:[U||K,m.jsx(H,{...Y,children:h}),V]})});function aZ(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function wxe(e){const t=Di(e);return t.body===e?tl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ly(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bF(e){return parseFloat(tl(e).getComputedStyle(e).paddingRight)||0}function Cxe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function vF(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=!o.includes(s),l=!Cxe(s);a&&l&&ly(s,i)})}function D7(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Exe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(wxe(r)){const s=aZ(tl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${bF(r)+s}px`;const a=Di(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${bF(l)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Di(r).body;else{const s=r.parentElement,a=tl(r);o=s?.nodeName==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function Axe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class kxe{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ly(t.modalRef,!1);const i=Axe(n);vF(n,t.mount,t.modalRef,i,!0);const o=D7(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=D7(this.containers,o=>o.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=Exe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=D7(this.containers,s=>s.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&ly(t.modalRef,n),vF(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&ly(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function z1(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const _xe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Dxe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Oxe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Txe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Oxe(e))}function Mxe(e){const t=[],n=[];return Array.from(e.querySelectorAll(_xe)).forEach((r,i)=>{const o=Dxe(r);o===-1||!Txe(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function Rxe(){return!0}function Ixe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Mxe,isEnabled:s=Rxe,open:a}=e,l=_.useRef(!1),c=_.useRef(null),u=_.useRef(null),f=_.useRef(null),h=_.useRef(null),g=_.useRef(!1),y=_.useRef(null),b=Tr(gf(t),y),v=_.useRef(null);_.useEffect(()=>{!a||!y.current||(g.current=!n)},[n,a]),_.useEffect(()=>{if(!a||!y.current)return;const w=Di(y.current),A=z1(w);return y.current.contains(A)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),_.useEffect(()=>{if(!a||!y.current)return;const w=Di(y.current),A=O=>{if(v.current=O,r||!s()||O.key!=="Tab")return;z1(w)===y.current&&O.shiftKey&&(l.current=!0,u.current&&u.current.focus())},E=()=>{const O=y.current;if(O===null)return;const T=z1(w);if(!w.hasFocus()||!s()||l.current){l.current=!1;return}if(O.contains(T)||r&&T!==c.current&&T!==u.current)return;if(T!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let I=[];if((T===c.current||T===u.current)&&(I=o(y.current)),I.length>0){const N=!!(v.current?.shiftKey&&v.current?.key==="Tab"),$=I[0],R=I[I.length-1];typeof $!="string"&&typeof R!="string"&&(N?R.focus():$.focus())}else O.focus()};w.addEventListener("focusin",E),w.addEventListener("keydown",A,!0);const D=setInterval(()=>{const O=z1(w);O&&O.tagName==="BODY"&&E()},50);return()=>{clearInterval(D),w.removeEventListener("focusin",E),w.removeEventListener("keydown",A,!0)}},[n,r,i,s,a,o]);const S=w=>{f.current===null&&(f.current=w.relatedTarget),g.current=!0,h.current=w.target;const A=t.props.onFocus;A&&A(w)},C=w=>{f.current===null&&(f.current=w.relatedTarget),g.current=!0};return m.jsxs(_.Fragment,{children:[m.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:b,onFocus:S}),m.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}const Pxe={entering:{opacity:1},entered:{opacity:1}},Pk=_.forwardRef(function(t,n){const r=ro(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:g,onExited:y,onExiting:b,style:v,timeout:S=i,TransitionComponent:C=Ta,...w}=t,A=_.useRef(null),E=Tr(A,gf(a),n),D=j=>z=>{if(j){const L=A.current;z===void 0?j(L):j(L,z)}},O=D(h),T=D((j,z)=>{IO(j);const L=Kd({style:v,timeout:S,easing:l},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",L),j.style.transition=r.transitions.create("opacity",L),u&&u(j,z)}),I=D(f),N=D(b),$=D(j=>{const z=Kd({style:v,timeout:S,easing:l},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",z),j.style.transition=r.transitions.create("opacity",z),g&&g(j)}),R=D(y),F=j=>{o&&o(A.current,j)};return m.jsx(C,{appear:s,in:c,nodeRef:A,onEnter:T,onEntered:I,onEntering:O,onExit:$,onExited:R,onExiting:N,addEndListener:F,timeout:S,...w,children:(j,{ownerState:z,...L})=>_.cloneElement(a,{style:{opacity:0,visibility:j==="exited"&&!c?"hidden":void 0,...Pxe[j],...v,...a.props.style},ref:E,...L})})});function jxe(e){return Qe("MuiBackdrop",e)}tt("MuiBackdrop",["root","invisible"]);const $xe=e=>{const{classes:t,invisible:n}=e;return et({root:["root",n&&"invisible"]},jxe,t)},Lxe=me("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),XO=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:s="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:f={},slots:h={},TransitionComponent:g,transitionDuration:y,...b}=r,v={...r,component:s,invisible:a},S=$xe(v),C={transition:g,root:c.Root,...h},w={...u,...f},A={component:s,slots:C,slotProps:w},[E,D]=lt("root",{elementType:Lxe,externalForwardedProps:A,className:Te(S.root,o),ownerState:v}),[O,T]=lt("transition",{elementType:Pk,externalForwardedProps:A,ownerState:v});return m.jsx(O,{in:l,timeout:y,...b,...T,children:m.jsx(E,{"aria-hidden":!0,...D,ref:n,children:i})})});function Nxe(e){return typeof e=="function"?e():e}function Fxe(e){return e?e.props.hasOwnProperty("in"):!1}const xF=()=>{},Mx=new kxe;function Bxe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:s,children:a,onClose:l,open:c,rootRef:u}=e,f=_.useRef({}),h=_.useRef(null),g=_.useRef(null),y=Tr(g,u),[b,v]=_.useState(!c),S=Fxe(a);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>Di(h.current),A=()=>(f.current.modalRef=g.current,f.current.mount=h.current,f.current),E=()=>{Mx.mount(A(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},D=Ni(()=>{const z=Nxe(t)||w().body;Mx.add(A(),z),g.current&&E()}),O=()=>Mx.isTopModal(A()),T=Ni(z=>{h.current=z,z&&(c&&O()?E():g.current&&ly(g.current,C))}),I=_.useCallback(()=>{Mx.remove(A(),C)},[C]);_.useEffect(()=>()=>{I()},[I]),_.useEffect(()=>{c?D():(!S||!i)&&I()},[c,I,S,i,D]);const N=z=>L=>{z.onKeyDown?.(L),!(L.key!=="Escape"||L.which===229||!O())&&(n||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},$=z=>L=>{z.onClick?.(L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(z={})=>{const L=Yi(e);delete L.onTransitionEnter,delete L.onTransitionExited;const q={...L,...z};return{role:"presentation",...q,onKeyDown:N(q),ref:y}},getBackdropProps:(z={})=>{const L=z;return{"aria-hidden":!0,...L,onClick:$(L),open:c}},getTransitionProps:()=>{const z=()=>{v(!1),o&&o()},L=()=>{v(!0),s&&s(),i&&I()};return{onEnter:mk(z,a?.props.onEnter??xF),onExited:mk(L,a?.props.onExited??xF)}},rootRef:y,portalRef:T,isTopModal:O,exited:b,hasTransition:S}}function zxe(e){return Qe("MuiModal",e)}tt("MuiModal",["root","hidden","backdrop"]);const Hxe=e=>{const{open:t,exited:n,classes:r}=e;return et({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zxe,r)},Uxe=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ge(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Vxe=me(XO,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ZO=_.forwardRef(function(t,n){const r=it({name:"MuiModal",props:t}),{BackdropComponent:i=Vxe,BackdropProps:o,classes:s,className:a,closeAfterTransition:l=!1,children:c,container:u,component:f,components:h={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:v=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:A=!1,keepMounted:E=!1,onClose:D,onTransitionEnter:O,onTransitionExited:T,open:I,slotProps:N={},slots:$={},theme:R,...F}=r,j={...r,closeAfterTransition:l,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:v,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:A,keepMounted:E},{getRootProps:z,getBackdropProps:L,getTransitionProps:q,portalRef:V,isTopModal:U,exited:K,hasTransition:B}=Bxe({...j,rootRef:n}),W={...j,exited:K},X=Hxe(W),H={};if(c.props.tabIndex===void 0&&(H.tabIndex="-1"),B){const{onEnter:ue,onExited:te}=q();H.onEnter=ue,H.onExited=te}const Y={slots:{root:h.Root,backdrop:h.Backdrop,...$},slotProps:{...g,...N}},[J,ne]=lt("root",{ref:n,elementType:Uxe,externalForwardedProps:{...Y,...F,component:f},getSlotProps:z,ownerState:W,className:Te(a,X?.root,!W.open&&W.exited&&X?.hidden)}),[ee,se]=lt("backdrop",{ref:o?.ref,elementType:i,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ue=>L({...ue,onClick:te=>{ue?.onClick&&ue.onClick(te)}}),className:Te(o?.className,X?.backdrop),ownerState:W});return!E&&!I&&(!B||K)?null:m.jsx(iZ,{ref:V,container:u,disablePortal:S,children:m.jsxs(J,{...ne,children:[!A&&i?m.jsx(ee,{...se}):null,m.jsx(Ixe,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:U,open:I,children:_.cloneElement(c,H)})]})})});function Wxe(e){return Qe("MuiDialog",e)}const O7=tt("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),lZ=_.createContext({}),qxe=me(XO,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),Gxe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],backdrop:["backdrop"],container:["container",`scroll${ye(n)}`],paper:["paper",`paperScroll${ye(n)}`,`paperWidth${ye(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return et(s,Wxe,t)},Kxe=me(ZO,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Yxe=me("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ye(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Xxe=me(Ur,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ye(n.scroll)}`],t[`paperWidth${ye(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ge(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${O7.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${O7.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${O7.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),vu=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialog"}),i=ro(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:f,className:h,disableEscapeKeyDown:g=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:v="sm",onClick:S,onClose:C,open:w,PaperComponent:A=Ur,PaperProps:E={},scroll:D="paper",slots:O={},slotProps:T={},TransitionComponent:I=Pk,transitionDuration:N=o,TransitionProps:$,...R}=r,F={...r,disableEscapeKeyDown:g,fullScreen:y,fullWidth:b,maxWidth:v,scroll:D},j=Gxe(F),z=_.useRef(),L=re=>{z.current=re.target===re.currentTarget},q=re=>{S&&S(re),z.current&&(z.current=null,C&&C(re,"backdropClick"))},V=Ou(a),U=_.useMemo(()=>({titleId:V}),[V]),K={transition:I,...O},B={transition:$,paper:E,backdrop:u,...T},W={slots:K,slotProps:B},[X,H]=lt("root",{elementType:Kxe,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:F,className:Te(j.root,h),ref:n}),[Y,J]=lt("backdrop",{elementType:qxe,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:F,className:j.backdrop}),[ne,ee]=lt("paper",{elementType:Xxe,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:F,className:Te(j.paper,E.className)}),[se,ue]=lt("container",{elementType:Yxe,externalForwardedProps:W,ownerState:F,className:j.container}),[te,Z]=lt("transition",{elementType:Pk,externalForwardedProps:W,ownerState:F,additionalProps:{appear:!0,in:w,timeout:N,role:"presentation"}});return m.jsx(X,{closeAfterTransition:!0,slots:{backdrop:Y},slotProps:{backdrop:{transitionDuration:N,as:c,...J}},disableEscapeKeyDown:g,onClose:C,open:w,onClick:q,...H,...R,children:m.jsx(te,{...Z,children:m.jsx(se,{onMouseDown:L,...ue,children:m.jsx(ne,{as:A,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":V,"aria-modal":l,...ee,children:m.jsx(lZ.Provider,{value:U,children:f})})})})})});function Zxe(e){return Qe("MuiDialogActions",e)}tt("MuiDialogActions",["root","spacing"]);const Jxe=e=>{const{classes:t,disableSpacing:n}=e;return et({root:["root",!n&&"spacing"]},Zxe,t)},Qxe=me("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Xd=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...s}=r,a={...r,disableSpacing:o},l=Jxe(a);return m.jsx(Qxe,{className:Te(l.root,i),ownerState:a,ref:n,...s})});function e3e(e){return Qe("MuiDialogContent",e)}tt("MuiDialogContent",["root","dividers"]);function t3e(e){return Qe("MuiDialogTitle",e)}const n3e=tt("MuiDialogTitle",["root"]),r3e=e=>{const{classes:t,dividers:n}=e;return et({root:["root",n&&"dividers"]},e3e,t)},i3e=me("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ge(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${n3e.root} + &`]:{paddingTop:0}}}]}))),xu=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...s}=r,a={...r,dividers:o},l=r3e(a);return m.jsx(i3e,{className:Te(l.root,i),ownerState:a,ref:n,...s})}),o3e=e=>{const{classes:t}=e;return et({root:["root"]},t3e,t)},s3e=me(ie,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Su=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialogTitle"}),{className:i,id:o,...s}=r,a=r,l=o3e(a),{titleId:c=o}=_.useContext(lZ);return m.jsx(s3e,{component:"h2",className:Te(l.root,i),ownerState:a,ref:n,variant:"h6",id:o??c,...s})});function a3e(e){return Qe("MuiDivider",e)}const SF=tt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),l3e=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=e;return et({root:["root",t&&"absolute",l,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},a3e,r)},c3e=me("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Ge(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),u3e=me("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ge(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),gi=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,orientation:a="horizontal",component:l=o||a==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:f=l!=="hr"?"separator":void 0,textAlign:h="center",variant:g="fullWidth",...y}=r,b={...r,absolute:i,component:l,flexItem:c,light:u,orientation:a,role:f,textAlign:h,variant:g},v=l3e(b);return m.jsx(c3e,{as:l,className:Te(v.root,s),role:f,ref:n,ownerState:b,"aria-orientation":f==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...y,children:o?m.jsx(u3e,{className:v.wrapper,ownerState:b,children:o}):null})});gi&&(gi.muiSkipListHighlight=!0);const dt=age({createStyledComponent:me("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>it({props:e,name:"MuiGrid"}),useTheme:ro});var d3e=Object.defineProperty,K4=Object.getOwnPropertySymbols,cZ=Object.prototype.hasOwnProperty,uZ=Object.prototype.propertyIsEnumerable,wF=(e,t,n)=>t in e?d3e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jk=(e,t)=>{for(var n in t||(t={}))cZ.call(t,n)&&wF(e,n,t[n]);if(K4)for(var n of K4(t))uZ.call(t,n)&&wF(e,n,t[n]);return e},$k=(e,t)=>{var n={};for(var r in e)cZ.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&K4)for(var r of K4(e))t.indexOf(r)<0&&uZ.call(e,r)&&(n[r]=e[r]);return n};var Ph;(e=>{const t=class An{constructor(l,c,u,f){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],l<An.MIN_VERSION||l>An.MAX_VERSION)throw new RangeError("Version value out of range");if(f<-1||f>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let h=[];for(let y=0;y<this.size;y++)h.push(!1);for(let y=0;y<this.size;y++)this.modules.push(h.slice()),this.isFunction.push(h.slice());this.drawFunctionPatterns();const g=this.addEccAndInterleave(u);if(this.drawCodewords(g),f==-1){let y=1e9;for(let b=0;b<8;b++){this.applyMask(b),this.drawFormatBits(b);const v=this.getPenaltyScore();v<y&&(f=b,y=v),this.applyMask(b)}}i(0<=f&&f<=7),this.mask=f,this.applyMask(f),this.drawFormatBits(f),this.isFunction=[]}static encodeText(l,c){const u=e.QrSegment.makeSegments(l);return An.encodeSegments(u,c)}static encodeBinary(l,c){const u=e.QrSegment.makeBytes(l);return An.encodeSegments([u],c)}static encodeSegments(l,c,u=1,f=40,h=-1,g=!0){if(!(An.MIN_VERSION<=u&&u<=f&&f<=An.MAX_VERSION)||h<-1||h>7)throw new RangeError("Invalid value");let y,b;for(y=u;;y++){const w=An.getNumDataCodewords(y,c)*8,A=s.getTotalBits(l,y);if(A<=w){b=A;break}if(y>=f)throw new RangeError("Data too long")}for(const w of[An.Ecc.MEDIUM,An.Ecc.QUARTILE,An.Ecc.HIGH])g&&b<=An.getNumDataCodewords(y,w)*8&&(c=w);let v=[];for(const w of l){n(w.mode.modeBits,4,v),n(w.numChars,w.mode.numCharCountBits(y),v);for(const A of w.getData())v.push(A)}i(v.length==b);const S=An.getNumDataCodewords(y,c)*8;i(v.length<=S),n(0,Math.min(4,S-v.length),v),n(0,(8-v.length%8)%8,v),i(v.length%8==0);for(let w=236;v.length<S;w^=253)n(w,8,v);let C=[];for(;C.length*8<v.length;)C.push(0);return v.forEach((w,A)=>C[A>>>3]|=w<<7-(A&7)),new An(y,c,C,h)}getModule(l,c){return 0<=l&&l<this.size&&0<=c&&c<this.size&&this.modules[c][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),c=l.length;for(let u=0;u<c;u++)for(let f=0;f<c;f++)u==0&&f==0||u==0&&f==c-1||u==c-1&&f==0||this.drawAlignmentPattern(l[u],l[f]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const c=this.errorCorrectionLevel.formatBits<<3|l;let u=c;for(let h=0;h<10;h++)u=u<<1^(u>>>9)*1335;const f=(c<<10|u)^21522;i(f>>>15==0);for(let h=0;h<=5;h++)this.setFunctionModule(8,h,r(f,h));this.setFunctionModule(8,7,r(f,6)),this.setFunctionModule(8,8,r(f,7)),this.setFunctionModule(7,8,r(f,8));for(let h=9;h<15;h++)this.setFunctionModule(14-h,8,r(f,h));for(let h=0;h<8;h++)this.setFunctionModule(this.size-1-h,8,r(f,h));for(let h=8;h<15;h++)this.setFunctionModule(8,this.size-15+h,r(f,h));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;i(c>>>18==0);for(let u=0;u<18;u++){const f=r(c,u),h=this.size-11+u%3,g=Math.floor(u/3);this.setFunctionModule(h,g,f),this.setFunctionModule(g,h,f)}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let f=-4;f<=4;f++){const h=Math.max(Math.abs(f),Math.abs(u)),g=l+f,y=c+u;0<=g&&g<this.size&&0<=y&&y<this.size&&this.setFunctionModule(g,y,h!=2&&h!=4)}}drawAlignmentPattern(l,c){for(let u=-2;u<=2;u++)for(let f=-2;f<=2;f++)this.setFunctionModule(l+f,c+u,Math.max(Math.abs(f),Math.abs(u))!=1)}setFunctionModule(l,c,u){this.modules[c][l]=u,this.isFunction[c][l]=!0}addEccAndInterleave(l){const c=this.version,u=this.errorCorrectionLevel;if(l.length!=An.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");const f=An.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],h=An.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],g=Math.floor(An.getNumRawDataModules(c)/8),y=f-g%f,b=Math.floor(g/f);let v=[];const S=An.reedSolomonComputeDivisor(h);for(let w=0,A=0;w<f;w++){let E=l.slice(A,A+b-h+(w<y?0:1));A+=E.length;const D=An.reedSolomonComputeRemainder(E,S);w<y&&E.push(0),v.push(E.concat(D))}let C=[];for(let w=0;w<v[0].length;w++)v.forEach((A,E)=>{(w!=b-h||E>=y)&&C.push(A[w])});return i(C.length==g),C}drawCodewords(l){if(l.length!=Math.floor(An.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let f=0;f<this.size;f++)for(let h=0;h<2;h++){const g=u-h,b=(u+1&2)==0?this.size-1-f:f;!this.isFunction[b][g]&&c<l.length*8&&(this.modules[b][g]=r(l[c>>>3],7-(c&7)),c++)}}i(c==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c<this.size;c++)for(let u=0;u<this.size;u++){let f;switch(l){case 0:f=(u+c)%2==0;break;case 1:f=c%2==0;break;case 2:f=u%3==0;break;case 3:f=(u+c)%3==0;break;case 4:f=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:f=u*c%2+u*c%3==0;break;case 6:f=(u*c%2+u*c%3)%2==0;break;case 7:f=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&f&&(this.modules[c][u]=!this.modules[c][u])}}getPenaltyScore(){let l=0;for(let h=0;h<this.size;h++){let g=!1,y=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[h][v]==g?(y++,y==5?l+=An.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),g||(l+=this.finderPenaltyCountPatterns(b)*An.PENALTY_N3),g=this.modules[h][v],y=1);l+=this.finderPenaltyTerminateAndCount(g,y,b)*An.PENALTY_N3}for(let h=0;h<this.size;h++){let g=!1,y=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[v][h]==g?(y++,y==5?l+=An.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),g||(l+=this.finderPenaltyCountPatterns(b)*An.PENALTY_N3),g=this.modules[v][h],y=1);l+=this.finderPenaltyTerminateAndCount(g,y,b)*An.PENALTY_N3}for(let h=0;h<this.size-1;h++)for(let g=0;g<this.size-1;g++){const y=this.modules[h][g];y==this.modules[h][g+1]&&y==this.modules[h+1][g]&&y==this.modules[h+1][g+1]&&(l+=An.PENALTY_N2)}let c=0;for(const h of this.modules)c=h.reduce((g,y)=>g+(y?1:0),c);const u=this.size*this.size,f=Math.ceil(Math.abs(c*20-u*10)/u)-1;return i(0<=f&&f<=9),l+=f*An.PENALTY_N4,i(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let f=this.size-7;u.length<l;f-=c)u.splice(1,0,f);return u}}static getNumRawDataModules(l){if(l<An.MIN_VERSION||l>An.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36)}return i(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(An.getNumRawDataModules(l)/8)-An.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*An.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let f=0;f<l-1;f++)c.push(0);c.push(1);let u=1;for(let f=0;f<l;f++){for(let h=0;h<c.length;h++)c[h]=An.reedSolomonMultiply(c[h],u),h+1<c.length&&(c[h]^=c[h+1]);u=An.reedSolomonMultiply(u,2)}return c}static reedSolomonComputeRemainder(l,c){let u=c.map(f=>0);for(const f of l){const h=f^u.shift();u.push(0),c.forEach((g,y)=>u[y]^=An.reedSolomonMultiply(g,h))}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let f=7;f>=0;f--)u=u<<1^(u>>>7)*285,u^=(c>>>f&1)*l;return i(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];i(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return(u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(a,l,c){if(l<0||l>31||a>>>l)throw new RangeError("Value out of range");for(let u=l-1;u>=0;u--)c.push(a>>>u&1)}function r(a,l){return(a>>>l&1)!=0}function i(a){if(!a)throw new Error("Assertion error")}const o=class ri{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}static makeBytes(l){let c=[];for(const u of l)n(u,8,c);return new ri(ri.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!ri.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u<l.length;){const f=Math.min(l.length-u,3);n(parseInt(l.substring(u,u+f),10),f*3+1,c),u+=f}return new ri(ri.Mode.NUMERIC,l.length,c)}static makeAlphanumeric(l){if(!ri.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let c=[],u;for(u=0;u+2<=l.length;u+=2){let f=ri.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u))*45;f+=ri.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u+1)),n(f,11,c)}return u<l.length&&n(ri.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u)),6,c),new ri(ri.Mode.ALPHANUMERIC,l.length,c)}static makeSegments(l){return l==""?[]:ri.isNumeric(l)?[ri.makeNumeric(l)]:ri.isAlphanumeric(l)?[ri.makeAlphanumeric(l)]:[ri.makeBytes(ri.toUtf8ByteArray(l))]}static makeEci(l){let c=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)n(l,8,c);else if(l<16384)n(2,2,c),n(l,14,c);else if(l<1e6)n(6,3,c),n(l,21,c);else throw new RangeError("ECI assignment value out of range");return new ri(ri.Mode.ECI,0,c)}static isNumeric(l){return ri.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return ri.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,c){let u=0;for(const f of l){const h=f.mode.numCharCountBits(c);if(f.numChars>=1<<h)return 1/0;u+=4+h+f.bitData.length}return u}static toUtf8ByteArray(l){l=encodeURI(l);let c=[];for(let u=0;u<l.length;u++)l.charAt(u)!="%"?c.push(l.charCodeAt(u)):(c.push(parseInt(l.substring(u+1,u+3),16)),u+=2);return c}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=o;e.QrSegment=o})(Ph||(Ph={}));(e=>{(t=>{const n=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(Ph||(Ph={}));(e=>{(t=>{const n=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(Ph||(Ph={}));var b0=Ph;var f3e={L:b0.QrCode.Ecc.LOW,M:b0.QrCode.Ecc.MEDIUM,Q:b0.QrCode.Ecc.QUARTILE,H:b0.QrCode.Ecc.HIGH},dZ=128,fZ="L",hZ="#FFFFFF",pZ="#000000",mZ=!1,gZ=1,h3e=4,p3e=0,m3e=.1;function yZ(e,t=0){const n=[];return e.forEach(function(r,i){let o=null;r.forEach(function(s,a){if(!s&&o!==null){n.push(`M${o+t} ${i+t}h${a-o}v1H${o+t}z`),o=null;return}if(a===r.length-1){if(!s)return;o===null?n.push(`M${a+t},${i+t} h1v1H${a+t}z`):n.push(`M${o+t},${i+t} h${a+1-o}v1H${o+t}z`);return}s&&o===null&&(o=a)})}),n.join("")}function bZ(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((i,o)=>o<t.x||o>=t.x+t.w?i:!1))}function g3e(e,t,n,r){if(r==null)return null;const i=e.length+n*2,o=Math.floor(t*m3e),s=i/t,a=(r.width||o)*s,l=(r.height||o)*s,c=r.x==null?e.length/2-a/2:r.x*s,u=r.y==null?e.length/2-l/2:r.y*s,f=r.opacity==null?1:r.opacity;let h=null;if(r.excavate){let y=Math.floor(c),b=Math.floor(u),v=Math.ceil(a+c-y),S=Math.ceil(l+u-b);h={x:y,y:b,w:v,h:S}}const g=r.crossOrigin;return{x:c,y:u,h:l,w:a,excavation:h,opacity:f,crossOrigin:g}}function y3e(e,t){return t!=null?Math.max(Math.floor(t),0):e?h3e:p3e}function vZ({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:s,boostLevel:a}){let l=qt.useMemo(()=>{const y=(Array.isArray(e)?e:[e]).reduce((b,v)=>(b.push(...b0.QrSegment.makeSegments(v)),b),[]);return b0.QrCode.encodeSegments(y,f3e[t],n,void 0,void 0,a)},[e,t,n,a]);const{cells:c,margin:u,numCells:f,calculatedImageSettings:h}=qt.useMemo(()=>{let g=l.getModules();const y=y3e(r,i),b=g.length+y*2,v=g3e(g,s,y,o);return{cells:g,margin:y,numCells:b,calculatedImageSettings:v}},[l,s,o,r,i]);return{qrcode:l,margin:u,cells:c,numCells:f,calculatedImageSettings:h}}var b3e=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),v3e=qt.forwardRef(function(t,n){const r=t,{value:i,size:o=dZ,level:s=fZ,bgColor:a=hZ,fgColor:l=pZ,includeMargin:c=mZ,minVersion:u=gZ,boostLevel:f,marginSize:h,imageSettings:g}=r,b=$k(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:v}=b,S=$k(b,["style"]),C=g?.src,w=qt.useRef(null),A=qt.useRef(null),E=qt.useCallback(j=>{w.current=j,typeof n=="function"?n(j):n&&(n.current=j)},[n]),[D,O]=qt.useState(!1),{margin:T,cells:I,numCells:N,calculatedImageSettings:$}=vZ({value:i,level:s,minVersion:u,boostLevel:f,includeMargin:c,marginSize:h,imageSettings:g,size:o});qt.useEffect(()=>{if(w.current!=null){const j=w.current,z=j.getContext("2d");if(!z)return;let L=I;const q=A.current,V=$!=null&&q!==null&&q.complete&&q.naturalHeight!==0&&q.naturalWidth!==0;V&&$.excavation!=null&&(L=bZ(I,$.excavation));const U=window.devicePixelRatio||1;j.height=j.width=o*U;const K=o/N*U;z.scale(K,K),z.fillStyle=a,z.fillRect(0,0,N,N),z.fillStyle=l,b3e?z.fill(new Path2D(yZ(L,T))):I.forEach(function(B,W){B.forEach(function(X,H){X&&z.fillRect(H+T,W+T,1,1)})}),$&&(z.globalAlpha=$.opacity),V&&z.drawImage(q,$.x+T,$.y+T,$.w,$.h)}}),qt.useEffect(()=>{O(!1)},[C]);const R=jk({height:o,width:o},v);let F=null;return C!=null&&(F=qt.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:()=>{O(!0)},ref:A,crossOrigin:$?.crossOrigin})),qt.createElement(qt.Fragment,null,qt.createElement("canvas",jk({style:R,height:o,width:o,ref:E,role:"img"},S)),F)});v3e.displayName="QRCodeCanvas";var JO=qt.forwardRef(function(t,n){const r=t,{value:i,size:o=dZ,level:s=fZ,bgColor:a=hZ,fgColor:l=pZ,includeMargin:c=mZ,minVersion:u=gZ,boostLevel:f,title:h,marginSize:g,imageSettings:y}=r,b=$k(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:v,cells:S,numCells:C,calculatedImageSettings:w}=vZ({value:i,level:s,minVersion:u,boostLevel:f,includeMargin:c,marginSize:g,imageSettings:y,size:o});let A=S,E=null;y!=null&&w!=null&&(w.excavation!=null&&(A=bZ(S,w.excavation)),E=qt.createElement("image",{href:y.src,height:w.h,width:w.w,x:w.x+v,y:w.y+v,preserveAspectRatio:"none",opacity:w.opacity,crossOrigin:w.crossOrigin}));const D=yZ(A,v);return qt.createElement("svg",jk({height:o,width:o,viewBox:`0 0 ${C} ${C}`,ref:n,role:"img"},b),!!h&&qt.createElement("title",null,h),qt.createElement("path",{fill:a,d:`M0,0 h${C}v${C}H0z`,shapeRendering:"crispEdges"}),qt.createElement("path",{fill:l,d:D,shapeRendering:"crispEdges"}),E)});JO.displayName="QRCodeSVG";const x3e=_e(m.jsx("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15M14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2"})),v0=e=>_.createElement("svg",{viewBox:"0 0 250 260",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{fillRule:"evenodd"},_.createElement("path",{d:"m221.503 210.324c-105.235 50.083-170.545 8.18-212.352-17.271-2.587-1.604-6.984.375-3.169 4.757 13.928 16.888 59.573 57.593 119.153 57.593 59.621 0 95.09-32.532 99.527-38.207 4.407-5.627 1.294-8.731-3.16-6.872zm29.555-16.322c-2.826-3.68-17.184-4.366-26.22-3.256-9.05 1.078-22.634 6.609-21.453 9.93.606 1.244 1.843.686 8.06.127 6.234-.622 23.698-2.826 27.337 1.931 3.656 4.79-5.57 27.608-7.255 31.288-1.628 3.68.622 4.629 3.68 2.178 3.016-2.45 8.476-8.795 12.14-17.774 3.639-9.028 5.858-21.622 3.71-24.424z"}),_.createElement("path",{d:"m150.744 108.13c0 13.141.332 24.1-6.31 35.77-5.361 9.489-13.853 15.324-23.341 15.324-12.952 0-20.495-9.868-20.495-24.432 0-28.75 25.76-33.968 50.146-33.968zm34.015 82.216c-2.23 1.992-5.456 2.135-7.97.806-11.196-9.298-13.189-13.615-19.356-22.487-18.502 18.882-31.596 24.527-55.601 24.527-28.37 0-50.478-17.506-50.478-52.565 0-27.373 14.85-46.018 35.96-55.126 18.313-8.066 43.884-9.489 63.43-11.718v-4.365c0-8.018.616-17.506-4.08-24.432-4.128-6.215-12.003-8.777-18.93-8.777-12.856 0-24.337 6.594-27.136 20.257-.57 3.037-2.799 6.026-5.835 6.168l-32.735-3.51c-2.751-.618-5.787-2.847-5.028-7.07 7.543-39.66 43.36-51.616 75.43-51.616 16.415 0 37.858 4.365 50.81 16.795 16.415 15.323 14.849 35.77 14.849 58.02v52.565c0 15.798 6.547 22.724 12.714 31.264 2.182 3.036 2.657 6.69-.095 8.966-6.879 5.74-19.119 16.415-25.855 22.393l-.095-.095"}),_.createElement("path",{d:"m221.503 210.324c-105.235 50.083-170.545 8.18-212.352-17.271-2.587-1.604-6.984.375-3.169 4.757 13.928 16.888 59.573 57.593 119.153 57.593 59.621 0 95.09-32.532 99.527-38.207 4.407-5.627 1.294-8.731-3.16-6.872zm29.555-16.322c-2.826-3.68-17.184-4.366-26.22-3.256-9.05 1.078-22.634 6.609-21.453 9.93.606 1.244 1.843.686 8.06.127 6.234-.622 23.698-2.826 27.337 1.931 3.656 4.79-5.57 27.608-7.255 31.288-1.628 3.68.622 4.629 3.68 2.178 3.016-2.45 8.476-8.795 12.14-17.774 3.639-9.028 5.858-21.622 3.71-24.424z"}),_.createElement("path",{d:"m150.744 108.13c0 13.141.332 24.1-6.31 35.77-5.361 9.489-13.853 15.324-23.341 15.324-12.952 0-20.495-9.868-20.495-24.432 0-28.75 25.76-33.968 50.146-33.968zm34.015 82.216c-2.23 1.992-5.456 2.135-7.97.806-11.196-9.298-13.189-13.615-19.356-22.487-18.502 18.882-31.596 24.527-55.601 24.527-28.37 0-50.478-17.506-50.478-52.565 0-27.373 14.85-46.018 35.96-55.126 18.313-8.066 43.884-9.489 63.43-11.718v-4.365c0-8.018.616-17.506-4.08-24.432-4.128-6.215-12.003-8.777-18.93-8.777-12.856 0-24.337 6.594-27.136 20.257-.57 3.037-2.799 6.026-5.835 6.168l-32.735-3.51c-2.751-.618-5.787-2.847-5.028-7.07 7.543-39.66 43.36-51.616 75.43-51.616 16.415 0 37.858 4.365 50.81 16.795 16.415 15.323 14.849 35.77 14.849 58.02v52.565c0 15.798 6.547 22.724 12.714 31.264 2.182 3.036 2.657 6.69-.095 8.966-6.879 5.74-19.119 16.415-25.855 22.393l-.095-.095"}))),S3e=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:52,height:20,viewBox:"0 0 52 20",fill:"none",...e},"\\n ",_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.4419 10.9152C49.5872 10.0259 50.093 9.09567 50.0116 7.92553C49.9741 7.13141 49.632 6.3829 49.0573 5.83734C48.4827 5.29179 47.7202 4.9917 46.9302 5.00017H42.3954V15.0517H44.1977V10.9152H46.3488L48.8954 15.0517H51L48.4419 10.9152ZM48.2616 7.92553C48.2687 8.07923 48.2455 8.23282 48.1935 8.3775C48.1414 8.52218 48.0616 8.65511 47.9584 8.76869C47.8553 8.88227 47.7309 8.97427 47.5924 9.03941C47.4538 9.10455 47.3039 9.14156 47.1512 9.14832C47.0778 9.15694 47.0036 9.15694 46.9302 9.14832H44.1919V6.75539H46.9302C47.2461 6.72083 47.5628 6.81339 47.8111 7.01287C48.0594 7.21235 48.2193 7.50257 48.2558 7.82021C48.2558 7.83777 48.2573 7.85532 48.2587 7.87287C48.2602 7.89042 48.2616 7.90797 48.2616 7.92553ZM28.657 11.2955L30.9826 15.0458H33.1279L29.8256 9.72169L28.657 11.2955ZM32.4709 5.00017H30.1802L25.4651 11.3482V5.00017H23.6744V14.1565C23.6708 14.3635 23.74 14.5651 23.8698 14.7257C23.9996 14.8863 24.1816 14.9955 24.3837 15.0341C24.5446 15.0621 24.71 15.0459 24.8624 14.9872C25.0149 14.9286 25.1488 14.8295 25.25 14.7006L32.4709 5.00017ZM36.4651 10.9152H40.0233V9.16002H36.4651V10.9152ZM40.9651 5.00025H33.8954V14.1566C33.8922 14.273 33.9124 14.3889 33.9545 14.4974C33.9966 14.6059 34.06 14.7048 34.1407 14.7882C34.2215 14.8716 34.318 14.938 34.4247 14.9832C34.5313 15.0285 34.6459 15.0518 34.7616 15.0518H40.9651V13.2965H35.7326V6.75546H40.9651V5.00025ZM20.0349 5.00025V11.3483L15.314 5.00025H12.9884V15.0459H14.7965V7.40488L20.2442 14.7007C20.345 14.8301 20.4788 14.9295 20.6314 14.9882C20.784 15.047 20.9496 15.0629 21.1105 15.0342C21.3126 14.9956 21.4946 14.8863 21.6244 14.7257C21.7542 14.5652 21.8234 14.3636 21.8198 14.1566V5.00025H20.0349ZM5.65116 5.54436L1 15.0518H3.02326L6.51163 7.9256L10 15.0635H12.0058L7.39535 5.58532C7.30869 5.41551 7.18068 5.27057 7.02326 5.16407C6.86639 5.06366 6.68578 5.00711 6.5 5.00025C6.32119 5.00091 6.14607 5.05154 5.99419 5.14651C5.84206 5.24066 5.72233 5.37953 5.65116 5.54436ZM8.09699 13.63H8.15117L8.12791 13.589L8.09699 13.63ZM6.94187 13.63H8.09699L5.55233 17L5.78489 14.4198H4.56396L7.18024 11.0498L6.94187 13.63Z",fill:"#F5F6F7"}),"\\n"),Lk=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 41.5 51",...e},_.createElement("g",null,_.createElement("path",{d:"M40.2,17.4c-3.4,2.1-5.5,5.7-5.5,9.7c0,4.5,2.7,8.6,6.8,10.3c-0.8,2.6-2,5-3.5,7.2c-2.2,3.1-4.5,6.3-7.9,6.3s-4.4-2-8.4-2 c-3.9,0-5.3,2.1-8.5,2.1s-5.4-2.9-7.9-6.5C2,39.5,0.1,33.7,0,27.6c0-9.9,6.4-15.2,12.8-15.2c3.4,0,6.2,2.2,8.3,2.2 c2,0,5.2-2.3,9-2.3C34.1,12.2,37.9,14.1,40.2,17.4z M28.3,8.1C30,6.1,30.9,3.6,31,1c0-0.3,0-0.7-0.1-1c-2.9,0.3-5.6,1.7-7.5,3.9 c-1.7,1.9-2.7,4.3-2.8,6.9c0,0.3,0,0.6,0.1,0.9c0.2,0,0.5,0.1,0.7,0.1C24.1,11.6,26.6,10.2,28.3,8.1z"}))),xZ=e=>_.createElement("svg",{width:80,height:48,viewBox:"0 0 80 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.81 13.3345C14.2136 13.8547 15.327 14.9378 15.876 16.3132L21.8966 32.1746C21.9098 32.2094 21.8923 32.2483 21.8575 32.2615L21.8336 32.2659H19.0457C19.0177 32.2659 18.9927 32.2486 18.9827 32.2224L13.3378 17.3486C13.0793 16.6674 12.5353 16.13 11.846 15.8745C10.5471 15.3932 9.10149 16.0268 8.58638 17.2915L7.22633 20.8729C5.91753 21.5279 5.0204 22.8697 5.0204 24.4186C5.0204 24.9466 5.12468 25.4506 5.314 25.9115L2.91882 32.2224C2.90889 32.2486 2.88383 32.2659 2.85585 32.2659L0.0678745 32.2666C0.0306679 32.2667 0.000498102 32.2365 0.000488281 32.1993L0.00487174 32.1754L5.99341 16.3961C7.02016 13.6907 10.072 12.32 12.81 13.3345ZM28.9955 16.7371L29.3163 16.7337L29.7093 16.7473L30.0186 16.772L30.3615 16.8139L30.6021 16.8528L30.9501 16.9228L31.1962 16.9826L31.3465 17.0234L31.625 17.1078L31.8607 17.1883L31.9699 17.2285L32.2629 17.346L32.4752 17.44L32.7069 17.5515L32.9535 17.681L33.0724 17.7476L33.3046 17.8858L33.5249 18.0274L33.6195 18.0915L33.8746 18.2749L34.0785 18.4332L34.2633 18.5865L34.3812 18.6895L34.5683 18.8619L34.6805 18.971L34.7979 19.0898L34.9195 19.2187L35.0383 19.3505L35.1419 19.4705L35.3292 19.7009L35.5691 20.0249L35.6572 20.1534L35.8028 20.3788L35.8973 20.5351L36.058 20.8218L36.1728 21.0463L36.2982 21.3148L36.3974 21.5486L36.4885 21.7852L36.5644 22.0026L36.6282 22.2039L36.6794 22.3813L36.7128 22.5071C36.7374 22.6028 36.7602 22.6992 36.7812 22.7962L36.8153 22.9637L36.846 23.1333L36.8729 23.3043C36.8878 23.4057 36.9006 23.5078 36.9114 23.6104L36.926 23.7649C36.9373 23.8983 36.9452 24.0328 36.9496 24.1681L36.9537 24.3232V35.8054C36.9537 35.9129 36.8662 36 36.7584 36H34.4151C34.315 36 34.2324 35.9249 34.2212 35.8281L34.2199 35.8054L34.2201 30.2913L33.976 30.4888L33.7764 30.6386L33.6197 30.7494L33.4835 30.8411L33.3091 30.9525L33.0969 31.0794L32.8071 31.2383L32.6791 31.3034L32.4479 31.4136L32.1391 31.5464L31.8764 31.6471L31.7372 31.6961L31.4028 31.8015L31.2804 31.836L30.9953 31.9079L30.7166 31.9671L30.4646 32.0115L30.3243 32.0324L30.0586 32.065L29.9326 32.0772L29.7343 32.0922L29.493 32.1037L29.2404 32.1077C24.9804 32.1077 21.5271 28.6661 21.5271 24.4205C21.5271 20.2567 24.8489 16.866 28.9955 16.7371ZM24.2609 24.4205C24.2609 21.6798 26.4903 19.4579 29.2404 19.4579C29.4034 19.4579 29.5647 19.4657 29.7238 19.481L29.8413 19.4937L30.0803 19.5283L30.2016 19.5504L30.3419 19.5798L30.5659 19.6358L30.7996 19.7062L31.0449 19.7939C31.1507 19.835 31.2549 19.8796 31.3571 19.9275L31.4292 19.962L31.6766 20.0916L31.8714 20.2066C31.943 20.2511 32.0134 20.2973 32.0825 20.3453L32.1983 20.428L32.3169 20.5182C32.4843 20.6495 32.6431 20.7912 32.7923 20.9425L32.9514 21.1115C33.6874 21.9308 34.1543 22.9953 34.2135 24.1669L34.2162 24.23L34.2194 24.49C34.1851 26.9823 32.3073 29.0307 29.8835 29.3422L29.7304 29.3595L29.5286 29.375L29.2404 29.3832C26.4903 29.3832 24.2609 27.1613 24.2609 24.4205ZM9.16556 21.9333C10.6351 21.9333 11.8265 23.1123 11.8265 24.5667C11.8265 26.021 10.6351 27.2 9.16556 27.2C7.69598 27.2 6.50464 26.021 6.50464 24.5667C6.50464 23.1123 7.69598 21.9333 9.16556 21.9333ZM50.446 17.7037L50.314 17.6319L49.9725 17.4615L49.7024 17.3412L49.359 17.2057C49.1858 17.1421 49.0099 17.0846 48.8317 17.0334L48.7024 16.9975C48.4418 16.9276 48.1758 16.871 47.9051 16.8283L47.827 16.8164L47.461 16.7714L47.2656 16.7545C47.0749 16.7405 46.8823 16.7333 46.6879 16.7333C42.428 16.7333 38.9746 20.1671 38.9746 24.4029C38.9746 28.6387 42.428 32.0725 46.6879 32.0725L46.9328 32.0687L47.2991 32.0488L47.688 32.0086L47.9931 31.9632L48.302 31.9043L48.6057 31.8336L48.8922 31.7548L49.246 31.6407L49.5034 31.5455L49.7928 31.4258L50.098 31.2842L50.3431 31.1584L50.5963 31.0164L50.9053 30.8256L51.1908 30.6306C51.3442 30.5208 51.4935 30.4054 51.6381 30.2849L51.6676 30.2602L51.6687 32.0952C51.68 32.1917 51.7625 32.2667 51.8627 32.2667H54.206C54.3138 32.2667 54.4012 32.1797 54.4012 32.0725V24.3058L54.3861 23.9176L54.3631 23.6355L54.3242 23.3145L54.2804 23.043L54.216 22.7247L54.1623 22.5014L54.0624 22.1478L54.0059 21.9725L53.916 21.7196L53.7452 21.3029L53.6184 21.0324L53.4359 20.6849L53.2837 20.4245L53.198 20.2876L53.0512 20.067L52.9398 19.9099L52.732 19.6375L52.6151 19.4946L52.387 19.2347L52.2203 19.0586L52.0141 18.8554L51.8835 18.7342L51.7203 18.5904L51.3495 18.2919L51.1038 18.1138L50.8016 17.9139L50.446 17.7037ZM46.6879 19.4517C43.9379 19.4517 41.7085 21.6684 41.7085 24.4029C41.7085 27.1374 43.9379 29.3542 46.6879 29.3542L46.9905 29.3452L47.1625 29.3321L47.4466 29.2973L47.4952 29.2894C47.636 29.2666 47.7747 29.2379 47.9112 29.2037L48.1609 29.1347L48.4198 29.0465L48.5215 29.0086L48.659 28.9511L48.9045 28.8378L49.1359 28.7163L49.321 28.6061L49.4895 28.4973L49.6838 28.3581C50.8786 27.4619 51.6545 26.0429 51.6673 24.443L51.6593 24.1177C51.6192 23.4156 51.4319 22.7526 51.1277 22.1587L50.9903 21.9086L50.8359 21.6623L50.7712 21.5684L50.6486 21.4015L50.5368 21.2613L50.4034 21.1064L50.3055 21.0005L50.1647 20.8584L49.9506 20.6625L49.7324 20.4847L49.5599 20.3578L49.3776 20.2355L49.1353 20.09L49.0187 20.0266L48.7742 19.9059L48.5808 19.8219L48.3539 19.7355L48.1642 19.6729L47.9782 19.6195L47.7697 19.5688L47.5588 19.5271L47.3448 19.4944L47.2201 19.4796C47.0452 19.4611 46.8677 19.4517 46.6879 19.4517ZM77.5285 18.7765L77.4276 18.6851L77.1961 18.4872L77.0529 18.3724L76.8158 18.1941L76.5712 18.0244L76.2693 17.8334L75.9998 17.6789L75.8471 17.5975L75.6556 17.5016L75.4021 17.3846L75.1892 17.2949L75.0162 17.2274L74.6714 17.1069L74.3928 17.0227L74.2425 16.9821L73.9964 16.9224L73.6484 16.8525L73.4078 16.8138L73.2722 16.7954L73.065 16.7719L72.8285 16.752L72.5529 16.7378L72.3626 16.7337L72.0418 16.7371C67.8952 16.8657 64.5734 20.2486 64.5734 24.4029C64.5734 28.6387 68.0267 32.0725 72.2867 32.0725L72.5393 32.0685L72.7806 32.057L72.9789 32.042L73.2162 32.0174L73.3707 31.9974L73.5109 31.9764L73.7629 31.9322L73.9251 31.8991L74.0416 31.8731L74.2035 31.8338L74.4491 31.767L74.6706 31.6992L74.9227 31.6129L75.1854 31.5125L75.3956 31.424L75.7254 31.27L75.8535 31.205L76.1432 31.0465L76.4364 30.8691L76.6661 30.7173L76.8228 30.6067L77.0224 30.4572L77.2664 30.2602L77.2675 32.0952C77.2788 32.1917 77.3613 32.2667 77.4614 32.2667H79.8047C79.9126 32.2667 80 32.1797 80 32.0725V24.3058L79.9959 24.151C79.9915 24.016 79.9836 23.8819 79.9723 23.7488L79.9577 23.5947L79.9193 23.2892C79.9026 23.1751 79.8834 23.0618 79.8617 22.9494L79.8275 22.7823L79.7591 22.4939L79.7257 22.3684L79.639 22.0773L79.5802 21.9009L79.4872 21.6474L79.4437 21.5376L79.3446 21.3043L79.2192 21.0364L79.1043 20.8124L79.0191 20.6572L78.8491 20.3705L78.7893 20.276L78.6154 20.0174L78.4702 19.8176L78.297 19.5956L78.1882 19.4642L78.0846 19.3445L77.8442 19.0844L77.7268 18.9658L77.5285 18.7765ZM72.2867 19.4517C69.5366 19.4517 67.3072 21.6684 67.3072 24.4029C67.3072 27.1374 69.5366 29.3542 72.2867 29.3542L72.5749 29.3461L72.7767 29.3306L72.9298 29.3133C75.3536 29.0025 77.2314 26.9588 77.2657 24.4722L77.2652 24.311L77.2598 24.1499C77.2006 22.981 76.7337 21.9189 75.9977 21.1015L75.9101 21.0067L75.8386 20.9328C75.6894 20.7819 75.5306 20.6405 75.3632 20.5095L75.2446 20.4195L75.1289 20.337C75.0597 20.2892 74.9893 20.243 74.9177 20.1986L74.7229 20.0839L74.4755 19.9546L74.4034 19.9202C74.3012 19.8723 74.1971 19.8279 74.0912 19.7869L73.957 19.7371L73.6875 19.6504L73.5216 19.6051L73.2479 19.5439L73.1266 19.5219L73.0043 19.5027L72.7701 19.4747C72.611 19.4595 72.4498 19.4517 72.2867 19.4517ZM64.3039 19.7017V17L64.1747 17.001C59.9185 17.0686 56.4896 20.4698 56.4896 24.6556V32.1993C56.4896 32.2365 56.5197 32.2667 56.5569 32.2667H59.1799C59.2171 32.2667 59.2472 32.2365 59.2472 32.1993L59.2479 24.5737C59.2926 21.8755 61.5391 19.7017 64.3039 19.7017Z",fill:"white"})),w3e=e=>_.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("title",null,"AVM"),_.createElement("path",{d:"m19.501 11.786-.003-4.823-10.9 11.925h3.172l5.481-6.07v4.864l4.321-4.783v3.657H24V6.86zm-2.643-6.675-5.267 5.87V7.443H9.345v9.38L20.049 5.111zM0 16.556h3.148l2.924-3.25v3.25H8.41v-9.21z"})),C3e=e=>_.createElement("svg",{"xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg",width:850.39368,height:244.13385,id:"svg145868",...e},_.createElement("defs",{id:"defs145870"}),_.createElement("g",{transform:"translate(-586.37187,-430.72069)",id:"layer1"},_.createElement("g",{transform:"matrix(3.7156602,0,0,3.7156602,-1556.9538,-1604.717)",id:"g146158"},_.createElement("path",{d:"M 785.08478,558.34886 C 783.93091,558.34886 783.0655,558.72392 782.20009,559.50283 C 781.62315,560.31059 781.04574,561.34918 781.04574,562.44546 C 781.04574,563.51284 781.62315,564.52258 782.20009,565.30151 C 783.0655,566.10926 783.93091,566.54202 785.08478,566.54202 C 786.23867,566.54202 787.39254,566.10926 787.96996,565.30151 C 788.83537,564.55143 789.12384,563.57054 789.12384,562.44546 C 789.12384,561.34918 788.83537,560.31059 787.96996,559.56053 C 787.39254,558.75276 786.23867,558.34886 785.08478,558.34886 z M 788.83537,562.4743 C 788.83537,563.42631 788.25843,564.29181 787.68149,564.92649 C 786.8156,565.61886 785.95019,565.99388 785.08478,565.99388 C 784.21937,565.99388 783.35396,565.61886 782.48856,564.92649 C 781.91162,564.23406 781.62315,563.36861 781.62315,562.44546 C 781.62315,561.49342 781.91162,560.59911 782.77703,559.87788 C 783.35396,559.21432 784.21937,558.86815 785.08478,558.86815 C 786.23867,558.86815 787.10407,559.24316 787.68149,559.93558 C 788.25843,560.59911 788.83537,561.46457 788.83537,562.4743 z M 785.37326,560.02212 L 783.64244,560.02212 L 783.64244,564.66682 L 784.50785,564.66682 L 784.50785,562.70509 L 785.37326,562.70509 L 786.23867,564.66682 L 787.10407,564.66682 L 786.23867,562.56085 C 786.8156,562.41661 787.10407,561.95501 787.10407,561.32034 C 787.10407,560.45483 786.52713,560.02212 785.37326,560.02212 z M 785.08478,560.59911 C 785.95019,560.59911 786.23867,560.82989 786.23867,561.40687 C 786.23867,561.95501 785.95019,562.12809 785.08478,562.12809 L 784.50785,562.12809 L 784.50785,560.59911 L 785.08478,560.59911",style:{fill:"#00a9a0",fillRule:"evenodd",stroke:"none",strokeWidth:.10201,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path672"}),_.createElement("path",{d:"M 653.2441,557.51225 C 660.16785,557.51225 667.38007,557.51225 674.30382,557.51225 C 674.88124,557.51225 676.90052,557.62763 677.189,557.68533 C 677.76593,557.97379 676.32359,561.00297 675.1697,561.83963 C 674.88124,562.12809 674.30382,562.12809 674.01535,562.18579 C 672.573,562.35888 671.13065,562.87817 670.84218,564.17637 C 670.26524,566.16701 670.55372,569.02305 670.55372,571.30215 C 670.55372,577.44703 670.55372,583.59187 670.55372,589.73675 C 670.55372,591.5254 669.97677,596.25669 670.84218,597.5549 C 671.41912,599.02619 673.14994,599.02619 674.88124,599.02619 C 675.1697,598.96849 675.74665,598.9108 676.03511,598.85311 C 676.61206,598.65113 676.90052,598.42035 677.47746,598.18958 C 678.63134,597.52605 679.78522,596.45862 680.65063,595.18926 C 681.51652,593.97759 682.09346,592.59284 682.67039,591.17919 C 682.95887,590.40028 682.95887,589.304 683.5358,588.64047 C 684.11274,587.80386 687.28639,587.16917 687.86332,587.19803 C 688.1518,587.16917 688.72874,587.22687 689.01721,587.22687 C 689.01721,592.16008 689.01721,597.12215 689.01721,602.08421 C 689.01721,602.40152 688.72874,603.81517 688.72874,603.87286 C 688.72874,603.87286 668.53442,603.87286 658.43703,603.87286 C 655.84032,603.87286 652.95563,603.87286 650.3594,603.87286 C 650.07093,603.87286 649.49351,603.98825 649.49351,603.69973 C 649.49351,603.69973 649.49351,603.69973 649.49351,603.69973 C 649.49351,602.43037 650.07093,600.06478 651.22481,599.37236 C 651.80175,599.02619 652.37869,599.02619 653.2441,599.02619 C 653.53256,598.79541 654.10951,598.53575 654.68645,598.27612 C 655.84032,597.64144 656.41775,596.54516 656.70621,595.47772 C 657.57162,593.25636 657.28315,590.19835 657.28315,587.57309 C 657.28315,582.20712 657.28315,576.8412 657.28315,571.47523 C 657.28315,569.77311 657.57162,565.41689 656.99468,564.14753 C 656.12927,562.04156 651.80175,562.4743 651.51328,561.55111 C 651.22481,560.42599 652.66716,558.37771 653.2441,557.51225",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path676"}),_.createElement("path",{d:"M 764.31353,557.68533 C 765.17894,557.68533 766.62129,557.51225 767.19823,558.20462 C 767.4867,559.18546 767.19823,562.56085 767.19823,563.97445 C 767.19823,570.4078 767.19823,576.8412 767.19823,583.27455 C 767.4867,583.27455 767.4867,583.30339 767.77517,583.15916 C 770.0834,581.25511 772.1027,578.88948 774.12198,576.81235 C 775.27634,575.83146 776.14175,574.50441 777.58409,573.98511 C 778.4495,573.61005 779.89185,573.81203 780.75726,573.81203 C 783.64244,573.81203 786.52713,573.81203 789.12384,573.81203 C 789.12384,574.87942 788.25843,576.35075 787.68149,577.07197 C 786.8156,577.79319 785.37326,577.47588 784.50785,577.93743 C 783.35396,578.39903 777.58409,584.54391 777.87257,585.03436 C 778.16103,586.39026 780.46879,588.09233 781.62315,589.2463 C 783.64244,591.32347 785.37326,593.4006 787.39254,595.50657 C 788.25843,596.22779 788.83537,597.20869 789.70078,597.67029 C 790.85465,598.27612 792.29701,598.36266 793.73936,598.59344 C 794.31677,598.70883 795.47065,598.59344 796.04759,599.08388 C 796.33606,599.3435 796.04759,600.15132 795.75912,600.41094 C 795.47065,601.16101 794.31677,603.35356 793.45088,603.67088 C 792.29701,604.13249 790.56619,603.84401 789.12384,603.84401 C 787.39254,603.84401 785.95019,603.84401 784.21937,603.84401 C 783.35396,603.84401 781.91162,603.9594 781.04574,603.72858 C 779.02644,603.20934 777.29563,601.36298 775.85328,599.80511 C 774.41045,598.21843 772.67963,596.6317 770.94881,595.04502 C 770.66034,594.58342 767.77517,591.78503 767.77517,591.5254 C 767.4867,591.5254 767.4867,591.66964 767.19823,591.66964 C 767.19823,596.25669 766.04435,599.40125 771.52575,599.40125 C 771.52575,600.38209 770.66034,603.06505 769.79494,603.5555 C 768.92953,604.13249 767.19823,603.84401 765.75588,603.84401 C 761.13989,603.84401 756.23591,603.87286 751.33144,603.87286 C 751.33144,603.75743 751.33144,603.64204 751.33144,603.4978 C 751.90838,602.28613 751.90838,601.04562 752.77379,600.03593 C 753.6392,599.14158 755.08154,599.19928 755.37002,597.90106 C 755.65849,596.97791 755.65849,595.76624 755.65849,594.72766 C 755.65849,592.93901 755.65849,591.15034 755.65849,589.36174 C 755.65849,584.11116 755.65849,578.86063 755.65849,573.61005 C 755.65849,571.18676 755.94695,568.41721 755.65849,566.13811 C 755.08154,564.00329 751.61991,565.04188 751.61991,564.32066 C 751.33144,563.62823 751.61991,562.79162 751.61991,562.18579 C 751.90838,561.55111 751.90838,560.91642 752.48532,560.39713 C 753.06226,559.56053 764.02506,557.82957 764.31353,557.68533",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path686"}),_.createElement("path",{d:"M 698.82566,558.06039 C 700.84542,557.4257 702.28777,558.06039 703.73012,558.86815 C 706.90376,560.65681 707.19224,565.56117 704.59553,567.89791 C 701.71083,570.35011 697.38331,570.43664 693.34425,570.32125 C 692.47884,570.29241 691.61343,570.37895 691.03649,569.85966 C 690.45956,567.09016 694.49861,561.49342 696.80636,559.44514 C 697.38331,558.98353 698.24872,558.32 698.82566,558.06039",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path696"}),_.createElement("path",{d:"M 704.01859,572.02337 C 704.59553,572.08107 704.884,572.13876 705.17246,572.19645 C 706.03835,572.60036 705.7494,578.02397 705.7494,579.35107 C 705.7494,583.765 705.7494,588.17891 705.7494,592.59284 C 705.7494,594.03528 705.46094,596.28554 706.03835,597.49716 C 706.32683,598.56459 707.4807,598.85311 708.63458,599.3435 C 709.21152,599.71857 708.92305,600.46864 708.63458,601.01677 C 708.63458,601.13217 708.63458,601.24755 708.63458,601.33414 C 708.63458,601.42068 708.63458,601.47838 708.63458,601.56491 C 708.05764,602.31498 707.76917,603.0939 707.4807,603.87286 C 702.28777,603.87286 697.09484,603.87286 691.9019,603.87286 C 691.61343,603.87286 690.17108,603.67088 689.88262,603.67088 C 689.88262,603.64204 690.45956,600.93024 691.32497,600.09363 C 692.19038,599.05504 693.05579,598.99734 693.6332,597.5549 C 693.92167,596.37207 693.92167,594.87189 693.92167,593.48714 C 693.92167,590.77533 693.92167,587.97694 693.6332,585.43821 C 693.6332,584.02462 694.21014,581.8898 693.6332,580.70698 C 693.05579,579.92802 690.74803,579.35107 689.88262,579.35107 C 689.59415,579.35107 689.59415,579.1491 689.59415,579.00486 C 690.17108,577.44703 689.88262,575.22563 692.19038,575.22563 C 692.76731,575.16793 693.05579,575.11024 693.6332,575.05254 C 694.49861,574.82171 695.65249,574.5621 696.5179,574.33132 C 699.11412,573.78318 701.9993,573.11966 704.01859,572.02337",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path706"}),_.createElement("path",{d:"M 723.92443,572.19645 C 725.65573,572.74459 724.78984,575.94685 725.07879,577.53357 C 725.07879,577.7355 725.07879,577.90858 725.36726,577.90858 C 726.52114,577.76435 727.96349,576.81235 729.11736,576.20651 C 732.00254,574.76402 736.61805,572.74459 738.92629,572.65805 C 739.7917,572.60036 740.94557,572.71574 741.81098,572.77344 C 744.11922,572.91767 745.85004,574.99484 746.71545,577.07197 C 747.00392,578.57211 747.00392,580.62044 747.00392,582.3802 C 747.00392,586.73643 747.00392,591.09265 747.00392,595.44888 C 747.00392,596.89137 747.58085,598.18958 748.73474,598.99734 C 749.31167,599.25697 749.60015,599.48779 750.17756,599.71857 C 750.46604,599.9205 750.17756,600.35324 750.17756,600.61287 C 749.88861,601.47838 749.60015,602.74774 748.73474,603.35356 C 747.58085,604.24788 744.11922,603.84401 742.38792,603.84401 C 740.08016,603.84401 738.06088,603.78632 736.90652,602.34383 C 733.15642,598.47805 739.21476,580.0723 731.4256,580.59159 C 730.27124,580.64928 729.40583,581.11083 728.54042,581.63012 C 724.2129,584.05346 725.07879,587.74617 725.07879,592.59284 C 725.07879,594.52573 724.78984,597.09329 725.94419,598.4492 C 726.8096,599.54549 728.54042,598.76657 729.40583,599.57433 C 729.6943,599.94934 728.54042,601.96882 728.25195,602.37268 C 728.25195,602.80543 727.96349,603.41127 727.38654,603.64204 C 726.23267,604.19018 724.2129,603.84401 722.77055,603.84401 C 718.73198,603.84401 714.40445,603.87286 710.07693,603.87286 C 710.3654,602.45922 710.65387,600.67061 711.51928,599.71857 C 712.38517,598.93965 713.25057,598.67998 713.53904,597.61259 C 713.82752,596.11241 713.53904,593.89105 713.53904,592.24663 C 713.53904,588.84244 713.53904,585.43821 713.53904,582.03404 C 713.53904,581.54359 713.25057,581.08199 713.25057,580.70698 C 712.38517,579.63954 710.94234,579.69723 709.78846,579.69723 C 710.07693,578.45672 710.3654,577.21621 710.65387,575.94685 C 711.80774,575.68722 712.96211,575.39871 714.11598,575.13908 C 717.28915,574.18704 720.75126,573.69664 723.92443,572.19645",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path710"}),_.createElement("path",{d:"M 655.55186,579.00486 C 656.99468,579.00486 653.2441,585.87097 652.09021,586.30372 C 650.93634,586.82296 648.02237,586.50565 646.49363,586.50565 C 644.01259,586.50565 641.50276,586.50565 638.99246,586.50565 C 638.73278,586.50565 638.32911,586.59219 638.27152,586.33257 C 638.21392,586.33257 641.30068,579.46646 642.0797,579.1491 C 643.0315,578.7164 652.09021,579.00486 655.55186,579.00486",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path714"}),_.createElement("path",{d:"M 629.58767,564.95534 C 627.71286,562.4743 625.77996,559.24316 622.83719,557.97379 C 621.65452,557.4257 620.21169,557.56994 618.76934,557.4834 C 614.96115,557.25257 589.83358,557.4834 588.16036,557.33912 C 587.52582,558.14692 586.19867,560.42599 586.42955,561.57995 C 586.71801,563.10899 590.5838,561.89732 591.36281,563.54169 C 591.82407,564.55143 591.5644,566.31124 591.5644,567.55176 C 591.5644,571.18676 591.5644,574.82171 591.5644,578.45672 C 591.5644,582.46678 591.5644,586.44795 591.5644,590.42912 C 591.53561,592.36201 591.85287,594.64111 591.30521,596.31438 C 590.78587,597.78567 589.37184,597.58374 588.30484,598.33382 C 587.49703,598.88196 585.9966,602.40152 586.45835,603.35356 C 586.83321,604.10364 594.2475,603.87286 595.68985,603.87286 C 600.76759,603.87286 605.81605,603.87286 610.89379,603.87286 C 615.65377,603.87286 621.10638,604.56523 624.59681,602.14191 C 625.60669,601.44953 626.21243,600.43979 626.90505,599.45894 C 628.20292,597.52605 629.53007,595.62201 630.82842,593.71792 C 632.47285,591.26578 634.54973,588.8136 635.81929,586.15944 C 636.6271,584.42853 637.00196,582.40905 637.00196,580.24538 C 637.00196,573.40812 633.25185,569.83081 629.58767,564.95534 z M 613.28794,567.29209 C 614.96115,569.57119 616.63438,571.82144 618.3076,574.10049 C 619.40388,575.62953 620.50016,577.12967 621.56763,578.65865 C 621.94298,579.37993 622.02938,580.38961 621.9137,581.31281 C 621.59644,583.70731 619.51955,585.58245 618.1348,587.45765 C 616.77885,589.21745 615.4229,590.97726 614.09575,592.73707 C 612.82668,594.41034 611.52832,596.05471 610.25876,597.69913 C 609.7975,598.10299 609.22008,598.16074 608.75882,598.5069 C 607.69134,598.5069 606.24899,598.70883 605.75845,597.75682 C 605.21031,596.71824 605.52757,591.81387 605.52757,590.25604 C 605.52757,581.80321 605.55637,573.32158 605.55637,564.86875 C 605.58518,564.14753 605.64278,563.59939 606.24899,563.25322 C 606.24899,563.19552 606.24899,563.13783 606.24899,563.08014 C 607.63374,563.08014 609.19128,562.90701 610.25876,563.57054",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path718"})))),E3e=e=>_.createElement("svg",{width:128,height:44,viewBox:"0 0 128 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("path",{d:"M3.03547 11.8505C6.36347 8.70536 11.6298 5.99907 16.2378 7.82764C19.3098 9.10764 20.0412 12.5819 19.7852 15.5442C19.456 19.5671 17.408 23.6265 14.7383 26.6254C13.056 28.5271 9.80119 31.2334 7.05833 31.0871C6.40004 31.0505 5.70519 31.1236 5.12004 31.4528C5.01033 31.5259 4.13262 32.0379 4.75433 32.0745C8.19204 32.2574 11.7029 30.6116 14.4823 28.7099C18.9806 25.6014 21.9429 20.1888 22.528 14.8128C23.0035 10.4608 20.8092 6.87678 16.3475 6.32821C10.8252 5.63336 4.49833 8.41279 0.548615 12.1431C0.0731868 12.6185 2.59662 12.2528 3.03547 11.8505ZM3.62062 31.2334C5.01033 23.7362 7.02176 15.4345 11.3006 8.96136C11.4103 8.81507 9.03319 8.85164 8.59433 9.50993C4.31547 16.0196 2.26747 24.3579 0.877758 31.9648C0.841187 32.1111 3.47433 32.0014 3.62062 31.2334Z",fill:"url(#paint0_linear_3809_68339)"}),_.createElement("path",{d:"M35.5652 16.6414C36.6258 16.9705 36.8086 18.2871 36.6989 19.3111C36.6623 19.7134 39.4418 19.3111 39.4418 18.5796C39.4418 17.8482 39.4052 17.1168 38.9663 16.4951C36.9183 13.4962 30.9572 16.3488 29.348 18.2871C29.6406 17.4094 29.9698 16.5316 30.2989 15.6539C30.4452 15.2516 29.3846 15.4345 29.2383 15.4711C28.8726 15.5442 28.5435 15.6539 28.2143 15.8002C28.068 15.8734 27.7023 16.0196 27.6292 16.1659C25.764 21.3225 24.228 26.5522 23.1309 31.9282C23.0578 32.3305 25.6543 32.0745 25.8738 31.3065C26.8612 27.9419 27.9218 24.5408 29.5675 21.4322C29.9332 20.7374 30.3355 20.0425 30.8109 19.3476C32.676 16.7145 34.6143 16.3488 35.5652 16.6414Z",fill:"url(#paint1_linear_3809_68339)"}),_.createElement("path",{d:"M54.1966 27.7225C52.1852 29.4779 49.6983 31.3065 46.8823 31.0505C45.1635 30.9042 43.7006 29.8802 43.0789 28.2711C41.616 24.3579 46.0778 19.4208 49.0766 17.5922C51.0515 16.3488 54.7818 16.2025 54.6355 19.3842C54.4526 23.4071 48.9669 24.6505 45.8949 25.0162C45.2732 25.0894 42.896 26.1865 44.688 25.9671C48.9303 25.4916 56.1715 24.1751 57.3418 19.0916C58.4389 14.2642 50.9783 15.8734 48.784 16.7511C44.5052 18.3968 37.52 25.3088 40.9578 30.1728C42.3475 32.1476 45.1269 32.2574 47.248 31.9648C50.7955 31.5259 54.0138 29.7339 56.6835 27.4299C57.1589 26.9911 54.6721 27.3202 54.1966 27.7225Z",fill:"url(#paint2_linear_3809_68339)"}),_.createElement("path",{d:"M75.4038 16.2391C69.9546 14.7396 64.542 17.5191 61.1409 21.7248C59.2026 24.1385 57.0449 28.5271 60.0072 31.0505C62.8598 33.4276 67.9798 30.3922 70.2106 28.6368C70.8689 28.1614 71.4541 27.6494 72.0026 27.1008C71.8929 28.7099 72.0758 30.3191 72.5146 31.8916C72.6609 32.4402 75.4038 31.6722 75.2575 31.1602C74.4529 28.4174 74.6358 25.6014 75.3306 22.8585C76.5375 20.8471 77.3786 18.6162 77.9272 16.2025C77.9638 15.9831 75.4769 16.2756 75.2209 16.8242C74.1603 19.0185 73.1363 21.3591 72.5512 23.7362C72.2952 24.2116 71.966 24.6505 71.6369 25.0894C70.0643 27.1739 65.6392 32.3305 62.6403 30.1728C60.8118 28.8562 61.1775 26.0402 61.9089 24.2848C62.6769 22.4196 64.1032 20.7008 65.566 19.3111C67.7603 17.2265 70.174 16.4219 73.1363 17.2265C73.7215 17.4094 76.0986 16.4585 75.4038 16.2391Z",fill:"url(#paint3_linear_3809_68339)"}),_.createElement("path",{d:"M104.945 17.0436C105.53 17.5922 105.786 18.9454 105.822 19.9694C105.895 21.6151 105.566 23.2974 105.201 24.9431C104.652 27.2471 103.921 29.6242 103.079 31.8185C102.933 32.2208 103.921 32.1111 104.177 32.0745C104.689 32.0014 105.603 31.8185 105.786 31.3065C106.371 29.7339 106.919 28.0151 107.358 26.4059C107.834 24.7968 108.199 23.1876 108.419 21.5785C108.675 19.6036 108.894 16.3488 106.517 15.5076C105.786 15.2516 105.018 15.2882 104.25 15.3614C103.189 15.4345 102.129 15.7271 101.178 16.1659C99.6783 16.8242 98.4715 17.8482 97.4109 19.1282C97.1915 19.4208 96.972 19.6768 96.7892 19.9694C96.7892 19.6036 96.7526 19.2745 96.716 18.9088C96.5698 17.8848 96.2772 16.8608 95.5092 16.1294C94.5949 15.2516 93.1321 15.2151 91.9618 15.3979C90.0601 15.6539 88.2315 16.3854 86.732 17.5922C85.8909 18.3236 85.1229 19.1648 84.428 20.0791C84.9035 18.5796 85.3789 17.1168 85.8909 15.6539C86.0372 15.2516 85.0863 15.3979 84.8303 15.4711C84.5012 15.5442 84.1355 15.6539 83.8063 15.8002C83.66 15.8734 83.2943 16.0196 83.2212 16.1659C81.356 21.2859 79.9663 26.6254 78.9423 31.9648C78.8692 32.2939 80.2589 32.0014 81.0635 31.7088C81.3926 31.5991 81.612 31.4528 81.6486 31.3065C82.636 27.9054 83.9526 24.5042 85.8178 21.4322C86.7686 19.9328 88.2315 18.0311 89.548 17.0436C90.6086 16.2391 92.0349 16.1294 92.9492 17.0436C93.6441 17.8116 93.9001 18.8722 93.9732 19.8596C94.1195 21.2128 93.9732 22.5659 93.7538 23.8825C93.4246 25.6745 92.9492 27.3202 92.3641 29.1854L91.5229 31.8916C91.4863 32.0379 91.5961 32.0745 91.7423 32.1111C92.2543 32.1842 94.0463 31.9282 94.2292 31.3431C94.9606 29.1488 95.3995 27.4299 96.3503 25.2356C97.0818 23.5168 97.9229 21.7979 98.9103 20.2254C100.3 18.0676 103.299 15.5076 104.945 17.0436Z",fill:"url(#paint4_linear_3809_68339)"}),_.createElement("path",{d:"M123.304 27.7225C121.292 29.4779 118.805 31.3065 115.989 31.0505C114.271 30.9042 112.808 29.8802 112.186 28.2711C110.723 24.3579 115.185 19.4208 118.184 17.5922C120.159 16.3488 123.889 16.2025 123.743 19.3842C123.56 23.4071 118.074 24.6505 115.002 25.0162C114.38 25.0894 112.003 26.1865 113.795 25.9671C118.037 25.4916 125.279 24.1751 126.449 19.0916C127.546 14.2642 120.085 15.8734 117.891 16.7511C113.612 18.3968 106.627 25.3088 110.065 30.1728C111.455 32.1476 114.234 32.2574 116.355 31.9648C119.903 31.5259 123.121 29.7339 125.791 27.4299C126.266 26.9911 123.779 27.3202 123.304 27.7225Z",fill:"url(#paint5_linear_3809_68339)"}),_.createElement("defs",null,_.createElement("linearGradient",{id:"paint0_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint1_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint2_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint3_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint4_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint5_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})))),SZ=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...e},_.createElement("g",null,_.createElement("path",{d:"M45.12 24.5c0-1.56-.14-3.06-.4-4.5H24v8.51h11.84c-.51 2.75-2.06 5.08-4.39 6.64v5.52h7.11c4.16-3.83 6.56-9.47 6.56-16.17z"}),_.createElement("path",{d:"M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.11-5.52c-1.97 1.32-4.49 2.1-7.45 2.1-5.73 0-10.58-3.87-12.31-9.07H4.34v5.7C7.96 41.07 15.4 46 24 46z"}),_.createElement("path",{d:"M11.69 28.18C11.25 26.86 11 25.45 11 24s.25-2.86.69-4.18v-5.7H4.34A21.991 21.991 0 0 0 2 24c0 3.55.85 6.91 2.34 9.88l7.35-5.7z"}),_.createElement("path",{d:"M24 10.75c3.23 0 6.13 1.11 8.41 3.29l6.31-6.31C34.91 4.18 29.93 2 24 2 15.4 2 7.96 6.93 4.34 14.12l7.35 5.7c1.73-5.2 6.58-9.07 12.31-9.07z"}))),wZ=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:98.36,height:40,viewBox:"0 0 98.36 40",...e},_.createElement("path",{fill:"#0058ab",d:"M98.36 40H0V0h98.36v40Z"}),_.createElement("path",{fill:"#fbd914",d:"M1.92 20c0 9.66 19.81 17.67 47.26 17.67S96.44 29.66 96.44 20 76.63 2.33 49.18 2.33 1.92 10.34 1.92 20Z"}),_.createElement("path",{fill:"#0058ab",d:"M46.39 25.67c.29.43.63.83 1.04 1.25H36.79c0-.42-.4-1.28-.86-1.96l-2.9-4.38v5.09c0 .42 0 .83.21 1.25h-8.87c.21-.42.21-.83.21-1.25v-12.1c0-.42 0-.83-.21-1.25h8.87c-.21.42-.21.83-.21 1.25v5.28s2.84-3.68 3.48-4.55c.49-.66 1.11-1.57 1.11-1.98h9.24c-.64.42-1.34 1.19-1.92 1.89l-3.39 4.13 4.82 7.33Zm2.79-12.1v12.1c0 .42 0 .83-.21 1.25h17.11v-4.05c-.42.21-.83.21-1.25.21h-7.2v-1.92h6.92v-3.07h-6.92v-1.92h7.2c.42 0 .83 0 1.25.2v-4.05H48.97c.21.42.21.83.21 1.25Zm40.63 12.09c.16.42.32.84.69 1.26h-9.28c.05-.42-.12-.83-.28-1.25l-.33-.84-.08-.22h-5.34l-.08.22-.3.84c-.15.42-.3.83-.24 1.25h-7.32c.36-.42.51-.83.66-1.25l4.39-12.1c.15-.42.3-.83.25-1.25h12.36c-.11.42.11.83.27 1.25l4.63 12.09Zm-10.47-4.12-1.29-3.38a9.4 9.4 0 0 1-.29-.96s-.1.54-.25.96l-1.23 3.38h3.05Zm-59.15-9.22h-9.64c.21.42.21.83.21 1.25v12.1c0 .42 0 .83-.21 1.25h9.64c-.21-.42-.21-.83-.21-1.25v-12.1c0-.42 0-.83.21-1.25Zm66.64 1.15c0-1.12.81-1.92 1.92-1.92s1.92.81 1.92 1.92-.81 1.92-1.92 1.92-1.92-.81-1.92-1.92Zm.39 0c0 .85.64 1.54 1.54 1.54.85 0 1.54-.64 1.54-1.54 0-.85-.64-1.54-1.54-1.54s-1.54.64-1.54 1.54Zm1.15 1.15h-.34v-2.3h.86c.4 0 .72.35.72.75 0 .28-.17.56-.41.67l.5.89h-.38l-.46-.81h-.5v.81Zm0-1.15h.47c.24 0 .43-.17.43-.41s-.19-.41-.43-.41h-.47v.81Z"})),A3e=e=>_.createElement("svg",{width:87,height:22,viewBox:"0 0 87 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("path",{d:"M20.227 6.9772C20.8627 3.67692 19.1349 0.197266 15.3536 0.197266H9.45329L8.47534 5.23738H12.925C13.8377 5.23738 14.4082 6.06245 14.2126 7.04895C14.017 8.05338 13.1369 8.82464 12.2241 8.82464H7.72559L13.7562 21.0931H20.064L15.9892 12.8603C17.0813 12.2146 19.5587 10.403 20.227 6.9772Z",fill:"#6CBB86"}),_.createElement("path",{d:"M1.04314 15.6945L0 21.1112H5.3787L7.72577 8.84277C4.44965 8.96833 1.8744 11.3718 1.04314 15.6945Z",fill:"#6CBB86"}),_.createElement("path",{d:"M4.58026 5.56026C5.98198 5.56026 7.12291 4.32266 7.12291 2.78013C7.12291 1.23761 5.98198 0 4.58026 0C3.17853 0 2.0376 1.23761 2.0376 2.78013C2.0376 4.30472 3.17853 5.56026 4.58026 5.56026Z",fill:"#6CBB86"}),_.createElement("path",{d:"M82.2616 0.197266H77.1763L74.5684 13.8468C73.8024 17.8466 76.3939 21.5415 82.4572 21.5415C82.5061 21.5415 82.6039 21.5236 82.6039 21.5236L83.6307 16.1785C81.7074 16.5014 79.2463 15.7122 79.6863 13.4163L80.3383 10.0084H84.8205L85.7496 5.21944H81.2673L82.2616 0.197266Z",fill:"#6CBB86"}),_.createElement("path",{d:"M50.1036 13.4343C49.7124 15.4432 48.2129 16.8422 46.094 16.8422C43.9751 16.8422 43.1438 15.3714 43.5513 13.2908C43.9588 11.2281 45.3116 10.0264 47.4305 10.0264C49.5331 10.0264 50.4947 11.4254 50.1036 13.4343ZM48.3107 5.32706C47.3001 5.32706 45.5561 5.61404 44.9693 5.95483L46.0777 0.197266H41.0087L38.4497 13.4343C37.537 18.1157 40.4219 21.5594 45.2138 21.5594C50.5599 21.5594 54.1131 19.0304 55.1237 13.793C56.0853 8.73496 52.6951 5.32706 48.3107 5.32706Z",fill:"#6CBB86"}),_.createElement("path",{d:"M68.1628 13.4344C67.7717 15.4432 66.321 16.8423 64.2022 16.8423C62.0833 16.8423 61.1705 15.4612 61.578 13.3806C61.9855 11.3179 63.4035 10.0265 65.5224 10.0265C67.625 10.0265 68.554 11.4255 68.1628 13.4344ZM66.4188 5.32715C61.6269 5.32715 57.4706 8.43013 56.509 13.4523C55.5473 18.4565 58.5138 21.5775 63.1916 21.5775C68.9289 21.5775 72.2865 18.4565 73.2318 13.4523C74.1935 8.43013 71.2108 5.32715 66.4188 5.32715Z",fill:"#6CBB86"}),_.createElement("path",{d:"M31.9463 13.4344C31.5552 15.4432 30.1045 16.8423 27.9857 16.8423C25.8668 16.8423 24.954 15.4612 25.3615 13.3806C25.769 11.3179 27.187 10.0265 29.3059 10.0265C31.4085 10.0265 32.3375 11.4255 31.9463 13.4344ZM30.2186 5.32715C25.4267 5.32715 21.2704 8.43013 20.3088 13.4523C19.3471 18.4565 22.3136 21.5775 26.9914 21.5775C32.7287 21.5775 36.0863 18.4565 37.0317 13.4523C37.977 8.43013 35.0106 5.32715 30.2186 5.32715Z",fill:"#6CBB86"}),_.createElement("path",{d:"M84.9833 1.14786H84.7388V1.63214H84.9833C85.1789 1.63214 85.2604 1.54246 85.2604 1.38103C85.2604 1.27341 85.2115 1.14786 84.9833 1.14786ZM85.5864 2.4034H85.3419L84.9344 1.82944H84.7225V2.4034H84.5106V0.950558H84.9833C85.3419 0.950558 85.4723 1.18373 85.4723 1.38103C85.4723 1.6142 85.3419 1.75769 85.1463 1.79357L85.5864 2.4034ZM84.967 2.76213C85.5049 2.76213 85.9449 2.27785 85.9449 1.68595C85.9449 1.09405 85.5049 0.609767 84.967 0.609767C84.4291 0.609767 83.989 1.09405 83.989 1.68595C83.989 2.27785 84.4291 2.76213 84.967 2.76213ZM84.967 0.394531C85.6027 0.394531 86.1405 0.98643 86.1405 1.68595C86.1405 2.4034 85.619 2.97736 84.967 2.97736C84.315 2.97736 83.7935 2.4034 83.7935 1.68595C83.7935 0.98643 84.315 0.394531 84.967 0.394531Z",fill:"#6CBB86"})),k3e=e=>_.createElement("svg",{width:225,height:99,viewBox:"0 0 225 99",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{clipPath:"url(#clip0_415_130964)"},_.createElement("path",{d:"M134.874 68.7831H165.274V81.2487H120.202V17.2373H134.874V68.7831Z",fill:"#707070"}),_.createElement("path",{d:"M197.534 56.8451H209.482V68.0462C207.288 68.8892 202.987 69.7323 198.905 69.7323C185.694 69.7323 181.301 62.9711 181.301 49.241C181.301 36.1374 185.483 28.4265 198.682 28.4265C206.039 28.4265 210.213 30.7533 213.675 35.1904L222.802 26.7376C217.227 18.726 207.5 16.2981 198.365 16.2981C177.83 16.2897 167.033 27.5807 167.033 49.1314C167.033 70.5753 176.79 82.2007 198.256 82.2007C208.113 82.2007 217.748 79.6716 222.992 75.9651V44.9078H197.534V56.8451Z",fill:"#707070"}),_.createElement("path",{d:"M83.831 84.5045C103.008 65.1736 103.007 33.831 83.829 14.499C64.6508 -4.83307 33.5576 -4.83396 14.3805 14.497C-4.79664 33.8279 -4.79576 65.1705 14.3825 84.5025C33.5607 103.835 64.6538 103.835 83.831 84.5045Z",fill:"#A50034"}),_.createElement("path",{d:"M61.1184 66.6079H51.0826V28.5984H47.3721V70.3594H51.0909V70.3341H61.1268L61.1184 66.6079Z",fill:"white"}),_.createElement("path",{d:"M86.1485 51.0737H61.1759V47.3447H89.8088C89.8479 48.0669 89.8674 48.7891 89.8674 49.5198C89.8674 71.9725 71.7136 90.1707 49.3252 90.1707C26.9368 90.1707 8.78027 71.9809 8.78027 49.5169C8.78027 27.053 26.9313 8.86597 49.3224 8.86597C49.9134 8.86597 50.5016 8.87814 51.0871 8.9025V12.6034C50.5016 12.5772 49.9153 12.5641 49.328 12.5641C28.9775 12.5641 12.474 29.11 12.474 49.5169C12.474 69.9239 28.9747 86.4726 49.328 86.4726C69.121 86.4726 85.2899 70.8175 86.1457 51.1777L86.1485 51.0737Z",fill:"white"}),_.createElement("path",{d:"M34.2066 39.8496C35.3263 39.8441 36.4193 39.5043 37.3476 38.8732C38.276 38.2421 38.9981 37.3479 39.4227 36.3036C39.8474 35.2592 39.9557 34.1114 39.7339 33.005C39.5121 31.8987 38.9701 30.8834 38.1764 30.0872C37.3827 29.2911 36.3728 28.7497 35.2742 28.5316C34.1756 28.3134 33.0374 28.4282 32.0035 28.8614C30.9695 29.2946 30.086 30.0268 29.4645 30.9657C28.8429 31.9046 28.5112 33.008 28.5112 34.1367C28.5131 34.8888 28.6618 35.6331 28.949 36.3273C29.2362 37.0214 29.6563 37.6517 30.1851 38.1822C30.714 38.7127 31.3413 39.133 32.0313 39.4191C32.7213 39.7052 33.4605 39.8515 34.2066 39.8496Z",fill:"white"})),_.createElement("defs",null,_.createElement("clipPath",{id:"clip0_415_130964"},_.createElement("rect",{width:223,height:99,fill:"white"})))),_3e=e=>_.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("title",null,"Lidl"),_.createElement("path",{d:"M0 0v24h24V0zm.209.209h23.582v23.582H.209zm11.789.625C5.83.834.83 5.834.83 12.002c0 6.168 5 11.168 11.168 11.168 6.167 0 11.167-5 11.168-11.166C23.165 5.837 18.166.837 12 .834zm.002.709c5.777 0 10.46 4.682 10.46 10.459v.004c-.004 5.773-4.686 10.452-10.46 10.453-5.777 0-10.46-4.68-10.46-10.457C1.54 6.225 6.222 1.543 12 1.543zM9.229 7.85c-.645 0-1.166.521-1.166 1.166v.004c0 1.044 1.261 1.567 1.999.829.738-.738.215-2-.829-1.999zM2.73 10.059v.71h.551v2.465h-.55v.713h4.644v-.65l.537-.54 1.486 1.491-.55.547.357.36 2.973-2.977v-.713l-.826.83-1.848-1.848-2.129 2.133v-.576l-1.904 1.06V10.77h.549v-.711zm8.905 0v.71h.549v2.465h-.555v.713h3.129c2.325 0 2.355-3.888.008-3.888zm4.963 0v.71h.55v2.465h-.55v.713h4.648v-1.943l-1.906 1.06V10.77h.55v-.711zm-2.43 1.21h.133c.687 0 .685 1.461.023 1.461h-.156v-1.46z"})),CZ=e=>_.createElement("svg",{id:"a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 80.2 14.3",...e},_.createElement("defs",null,_.createElement("style",null,`
|
|
147
|
+
`:null,F1e=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${ye(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ye(n)}`,i&&"circleDisableShrink"]};return et(o,$1e,t)},B1e=me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ye(n.color)}`]]}})(Ge(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:L1e||{animation:`${xk} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),z1e=me("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),H1e=me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ye(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ge(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:N1e||{animation:`${Sk} 1.4s ease-in-out infinite`}}]}))),U1e=me("circle",{name:"MuiCircularProgress",slot:"Track"})(Ge(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),zr=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,enableTrackSlot:a=!1,size:l=40,style:c,thickness:u=3.6,value:f=0,variant:h="indeterminate",...g}=r,y={...r,color:o,disableShrink:s,size:l,thickness:u,value:f,variant:h,enableTrackSlot:a},b=F1e(y),v={},S={},C={};if(h==="determinate"){const w=2*Math.PI*((ja-u)/2);v.strokeDasharray=w.toFixed(3),C["aria-valuenow"]=Math.round(f),v.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,S.transform="rotate(-90deg)"}return m.jsx(B1e,{className:Te(b.root,i),style:{width:l,height:l,...S,...c},ownerState:y,ref:n,role:"progressbar",...C,...g,children:m.jsxs(z1e,{className:b.svg,ownerState:y,viewBox:`${ja/2} ${ja/2} ${ja} ${ja}`,children:[a?m.jsx(U1e,{className:b.track,ownerState:y,cx:ja,cy:ja,r:(ja-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,m.jsx(H1e,{className:b.circle,style:v,ownerState:y,cx:ja,cy:ja,r:(ja-u)/2,fill:"none",strokeWidth:u})]})})});function V1e(e){return Qe("MuiIconButton",e)}const LN=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),W1e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o,loading:s}=e,a={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${ye(r)}`,i&&`edge${ye(i)}`,`size${ye(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return et(a,V1e,t)},q1e=me(ba,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ye(n.color)}`],n.edge&&t[`edge${ye(n.edge)}`],t[`size${ye(n.size)}`]]}})(Ge(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ge(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${LN.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${LN.loading}`]:{color:"transparent"}}))),G1e=me("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),_n=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:f,loading:h=null,loadingIndicator:g,...y}=r,b=Ou(f),v=g??m.jsx(zr,{"aria-labelledby":b,color:"inherit",size:16}),S={...r,edge:i,color:a,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:v,size:u},C=W1e(S);return m.jsxs(q1e,{id:h?b:f,className:Te(C.root,s),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...y,ownerState:S,children:[typeof h=="boolean"&&m.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:m.jsx(G1e,{className:C.loadingIndicator,ownerState:S,children:h&&v})}),o]})}),K1e=_e(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),Y1e=_e(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),X1e=_e(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Z1e=_e(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),yX=_e(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),J1e=e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${ye(n||r)}`,`${t}${ye(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return et(o,l1e,i)},Q1e=me(Ur,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ye(n.color||n.severity)}`]]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Fn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${PN.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Fn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${PN.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Fn(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),eye=me("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),tye=me("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),nye=me("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),NN={success:m.jsx(K1e,{fontSize:"inherit"}),warning:m.jsx(Y1e,{fontSize:"inherit"}),error:m.jsx(X1e,{fontSize:"inherit"}),info:m.jsx(Z1e,{fontSize:"inherit"})},vn=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAlert"}),{action:i,children:o,className:s,closeText:a="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=NN,onClose:g,role:y="alert",severity:b="success",slotProps:v={},slots:S={},variant:C="standard",...w}=r,A={...r,color:l,severity:b,variant:C,colorSeverity:l||b},E=J1e(A),D={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...S},slotProps:{...u,...v}},[O,T]=lt("root",{ref:n,shouldForwardComponentProp:!0,className:Te(E.root,s),elementType:Q1e,externalForwardedProps:{...D,...w},ownerState:A,additionalProps:{role:y,elevation:0}}),[I,N]=lt("icon",{className:E.icon,elementType:eye,externalForwardedProps:D,ownerState:A}),[$,R]=lt("message",{className:E.message,elementType:tye,externalForwardedProps:D,ownerState:A}),[F,j]=lt("action",{className:E.action,elementType:nye,externalForwardedProps:D,ownerState:A}),[z,L]=lt("closeButton",{elementType:_n,externalForwardedProps:D,ownerState:A}),[q,V]=lt("closeIcon",{elementType:yX,externalForwardedProps:D,ownerState:A});return m.jsxs(O,{...T,children:[f!==!1?m.jsx(I,{...N,children:f||h[b]||NN[b]}):null,m.jsx($,{...R,children:o}),i!=null?m.jsx(F,{...j,children:i}):null,i==null&&g?m.jsx(F,{...j,children:m.jsx(z,{size:"small","aria-label":a,title:a,color:"inherit",onClick:g,...L,children:m.jsx(q,{fontSize:"small",...V})})}):null]})});function rye(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,s=Od();_.useEffect(()=>{if(!i)return;function S(C){C.defaultPrevented||C.key==="Escape"&&r?.(C,"escapeKeyDown")}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[i,r]);const a=Ni((S,C)=>{r?.(S,C)}),l=Ni(S=>{!r||S==null||s.start(S,()=>{a(null,"timeout")})});_.useEffect(()=>(i&&l(t),s.clear),[i,t,l,s]);const c=S=>{r?.(S,"clickaway")},u=s.clear,f=_.useCallback(()=>{t!=null&&l(o??t*.5)},[t,o,l]),h=S=>C=>{const w=S.onBlur;w?.(C),f()},g=S=>C=>{const w=S.onFocus;w?.(C),u()},y=S=>C=>{const w=S.onMouseEnter;w?.(C),u()},b=S=>C=>{const w=S.onMouseLeave;w?.(C),f()};return _.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,i,f,u]),{getRootProps:(S={})=>{const C={...Yi(e),...Yi(S)};return{role:"presentation",...S,...C,onBlur:h(C),onFocus:g(C),onMouseEnter:y(C),onMouseLeave:b(C)}},onClickAway:c}}function gf(e){return parseInt(_.version,10)>=19?e?.props?.ref||null:e?.ref||null}function FN(e){return e.substring(2).toLowerCase()}function iye(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function oye(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,s=_.useRef(!1),a=_.useRef(null),l=_.useRef(!1),c=_.useRef(!1);_.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Tr(gf(t),a),f=Ni(y=>{const b=c.current;c.current=!1;const v=Di(a.current);if(!l.current||!a.current||"clientX"in y&&iye(y,v))return;if(s.current){s.current=!1;return}let S;y.composedPath?S=y.composedPath().includes(a.current):S=!v.documentElement.contains(y.target)||a.current.contains(y.target),!S&&(n||!b)&&i(y)}),h=y=>b=>{c.current=!0;const v=t.props[y];v&&v(b)},g={ref:u};return o!==!1&&(g[o]=h(o)),_.useEffect(()=>{if(o!==!1){const y=FN(o),b=Di(a.current),v=()=>{s.current=!0};return b.addEventListener(y,f),b.addEventListener("touchmove",v),()=>{b.removeEventListener(y,f),b.removeEventListener("touchmove",v)}}},[f,o]),r!==!1&&(g[r]=h(r)),_.useEffect(()=>{if(r!==!1){const y=FN(r),b=Di(a.current);return b.addEventListener(y,f),()=>{b.removeEventListener(y,f)}}},[f,r]),_.cloneElement(t,g)}const IO=e=>e.scrollTop;function Kd(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function wk(e){return`scale(${e}, ${e**2})`}const sye={entering:{opacity:1,transform:wk(1)},entered:{opacity:1,transform:"none"}},C7=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wy=_.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:g,style:y,timeout:b="auto",TransitionComponent:v=Ta,...S}=t,C=Od(),w=_.useRef(),A=ro(),E=_.useRef(null),D=Tr(E,gf(o),n),O=z=>L=>{if(z){const q=E.current;L===void 0?z(q):z(q,L)}},T=O(u),I=O((z,L)=>{IO(z);const{duration:q,delay:V,easing:U}=Kd({style:y,timeout:b,easing:s},{mode:"enter"});let K;b==="auto"?(K=A.transitions.getAutoHeightDuration(z.clientHeight),w.current=K):K=q,z.style.transition=[A.transitions.create("opacity",{duration:K,delay:V}),A.transitions.create("transform",{duration:C7?K:K*.666,delay:V,easing:U})].join(","),l&&l(z,L)}),N=O(c),$=O(g),R=O(z=>{const{duration:L,delay:q,easing:V}=Kd({style:y,timeout:b,easing:s},{mode:"exit"});let U;b==="auto"?(U=A.transitions.getAutoHeightDuration(z.clientHeight),w.current=U):U=L,z.style.transition=[A.transitions.create("opacity",{duration:U,delay:q}),A.transitions.create("transform",{duration:C7?U:U*.666,delay:C7?q:q||U*.333,easing:V})].join(","),z.style.opacity=0,z.style.transform=wk(.75),f&&f(z)}),F=O(h),j=z=>{b==="auto"&&C.start(w.current||0,z),r&&r(E.current,z)};return m.jsx(v,{appear:i,in:a,nodeRef:E,onEnter:I,onEntered:N,onEntering:T,onExit:R,onExited:F,onExiting:$,addEndListener:j,timeout:b==="auto"?null:b,...S,children:(z,{ownerState:L,...q})=>_.cloneElement(o,{style:{opacity:0,transform:wk(.75),visibility:z==="exited"&&!a?"hidden":void 0,...sye[z],...y,...o.props.style},ref:D,...q})})});Wy&&(Wy.muiSupportAuto=!0);function aye(e){return Qe("MuiSnackbarContent",e)}tt("MuiSnackbarContent",["root","message","action"]);const lye=e=>{const{classes:t}=e;return et({root:["root"],action:["action"],message:["message"]},aye,t)},cye=me(Ur,{name:"MuiSnackbarContent",slot:"Root"})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Uy(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Uy(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),uye=me("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),dye=me("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),fye=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:a="alert",...l}=r,c=r,u=lye(c);return m.jsxs(cye,{role:a,elevation:6,className:Te(u.root,o),ownerState:c,ref:n,...l,children:[m.jsx(uye,{className:u.message,ownerState:c,children:s}),i?m.jsx(dye,{className:u.action,ownerState:c,children:i}):null]})});function hye(e){return Qe("MuiSnackbar",e)}tt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const pye=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ye(n.vertical)}${ye(n.horizontal)}`]};return et(r,hye,t)},mye=me("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ye(n.anchorOrigin.vertical)}${ye(n.anchorOrigin.horizontal)}`]]}})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),PO=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiSnackbar"}),i=ro(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:g,disableWindowBlurListener:y=!1,message:b,onBlur:v,onClose:S,onFocus:C,onMouseEnter:w,onMouseLeave:A,open:E,resumeHideDuration:D,slots:O={},slotProps:T={},TransitionComponent:I,transitionDuration:N=o,TransitionProps:{onEnter:$,onExited:R,...F}={},...j}=r,z={...r,anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:I,transitionDuration:N},L=pye(z),{getRootProps:q,onClickAway:V}=rye(z),[U,K]=_.useState(!0),B=re=>{K(!0),R&&R(re)},W=(re,oe)=>{K(!1),$&&$(re,oe)},X={slots:{transition:I,...O},slotProps:{content:g,clickAwayListener:h,transition:F,...T}},[H,Y]=lt("root",{ref:n,className:[L.root,f],elementType:mye,getSlotProps:q,externalForwardedProps:{...X,...j},ownerState:z}),[J,{ownerState:ne,...ee}]=lt("clickAwayListener",{elementType:oye,externalForwardedProps:X,getSlotProps:re=>({onClickAway:(...oe)=>{const fe=oe[0];re.onClickAway?.(...oe),!fe?.defaultMuiPrevented&&V(...oe)}}),ownerState:z}),[se,ue]=lt("content",{elementType:fye,shouldForwardComponentProp:!0,externalForwardedProps:X,additionalProps:{message:b,action:s},ownerState:z}),[te,Z]=lt("transition",{elementType:Wy,externalForwardedProps:X,getSlotProps:re=>({onEnter:(...oe)=>{re.onEnter?.(...oe),W(...oe)},onExited:(...oe)=>{re.onExited?.(...oe),B(...oe)}}),additionalProps:{appear:!0,in:E,timeout:N,direction:a==="top"?"down":"up"},ownerState:z});return!E&&U?null:m.jsx(J,{...ee,...O.clickAwayListener&&{ownerState:ne},children:m.jsx(H,{...Y,children:m.jsx(te,{...Z,children:u||m.jsx(se,{...ue})})})})}),bX=_.createContext({show:()=>{}});let gye=0;const yye=e=>{const[t,n]=_.useState([]),r=_.useCallback(o=>{n(s=>[...s,{...o,autoHideDuration:o.autoHideDuration??6e3,notificationId:gye++}])},[]),i=o=>{n(s=>s.filter(a=>a.notificationId!==o))};return m.jsxs(bX.Provider,{value:{show:r},children:[e.children,t.map(o=>m.jsx(PO,{open:!0,autoHideDuration:o.autoHideDuration,onClose:()=>i(o.notificationId),children:m.jsx(vn,{severity:o.severity,variant:"filled",sx:{minWidth:"300px"},children:o.message})},o.notificationId))]})};function fo(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bye=typeof Symbol=="function"&&Symbol.observable||"@@observable",BN=bye,E7=()=>Math.random().toString(36).substring(7).split("").join("."),vye={INIT:`@@redux/INIT${E7()}`,REPLACE:`@@redux/REPLACE${E7()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${E7()}`},$4=vye;function jO(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function vX(e,t,n){if(typeof e!="function")throw new Error(fo(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(fo(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(fo(1));return n(vX)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((v,S)=>{s.set(S,v)}))}function u(){if(l)throw new Error(fo(3));return i}function f(v){if(typeof v!="function")throw new Error(fo(4));if(l)throw new Error(fo(5));let S=!0;c();const C=a++;return s.set(C,v),function(){if(S){if(l)throw new Error(fo(6));S=!1,c(),s.delete(C),o=null}}}function h(v){if(!jO(v))throw new Error(fo(7));if(typeof v.type>"u")throw new Error(fo(8));if(typeof v.type!="string")throw new Error(fo(17));if(l)throw new Error(fo(9));try{l=!0,i=r(i,v)}finally{l=!1}return(o=s).forEach(C=>{C()}),v}function g(v){if(typeof v!="function")throw new Error(fo(10));r=v,h({type:$4.REPLACE})}function y(){const v=f;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(fo(11));function C(){const A=S;A.next&&A.next(u())}return C(),{unsubscribe:v(C)}},[BN](){return this}}}return h({type:$4.INIT}),{dispatch:h,subscribe:f,getState:u,replaceReducer:g,[BN]:y}}function xye(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:$4.INIT})>"u")throw new Error(fo(12));if(typeof n(void 0,{type:$4.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fo(13))})}function Sye(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{xye(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const c={};for(let u=0;u<r.length;u++){const f=r[u],h=n[f],g=s[f],y=h(g,a);if(typeof y>"u")throw a&&a.type,new Error(fo(14));c[f]=y,l=l||y!==g}return l=l||r.length!==Object.keys(s).length,l?c:s}}function L4(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function wye(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(fo(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=L4(...a)(i.dispatch),{...i,dispatch:o}}}function Cye(e){return jO(e)&&"type"in e&&typeof e.type=="string"}var xX=Symbol.for("immer-nothing"),zN=Symbol.for("immer-draftable"),Uo=Symbol.for("immer-state");function Ba(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Is=Object,om=Is.getPrototypeOf,N4="constructor",XS="prototype",Ck="configurable",F4="enumerable",$5="writable",qy="value",yu=e=>!!e&&!!e[Uo];function nl(e){return e?SX(e)||JS(e)||!!e[zN]||!!e[N4]?.[zN]||QS(e)||ew(e):!1}var Eye=Is[XS][N4].toString(),HN=new WeakMap;function SX(e){if(!e||!$O(e))return!1;const t=om(e);if(t===null||t===Is[XS])return!0;const n=Is.hasOwnProperty.call(t,N4)&&t[N4];if(n===Object)return!0;if(!u0(n))return!1;let r=HN.get(n);return r===void 0&&(r=Function.toString.call(n),HN.set(n,r)),r===Eye}function ZS(e,t,n=!0){gb(e)===0?(n?Reflect.ownKeys(e):Is.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function gb(e){const t=e[Uo];return t?t.type_:JS(e)?1:QS(e)?2:ew(e)?3:0}var UN=(e,t,n=gb(e))=>n===2?e.has(t):Is[XS].hasOwnProperty.call(e,t),Ek=(e,t,n=gb(e))=>n===2?e.get(t):e[t],B4=(e,t,n,r=gb(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Aye(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var JS=Array.isArray,QS=e=>e instanceof Map,ew=e=>e instanceof Set,$O=e=>typeof e=="object",u0=e=>typeof e=="function",A7=e=>typeof e=="boolean";function kye(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var eu=e=>e.copy_||e.base_,LO=e=>e.modified_?e.copy_:e.base_;function Ak(e,t){if(QS(e))return new Map(e);if(ew(e))return new Set(e);if(JS(e))return Array[XS].slice.call(e);const n=SX(e);if(t===!0||t==="class_only"&&!n){const r=Is.getOwnPropertyDescriptors(e);delete r[Uo];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a[$5]===!1&&(a[$5]=!0,a[Ck]=!0),(a.get||a.set)&&(r[s]={[Ck]:!0,[$5]:!0,[F4]:a[F4],[qy]:e[s]})}return Is.create(om(e),r)}else{const r=om(e);if(r!==null&&n)return{...e};const i=Is.create(r);return Is.assign(i,e)}}function NO(e,t=!1){return tw(e)||yu(e)||!nl(e)||(gb(e)>1&&Is.defineProperties(e,{set:kx,add:kx,clear:kx,delete:kx}),Is.freeze(e),t&&ZS(e,(n,r)=>{NO(r,!0)},!1)),e}function _ye(){Ba(2)}var kx={[qy]:_ye};function tw(e){return e===null||!$O(e)?!0:Is.isFrozen(e)}var z4="MapSet",kk="Patches",VN="ArrayMethods",wX={};function Rh(e){const t=wX[e];return t||Ba(0,e),t}var WN=e=>!!wX[e],Gy,CX=()=>Gy,Dye=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:WN(z4)?Rh(z4):void 0,arrayMethodsPlugin_:WN(VN)?Rh(VN):void 0});function qN(e,t){t&&(e.patchPlugin_=Rh(kk),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function _k(e){Dk(e),e.drafts_.forEach(Oye),e.drafts_=null}function Dk(e){e===Gy&&(Gy=e.parent_)}var GN=e=>Gy=Dye(Gy,e);function Oye(e){const t=e[Uo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function KN(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Uo].modified_&&(_k(t),Ba(4)),nl(e)&&(e=YN(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Uo].base_,e,t)}else e=YN(t,n);return Tye(t,e,!0),_k(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==xX?e:void 0}function YN(e,t){if(tw(t))return t;const n=t[Uo];if(!n)return H4(t,e.handledSet_,e);if(!nw(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);kX(n,e)}return n.copy_}function Tye(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&NO(t,n)}function EX(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var nw=(e,t)=>e.scope_===t,Mye=[];function AX(e,t,n,r){const i=eu(e),o=e.type_;if(r!==void 0&&Ek(i,r,o)===t){B4(i,r,n,o);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;ZS(i,(l,c)=>{if(yu(c)){const u=a.get(c)||[];u.push(l),a.set(c,u)}})}const s=e.draftLocations_.get(t)??Mye;for(const a of s)B4(i,a,n,o)}function Rye(e,t,n){e.callbacks_.push(function(i){const o=t;if(!o||!nw(o,i))return;i.mapSetPlugin_?.fixSetContents(o);const s=LO(o);AX(e,o.draft_??o,s,n),kX(o,i)})}function kX(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}EX(e)}}function Iye(e,t,n){const{scope_:r}=e;if(yu(n)){const i=n[Uo];nw(i,r)&&i.callbacks_.push(function(){L5(e);const s=LO(i);AX(e,n,s,t)})}else nl(n)&&e.callbacks_.push(function(){const o=eu(e);e.type_===3?o.has(n)&&H4(n,r.handledSet_,r):Ek(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&H4(Ek(e.copy_,t,e.type_),r.handledSet_,r)})}function H4(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||yu(e)||t.has(e)||!nl(e)||tw(e)||(t.add(e),ZS(e,(r,i)=>{if(yu(i)){const o=i[Uo];if(nw(o,n)){const s=LO(o);B4(e,r,s,e.type_),EX(o)}}else nl(i)&&H4(i,t,n)})),e}function Pye(e,t){const n=JS(e),r={type_:n?1:0,scope_:t?t.scope_:CX(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,o=U4;n&&(i=[r],o=Ky);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,[a,r]}var U4={get(e,t){if(t===Uo)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=eu(e);if(!UN(i,t,e.type_))return jye(e,i,t);const o=i[t];if(e.finalized_||!nl(o)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&kye(t))return o;if(o===k7(e.base_,t)){L5(e);const s=e.type_===1?+t:t,a=Tk(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in eu(e)},ownKeys(e){return Reflect.ownKeys(eu(e))},set(e,t,n){const r=_X(eu(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=k7(eu(e),t),o=i?.[Uo];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Aye(n,i)&&(n!==void 0||UN(e.base_,t,e.type_)))return!0;L5(e),Ok(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Iye(e,t,n)),!0},deleteProperty(e,t){return L5(e),k7(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ok(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=eu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[$5]:!0,[Ck]:e.type_!==1||t!=="length",[F4]:r[F4],[qy]:n[t]}},defineProperty(){Ba(11)},getPrototypeOf(e){return om(e.base_)},setPrototypeOf(){Ba(12)}},Ky={};for(let e in U4){let t=U4[e];Ky[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Ky.deleteProperty=function(e,t){return Ky.set.call(this,e,t,void 0)};Ky.set=function(e,t,n){return U4.set.call(this,e[0],t,n,e[0])};function k7(e,t){const n=e[Uo];return(n?eu(n):e)[t]}function jye(e,t,n){const r=_X(t,n);return r?qy in r?r[qy]:r.get?.call(e.draft_):void 0}function _X(e,t){if(!(t in e))return;let n=om(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=om(n)}}function Ok(e){e.modified_||(e.modified_=!0,e.parent_&&Ok(e.parent_))}function L5(e){e.copy_||(e.assigned_=new Map,e.copy_=Ak(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var $ye=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(u0(t)&&!u0(n)){const o=n;n=t;const s=this;return function(l=o,...c){return s.produce(l,u=>n.call(this,u,...c))}}u0(n)||Ba(6),r!==void 0&&!u0(r)&&Ba(7);let i;if(nl(t)){const o=GN(this),s=Tk(o,t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?_k(o):Dk(o)}return qN(o,r),KN(i,o)}else if(!t||!$O(t)){if(i=n(t),i===void 0&&(i=t),i===xX&&(i=void 0),this.autoFreeze_&&NO(i,!0),r){const o=[],s=[];Rh(kk).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:s}),r(o,s)}return i}else Ba(1,t)},this.produceWithPatches=(t,n)=>{if(u0(t))return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},A7(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),A7(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),A7(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){nl(e)||Ba(8),yu(e)&&(e=Lye(e));const t=GN(this),n=Tk(t,e,void 0);return n[Uo].isManual_=!0,Dk(t),n}finishDraft(e,t){const n=e&&e[Uo];(!n||!n.isManual_)&&Ba(9);const{scope_:r}=n;return qN(r,t),KN(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Rh(kk).applyPatches_;return yu(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Tk(e,t,n,r){const[i,o]=QS(t)?Rh(z4).proxyMap_(t,n):ew(t)?Rh(z4).proxySet_(t,n):Pye(t,n);return(n?.scope_??CX()).drafts_.push(i),o.callbacks_=n?.callbacks_??[],o.key_=r,n&&r!==void 0?Rye(n,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);const{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),i}function Lye(e){return yu(e)||Ba(10,e),DX(e)}function DX(e){if(!nl(e)||tw(e))return e;const t=e[Uo];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ak(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Ak(e,!0);return ZS(n,(i,o)=>{B4(n,i,DX(o))},r),t&&(t.finalized_=!1),n}var Nye=new $ye,OX=Nye.produce,V4=Symbol("NOT_FOUND");function Fye(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Bye(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function zye(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var XN=e=>Array.isArray(e)?e:[e];function Hye(e){const t=Array.isArray(e[0])?e[0]:e;return zye(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Uye(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function Vye(e){let t;return{get(n){return t&&e(t.key,n)?t.value:V4},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Wye(e,t){let n=[];function r(a){const l=n.findIndex(c=>t(a,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return V4}function i(a,l){r(a)===V4&&(n.unshift({key:a,value:l}),n.length>e&&n.pop())}function o(){return n}function s(){n=[]}return{get:r,put:i,getEntries:o,clear:s}}var qye=(e,t)=>e===t;function Gye(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}}function Kye(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=qye,maxSize:i=1,resultEqualityCheck:o}=n,s=Gye(r);let a=0;const l=i<=1?Vye(s):Wye(i,s);function c(){let u=l.get(arguments);if(u===V4){if(u=e.apply(null,arguments),a++,o){const h=l.getEntries().find(g=>o(g.value,u));h&&(u=h.value,a!==0&&a--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var Yye=class{constructor(e){this.value=e}deref(){return this.value}},Xye=typeof WeakRef<"u"?WeakRef:Yye,Zye=0,ZN=1;function _x(){return{s:Zye,v:void 0,o:null,p:null}}function TX(e,t={}){let n=_x();const{resultEqualityCheck:r}=t;let i,o=0;function s(){let a=n;const{length:l}=arguments;for(let f=0,h=l;f<h;f++){const g=arguments[f];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=a.o;y===null&&(a.o=y=new WeakMap);const b=y.get(g);b===void 0?(a=_x(),y.set(g,a)):a=b}else{let y=a.p;y===null&&(a.p=y=new Map);const b=y.get(g);b===void 0?(a=_x(),y.set(g,a)):a=b}}const c=a;let u;if(a.s===ZN)u=a.v;else if(u=e.apply(null,arguments),o++,r){const f=i?.deref?.()??i;f!=null&&r(f,u)&&(u=f,o!==0&&o--),i=typeof u=="object"&&u!==null||typeof u=="function"?new Xye(u):u}return c.s=ZN,c.v=u,u}return s.clearCache=()=>{n=_x(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function MX(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,a,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),Fye(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:f,memoizeOptions:h=[],argsMemoize:g=TX,argsMemoizeOptions:y=[]}=u,b=XN(h),v=XN(y),S=Hye(i),C=f(function(){return o++,c.apply(null,arguments)},...b),w=g(function(){s++;const E=Uye(S,arguments);return a=C.apply(null,E),a},...v);return Object.assign(w,{resultFunc:c,memoizedResultFunc:C,dependencies:S,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var RX=MX(TX),Jye=Object.assign((e,t=RX)=>{Bye(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>Jye});function IX(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Qye=IX(),e2e=IX,t2e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?L4:L4.apply(null,arguments)},n2e=e=>e&&typeof e.match=="function";function oy(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(W4(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Cye(r)&&r.type===e,n}var PX=class B1 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,B1.prototype)}static get[Symbol.species](){return B1}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new B1(...t[0].concat(this)):new B1(...t.concat(this))}};function JN(e){return nl(e)?OX(e,()=>{}):e}function r2e(e){return typeof e=="boolean"}var i2e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new PX;return n&&(r2e(n)?s.push(Qye):s.push(e2e(n.extraArgument))),s},o2e="RTK_autoBatch",QN=e=>t=>{setTimeout(t,e)},s2e=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:QN(10):e.type==="callback"?e.queueNotification:QN(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const f=()=>i&&u(),h=r.subscribe(f);return a.add(u),()=>{h(),a.delete(u)}},dispatch(u){try{return i=!u?.meta?.[o2e],o=!i,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{i=!0}}})},a2e=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new PX(e);return r&&i.push(s2e(typeof r=="object"?r:void 0)),i};function l2e(e){const t=i2e(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(jO(n))a=Sye(n);else throw new Error(W4(1));let l;typeof r=="function"?l=r(t):l=t();let c=L4;i&&(c=t2e({trace:!1,...typeof i=="object"&&i}));const u=wye(...l),f=a2e(u);let h=typeof s=="function"?s(f):f();const g=c(...h);return vX(a,o,g)}function c2e(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(W4(28));if(a in t)throw new Error(W4(29));return t[a]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function u2e(e){return typeof e=="function"}function FO(e,t){let[n,r,i]=c2e(t),o;if(u2e(e))o=()=>JN(e());else{const a=JN(e);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,f)=>{if(f)if(yu(u)){const g=f(u,l);return g===void 0?u:g}else{if(nl(u))return OX(u,h=>f(h,l));{const h=f(u,l);if(h===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return u},a)}return s.getInitialState=o,s}var d2e=(e,t)=>n2e(e)?e.match(t):e(t);function f2e(...e){return t=>e.some(n=>d2e(n,t))}var h2e="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",p2e=(e=21)=>{let t="",n=e;for(;n--;)t+=h2e[Math.random()*64|0];return t},m2e=["name","message","stack","code"],_7=class{constructor(e,t){this.payload=e,this.meta=t}_type},eF=class{constructor(e,t){this.payload=e,this.meta=t}_type},g2e=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of m2e)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},tF="External signal was aborted",y2e=(()=>{function e(t,n,r){const i=oy(t+"/fulfilled",(l,c,u,f)=>({payload:l,meta:{...f||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=oy(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=oy(t+"/rejected",(l,c,u,f,h)=>({payload:f,error:(r&&r.serializeError||g2e)(l||"Rejected"),meta:{...h||{},arg:u,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,f,h)=>{const g=r?.idGenerator?r.idGenerator(l):p2e(),y=new AbortController;let b,v;function S(w){v=w,y.abort()}c&&(c.aborted?S(tF):c.addEventListener("abort",()=>S(tF),{once:!0}));const C=(async function(){let w;try{let E=r?.condition?.(l,{getState:f,extra:h});if(v2e(E)&&(E=await E),E===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const D=new Promise((O,T)=>{b=()=>{T({name:"AbortError",message:v||"Aborted"})},y.signal.addEventListener("abort",b,{once:!0})});u(o(g,l,r?.getPendingMeta?.({requestId:g,arg:l},{getState:f,extra:h}))),w=await Promise.race([D,Promise.resolve(n(l,{dispatch:u,getState:f,extra:h,requestId:g,signal:y.signal,abort:S,rejectWithValue:(O,T)=>new _7(O,T),fulfillWithValue:(O,T)=>new eF(O,T)})).then(O=>{if(O instanceof _7)throw O;return O instanceof eF?i(O.payload,g,l,O.meta):i(O,g,l)})])}catch(E){w=E instanceof _7?s(null,g,l,E.payload,E.meta):s(E,g,l)}finally{b&&y.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&s.match(w)&&w.meta.condition||u(w),w})();return Object.assign(C,{abort:S,requestId:g,arg:l,unwrap(){return C.then(b2e)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:i,settled:f2e(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function b2e(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function v2e(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}function W4(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}async function x2e(){const e=await fetch(`api/matter/bridges?_s=${Date.now()}`);if(!e.ok){const t=await e.json().catch(()=>({error:"Failed to fetch bridges"}));throw new Error(t.error??`Failed to fetch bridges (${e.status})`)}return await e.json()}async function jX(e){const t=await fetch("api/matter/bridges",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){const n=await t.json().catch(()=>({error:"Failed to create bridge"}));throw new Error(n.error??`Failed to create bridge (${t.status})`)}return await t.json()}async function $X(e){const t=await fetch(`api/matter/bridges/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){const n=await t.json().catch(()=>({error:"Failed to update bridge"}));throw new Error(n.error??`Failed to update bridge (${t.status})`)}return await t.json()}async function S2e(e){await fetch(`api/matter/bridges/${e}`,{method:"DELETE"})}async function w2e(e){const t=await fetch(`api/matter/bridges/${e}/actions/factory-reset`,{method:"POST"});if(!t.ok){const n=await t.json().catch(()=>({error:"Factory reset failed"}));throw new Error(n.error??`Factory reset failed (${t.status})`)}return await t.json()}async function LX(e){return await fetch(`api/matter/bridges/${e}/actions/force-sync`,{method:"POST"}).then(t=>t.json())}async function C2e(e){const t=await fetch(`api/matter/bridges/${e}/actions/open-commissioning-window`,{method:"POST"});if(!t.ok){const n=await t.json().catch(()=>({error:"Failed to open commissioning window"}));throw new Error(n.error??"Failed to open commissioning window")}return t.json()}async function E2e(e){if(!(await fetch("api/matter/bridges/priorities",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({updates:e})})).ok)throw new Error("Failed to update priorities")}async function NX(){return(await fetch("api/matter/bridges/actions/start-all",{method:"POST"})).json()}async function FX(){return(await fetch("api/matter/bridges/actions/stop-all",{method:"POST"})).json()}async function BX(){return(await fetch("api/matter/bridges/actions/restart-all",{method:"POST"})).json()}const zm=y2e.withTypes(),rw=RX.withTypes(),Bo=zm("bridges/load",x2e),zX=zm("bridges/create",jX),HX=zm("bridges/delete",S2e),UX=zm("bridges/update",$X),VX=zm("bridges/reset",w2e),WX=oy("bridges/setFromWebSocket"),qX=oy("bridges/updateFromWebSocket"),Hs=kde.withTypes(),Hm=Ode.withTypes(),GX=_.createContext({isConnected:!1,error:null});function A2e(){return _.useContext(GX)}function k2e({children:e}){const t=Hs(),[n,r]=_.useState(!1),[i,o]=_.useState(null),s=_.useRef(null),a=_.useRef(void 0),l=_.useCallback(u=>{switch(u.type){case"bridges_update":t(WX(u.data));break;case"bridge_update":t(qX(u.data));break;case"ping":s.current?.send(JSON.stringify({type:"pong"}));break}},[t]),c=_.useCallback(()=>{if(s.current?.readyState===WebSocket.OPEN)return;const u=window.location.protocol==="https:"?"wss:":"ws:",f=document.querySelector("base")?.href||window.location.origin,h=new URL(f),g=`${u}//${h.host}${h.pathname}api/ws`.replace(/\/+/g,"/").replace(":/","://");try{const y=new WebSocket(g);s.current=y,y.onopen=()=>{r(!0),o(null)},y.onmessage=b=>{try{const v=JSON.parse(b.data);l(v)}catch{console.warn("Invalid WebSocket message")}},y.onclose=()=>{r(!1),s.current=null,a.current=setTimeout(c,3e3)},y.onerror=()=>{o(new Error("WebSocket connection error")),y.close()}}catch(y){o(y instanceof Error?y:new Error("Failed to connect"))}},[l]);return _.useEffect(()=>(c(),()=>{a.current&&clearTimeout(a.current),s.current?.close()}),[c]),m.jsx(GX.Provider,{value:{isConnected:n,error:i},children:e})}const _2e=()=>{const e=Hs();return _.useEffect(()=>{e(Bo())},[e]),m.jsx(yY,{})},yb=_e(m.jsx("path",{d:"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10.69l4.05-4.05c.47-.47 1.15-.68 1.81-.55zM11.17 17s3.74-1.55 5.89-3.7c5.4-5.4 4.5-9.62 4.21-10.57-.95-.3-5.17-1.19-10.57 4.21C8.55 9.09 7 12.83 7 12.83zm6.48-2.19c-2.29 2.04-5.58 3.44-5.89 3.57L13.31 22l4.05-4.05c.47-.47.68-1.15.55-1.81zM9 18c0 .83-.34 1.58-.88 2.12C6.94 21.3 2 22 2 22s.7-4.94 1.88-6.12C4.42 15.34 5.17 15 6 15c1.66 0 3 1.34 3 3m4-9c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2"})),iw=_e(m.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));function D2e(e){return Qe("MuiTypography",e)}const nF=tt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),O2e={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},T2e=qge(),M2e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${ye(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return et(a,D2e,s)},R2e=me("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ye(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ge(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ye(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),rF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ie=_.forwardRef(function(t,n){const{color:r,...i}=it({props:t,name:"MuiTypography"}),o=!O2e[r],s=T2e({...i,...o&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:g="body1",variantMapping:y=rF,...b}=s,v={...s,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:f,paragraph:h,variant:g,variantMapping:y},S=c||(h?"p":y[g]||rF[g])||"span",C=M2e(v);return m.jsx(R2e,{as:S,ref:n,className:Te(C.root,l),...b,ownerState:v,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...b.style}})});function I2e(e){return Qe("MuiAlertTitle",e)}tt("MuiAlertTitle",["root"]);const P2e=e=>{const{classes:t}=e;return et({root:["root"]},I2e,t)},j2e=me(ie,{name:"MuiAlertTitle",slot:"Root"})(Ge(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),q4=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAlertTitle"}),{className:i,...o}=r,s=r,a=P2e(s);return m.jsx(j2e,{gutterBottom:!0,component:"div",ownerState:s,ref:n,className:Te(a.root,i),...o})}),$2e=tt("MuiBox",["root"]),L2e=WS(),ce=tme({themeId:da,defaultTheme:L2e,defaultClassName:$2e.root,generateClassName:UY.generate});function N2e(e){return Qe("MuiButton",e)}const Vf=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),F2e=_.createContext({}),B2e=_.createContext(void 0),z2e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,loading:s,loadingPosition:a,classes:l}=e,c={root:["root",s&&"loading",o,`${o}${ye(t)}`,`size${ye(i)}`,`${o}Size${ye(i)}`,`color${ye(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${ye(a)}`],startIcon:["icon","startIcon",`iconSize${ye(i)}`],endIcon:["icon","endIcon",`iconSize${ye(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=et(c,N2e,l);return{...l,...u}},KX=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],H2e=me(ba,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ye(n.color)}`],t[`size${ye(n.size)}`],t[`${n.variant}Size${ye(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Vf.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Vf.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Vf.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Vf.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Fn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vf.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Vf.loading}`]:{color:"transparent"}}}]}})),U2e=me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ye(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...KX]})),V2e=me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ye(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...KX]})),W2e=me("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),iF=me("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),kt=_.forwardRef(function(t,n){const r=_.useContext(F2e),i=_.useContext(B2e),o=im(r,t),s=it({props:o,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:y,focusVisibleClassName:b,fullWidth:v=!1,id:S,loading:C=null,loadingIndicator:w,loadingPosition:A="center",size:E="medium",startIcon:D,type:O,variant:T="text",...I}=s,N=Ou(S),$=w??m.jsx(zr,{"aria-labelledby":N,color:"inherit",size:16}),R={...s,color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:g,fullWidth:v,loading:C,loadingIndicator:$,loadingPosition:A,size:E,type:O,variant:T},F=z2e(R),j=(D||C&&A==="start")&&m.jsx(U2e,{className:F.startIcon,ownerState:R,children:D||m.jsx(iF,{className:F.loadingIconPlaceholder,ownerState:R})}),z=(y||C&&A==="end")&&m.jsx(V2e,{className:F.endIcon,ownerState:R,children:y||m.jsx(iF,{className:F.loadingIconPlaceholder,ownerState:R})}),L=i||"",q=typeof C=="boolean"?m.jsx("span",{className:F.loadingWrapper,style:{display:"contents"},children:C&&m.jsx(W2e,{className:F.loadingIndicator,ownerState:R,children:$})}):null;return m.jsxs(H2e,{ownerState:R,className:Te(r.className,F.root,u,L),component:c,disabled:f||C,focusRipple:!g,focusVisibleClassName:Te(F.focusVisible,b),ref:n,type:O,id:C?N:S,...I,classes:F,children:[j,A!=="end"&&q,a,A==="end"&&q,z]})});function q2e(e){return Qe("MuiCollapse",e)}tt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const G2e=e=>{const{orientation:t,classes:n}=e;return et({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},q2e,n)},K2e=me("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Ge(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Y2e=me("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),X2e=me("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),fa=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:f,onEntered:h,onEntering:g,onExit:y,onExited:b,onExiting:v,orientation:S="vertical",slots:C={},slotProps:w={},style:A,timeout:E=aX.standard,TransitionComponent:D=Ta,...O}=r,T={...r,orientation:S,collapsedSize:a},I=G2e(T),N=ro(),$=Od(),R=_.useRef(null),F=_.useRef(),j=typeof a=="number"?`${a}px`:a,z=S==="horizontal",L=z?"width":"height",q=_.useRef(null),V=Tr(n,q),U=fe=>be=>{if(fe){const De=q.current;be===void 0?fe(De):fe(De,be)}},K=()=>R.current?R.current[z?"clientWidth":"clientHeight"]:0,B=U((fe,be)=>{R.current&&z&&(R.current.style.position="absolute"),fe.style[L]=j,f&&f(fe,be)}),W=U((fe,be)=>{const De=K();R.current&&z&&(R.current.style.position="");const{duration:Oe,easing:Ke}=Kd({style:A,timeout:E,easing:c},{mode:"enter"});if(E==="auto"){const xe=N.transitions.getAutoHeightDuration(De);fe.style.transitionDuration=`${xe}ms`,F.current=xe}else fe.style.transitionDuration=typeof Oe=="string"?Oe:`${Oe}ms`;fe.style[L]=`${De}px`,fe.style.transitionTimingFunction=Ke,g&&g(fe,be)}),X=U((fe,be)=>{fe.style[L]="auto",h&&h(fe,be)}),H=U(fe=>{fe.style[L]=`${K()}px`,y&&y(fe)}),Y=U(b),J=U(fe=>{const be=K(),{duration:De,easing:Oe}=Kd({style:A,timeout:E,easing:c},{mode:"exit"});if(E==="auto"){const Ke=N.transitions.getAutoHeightDuration(be);fe.style.transitionDuration=`${Ke}ms`,F.current=Ke}else fe.style.transitionDuration=typeof De=="string"?De:`${De}ms`;fe.style[L]=j,fe.style.transitionTimingFunction=Oe,v&&v(fe)}),ne=fe=>{E==="auto"&&$.start(F.current||0,fe),i&&i(q.current,fe)},ee={slots:C,slotProps:w,component:l},[se,ue]=lt("root",{ref:V,className:Te(I.root,s),elementType:K2e,externalForwardedProps:ee,ownerState:T,additionalProps:{style:{[z?"minWidth":"minHeight"]:j,...A}}}),[te,Z]=lt("wrapper",{ref:R,className:I.wrapper,elementType:Y2e,externalForwardedProps:ee,ownerState:T}),[re,oe]=lt("wrapperInner",{className:I.wrapperInner,elementType:X2e,externalForwardedProps:ee,ownerState:T});return m.jsx(D,{in:u,onEnter:B,onEntered:X,onEntering:W,onExit:H,onExited:Y,onExiting:J,addEndListener:ne,nodeRef:q,timeout:E==="auto"?null:E,...O,children:(fe,{ownerState:be,...De})=>{const Oe={...T,state:fe};return m.jsx(se,{...ue,className:Te(ue.className,{entered:I.entered,exited:!u&&j==="0px"&&I.hidden}[fe]),ownerState:Oe,...De,children:m.jsx(te,{...Z,ownerState:Oe,children:m.jsx(re,{...oe,ownerState:Oe,children:o})})})}})});fa&&(fa.muiSupportAuto=!0);const Xa=_.createContext({});function Z2e(e){return Qe("MuiList",e)}tt("MuiList",["root","padding","dense","subheader"]);const J2e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return et({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Z2e,t)},Q2e=me("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),bc=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,f=_.useMemo(()=>({dense:a}),[a]),h={...r,component:s,dense:a,disablePadding:l},g=J2e(h);return m.jsx(Xa.Provider,{value:f,children:m.jsxs(Q2e,{as:s,className:Te(g.root,o),ref:n,ownerState:h,...u,children:[c,i]})})});function ebe(e){return Qe("MuiListItem",e)}tt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function tbe(e){return Qe("MuiListItemButton",e)}const d0=tt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),nbe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},rbe=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:a}=e,c=et({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},tbe,n);return{...n,...c}},ibe=me(ba,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:nbe})(Ge(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${d0.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${d0.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${d0.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${d0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${d0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),obe=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:s="div",children:a,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:f,selected:h=!1,className:g,...y}=r,b=_.useContext(Xa),v=_.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:c}),[i,b.dense,l,c]),S=_.useRef(null);Ho(()=>{o&&S.current&&S.current.focus()},[o]);const C={...r,alignItems:i,dense:v.dense,disableGutters:c,divider:u,selected:h},w=rbe(C),A=Tr(S,n);return m.jsx(Xa.Provider,{value:v,children:m.jsx(ibe,{ref:A,href:y.href||y.to,component:(y.href||y.to)&&s==="div"?"button":s,focusVisibleClassName:Te(w.focusVisible,f),ownerState:C,className:Te(w.root,g),...y,classes:w,children:a})})});function sbe(e){return Qe("MuiListItemSecondaryAction",e)}tt("MuiListItemSecondaryAction",["root","disableGutters"]);const abe=e=>{const{disableGutters:t,classes:n}=e;return et({root:["root",t&&"disableGutters"]},sbe,n)},lbe=me("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),BO=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...o}=r,s=_.useContext(Xa),a={...r,disableGutters:s.disableGutters},l=abe(a);return m.jsx(lbe,{className:Te(l.root,i),ownerState:a,ref:n,...o})});BO.muiName="ListItemSecondaryAction";const cbe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},ube=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:o,divider:s,hasSecondaryAction:a}=e;return et({root:["root",r&&"dense",!i&&"gutters",!o&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},ebe,n)},dbe=me("div",{name:"MuiListItem",slot:"Root",overridesResolver:cbe})(Ge(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${d0.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),fbe=me("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),yf=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItem"}),{alignItems:i="center",children:o,className:s,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:f,...h}={},dense:g=!1,disableGutters:y=!1,disablePadding:b=!1,divider:v=!1,secondaryAction:S,slotProps:C={},slots:w={},...A}=r,E=_.useContext(Xa),D=_.useMemo(()=>({dense:g||E.dense||!1,alignItems:i,disableGutters:y}),[i,E.dense,g,y]),O=_.useRef(null),T=_.Children.toArray(o),I=T.length&&iy(T[T.length-1],["ListItemSecondaryAction"]),N={...r,alignItems:i,dense:D.dense,disableGutters:y,disablePadding:b,divider:v,hasSecondaryAction:I},$=ube(N),R=Tr(O,n),F={slots:w,slotProps:C},[j,z]=lt("secondaryAction",{elementType:BO,externalForwardedProps:F,ownerState:N,className:$.secondaryAction}),L=w.root||l.Root||dbe,q=C.root||c.root||{},V={className:Te($.root,q.className,s),...A};let U=a||"li";return I?(U=!V.component&&!a?"div":U,u==="li"&&(U==="li"?U="div":V.component==="li"&&(V.component="div")),m.jsx(Xa.Provider,{value:D,children:m.jsxs(fbe,{as:u,className:Te($.container,f),ref:R,ownerState:N,...h,children:[m.jsx(L,{...q,...!ic(L)&&{as:U,ownerState:{...N,...q.ownerState}},...V,children:T}),T.pop()]})})):m.jsx(Xa.Provider,{value:D,children:m.jsxs(L,{...q,as:U,ref:R,...!ic(L)&&{ownerState:{...N,...q.ownerState}},...V,children:[T,S&&m.jsx(j,{...z,children:S})]})})});function hbe(e){return Qe("MuiListItemIcon",e)}const oF=tt("MuiListItemIcon",["root","alignItemsFlexStart"]),pbe=e=>{const{alignItems:t,classes:n}=e;return et({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},hbe,n)},mbe=me("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ge(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ul=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemIcon"}),{className:i,...o}=r,s=_.useContext(Xa),a={...r,alignItems:s.alignItems},l=pbe(a);return m.jsx(mbe,{className:Te(l.root,i),ownerState:a,ref:n,...o})});function gbe(e){return Qe("MuiListItemText",e)}const y0=tt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ybe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return et({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},gbe,t)},bbe=me("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${y0.primary}`]:t.primary},{[`& .${y0.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${nF.root}:where(& .${y0.primary})`]:{display:"block"},[`.${nF.root}:where(& .${y0.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Va=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f,slots:h={},slotProps:g={},...y}=r,{dense:b}=_.useContext(Xa);let v=l??i,S=u;const C={...r,disableTypography:s,inset:a,primary:!!v,secondary:!!S,dense:b},w=ybe(C),A={slots:h,slotProps:{primary:c,secondary:f,...g}},[E,D]=lt("root",{className:Te(w.root,o),elementType:bbe,externalForwardedProps:{...A,...y},ownerState:C,ref:n}),[O,T]=lt("primary",{className:w.primary,elementType:ie,externalForwardedProps:A,ownerState:C}),[I,N]=lt("secondary",{className:w.secondary,elementType:ie,externalForwardedProps:A,ownerState:C});return v!=null&&v.type!==ie&&!s&&(v=m.jsx(O,{variant:b?"body2":"body1",component:T?.variant?void 0:"span",...T,children:v})),S!=null&&S.type!==ie&&!s&&(S=m.jsx(I,{variant:"body2",color:"textSecondary",...N,children:S})),m.jsxs(E,{...D,children:[v,S]})}),zt=pge({createStyledComponent:me("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>it({props:e,name:"MuiStack"})});var os="top",va="bottom",xa="right",ss="left",zO="auto",bb=[os,va,xa,ss],sm="start",Yy="end",vbe="clippingParents",YX="viewport",u1="popper",xbe="reference",sF=bb.reduce(function(e,t){return e.concat([t+"-"+sm,t+"-"+Yy])},[]),XX=[].concat(bb,[zO]).reduce(function(e,t){return e.concat([t,t+"-"+sm,t+"-"+Yy])},[]),Sbe="beforeRead",wbe="read",Cbe="afterRead",Ebe="beforeMain",Abe="main",kbe="afterMain",_be="beforeWrite",Dbe="write",Obe="afterWrite",Tbe=[Sbe,wbe,Cbe,Ebe,Abe,kbe,_be,Dbe,Obe];function dc(e){return e?(e.nodeName||"").toLowerCase():null}function Ns(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ih(e){var t=Ns(e).Element;return e instanceof t||e instanceof Element}function ha(e){var t=Ns(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function HO(e){if(typeof ShadowRoot>"u")return!1;var t=Ns(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mbe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ha(o)||!dc(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Rbe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!ha(i)||!dc(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Ibe={name:"applyStyles",enabled:!0,phase:"write",fn:Mbe,effect:Rbe,requires:["computeStyles"]};function oc(e){return e.split("-")[0]}var Eh=Math.max,G4=Math.min,am=Math.round;function Mk(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ZX(){return!/^((?!chrome|android).)*safari/i.test(Mk())}function lm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ha(e)&&(i=e.offsetWidth>0&&am(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&am(r.height)/e.offsetHeight||1);var s=Ih(e)?Ns(e):window,a=s.visualViewport,l=!ZX()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,f=r.width/i,h=r.height/o;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function UO(e){var t=lm(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function JX(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&HO(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bu(e){return Ns(e).getComputedStyle(e)}function Pbe(e){return["table","td","th"].indexOf(dc(e))>=0}function bf(e){return((Ih(e)?e.ownerDocument:e.document)||window.document).documentElement}function ow(e){return dc(e)==="html"?e:e.assignedSlot||e.parentNode||(HO(e)?e.host:null)||bf(e)}function aF(e){return!ha(e)||bu(e).position==="fixed"?null:e.offsetParent}function jbe(e){var t=/firefox/i.test(Mk()),n=/Trident/i.test(Mk());if(n&&ha(e)){var r=bu(e);if(r.position==="fixed")return null}var i=ow(e);for(HO(i)&&(i=i.host);ha(i)&&["html","body"].indexOf(dc(i))<0;){var o=bu(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function vb(e){for(var t=Ns(e),n=aF(e);n&&Pbe(n)&&bu(n).position==="static";)n=aF(n);return n&&(dc(n)==="html"||dc(n)==="body"&&bu(n).position==="static")?t:n||jbe(e)||t}function VO(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sy(e,t,n){return Eh(e,G4(t,n))}function $be(e,t,n){var r=sy(e,t,n);return r>n?n:r}function QX(){return{top:0,right:0,bottom:0,left:0}}function eZ(e){return Object.assign({},QX(),e)}function tZ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Lbe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,eZ(typeof t!="number"?t:tZ(t,bb))};function Nbe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=oc(n.placement),l=VO(a),c=[ss,xa].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var f=Lbe(i.padding,n),h=UO(o),g=l==="y"?os:ss,y=l==="y"?va:xa,b=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],v=s[l]-n.rects.reference[l],S=vb(o),C=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,w=b/2-v/2,A=f[g],E=C-h[u]-f[y],D=C/2-h[u]/2+w,O=sy(A,D,E),T=l;n.modifiersData[r]=(t={},t[T]=O,t.centerOffset=O-D,t)}}function Fbe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||JX(t.elements.popper,i)&&(t.elements.arrow=i))}const Bbe={name:"arrow",enabled:!0,phase:"main",fn:Nbe,effect:Fbe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cm(e){return e.split("-")[1]}var zbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hbe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:am(n*i)/i||0,y:am(r*i)/i||0}}function lF(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=s.x,g=h===void 0?0:h,y=s.y,b=y===void 0?0:y,v=typeof u=="function"?u({x:g,y:b}):{x:g,y:b};g=v.x,b=v.y;var S=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),w=ss,A=os,E=window;if(c){var D=vb(n),O="clientHeight",T="clientWidth";if(D===Ns(n)&&(D=bf(n),bu(D).position!=="static"&&a==="absolute"&&(O="scrollHeight",T="scrollWidth")),D=D,i===os||(i===ss||i===xa)&&o===Yy){A=va;var I=f&&D===E&&E.visualViewport?E.visualViewport.height:D[O];b-=I-r.height,b*=l?1:-1}if(i===ss||(i===os||i===va)&&o===Yy){w=xa;var N=f&&D===E&&E.visualViewport?E.visualViewport.width:D[T];g-=N-r.width,g*=l?1:-1}}var $=Object.assign({position:a},c&&zbe),R=u===!0?Hbe({x:g,y:b},Ns(n)):{x:g,y:b};if(g=R.x,b=R.y,l){var F;return Object.assign({},$,(F={},F[A]=C?"0":"",F[w]=S?"0":"",F.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",F))}return Object.assign({},$,(t={},t[A]=C?b+"px":"",t[w]=S?g+"px":"",t.transform="",t))}function Ube(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:oc(t.placement),variation:cm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,lF(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,lF(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Vbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ube,data:{}};var Dx={passive:!0};function Wbe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=Ns(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Dx)}),a&&l.addEventListener("resize",n.update,Dx),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Dx)}),a&&l.removeEventListener("resize",n.update,Dx)}}const qbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wbe,data:{}};var Gbe={left:"right",right:"left",bottom:"top",top:"bottom"};function N5(e){return e.replace(/left|right|bottom|top/g,function(t){return Gbe[t]})}var Kbe={start:"end",end:"start"};function cF(e){return e.replace(/start|end/g,function(t){return Kbe[t]})}function WO(e){var t=Ns(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function qO(e){return lm(bf(e)).left+WO(e).scrollLeft}function Ybe(e,t){var n=Ns(e),r=bf(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=ZX();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+qO(e),y:l}}function Xbe(e){var t,n=bf(e),r=WO(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Eh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Eh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+qO(e),l=-r.scrollTop;return bu(i||n).direction==="rtl"&&(a+=Eh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function GO(e){var t=bu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function nZ(e){return["html","body","#document"].indexOf(dc(e))>=0?e.ownerDocument.body:ha(e)&&GO(e)?e:nZ(ow(e))}function ay(e,t){var n;t===void 0&&(t=[]);var r=nZ(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ns(r),s=i?[o].concat(o.visualViewport||[],GO(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(ay(ow(s)))}function Rk(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zbe(e,t){var n=lm(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function uF(e,t,n){return t===YX?Rk(Ybe(e,n)):Ih(t)?Zbe(t,n):Rk(Xbe(bf(e)))}function Jbe(e){var t=ay(ow(e)),n=["absolute","fixed"].indexOf(bu(e).position)>=0,r=n&&ha(e)?vb(e):e;return Ih(r)?t.filter(function(i){return Ih(i)&&JX(i,r)&&dc(i)!=="body"}):[]}function Qbe(e,t,n,r){var i=t==="clippingParents"?Jbe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var u=uF(e,c,r);return l.top=Eh(u.top,l.top),l.right=G4(u.right,l.right),l.bottom=G4(u.bottom,l.bottom),l.left=Eh(u.left,l.left),l},uF(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rZ(e){var t=e.reference,n=e.element,r=e.placement,i=r?oc(r):null,o=r?cm(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case os:l={x:s,y:t.y-n.height};break;case va:l={x:s,y:t.y+t.height};break;case xa:l={x:t.x+t.width,y:a};break;case ss:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?VO(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case sm:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Yy:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Xy(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?vbe:a,c=n.rootBoundary,u=c===void 0?YX:c,f=n.elementContext,h=f===void 0?u1:f,g=n.altBoundary,y=g===void 0?!1:g,b=n.padding,v=b===void 0?0:b,S=eZ(typeof v!="number"?v:tZ(v,bb)),C=h===u1?xbe:u1,w=e.rects.popper,A=e.elements[y?C:h],E=Qbe(Ih(A)?A:A.contextElement||bf(e.elements.popper),l,u,s),D=lm(e.elements.reference),O=rZ({reference:D,element:w,placement:i}),T=Rk(Object.assign({},w,O)),I=h===u1?T:D,N={top:E.top-I.top+S.top,bottom:I.bottom-E.bottom+S.bottom,left:E.left-I.left+S.left,right:I.right-E.right+S.right},$=e.modifiersData.offset;if(h===u1&&$){var R=$[i];Object.keys(N).forEach(function(F){var j=[xa,va].indexOf(F)>=0?1:-1,z=[os,va].indexOf(F)>=0?"y":"x";N[F]+=R[z]*j})}return N}function eve(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?XX:l,u=cm(r),f=u?a?sF:sF.filter(function(y){return cm(y)===u}):bb,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var g=h.reduce(function(y,b){return y[b]=Xy(e,{placement:b,boundary:i,rootBoundary:o,padding:s})[oc(b)],y},{});return Object.keys(g).sort(function(y,b){return g[y]-g[b]})}function tve(e){if(oc(e)===zO)return[];var t=N5(e);return[cF(e),t,cF(t)]}function nve(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,b=n.allowedAutoPlacements,v=t.options.placement,S=oc(v),C=S===v,w=l||(C||!y?[N5(v)]:tve(v)),A=[v].concat(w).reduce(function(H,Y){return H.concat(oc(Y)===zO?eve(t,{placement:Y,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:b}):Y)},[]),E=t.rects.reference,D=t.rects.popper,O=new Map,T=!0,I=A[0],N=0;N<A.length;N++){var $=A[N],R=oc($),F=cm($)===sm,j=[os,va].indexOf(R)>=0,z=j?"width":"height",L=Xy(t,{placement:$,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),q=j?F?xa:ss:F?va:os;E[z]>D[z]&&(q=N5(q));var V=N5(q),U=[];if(o&&U.push(L[R]<=0),a&&U.push(L[q]<=0,L[V]<=0),U.every(function(H){return H})){I=$,T=!1;break}O.set($,U)}if(T)for(var K=y?3:1,B=function(Y){var J=A.find(function(ne){var ee=O.get(ne);if(ee)return ee.slice(0,Y).every(function(se){return se})});if(J)return I=J,"break"},W=K;W>0;W--){var X=B(W);if(X==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const rve={name:"flip",enabled:!0,phase:"main",fn:nve,requiresIfExists:["offset"],data:{_skip:!1}};function dF(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fF(e){return[os,xa,va,ss].some(function(t){return e[t]>=0})}function ive(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Xy(t,{elementContext:"reference"}),a=Xy(t,{altBoundary:!0}),l=dF(s,r),c=dF(a,i,o),u=fF(l),f=fF(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const ove={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ive};function sve(e,t,n){var r=oc(e),i=[ss,os].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[ss,xa].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function ave(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=XX.reduce(function(u,f){return u[f]=sve(f,t.rects,o),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const lve={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ave};function cve(e){var t=e.state,n=e.name;t.modifiersData[n]=rZ({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const uve={name:"popperOffsets",enabled:!0,phase:"read",fn:cve,data:{}};function dve(e){return e==="x"?"y":"x"}function fve(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,y=n.tetherOffset,b=y===void 0?0:y,v=Xy(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),S=oc(t.placement),C=cm(t.placement),w=!C,A=VO(S),E=dve(A),D=t.modifiersData.popperOffsets,O=t.rects.reference,T=t.rects.popper,I=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,N=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(D){if(o){var F,j=A==="y"?os:ss,z=A==="y"?va:xa,L=A==="y"?"height":"width",q=D[A],V=q+v[j],U=q-v[z],K=g?-T[L]/2:0,B=C===sm?O[L]:T[L],W=C===sm?-T[L]:-O[L],X=t.elements.arrow,H=g&&X?UO(X):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:QX(),J=Y[j],ne=Y[z],ee=sy(0,O[L],H[L]),se=w?O[L]/2-K-ee-J-N.mainAxis:B-ee-J-N.mainAxis,ue=w?-O[L]/2+K+ee+ne+N.mainAxis:W+ee+ne+N.mainAxis,te=t.elements.arrow&&vb(t.elements.arrow),Z=te?A==="y"?te.clientTop||0:te.clientLeft||0:0,re=(F=$?.[A])!=null?F:0,oe=q+se-re-Z,fe=q+ue-re,be=sy(g?G4(V,oe):V,q,g?Eh(U,fe):U);D[A]=be,R[A]=be-q}if(a){var De,Oe=A==="x"?os:ss,Ke=A==="x"?va:xa,xe=D[E],Le=E==="y"?"height":"width",Me=xe+v[Oe],ht=xe-v[Ke],mt=[os,ss].indexOf(S)!==-1,ze=(De=$?.[E])!=null?De:0,Pe=mt?Me:xe-O[Le]-T[Le]-ze+N.altAxis,He=mt?xe+O[Le]+T[Le]-ze-N.altAxis:ht,Je=g&&mt?$be(Pe,xe,He):sy(g?Pe:Me,xe,g?He:ht);D[E]=Je,R[E]=Je-xe}t.modifiersData[r]=R}}const hve={name:"preventOverflow",enabled:!0,phase:"main",fn:fve,requiresIfExists:["offset"]};function pve(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mve(e){return e===Ns(e)||!ha(e)?WO(e):pve(e)}function gve(e){var t=e.getBoundingClientRect(),n=am(t.width)/e.offsetWidth||1,r=am(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yve(e,t,n){n===void 0&&(n=!1);var r=ha(t),i=ha(t)&&gve(t),o=bf(t),s=lm(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((dc(t)!=="body"||GO(o))&&(a=mve(t)),ha(t)?(l=lm(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=qO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function bve(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function vve(e){var t=bve(e);return Tbe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function xve(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Sve(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var hF={placement:"bottom",modifiers:[],strategy:"absolute"};function pF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function wve(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?hF:i;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},hF,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],h=!1,g={state:u,setOptions:function(S){var C=typeof S=="function"?S(u.options):S;b(),u.options=Object.assign({},o,u.options,C),u.scrollParents={reference:Ih(a)?ay(a):a.contextElement?ay(a.contextElement):[],popper:ay(l)};var w=vve(Sve([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(A){return A.enabled}),y(),g.update()},forceUpdate:function(){if(!h){var S=u.elements,C=S.reference,w=S.popper;if(pF(C,w)){u.rects={reference:yve(C,vb(w),u.options.strategy==="fixed"),popper:UO(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var A=0;A<u.orderedModifiers.length;A++){if(u.reset===!0){u.reset=!1,A=-1;continue}var E=u.orderedModifiers[A],D=E.fn,O=E.options,T=O===void 0?{}:O,I=E.name;typeof D=="function"&&(u=D({state:u,options:T,name:I,instance:g})||u)}}}},update:xve(function(){return new Promise(function(v){g.forceUpdate(),v(u)})}),destroy:function(){b(),h=!0}};if(!pF(a,l))return g;g.setOptions(c).then(function(v){!h&&c.onFirstUpdate&&c.onFirstUpdate(v)});function y(){u.orderedModifiers.forEach(function(v){var S=v.name,C=v.options,w=C===void 0?{}:C,A=v.effect;if(typeof A=="function"){var E=A({state:u,name:S,instance:g,options:w}),D=function(){};f.push(E||D)}})}function b(){f.forEach(function(v){return v()}),f=[]}return g}}var Cve=[qbe,uve,Vbe,Ibe,lve,rve,hve,Bbe,ove],Eve=wve({defaultModifiers:Cve});function Yr(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,s=i?{}:R4(n,r),{props:a,internalRef:l}=pX({...o,externalSlotProps:s}),c=Tr(l,s?.ref,e.additionalProps?.ref);return hX(t,{...a,ref:c},r)}function Ave(e){return typeof e=="function"?e():e}const iZ=_.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,a]=_.useState(null),l=Tr(_.isValidElement(r)?gf(r):null,n);if(Ho(()=>{o||a(Ave(i)||document.body)},[i,o]),Ho(()=>{if(s&&!o)return gk(n,s),()=>{gk(n,null)}},[n,s,o]),o){if(_.isValidElement(r)){const c={ref:l};return _.cloneElement(r,c)}return r}return s&&Dd.createPortal(r,s)});function kve(e){return Qe("MuiPopper",e)}tt("MuiPopper",["root"]);function _ve(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Ik(e){return typeof e=="function"?e():e}function Dve(e){return e.nodeType!==void 0}const Ove=e=>{const{classes:t}=e;return et({root:["root"]},kve,t)},Tve={},Mve=_.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:o,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:f,slotProps:h={},slots:g={},TransitionProps:y,ownerState:b,...v}=t,S=_.useRef(null),C=Tr(S,n),w=_.useRef(null),A=Tr(w,f),E=_.useRef(A);Ho(()=>{E.current=A},[A]),_.useImperativeHandle(f,()=>w.current,[]);const D=_ve(c,o),[O,T]=_.useState(D),[I,N]=_.useState(Ik(r));_.useEffect(()=>{w.current&&w.current.forceUpdate()}),_.useEffect(()=>{r&&N(Ik(r))},[r]),Ho(()=>{if(!I||!l)return;const z=V=>{T(V.placement)};let L=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{z(V)}}];a!=null&&(L=L.concat(a)),u&&u.modifiers!=null&&(L=L.concat(u.modifiers));const q=Eve(I,S.current,{placement:D,...u,modifiers:L});return E.current(q),()=>{q.destroy(),E.current(null)}},[I,s,a,l,u,D]);const $={placement:O};y!==null&&($.TransitionProps=y);const R=Ove(t),F=g.root??"div",j=Yr({elementType:F,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:R.root});return m.jsx(F,{...j,children:typeof i=="function"?i($):i})}),Rve=_.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:h=Tve,popperRef:g,style:y,transition:b=!1,slotProps:v={},slots:S={},...C}=t,[w,A]=_.useState(!0),E=()=>{A(!1)},D=()=>{A(!0)};if(!l&&!u&&(!b||w))return null;let O;if(o)O=o;else if(r){const N=Ik(r);O=N&&Dve(N)?Di(N).body:Di(null).body}const T=!u&&l&&(!b||w)?"none":void 0,I=b?{in:u,onEnter:E,onExited:D}:void 0;return m.jsx(iZ,{disablePortal:a,container:O,children:m.jsx(Mve,{anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:b?!w:u,placement:f,popperOptions:h,popperRef:g,slotProps:v,slots:S,...C,style:{position:"fixed",top:0,left:0,display:T,...y},TransitionProps:I,children:i})})}),Ive=me(Rve,{name:"MuiPopper",slot:"Root"})({}),sw=_.forwardRef(function(t,n){const r=mf(),i=it({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:g,placement:y,popperOptions:b,popperRef:v,transition:S,slots:C,slotProps:w,...A}=i,E=C?.root??a?.Root,D={anchorEl:o,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:g,placement:y,popperOptions:b,popperRef:v,transition:S,...A};return m.jsx(Ive,{as:s,direction:r?"rtl":"ltr",slots:{root:E},slotProps:w??l,...D,ref:n})});function Pve(e){return Qe("MuiTooltip",e)}const si=tt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function jve(e){return Math.round(e*1e5)/1e5}const $ve=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ye(o.split("-")[0])}`],arrow:["arrow"]};return et(s,Pve,t)},Lve=me(sw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${si.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${si.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${si.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${si.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${si.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${si.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${si.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${si.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Nve=me("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ye(n.placement.split("-")[0])}`]]}})(Ge(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${si.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${si.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${si.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${si.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${jve(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${si.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${si.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Fve=me("span",{name:"MuiTooltip",slot:"Arrow"})(Ge(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ox=!1;const mF=new YS;let d1={x:0,y:0};function Tx(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const cn=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:s,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:b=0,enterTouchDelay:v=700,followCursor:S=!1,id:C,leaveDelay:w=0,leaveTouchDelay:A=1500,onClose:E,onOpen:D,open:O,placement:T="bottom",PopperComponent:I,PopperProps:N={},slotProps:$={},slots:R={},title:F,TransitionComponent:j,TransitionProps:z,...L}=r,q=_.isValidElement(o)?o:m.jsx("span",{children:o}),V=ro(),U=mf(),[K,B]=_.useState(),[W,X]=_.useState(null),H=_.useRef(!1),Y=h||S,J=Od(),ne=Od(),ee=Od(),se=Od(),[ue,te]=Ya({controlled:O,default:!1,name:"Tooltip",state:"open"});let Z=ue;const re=Ou(C),oe=_.useRef(),fe=Ni(()=>{oe.current!==void 0&&(document.body.style.WebkitUserSelect=oe.current,oe.current=void 0),se.clear()});_.useEffect(()=>fe,[fe]);const be=St=>{mF.clear(),Ox=!0,te(!0),D&&!Z&&D(St)},De=Ni(St=>{mF.start(800+w,()=>{Ox=!1}),te(!1),E&&Z&&E(St),J.start(V.transitions.duration.shortest,()=>{H.current=!1})}),Oe=St=>{H.current&&St.type!=="touchstart"||(K&&K.removeAttribute("title"),ne.clear(),ee.clear(),y||Ox&&b?ne.start(Ox?b:y,()=>{be(St)}):be(St))},Ke=St=>{ne.clear(),ee.start(w,()=>{De(St)})},[,xe]=_.useState(!1),Le=St=>{Gd(St.target)||(xe(!1),Ke(St))},Me=St=>{K||B(St.currentTarget),Gd(St.target)&&(xe(!0),Oe(St))},ht=St=>{H.current=!0;const mn=q.props;mn.onTouchStart&&mn.onTouchStart(St)},mt=St=>{ht(St),ee.clear(),J.clear(),fe(),oe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.start(v,()=>{document.body.style.WebkitUserSelect=oe.current,Oe(St)})},ze=St=>{q.props.onTouchEnd&&q.props.onTouchEnd(St),fe(),ee.start(A,()=>{De(St)})};_.useEffect(()=>{if(!Z)return;function St(mn){mn.key==="Escape"&&De(mn)}return document.addEventListener("keydown",St),()=>{document.removeEventListener("keydown",St)}},[De,Z]);const Pe=Tr(gf(q),B,n);!F&&F!==0&&(Z=!1);const He=_.useRef(),Je=St=>{const mn=q.props;mn.onMouseMove&&mn.onMouseMove(St),d1={x:St.clientX,y:St.clientY},He.current&&He.current.update()},nt={},ot=typeof F=="string";c?(nt.title=!Z&&ot&&!f?F:null,nt["aria-describedby"]=Z?re:null):(nt["aria-label"]=ot?F:null,nt["aria-labelledby"]=Z&&!ot?re:null);const Xe={...nt,...L,...q.props,className:Te(L.className,q.props.className),onTouchStart:ht,ref:Pe,...S?{onMouseMove:Je}:{}},Lt={};g||(Xe.onTouchStart=mt,Xe.onTouchEnd=ze),f||(Xe.onMouseOver=Tx(Oe,Xe.onMouseOver),Xe.onMouseLeave=Tx(Ke,Xe.onMouseLeave),Y||(Lt.onMouseOver=Oe,Lt.onMouseLeave=Ke)),u||(Xe.onFocus=Tx(Me,Xe.onFocus),Xe.onBlur=Tx(Le,Xe.onBlur),Y||(Lt.onFocus=Me,Lt.onBlur=Le));const Nt={...r,isRtl:U,arrow:i,disableInteractive:Y,placement:T,PopperComponentProp:I,touch:H.current},Ot=typeof $.popper=="function"?$.popper(Nt):$.popper,Xn=_.useMemo(()=>{let St=[{name:"arrow",enabled:!!W,options:{element:W,padding:4}}];return N.popperOptions?.modifiers&&(St=St.concat(N.popperOptions.modifiers)),Ot?.popperOptions?.modifiers&&(St=St.concat(Ot.popperOptions.modifiers)),{...N.popperOptions,...Ot?.popperOptions,modifiers:St}},[W,N.popperOptions,Ot?.popperOptions]),rn=$ve(Nt),at=typeof $.transition=="function"?$.transition(Nt):$.transition,Ht={slots:{popper:a.Popper,transition:a.Transition??j,tooltip:a.Tooltip,arrow:a.Arrow,...R},slotProps:{arrow:$.arrow??l.arrow,popper:{...N,...Ot??l.popper},tooltip:$.tooltip??l.tooltip,transition:{...z,...at??l.transition}}},[Dn,Gn]=lt("popper",{elementType:Lve,externalForwardedProps:Ht,ownerState:Nt,className:Te(rn.popper,N?.className)}),[yr,Dt]=lt("transition",{elementType:Wy,externalForwardedProps:Ht,ownerState:Nt}),[jt,Jt]=lt("tooltip",{elementType:Nve,className:rn.tooltip,externalForwardedProps:Ht,ownerState:Nt}),[jn,on]=lt("arrow",{elementType:Fve,className:rn.arrow,externalForwardedProps:Ht,ownerState:Nt,ref:X});return m.jsxs(_.Fragment,{children:[_.cloneElement(q,Xe),m.jsx(Dn,{as:I??sw,placement:T,anchorEl:S?{getBoundingClientRect:()=>({top:d1.y,left:d1.x,right:d1.x,bottom:d1.y,width:0,height:0})}:K,popperRef:He,open:K?Z:!1,id:re,transition:!0,...Lt,...Gn,popperOptions:Xn,children:({TransitionProps:St})=>m.jsx(yr,{timeout:V.transitions.duration.shorter,...St,...Dt,children:m.jsxs(jt,{...Jt,children:[F,i?m.jsx(jn,{...on}):null]})})})]})}),Bve=_e(m.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),zve=me(ba,{name:"MuiBreadcrumbCollapsed"})(Ge(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:Uy(e.palette.grey[200],.12)}:{backgroundColor:Uy(e.palette.grey[600],.12)}}}))),Hve=me(Bve)({width:24,height:16});function Uve(e){const{slots:t={},slotProps:n={},...r}=e,i=e;return m.jsx("li",{children:m.jsx(zve,{focusRipple:!0,...r,ownerState:i,children:m.jsx(Hve,{as:t.CollapsedIcon,ownerState:i,...n.collapsedIcon})})})}function Vve(e){return Qe("MuiBreadcrumbs",e)}const Wve=tt("MuiBreadcrumbs",["root","ol","li","separator"]),qve=e=>{const{classes:t}=e;return et({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Vve,t)},Gve=me(ie,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Wve.li}`]:t.li},t.root]})({}),Kve=me("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Yve=me("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Xve(e,t,n,r){return e.reduce((i,o,s)=>(s<e.length-1?i=i.concat(o,m.jsx(Yve,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${s}`)):i.push(o),i),[])}const Zve=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiBreadcrumbs"}),{children:i,className:o,component:s="nav",slots:a={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:f=1,maxItems:h=8,separator:g="/",...y}=r,[b,v]=_.useState(!1),S={...r,component:s,expanded:b,expandText:c,itemsAfterCollapse:u,itemsBeforeCollapse:f,maxItems:h,separator:g},C=qve(S),w=Yr({elementType:a.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:S}),A=_.useRef(null),E=O=>{const T=()=>{v(!0);const I=A.current.querySelector("a[href],button,[tabindex]");I&&I.focus()};return f+u>=O.length?O:[...O.slice(0,f),m.jsx(Uve,{"aria-label":c,slots:{CollapsedIcon:a.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:T},"ellipsis"),...O.slice(O.length-u,O.length)]},D=_.Children.toArray(i).filter(O=>_.isValidElement(O)).map((O,T)=>m.jsx("li",{className:C.li,children:O},`child-${T}`));return m.jsx(Gve,{ref:n,component:s,color:"textSecondary",className:Te(C.root,o),ownerState:S,...y,children:m.jsx(Kve,{className:C.ol,ref:A,ownerState:S,children:Xve(b||h&&D.length<=h?D:E(D),C.separator,g,S)})})});function Jve(e){return Qe("MuiLink",e)}const Qve=tt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),exe=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const o=Rl(e,`palette.${n}.main`)||Rl(e,`palette.${n}`)||t.color;return e.alpha(o,.4)}const r=Rl(e,`palette.${n}.main`,!1)||Rl(e,`palette.${n}`,!1)||t.color,i=Rl(e,`palette.${n}.mainChannel`)||Rl(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Hl(r,.4)},gF={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},txe=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${ye(i)}`,n==="button"&&"button",r&&"focusVisible"]};return et(o,Jve,t)},nxe=me(ie,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ye(n.underline)}`],n.component==="button"&&t.button]}})(Ge(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Qve.focusVisible}`]:{outline:"auto"}}}]}))),aw=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiLink"}),i=ro(),{className:o,color:s="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:f="always",variant:h="inherit",sx:g,...y}=r,[b,v]=_.useState(!1),S=E=>{Gd(E.target)||v(!1),l&&l(E)},C=E=>{Gd(E.target)&&v(!0),c&&c(E)},w={...r,color:s,component:a,focusVisible:b,underline:f,variant:h},A=txe(w);return m.jsx(nxe,{color:s,className:Te(A.root,o),classes:u,component:a,onBlur:S,onFocus:C,ref:n,ownerState:w,variant:h,...y,sx:[...gF[s]===void 0?[{color:s}]:[],...Array.isArray(g)?g:[g]],style:{...y.style,...f==="always"&&s!=="inherit"&&!gF[s]&&{"--Link-underlineColor":exe({theme:i,ownerState:w})}}})}),rxe=({name:e,to:t})=>m.jsx(aw,{color:"inherit",underline:"hover",component:Du,to:t,children:e}),lw=({items:e})=>m.jsx(Zve,{separator:"›",children:e.map((t,n)=>m.jsx(rxe,{...t},n.toString()))}),fc=_e(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),Ah=_e(m.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),Fs=_e(m.jsx("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"})),cw=_e(m.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),KO=_e(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),uw=_e(m.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"})),YO=_e(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),F5=_e(m.jsx("path",{d:"M15 21h-2v-2h2zm-2-7h-2v5h2zm8-2h-2v4h2zm-2-2h-2v2h2zM7 12H5v2h2zm-2-2H3v2h2zm7-5h2V3h-2zm-7.5-.5v3h3v-3zM9 9H3V3h6zm-4.5 7.5v3h3v-3zM9 21H3v-6h6zm7.5-16.5v3h3v-3zM21 9h-6V3h6zm-2 10v-3h-4v2h2v3h4v-2zm-2-7h-4v2h4zm-4-2H7v2h2v2h2v-2h2zm1-1V7h-2V5h-2v4zM6.75 5.25h-1.5v1.5h1.5zm0 12h-1.5v1.5h1.5zm12-12h-1.5v1.5h1.5z"})),oZ=_e(m.jsx("path",{d:"M19 13H5v-2h14z"})),dw=_e(m.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Yd=_e([m.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),m.jsx("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")]),sZ=_e(m.jsx("path",{d:"m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9m8 8 3 3 3-3c-1.65-1.66-4.34-1.66-6 0m-4-4 2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13"})),ixe=_e(m.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function oxe(e){return Qe("MuiAvatar",e)}tt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const sxe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return et({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},oxe,t)},axe=me("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ge(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),lxe=me("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),cxe=me(ixe,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function uxe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=_.useState(!1);return _.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&o("loaded")},a.onerror=()=>{s&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const rl=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:g,variant:y="circular",...b}=r;let v=null;const S={...r,component:a,variant:y},C=uxe({...u,...typeof c.img=="function"?c.img(S):c.img,src:h,srcSet:g}),w=h||g,A=w&&C!=="error";S.colorDefault=!A,delete S.ownerState;const E=sxe(S),[D,O]=lt("root",{ref:n,className:Te(E.root,s),elementType:axe,externalForwardedProps:{slots:l,slotProps:c,component:a,...b},ownerState:S}),[T,I]=lt("img",{className:E.img,elementType:lxe,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:i,src:h,srcSet:g,sizes:f},ownerState:S}),[N,$]=lt("fallback",{className:E.fallback,elementType:cxe,externalForwardedProps:{slots:l,slotProps:c},shouldForwardComponentProp:!0,ownerState:S});return A?v=m.jsx(T,{...I}):o||o===0?v=o:w&&i?v=i[0]:v=m.jsx(N,{...$}),m.jsx(D,{...O,children:v})});function dxe(e){return Qe("MuiCard",e)}tt("MuiCard",["root"]);const fxe=e=>{const{classes:t}=e;return et({root:["root"]},dxe,t)},hxe=me(Ur,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),tr=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCard"}),{className:i,raised:o=!1,...s}=r,a={...r,raised:o},l=fxe(a);return m.jsx(hxe,{className:Te(l.root,i),elevation:o?8:void 0,ref:n,ownerState:a,...s})});function pxe(e){return Qe("MuiCardContent",e)}tt("MuiCardContent",["root"]);const mxe=e=>{const{classes:t}=e;return et({root:["root"]},pxe,t)},gxe=me("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),gr=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCardContent"}),{className:i,component:o="div",...s}=r,a={...r,component:o},l=mxe(a);return m.jsx(gxe,{as:o,className:Te(l.root,i),ownerState:a,ref:n,...s})}),yxe=_e(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function bxe(e){return Qe("MuiChip",e)}const En=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),vxe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ye(r)}`,`color${ye(i)}`,a&&"clickable",a&&`clickableColor${ye(i)}`,s&&"deletable",s&&`deletableColor${ye(i)}`,`${l}${ye(i)}`],label:["label",`label${ye(r)}`],avatar:["avatar",`avatar${ye(r)}`,`avatarColor${ye(i)}`],icon:["icon",`icon${ye(r)}`,`iconColor${ye(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ye(r)}`,`deleteIconColor${ye(i)}`,`deleteIcon${ye(l)}Color${ye(i)}`]};return et(c,bxe,t)},xxe=me("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${En.avatar}`]:t.avatar},{[`& .${En.avatar}`]:t[`avatar${ye(a)}`]},{[`& .${En.avatar}`]:t[`avatarColor${ye(r)}`]},{[`& .${En.icon}`]:t.icon},{[`& .${En.icon}`]:t[`icon${ye(a)}`]},{[`& .${En.icon}`]:t[`iconColor${ye(i)}`]},{[`& .${En.deleteIcon}`]:t.deleteIcon},{[`& .${En.deleteIcon}`]:t[`deleteIcon${ye(a)}`]},{[`& .${En.deleteIcon}`]:t[`deleteIconColor${ye(r)}`]},{[`& .${En.deleteIcon}`]:t[`deleteIcon${ye(l)}Color${ye(r)}`]},t.root,t[`size${ye(a)}`],t[`color${ye(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${ye(r)}`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ye(r)}`],t[l],t[`${l}${ye(r)}`]]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${En.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${En.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${En.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${En.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${En.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${En.icon}`]:{marginLeft:5,marginRight:-6},[`& .${En.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${En.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${En.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Fn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${En.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${En.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${En.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Fn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${En.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Fn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${En.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${En.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${En.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${En.avatar}`]:{marginLeft:4},[`& .${En.avatarSmall}`]:{marginLeft:2},[`& .${En.icon}`]:{marginLeft:4},[`& .${En.iconSmall}`]:{marginLeft:2},[`& .${En.deleteIcon}`]:{marginRight:5},[`& .${En.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Fn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${En.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${En.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Sxe=me("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ye(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function yF(e){return e.key==="Backspace"||e.key==="Delete"}const Et=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:g,onDelete:y,onKeyDown:b,onKeyUp:v,size:S="medium",variant:C="filled",tabIndex:w,skipFocusWhenDisabled:A=!1,slots:E={},slotProps:D={},...O}=r,T=_.useRef(null),I=Tr(T,n),N=J=>{J.stopPropagation(),y(J)},$=J=>{J.currentTarget===J.target&&yF(J)&&J.preventDefault(),b&&b(J)},R=J=>{J.currentTarget===J.target&&y&&yF(J)&&y(J),v&&v(J)},F=s!==!1&&g?!0:s,j=F||y?ba:l||"div",z={...r,component:j,disabled:u,size:S,color:a,iconColor:_.isValidElement(f)&&f.props.color||a,onDelete:!!y,clickable:F,variant:C},L=vxe(z),q=j===ba?{component:l||"div",focusVisibleClassName:L.focusVisible,...y&&{disableRipple:!0}}:{};let V=null;y&&(V=c&&_.isValidElement(c)?_.cloneElement(c,{className:Te(c.props.className,L.deleteIcon),onClick:N}):m.jsx(yxe,{className:L.deleteIcon,onClick:N}));let U=null;i&&_.isValidElement(i)&&(U=_.cloneElement(i,{className:Te(L.avatar,i.props.className)}));let K=null;f&&_.isValidElement(f)&&(K=_.cloneElement(f,{className:Te(L.icon,f.props.className)}));const B={slots:E,slotProps:D},[W,X]=lt("root",{elementType:xxe,externalForwardedProps:{...B,...O},ownerState:z,shouldForwardComponentProp:!0,ref:I,className:Te(L.root,o),additionalProps:{disabled:F&&u?!0:void 0,tabIndex:A&&u?-1:w,...q},getSlotProps:J=>({...J,onClick:ne=>{J.onClick?.(ne),g?.(ne)},onKeyDown:ne=>{J.onKeyDown?.(ne),$(ne)},onKeyUp:ne=>{J.onKeyUp?.(ne),R(ne)}})}),[H,Y]=lt("label",{elementType:Sxe,externalForwardedProps:B,ownerState:z,className:L.label});return m.jsxs(W,{as:j,...X,children:[U||K,m.jsx(H,{...Y,children:h}),V]})});function aZ(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function wxe(e){const t=Di(e);return t.body===e?tl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ly(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bF(e){return parseFloat(tl(e).getComputedStyle(e).paddingRight)||0}function Cxe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function vF(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=!o.includes(s),l=!Cxe(s);a&&l&&ly(s,i)})}function D7(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Exe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(wxe(r)){const s=aZ(tl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${bF(r)+s}px`;const a=Di(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${bF(l)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Di(r).body;else{const s=r.parentElement,a=tl(r);o=s?.nodeName==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function Axe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class kxe{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ly(t.modalRef,!1);const i=Axe(n);vF(n,t.mount,t.modalRef,i,!0);const o=D7(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=D7(this.containers,o=>o.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=Exe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=D7(this.containers,s=>s.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&ly(t.modalRef,n),vF(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&ly(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function z1(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const _xe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Dxe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Oxe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Txe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Oxe(e))}function Mxe(e){const t=[],n=[];return Array.from(e.querySelectorAll(_xe)).forEach((r,i)=>{const o=Dxe(r);o===-1||!Txe(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function Rxe(){return!0}function Ixe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Mxe,isEnabled:s=Rxe,open:a}=e,l=_.useRef(!1),c=_.useRef(null),u=_.useRef(null),f=_.useRef(null),h=_.useRef(null),g=_.useRef(!1),y=_.useRef(null),b=Tr(gf(t),y),v=_.useRef(null);_.useEffect(()=>{!a||!y.current||(g.current=!n)},[n,a]),_.useEffect(()=>{if(!a||!y.current)return;const w=Di(y.current),A=z1(w);return y.current.contains(A)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),_.useEffect(()=>{if(!a||!y.current)return;const w=Di(y.current),A=O=>{if(v.current=O,r||!s()||O.key!=="Tab")return;z1(w)===y.current&&O.shiftKey&&(l.current=!0,u.current&&u.current.focus())},E=()=>{const O=y.current;if(O===null)return;const T=z1(w);if(!w.hasFocus()||!s()||l.current){l.current=!1;return}if(O.contains(T)||r&&T!==c.current&&T!==u.current)return;if(T!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let I=[];if((T===c.current||T===u.current)&&(I=o(y.current)),I.length>0){const N=!!(v.current?.shiftKey&&v.current?.key==="Tab"),$=I[0],R=I[I.length-1];typeof $!="string"&&typeof R!="string"&&(N?R.focus():$.focus())}else O.focus()};w.addEventListener("focusin",E),w.addEventListener("keydown",A,!0);const D=setInterval(()=>{const O=z1(w);O&&O.tagName==="BODY"&&E()},50);return()=>{clearInterval(D),w.removeEventListener("focusin",E),w.removeEventListener("keydown",A,!0)}},[n,r,i,s,a,o]);const S=w=>{f.current===null&&(f.current=w.relatedTarget),g.current=!0,h.current=w.target;const A=t.props.onFocus;A&&A(w)},C=w=>{f.current===null&&(f.current=w.relatedTarget),g.current=!0};return m.jsxs(_.Fragment,{children:[m.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:b,onFocus:S}),m.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}const Pxe={entering:{opacity:1},entered:{opacity:1}},Pk=_.forwardRef(function(t,n){const r=ro(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:g,onExited:y,onExiting:b,style:v,timeout:S=i,TransitionComponent:C=Ta,...w}=t,A=_.useRef(null),E=Tr(A,gf(a),n),D=j=>z=>{if(j){const L=A.current;z===void 0?j(L):j(L,z)}},O=D(h),T=D((j,z)=>{IO(j);const L=Kd({style:v,timeout:S,easing:l},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",L),j.style.transition=r.transitions.create("opacity",L),u&&u(j,z)}),I=D(f),N=D(b),$=D(j=>{const z=Kd({style:v,timeout:S,easing:l},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",z),j.style.transition=r.transitions.create("opacity",z),g&&g(j)}),R=D(y),F=j=>{o&&o(A.current,j)};return m.jsx(C,{appear:s,in:c,nodeRef:A,onEnter:T,onEntered:I,onEntering:O,onExit:$,onExited:R,onExiting:N,addEndListener:F,timeout:S,...w,children:(j,{ownerState:z,...L})=>_.cloneElement(a,{style:{opacity:0,visibility:j==="exited"&&!c?"hidden":void 0,...Pxe[j],...v,...a.props.style},ref:E,...L})})});function jxe(e){return Qe("MuiBackdrop",e)}tt("MuiBackdrop",["root","invisible"]);const $xe=e=>{const{classes:t,invisible:n}=e;return et({root:["root",n&&"invisible"]},jxe,t)},Lxe=me("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),XO=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:s="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:f={},slots:h={},TransitionComponent:g,transitionDuration:y,...b}=r,v={...r,component:s,invisible:a},S=$xe(v),C={transition:g,root:c.Root,...h},w={...u,...f},A={component:s,slots:C,slotProps:w},[E,D]=lt("root",{elementType:Lxe,externalForwardedProps:A,className:Te(S.root,o),ownerState:v}),[O,T]=lt("transition",{elementType:Pk,externalForwardedProps:A,ownerState:v});return m.jsx(O,{in:l,timeout:y,...b,...T,children:m.jsx(E,{"aria-hidden":!0,...D,ref:n,children:i})})});function Nxe(e){return typeof e=="function"?e():e}function Fxe(e){return e?e.props.hasOwnProperty("in"):!1}const xF=()=>{},Mx=new kxe;function Bxe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:s,children:a,onClose:l,open:c,rootRef:u}=e,f=_.useRef({}),h=_.useRef(null),g=_.useRef(null),y=Tr(g,u),[b,v]=_.useState(!c),S=Fxe(a);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>Di(h.current),A=()=>(f.current.modalRef=g.current,f.current.mount=h.current,f.current),E=()=>{Mx.mount(A(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},D=Ni(()=>{const z=Nxe(t)||w().body;Mx.add(A(),z),g.current&&E()}),O=()=>Mx.isTopModal(A()),T=Ni(z=>{h.current=z,z&&(c&&O()?E():g.current&&ly(g.current,C))}),I=_.useCallback(()=>{Mx.remove(A(),C)},[C]);_.useEffect(()=>()=>{I()},[I]),_.useEffect(()=>{c?D():(!S||!i)&&I()},[c,I,S,i,D]);const N=z=>L=>{z.onKeyDown?.(L),!(L.key!=="Escape"||L.which===229||!O())&&(n||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},$=z=>L=>{z.onClick?.(L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(z={})=>{const L=Yi(e);delete L.onTransitionEnter,delete L.onTransitionExited;const q={...L,...z};return{role:"presentation",...q,onKeyDown:N(q),ref:y}},getBackdropProps:(z={})=>{const L=z;return{"aria-hidden":!0,...L,onClick:$(L),open:c}},getTransitionProps:()=>{const z=()=>{v(!1),o&&o()},L=()=>{v(!0),s&&s(),i&&I()};return{onEnter:mk(z,a?.props.onEnter??xF),onExited:mk(L,a?.props.onExited??xF)}},rootRef:y,portalRef:T,isTopModal:O,exited:b,hasTransition:S}}function zxe(e){return Qe("MuiModal",e)}tt("MuiModal",["root","hidden","backdrop"]);const Hxe=e=>{const{open:t,exited:n,classes:r}=e;return et({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zxe,r)},Uxe=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ge(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Vxe=me(XO,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ZO=_.forwardRef(function(t,n){const r=it({name:"MuiModal",props:t}),{BackdropComponent:i=Vxe,BackdropProps:o,classes:s,className:a,closeAfterTransition:l=!1,children:c,container:u,component:f,components:h={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:v=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:A=!1,keepMounted:E=!1,onClose:D,onTransitionEnter:O,onTransitionExited:T,open:I,slotProps:N={},slots:$={},theme:R,...F}=r,j={...r,closeAfterTransition:l,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:v,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:A,keepMounted:E},{getRootProps:z,getBackdropProps:L,getTransitionProps:q,portalRef:V,isTopModal:U,exited:K,hasTransition:B}=Bxe({...j,rootRef:n}),W={...j,exited:K},X=Hxe(W),H={};if(c.props.tabIndex===void 0&&(H.tabIndex="-1"),B){const{onEnter:ue,onExited:te}=q();H.onEnter=ue,H.onExited=te}const Y={slots:{root:h.Root,backdrop:h.Backdrop,...$},slotProps:{...g,...N}},[J,ne]=lt("root",{ref:n,elementType:Uxe,externalForwardedProps:{...Y,...F,component:f},getSlotProps:z,ownerState:W,className:Te(a,X?.root,!W.open&&W.exited&&X?.hidden)}),[ee,se]=lt("backdrop",{ref:o?.ref,elementType:i,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ue=>L({...ue,onClick:te=>{ue?.onClick&&ue.onClick(te)}}),className:Te(o?.className,X?.backdrop),ownerState:W});return!E&&!I&&(!B||K)?null:m.jsx(iZ,{ref:V,container:u,disablePortal:S,children:m.jsxs(J,{...ne,children:[!A&&i?m.jsx(ee,{...se}):null,m.jsx(Ixe,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:U,open:I,children:_.cloneElement(c,H)})]})})});function Wxe(e){return Qe("MuiDialog",e)}const O7=tt("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),lZ=_.createContext({}),qxe=me(XO,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),Gxe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],backdrop:["backdrop"],container:["container",`scroll${ye(n)}`],paper:["paper",`paperScroll${ye(n)}`,`paperWidth${ye(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return et(s,Wxe,t)},Kxe=me(ZO,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Yxe=me("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ye(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Xxe=me(Ur,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ye(n.scroll)}`],t[`paperWidth${ye(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ge(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${O7.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${O7.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${O7.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),vu=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialog"}),i=ro(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:f,className:h,disableEscapeKeyDown:g=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:v="sm",onClick:S,onClose:C,open:w,PaperComponent:A=Ur,PaperProps:E={},scroll:D="paper",slots:O={},slotProps:T={},TransitionComponent:I=Pk,transitionDuration:N=o,TransitionProps:$,...R}=r,F={...r,disableEscapeKeyDown:g,fullScreen:y,fullWidth:b,maxWidth:v,scroll:D},j=Gxe(F),z=_.useRef(),L=re=>{z.current=re.target===re.currentTarget},q=re=>{S&&S(re),z.current&&(z.current=null,C&&C(re,"backdropClick"))},V=Ou(a),U=_.useMemo(()=>({titleId:V}),[V]),K={transition:I,...O},B={transition:$,paper:E,backdrop:u,...T},W={slots:K,slotProps:B},[X,H]=lt("root",{elementType:Kxe,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:F,className:Te(j.root,h),ref:n}),[Y,J]=lt("backdrop",{elementType:qxe,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:F,className:j.backdrop}),[ne,ee]=lt("paper",{elementType:Xxe,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:F,className:Te(j.paper,E.className)}),[se,ue]=lt("container",{elementType:Yxe,externalForwardedProps:W,ownerState:F,className:j.container}),[te,Z]=lt("transition",{elementType:Pk,externalForwardedProps:W,ownerState:F,additionalProps:{appear:!0,in:w,timeout:N,role:"presentation"}});return m.jsx(X,{closeAfterTransition:!0,slots:{backdrop:Y},slotProps:{backdrop:{transitionDuration:N,as:c,...J}},disableEscapeKeyDown:g,onClose:C,open:w,onClick:q,...H,...R,children:m.jsx(te,{...Z,children:m.jsx(se,{onMouseDown:L,...ue,children:m.jsx(ne,{as:A,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":V,"aria-modal":l,...ee,children:m.jsx(lZ.Provider,{value:U,children:f})})})})})});function Zxe(e){return Qe("MuiDialogActions",e)}tt("MuiDialogActions",["root","spacing"]);const Jxe=e=>{const{classes:t,disableSpacing:n}=e;return et({root:["root",!n&&"spacing"]},Zxe,t)},Qxe=me("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Xd=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...s}=r,a={...r,disableSpacing:o},l=Jxe(a);return m.jsx(Qxe,{className:Te(l.root,i),ownerState:a,ref:n,...s})});function e3e(e){return Qe("MuiDialogContent",e)}tt("MuiDialogContent",["root","dividers"]);function t3e(e){return Qe("MuiDialogTitle",e)}const n3e=tt("MuiDialogTitle",["root"]),r3e=e=>{const{classes:t,dividers:n}=e;return et({root:["root",n&&"dividers"]},e3e,t)},i3e=me("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ge(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${n3e.root} + &`]:{paddingTop:0}}}]}))),xu=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...s}=r,a={...r,dividers:o},l=r3e(a);return m.jsx(i3e,{className:Te(l.root,i),ownerState:a,ref:n,...s})}),o3e=e=>{const{classes:t}=e;return et({root:["root"]},t3e,t)},s3e=me(ie,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Su=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialogTitle"}),{className:i,id:o,...s}=r,a=r,l=o3e(a),{titleId:c=o}=_.useContext(lZ);return m.jsx(s3e,{component:"h2",className:Te(l.root,i),ownerState:a,ref:n,variant:"h6",id:o??c,...s})});function a3e(e){return Qe("MuiDivider",e)}const SF=tt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),l3e=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=e;return et({root:["root",t&&"absolute",l,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},a3e,r)},c3e=me("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Ge(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),u3e=me("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ge(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),gi=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,orientation:a="horizontal",component:l=o||a==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:f=l!=="hr"?"separator":void 0,textAlign:h="center",variant:g="fullWidth",...y}=r,b={...r,absolute:i,component:l,flexItem:c,light:u,orientation:a,role:f,textAlign:h,variant:g},v=l3e(b);return m.jsx(c3e,{as:l,className:Te(v.root,s),role:f,ref:n,ownerState:b,"aria-orientation":f==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...y,children:o?m.jsx(u3e,{className:v.wrapper,ownerState:b,children:o}):null})});gi&&(gi.muiSkipListHighlight=!0);const dt=age({createStyledComponent:me("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>it({props:e,name:"MuiGrid"}),useTheme:ro});var d3e=Object.defineProperty,K4=Object.getOwnPropertySymbols,cZ=Object.prototype.hasOwnProperty,uZ=Object.prototype.propertyIsEnumerable,wF=(e,t,n)=>t in e?d3e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jk=(e,t)=>{for(var n in t||(t={}))cZ.call(t,n)&&wF(e,n,t[n]);if(K4)for(var n of K4(t))uZ.call(t,n)&&wF(e,n,t[n]);return e},$k=(e,t)=>{var n={};for(var r in e)cZ.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&K4)for(var r of K4(e))t.indexOf(r)<0&&uZ.call(e,r)&&(n[r]=e[r]);return n};var Ph;(e=>{const t=class An{constructor(l,c,u,f){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],l<An.MIN_VERSION||l>An.MAX_VERSION)throw new RangeError("Version value out of range");if(f<-1||f>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let h=[];for(let y=0;y<this.size;y++)h.push(!1);for(let y=0;y<this.size;y++)this.modules.push(h.slice()),this.isFunction.push(h.slice());this.drawFunctionPatterns();const g=this.addEccAndInterleave(u);if(this.drawCodewords(g),f==-1){let y=1e9;for(let b=0;b<8;b++){this.applyMask(b),this.drawFormatBits(b);const v=this.getPenaltyScore();v<y&&(f=b,y=v),this.applyMask(b)}}i(0<=f&&f<=7),this.mask=f,this.applyMask(f),this.drawFormatBits(f),this.isFunction=[]}static encodeText(l,c){const u=e.QrSegment.makeSegments(l);return An.encodeSegments(u,c)}static encodeBinary(l,c){const u=e.QrSegment.makeBytes(l);return An.encodeSegments([u],c)}static encodeSegments(l,c,u=1,f=40,h=-1,g=!0){if(!(An.MIN_VERSION<=u&&u<=f&&f<=An.MAX_VERSION)||h<-1||h>7)throw new RangeError("Invalid value");let y,b;for(y=u;;y++){const w=An.getNumDataCodewords(y,c)*8,A=s.getTotalBits(l,y);if(A<=w){b=A;break}if(y>=f)throw new RangeError("Data too long")}for(const w of[An.Ecc.MEDIUM,An.Ecc.QUARTILE,An.Ecc.HIGH])g&&b<=An.getNumDataCodewords(y,w)*8&&(c=w);let v=[];for(const w of l){n(w.mode.modeBits,4,v),n(w.numChars,w.mode.numCharCountBits(y),v);for(const A of w.getData())v.push(A)}i(v.length==b);const S=An.getNumDataCodewords(y,c)*8;i(v.length<=S),n(0,Math.min(4,S-v.length),v),n(0,(8-v.length%8)%8,v),i(v.length%8==0);for(let w=236;v.length<S;w^=253)n(w,8,v);let C=[];for(;C.length*8<v.length;)C.push(0);return v.forEach((w,A)=>C[A>>>3]|=w<<7-(A&7)),new An(y,c,C,h)}getModule(l,c){return 0<=l&&l<this.size&&0<=c&&c<this.size&&this.modules[c][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),c=l.length;for(let u=0;u<c;u++)for(let f=0;f<c;f++)u==0&&f==0||u==0&&f==c-1||u==c-1&&f==0||this.drawAlignmentPattern(l[u],l[f]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const c=this.errorCorrectionLevel.formatBits<<3|l;let u=c;for(let h=0;h<10;h++)u=u<<1^(u>>>9)*1335;const f=(c<<10|u)^21522;i(f>>>15==0);for(let h=0;h<=5;h++)this.setFunctionModule(8,h,r(f,h));this.setFunctionModule(8,7,r(f,6)),this.setFunctionModule(8,8,r(f,7)),this.setFunctionModule(7,8,r(f,8));for(let h=9;h<15;h++)this.setFunctionModule(14-h,8,r(f,h));for(let h=0;h<8;h++)this.setFunctionModule(this.size-1-h,8,r(f,h));for(let h=8;h<15;h++)this.setFunctionModule(8,this.size-15+h,r(f,h));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;i(c>>>18==0);for(let u=0;u<18;u++){const f=r(c,u),h=this.size-11+u%3,g=Math.floor(u/3);this.setFunctionModule(h,g,f),this.setFunctionModule(g,h,f)}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let f=-4;f<=4;f++){const h=Math.max(Math.abs(f),Math.abs(u)),g=l+f,y=c+u;0<=g&&g<this.size&&0<=y&&y<this.size&&this.setFunctionModule(g,y,h!=2&&h!=4)}}drawAlignmentPattern(l,c){for(let u=-2;u<=2;u++)for(let f=-2;f<=2;f++)this.setFunctionModule(l+f,c+u,Math.max(Math.abs(f),Math.abs(u))!=1)}setFunctionModule(l,c,u){this.modules[c][l]=u,this.isFunction[c][l]=!0}addEccAndInterleave(l){const c=this.version,u=this.errorCorrectionLevel;if(l.length!=An.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");const f=An.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],h=An.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],g=Math.floor(An.getNumRawDataModules(c)/8),y=f-g%f,b=Math.floor(g/f);let v=[];const S=An.reedSolomonComputeDivisor(h);for(let w=0,A=0;w<f;w++){let E=l.slice(A,A+b-h+(w<y?0:1));A+=E.length;const D=An.reedSolomonComputeRemainder(E,S);w<y&&E.push(0),v.push(E.concat(D))}let C=[];for(let w=0;w<v[0].length;w++)v.forEach((A,E)=>{(w!=b-h||E>=y)&&C.push(A[w])});return i(C.length==g),C}drawCodewords(l){if(l.length!=Math.floor(An.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let f=0;f<this.size;f++)for(let h=0;h<2;h++){const g=u-h,b=(u+1&2)==0?this.size-1-f:f;!this.isFunction[b][g]&&c<l.length*8&&(this.modules[b][g]=r(l[c>>>3],7-(c&7)),c++)}}i(c==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c<this.size;c++)for(let u=0;u<this.size;u++){let f;switch(l){case 0:f=(u+c)%2==0;break;case 1:f=c%2==0;break;case 2:f=u%3==0;break;case 3:f=(u+c)%3==0;break;case 4:f=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:f=u*c%2+u*c%3==0;break;case 6:f=(u*c%2+u*c%3)%2==0;break;case 7:f=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&f&&(this.modules[c][u]=!this.modules[c][u])}}getPenaltyScore(){let l=0;for(let h=0;h<this.size;h++){let g=!1,y=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[h][v]==g?(y++,y==5?l+=An.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),g||(l+=this.finderPenaltyCountPatterns(b)*An.PENALTY_N3),g=this.modules[h][v],y=1);l+=this.finderPenaltyTerminateAndCount(g,y,b)*An.PENALTY_N3}for(let h=0;h<this.size;h++){let g=!1,y=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[v][h]==g?(y++,y==5?l+=An.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),g||(l+=this.finderPenaltyCountPatterns(b)*An.PENALTY_N3),g=this.modules[v][h],y=1);l+=this.finderPenaltyTerminateAndCount(g,y,b)*An.PENALTY_N3}for(let h=0;h<this.size-1;h++)for(let g=0;g<this.size-1;g++){const y=this.modules[h][g];y==this.modules[h][g+1]&&y==this.modules[h+1][g]&&y==this.modules[h+1][g+1]&&(l+=An.PENALTY_N2)}let c=0;for(const h of this.modules)c=h.reduce((g,y)=>g+(y?1:0),c);const u=this.size*this.size,f=Math.ceil(Math.abs(c*20-u*10)/u)-1;return i(0<=f&&f<=9),l+=f*An.PENALTY_N4,i(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let f=this.size-7;u.length<l;f-=c)u.splice(1,0,f);return u}}static getNumRawDataModules(l){if(l<An.MIN_VERSION||l>An.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36)}return i(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(An.getNumRawDataModules(l)/8)-An.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*An.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let f=0;f<l-1;f++)c.push(0);c.push(1);let u=1;for(let f=0;f<l;f++){for(let h=0;h<c.length;h++)c[h]=An.reedSolomonMultiply(c[h],u),h+1<c.length&&(c[h]^=c[h+1]);u=An.reedSolomonMultiply(u,2)}return c}static reedSolomonComputeRemainder(l,c){let u=c.map(f=>0);for(const f of l){const h=f^u.shift();u.push(0),c.forEach((g,y)=>u[y]^=An.reedSolomonMultiply(g,h))}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let f=7;f>=0;f--)u=u<<1^(u>>>7)*285,u^=(c>>>f&1)*l;return i(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];i(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return(u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(a,l,c){if(l<0||l>31||a>>>l)throw new RangeError("Value out of range");for(let u=l-1;u>=0;u--)c.push(a>>>u&1)}function r(a,l){return(a>>>l&1)!=0}function i(a){if(!a)throw new Error("Assertion error")}const o=class ri{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}static makeBytes(l){let c=[];for(const u of l)n(u,8,c);return new ri(ri.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!ri.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u<l.length;){const f=Math.min(l.length-u,3);n(parseInt(l.substring(u,u+f),10),f*3+1,c),u+=f}return new ri(ri.Mode.NUMERIC,l.length,c)}static makeAlphanumeric(l){if(!ri.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let c=[],u;for(u=0;u+2<=l.length;u+=2){let f=ri.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u))*45;f+=ri.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u+1)),n(f,11,c)}return u<l.length&&n(ri.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u)),6,c),new ri(ri.Mode.ALPHANUMERIC,l.length,c)}static makeSegments(l){return l==""?[]:ri.isNumeric(l)?[ri.makeNumeric(l)]:ri.isAlphanumeric(l)?[ri.makeAlphanumeric(l)]:[ri.makeBytes(ri.toUtf8ByteArray(l))]}static makeEci(l){let c=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)n(l,8,c);else if(l<16384)n(2,2,c),n(l,14,c);else if(l<1e6)n(6,3,c),n(l,21,c);else throw new RangeError("ECI assignment value out of range");return new ri(ri.Mode.ECI,0,c)}static isNumeric(l){return ri.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return ri.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,c){let u=0;for(const f of l){const h=f.mode.numCharCountBits(c);if(f.numChars>=1<<h)return 1/0;u+=4+h+f.bitData.length}return u}static toUtf8ByteArray(l){l=encodeURI(l);let c=[];for(let u=0;u<l.length;u++)l.charAt(u)!="%"?c.push(l.charCodeAt(u)):(c.push(parseInt(l.substring(u+1,u+3),16)),u+=2);return c}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=o;e.QrSegment=o})(Ph||(Ph={}));(e=>{(t=>{const n=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(Ph||(Ph={}));(e=>{(t=>{const n=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(Ph||(Ph={}));var b0=Ph;var f3e={L:b0.QrCode.Ecc.LOW,M:b0.QrCode.Ecc.MEDIUM,Q:b0.QrCode.Ecc.QUARTILE,H:b0.QrCode.Ecc.HIGH},dZ=128,fZ="L",hZ="#FFFFFF",pZ="#000000",mZ=!1,gZ=1,h3e=4,p3e=0,m3e=.1;function yZ(e,t=0){const n=[];return e.forEach(function(r,i){let o=null;r.forEach(function(s,a){if(!s&&o!==null){n.push(`M${o+t} ${i+t}h${a-o}v1H${o+t}z`),o=null;return}if(a===r.length-1){if(!s)return;o===null?n.push(`M${a+t},${i+t} h1v1H${a+t}z`):n.push(`M${o+t},${i+t} h${a+1-o}v1H${o+t}z`);return}s&&o===null&&(o=a)})}),n.join("")}function bZ(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((i,o)=>o<t.x||o>=t.x+t.w?i:!1))}function g3e(e,t,n,r){if(r==null)return null;const i=e.length+n*2,o=Math.floor(t*m3e),s=i/t,a=(r.width||o)*s,l=(r.height||o)*s,c=r.x==null?e.length/2-a/2:r.x*s,u=r.y==null?e.length/2-l/2:r.y*s,f=r.opacity==null?1:r.opacity;let h=null;if(r.excavate){let y=Math.floor(c),b=Math.floor(u),v=Math.ceil(a+c-y),S=Math.ceil(l+u-b);h={x:y,y:b,w:v,h:S}}const g=r.crossOrigin;return{x:c,y:u,h:l,w:a,excavation:h,opacity:f,crossOrigin:g}}function y3e(e,t){return t!=null?Math.max(Math.floor(t),0):e?h3e:p3e}function vZ({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:s,boostLevel:a}){let l=qt.useMemo(()=>{const y=(Array.isArray(e)?e:[e]).reduce((b,v)=>(b.push(...b0.QrSegment.makeSegments(v)),b),[]);return b0.QrCode.encodeSegments(y,f3e[t],n,void 0,void 0,a)},[e,t,n,a]);const{cells:c,margin:u,numCells:f,calculatedImageSettings:h}=qt.useMemo(()=>{let g=l.getModules();const y=y3e(r,i),b=g.length+y*2,v=g3e(g,s,y,o);return{cells:g,margin:y,numCells:b,calculatedImageSettings:v}},[l,s,o,r,i]);return{qrcode:l,margin:u,cells:c,numCells:f,calculatedImageSettings:h}}var b3e=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),v3e=qt.forwardRef(function(t,n){const r=t,{value:i,size:o=dZ,level:s=fZ,bgColor:a=hZ,fgColor:l=pZ,includeMargin:c=mZ,minVersion:u=gZ,boostLevel:f,marginSize:h,imageSettings:g}=r,b=$k(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:v}=b,S=$k(b,["style"]),C=g?.src,w=qt.useRef(null),A=qt.useRef(null),E=qt.useCallback(j=>{w.current=j,typeof n=="function"?n(j):n&&(n.current=j)},[n]),[D,O]=qt.useState(!1),{margin:T,cells:I,numCells:N,calculatedImageSettings:$}=vZ({value:i,level:s,minVersion:u,boostLevel:f,includeMargin:c,marginSize:h,imageSettings:g,size:o});qt.useEffect(()=>{if(w.current!=null){const j=w.current,z=j.getContext("2d");if(!z)return;let L=I;const q=A.current,V=$!=null&&q!==null&&q.complete&&q.naturalHeight!==0&&q.naturalWidth!==0;V&&$.excavation!=null&&(L=bZ(I,$.excavation));const U=window.devicePixelRatio||1;j.height=j.width=o*U;const K=o/N*U;z.scale(K,K),z.fillStyle=a,z.fillRect(0,0,N,N),z.fillStyle=l,b3e?z.fill(new Path2D(yZ(L,T))):I.forEach(function(B,W){B.forEach(function(X,H){X&&z.fillRect(H+T,W+T,1,1)})}),$&&(z.globalAlpha=$.opacity),V&&z.drawImage(q,$.x+T,$.y+T,$.w,$.h)}}),qt.useEffect(()=>{O(!1)},[C]);const R=jk({height:o,width:o},v);let F=null;return C!=null&&(F=qt.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:()=>{O(!0)},ref:A,crossOrigin:$?.crossOrigin})),qt.createElement(qt.Fragment,null,qt.createElement("canvas",jk({style:R,height:o,width:o,ref:E,role:"img"},S)),F)});v3e.displayName="QRCodeCanvas";var JO=qt.forwardRef(function(t,n){const r=t,{value:i,size:o=dZ,level:s=fZ,bgColor:a=hZ,fgColor:l=pZ,includeMargin:c=mZ,minVersion:u=gZ,boostLevel:f,title:h,marginSize:g,imageSettings:y}=r,b=$k(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:v,cells:S,numCells:C,calculatedImageSettings:w}=vZ({value:i,level:s,minVersion:u,boostLevel:f,includeMargin:c,marginSize:g,imageSettings:y,size:o});let A=S,E=null;y!=null&&w!=null&&(w.excavation!=null&&(A=bZ(S,w.excavation)),E=qt.createElement("image",{href:y.src,height:w.h,width:w.w,x:w.x+v,y:w.y+v,preserveAspectRatio:"none",opacity:w.opacity,crossOrigin:w.crossOrigin}));const D=yZ(A,v);return qt.createElement("svg",jk({height:o,width:o,viewBox:`0 0 ${C} ${C}`,ref:n,role:"img"},b),!!h&&qt.createElement("title",null,h),qt.createElement("path",{fill:a,d:`M0,0 h${C}v${C}H0z`,shapeRendering:"crispEdges"}),qt.createElement("path",{fill:l,d:D,shapeRendering:"crispEdges"}),E)});JO.displayName="QRCodeSVG";const x3e=_e(m.jsx("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15M14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2"})),v0=e=>_.createElement("svg",{viewBox:"0 0 250 260",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{fillRule:"evenodd"},_.createElement("path",{d:"m221.503 210.324c-105.235 50.083-170.545 8.18-212.352-17.271-2.587-1.604-6.984.375-3.169 4.757 13.928 16.888 59.573 57.593 119.153 57.593 59.621 0 95.09-32.532 99.527-38.207 4.407-5.627 1.294-8.731-3.16-6.872zm29.555-16.322c-2.826-3.68-17.184-4.366-26.22-3.256-9.05 1.078-22.634 6.609-21.453 9.93.606 1.244 1.843.686 8.06.127 6.234-.622 23.698-2.826 27.337 1.931 3.656 4.79-5.57 27.608-7.255 31.288-1.628 3.68.622 4.629 3.68 2.178 3.016-2.45 8.476-8.795 12.14-17.774 3.639-9.028 5.858-21.622 3.71-24.424z"}),_.createElement("path",{d:"m150.744 108.13c0 13.141.332 24.1-6.31 35.77-5.361 9.489-13.853 15.324-23.341 15.324-12.952 0-20.495-9.868-20.495-24.432 0-28.75 25.76-33.968 50.146-33.968zm34.015 82.216c-2.23 1.992-5.456 2.135-7.97.806-11.196-9.298-13.189-13.615-19.356-22.487-18.502 18.882-31.596 24.527-55.601 24.527-28.37 0-50.478-17.506-50.478-52.565 0-27.373 14.85-46.018 35.96-55.126 18.313-8.066 43.884-9.489 63.43-11.718v-4.365c0-8.018.616-17.506-4.08-24.432-4.128-6.215-12.003-8.777-18.93-8.777-12.856 0-24.337 6.594-27.136 20.257-.57 3.037-2.799 6.026-5.835 6.168l-32.735-3.51c-2.751-.618-5.787-2.847-5.028-7.07 7.543-39.66 43.36-51.616 75.43-51.616 16.415 0 37.858 4.365 50.81 16.795 16.415 15.323 14.849 35.77 14.849 58.02v52.565c0 15.798 6.547 22.724 12.714 31.264 2.182 3.036 2.657 6.69-.095 8.966-6.879 5.74-19.119 16.415-25.855 22.393l-.095-.095"}),_.createElement("path",{d:"m221.503 210.324c-105.235 50.083-170.545 8.18-212.352-17.271-2.587-1.604-6.984.375-3.169 4.757 13.928 16.888 59.573 57.593 119.153 57.593 59.621 0 95.09-32.532 99.527-38.207 4.407-5.627 1.294-8.731-3.16-6.872zm29.555-16.322c-2.826-3.68-17.184-4.366-26.22-3.256-9.05 1.078-22.634 6.609-21.453 9.93.606 1.244 1.843.686 8.06.127 6.234-.622 23.698-2.826 27.337 1.931 3.656 4.79-5.57 27.608-7.255 31.288-1.628 3.68.622 4.629 3.68 2.178 3.016-2.45 8.476-8.795 12.14-17.774 3.639-9.028 5.858-21.622 3.71-24.424z"}),_.createElement("path",{d:"m150.744 108.13c0 13.141.332 24.1-6.31 35.77-5.361 9.489-13.853 15.324-23.341 15.324-12.952 0-20.495-9.868-20.495-24.432 0-28.75 25.76-33.968 50.146-33.968zm34.015 82.216c-2.23 1.992-5.456 2.135-7.97.806-11.196-9.298-13.189-13.615-19.356-22.487-18.502 18.882-31.596 24.527-55.601 24.527-28.37 0-50.478-17.506-50.478-52.565 0-27.373 14.85-46.018 35.96-55.126 18.313-8.066 43.884-9.489 63.43-11.718v-4.365c0-8.018.616-17.506-4.08-24.432-4.128-6.215-12.003-8.777-18.93-8.777-12.856 0-24.337 6.594-27.136 20.257-.57 3.037-2.799 6.026-5.835 6.168l-32.735-3.51c-2.751-.618-5.787-2.847-5.028-7.07 7.543-39.66 43.36-51.616 75.43-51.616 16.415 0 37.858 4.365 50.81 16.795 16.415 15.323 14.849 35.77 14.849 58.02v52.565c0 15.798 6.547 22.724 12.714 31.264 2.182 3.036 2.657 6.69-.095 8.966-6.879 5.74-19.119 16.415-25.855 22.393l-.095-.095"}))),S3e=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:52,height:20,viewBox:"0 0 52 20",fill:"none",...e},"\\n ",_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.4419 10.9152C49.5872 10.0259 50.093 9.09567 50.0116 7.92553C49.9741 7.13141 49.632 6.3829 49.0573 5.83734C48.4827 5.29179 47.7202 4.9917 46.9302 5.00017H42.3954V15.0517H44.1977V10.9152H46.3488L48.8954 15.0517H51L48.4419 10.9152ZM48.2616 7.92553C48.2687 8.07923 48.2455 8.23282 48.1935 8.3775C48.1414 8.52218 48.0616 8.65511 47.9584 8.76869C47.8553 8.88227 47.7309 8.97427 47.5924 9.03941C47.4538 9.10455 47.3039 9.14156 47.1512 9.14832C47.0778 9.15694 47.0036 9.15694 46.9302 9.14832H44.1919V6.75539H46.9302C47.2461 6.72083 47.5628 6.81339 47.8111 7.01287C48.0594 7.21235 48.2193 7.50257 48.2558 7.82021C48.2558 7.83777 48.2573 7.85532 48.2587 7.87287C48.2602 7.89042 48.2616 7.90797 48.2616 7.92553ZM28.657 11.2955L30.9826 15.0458H33.1279L29.8256 9.72169L28.657 11.2955ZM32.4709 5.00017H30.1802L25.4651 11.3482V5.00017H23.6744V14.1565C23.6708 14.3635 23.74 14.5651 23.8698 14.7257C23.9996 14.8863 24.1816 14.9955 24.3837 15.0341C24.5446 15.0621 24.71 15.0459 24.8624 14.9872C25.0149 14.9286 25.1488 14.8295 25.25 14.7006L32.4709 5.00017ZM36.4651 10.9152H40.0233V9.16002H36.4651V10.9152ZM40.9651 5.00025H33.8954V14.1566C33.8922 14.273 33.9124 14.3889 33.9545 14.4974C33.9966 14.6059 34.06 14.7048 34.1407 14.7882C34.2215 14.8716 34.318 14.938 34.4247 14.9832C34.5313 15.0285 34.6459 15.0518 34.7616 15.0518H40.9651V13.2965H35.7326V6.75546H40.9651V5.00025ZM20.0349 5.00025V11.3483L15.314 5.00025H12.9884V15.0459H14.7965V7.40488L20.2442 14.7007C20.345 14.8301 20.4788 14.9295 20.6314 14.9882C20.784 15.047 20.9496 15.0629 21.1105 15.0342C21.3126 14.9956 21.4946 14.8863 21.6244 14.7257C21.7542 14.5652 21.8234 14.3636 21.8198 14.1566V5.00025H20.0349ZM5.65116 5.54436L1 15.0518H3.02326L6.51163 7.9256L10 15.0635H12.0058L7.39535 5.58532C7.30869 5.41551 7.18068 5.27057 7.02326 5.16407C6.86639 5.06366 6.68578 5.00711 6.5 5.00025C6.32119 5.00091 6.14607 5.05154 5.99419 5.14651C5.84206 5.24066 5.72233 5.37953 5.65116 5.54436ZM8.09699 13.63H8.15117L8.12791 13.589L8.09699 13.63ZM6.94187 13.63H8.09699L5.55233 17L5.78489 14.4198H4.56396L7.18024 11.0498L6.94187 13.63Z",fill:"#F5F6F7"}),"\\n"),Lk=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 41.5 51",...e},_.createElement("g",null,_.createElement("path",{d:"M40.2,17.4c-3.4,2.1-5.5,5.7-5.5,9.7c0,4.5,2.7,8.6,6.8,10.3c-0.8,2.6-2,5-3.5,7.2c-2.2,3.1-4.5,6.3-7.9,6.3s-4.4-2-8.4-2 c-3.9,0-5.3,2.1-8.5,2.1s-5.4-2.9-7.9-6.5C2,39.5,0.1,33.7,0,27.6c0-9.9,6.4-15.2,12.8-15.2c3.4,0,6.2,2.2,8.3,2.2 c2,0,5.2-2.3,9-2.3C34.1,12.2,37.9,14.1,40.2,17.4z M28.3,8.1C30,6.1,30.9,3.6,31,1c0-0.3,0-0.7-0.1-1c-2.9,0.3-5.6,1.7-7.5,3.9 c-1.7,1.9-2.7,4.3-2.8,6.9c0,0.3,0,0.6,0.1,0.9c0.2,0,0.5,0.1,0.7,0.1C24.1,11.6,26.6,10.2,28.3,8.1z"}))),xZ=e=>_.createElement("svg",{width:80,height:48,viewBox:"0 0 80 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.81 13.3345C14.2136 13.8547 15.327 14.9378 15.876 16.3132L21.8966 32.1746C21.9098 32.2094 21.8923 32.2483 21.8575 32.2615L21.8336 32.2659H19.0457C19.0177 32.2659 18.9927 32.2486 18.9827 32.2224L13.3378 17.3486C13.0793 16.6674 12.5353 16.13 11.846 15.8745C10.5471 15.3932 9.10149 16.0268 8.58638 17.2915L7.22633 20.8729C5.91753 21.5279 5.0204 22.8697 5.0204 24.4186C5.0204 24.9466 5.12468 25.4506 5.314 25.9115L2.91882 32.2224C2.90889 32.2486 2.88383 32.2659 2.85585 32.2659L0.0678745 32.2666C0.0306679 32.2667 0.000498102 32.2365 0.000488281 32.1993L0.00487174 32.1754L5.99341 16.3961C7.02016 13.6907 10.072 12.32 12.81 13.3345ZM28.9955 16.7371L29.3163 16.7337L29.7093 16.7473L30.0186 16.772L30.3615 16.8139L30.6021 16.8528L30.9501 16.9228L31.1962 16.9826L31.3465 17.0234L31.625 17.1078L31.8607 17.1883L31.9699 17.2285L32.2629 17.346L32.4752 17.44L32.7069 17.5515L32.9535 17.681L33.0724 17.7476L33.3046 17.8858L33.5249 18.0274L33.6195 18.0915L33.8746 18.2749L34.0785 18.4332L34.2633 18.5865L34.3812 18.6895L34.5683 18.8619L34.6805 18.971L34.7979 19.0898L34.9195 19.2187L35.0383 19.3505L35.1419 19.4705L35.3292 19.7009L35.5691 20.0249L35.6572 20.1534L35.8028 20.3788L35.8973 20.5351L36.058 20.8218L36.1728 21.0463L36.2982 21.3148L36.3974 21.5486L36.4885 21.7852L36.5644 22.0026L36.6282 22.2039L36.6794 22.3813L36.7128 22.5071C36.7374 22.6028 36.7602 22.6992 36.7812 22.7962L36.8153 22.9637L36.846 23.1333L36.8729 23.3043C36.8878 23.4057 36.9006 23.5078 36.9114 23.6104L36.926 23.7649C36.9373 23.8983 36.9452 24.0328 36.9496 24.1681L36.9537 24.3232V35.8054C36.9537 35.9129 36.8662 36 36.7584 36H34.4151C34.315 36 34.2324 35.9249 34.2212 35.8281L34.2199 35.8054L34.2201 30.2913L33.976 30.4888L33.7764 30.6386L33.6197 30.7494L33.4835 30.8411L33.3091 30.9525L33.0969 31.0794L32.8071 31.2383L32.6791 31.3034L32.4479 31.4136L32.1391 31.5464L31.8764 31.6471L31.7372 31.6961L31.4028 31.8015L31.2804 31.836L30.9953 31.9079L30.7166 31.9671L30.4646 32.0115L30.3243 32.0324L30.0586 32.065L29.9326 32.0772L29.7343 32.0922L29.493 32.1037L29.2404 32.1077C24.9804 32.1077 21.5271 28.6661 21.5271 24.4205C21.5271 20.2567 24.8489 16.866 28.9955 16.7371ZM24.2609 24.4205C24.2609 21.6798 26.4903 19.4579 29.2404 19.4579C29.4034 19.4579 29.5647 19.4657 29.7238 19.481L29.8413 19.4937L30.0803 19.5283L30.2016 19.5504L30.3419 19.5798L30.5659 19.6358L30.7996 19.7062L31.0449 19.7939C31.1507 19.835 31.2549 19.8796 31.3571 19.9275L31.4292 19.962L31.6766 20.0916L31.8714 20.2066C31.943 20.2511 32.0134 20.2973 32.0825 20.3453L32.1983 20.428L32.3169 20.5182C32.4843 20.6495 32.6431 20.7912 32.7923 20.9425L32.9514 21.1115C33.6874 21.9308 34.1543 22.9953 34.2135 24.1669L34.2162 24.23L34.2194 24.49C34.1851 26.9823 32.3073 29.0307 29.8835 29.3422L29.7304 29.3595L29.5286 29.375L29.2404 29.3832C26.4903 29.3832 24.2609 27.1613 24.2609 24.4205ZM9.16556 21.9333C10.6351 21.9333 11.8265 23.1123 11.8265 24.5667C11.8265 26.021 10.6351 27.2 9.16556 27.2C7.69598 27.2 6.50464 26.021 6.50464 24.5667C6.50464 23.1123 7.69598 21.9333 9.16556 21.9333ZM50.446 17.7037L50.314 17.6319L49.9725 17.4615L49.7024 17.3412L49.359 17.2057C49.1858 17.1421 49.0099 17.0846 48.8317 17.0334L48.7024 16.9975C48.4418 16.9276 48.1758 16.871 47.9051 16.8283L47.827 16.8164L47.461 16.7714L47.2656 16.7545C47.0749 16.7405 46.8823 16.7333 46.6879 16.7333C42.428 16.7333 38.9746 20.1671 38.9746 24.4029C38.9746 28.6387 42.428 32.0725 46.6879 32.0725L46.9328 32.0687L47.2991 32.0488L47.688 32.0086L47.9931 31.9632L48.302 31.9043L48.6057 31.8336L48.8922 31.7548L49.246 31.6407L49.5034 31.5455L49.7928 31.4258L50.098 31.2842L50.3431 31.1584L50.5963 31.0164L50.9053 30.8256L51.1908 30.6306C51.3442 30.5208 51.4935 30.4054 51.6381 30.2849L51.6676 30.2602L51.6687 32.0952C51.68 32.1917 51.7625 32.2667 51.8627 32.2667H54.206C54.3138 32.2667 54.4012 32.1797 54.4012 32.0725V24.3058L54.3861 23.9176L54.3631 23.6355L54.3242 23.3145L54.2804 23.043L54.216 22.7247L54.1623 22.5014L54.0624 22.1478L54.0059 21.9725L53.916 21.7196L53.7452 21.3029L53.6184 21.0324L53.4359 20.6849L53.2837 20.4245L53.198 20.2876L53.0512 20.067L52.9398 19.9099L52.732 19.6375L52.6151 19.4946L52.387 19.2347L52.2203 19.0586L52.0141 18.8554L51.8835 18.7342L51.7203 18.5904L51.3495 18.2919L51.1038 18.1138L50.8016 17.9139L50.446 17.7037ZM46.6879 19.4517C43.9379 19.4517 41.7085 21.6684 41.7085 24.4029C41.7085 27.1374 43.9379 29.3542 46.6879 29.3542L46.9905 29.3452L47.1625 29.3321L47.4466 29.2973L47.4952 29.2894C47.636 29.2666 47.7747 29.2379 47.9112 29.2037L48.1609 29.1347L48.4198 29.0465L48.5215 29.0086L48.659 28.9511L48.9045 28.8378L49.1359 28.7163L49.321 28.6061L49.4895 28.4973L49.6838 28.3581C50.8786 27.4619 51.6545 26.0429 51.6673 24.443L51.6593 24.1177C51.6192 23.4156 51.4319 22.7526 51.1277 22.1587L50.9903 21.9086L50.8359 21.6623L50.7712 21.5684L50.6486 21.4015L50.5368 21.2613L50.4034 21.1064L50.3055 21.0005L50.1647 20.8584L49.9506 20.6625L49.7324 20.4847L49.5599 20.3578L49.3776 20.2355L49.1353 20.09L49.0187 20.0266L48.7742 19.9059L48.5808 19.8219L48.3539 19.7355L48.1642 19.6729L47.9782 19.6195L47.7697 19.5688L47.5588 19.5271L47.3448 19.4944L47.2201 19.4796C47.0452 19.4611 46.8677 19.4517 46.6879 19.4517ZM77.5285 18.7765L77.4276 18.6851L77.1961 18.4872L77.0529 18.3724L76.8158 18.1941L76.5712 18.0244L76.2693 17.8334L75.9998 17.6789L75.8471 17.5975L75.6556 17.5016L75.4021 17.3846L75.1892 17.2949L75.0162 17.2274L74.6714 17.1069L74.3928 17.0227L74.2425 16.9821L73.9964 16.9224L73.6484 16.8525L73.4078 16.8138L73.2722 16.7954L73.065 16.7719L72.8285 16.752L72.5529 16.7378L72.3626 16.7337L72.0418 16.7371C67.8952 16.8657 64.5734 20.2486 64.5734 24.4029C64.5734 28.6387 68.0267 32.0725 72.2867 32.0725L72.5393 32.0685L72.7806 32.057L72.9789 32.042L73.2162 32.0174L73.3707 31.9974L73.5109 31.9764L73.7629 31.9322L73.9251 31.8991L74.0416 31.8731L74.2035 31.8338L74.4491 31.767L74.6706 31.6992L74.9227 31.6129L75.1854 31.5125L75.3956 31.424L75.7254 31.27L75.8535 31.205L76.1432 31.0465L76.4364 30.8691L76.6661 30.7173L76.8228 30.6067L77.0224 30.4572L77.2664 30.2602L77.2675 32.0952C77.2788 32.1917 77.3613 32.2667 77.4614 32.2667H79.8047C79.9126 32.2667 80 32.1797 80 32.0725V24.3058L79.9959 24.151C79.9915 24.016 79.9836 23.8819 79.9723 23.7488L79.9577 23.5947L79.9193 23.2892C79.9026 23.1751 79.8834 23.0618 79.8617 22.9494L79.8275 22.7823L79.7591 22.4939L79.7257 22.3684L79.639 22.0773L79.5802 21.9009L79.4872 21.6474L79.4437 21.5376L79.3446 21.3043L79.2192 21.0364L79.1043 20.8124L79.0191 20.6572L78.8491 20.3705L78.7893 20.276L78.6154 20.0174L78.4702 19.8176L78.297 19.5956L78.1882 19.4642L78.0846 19.3445L77.8442 19.0844L77.7268 18.9658L77.5285 18.7765ZM72.2867 19.4517C69.5366 19.4517 67.3072 21.6684 67.3072 24.4029C67.3072 27.1374 69.5366 29.3542 72.2867 29.3542L72.5749 29.3461L72.7767 29.3306L72.9298 29.3133C75.3536 29.0025 77.2314 26.9588 77.2657 24.4722L77.2652 24.311L77.2598 24.1499C77.2006 22.981 76.7337 21.9189 75.9977 21.1015L75.9101 21.0067L75.8386 20.9328C75.6894 20.7819 75.5306 20.6405 75.3632 20.5095L75.2446 20.4195L75.1289 20.337C75.0597 20.2892 74.9893 20.243 74.9177 20.1986L74.7229 20.0839L74.4755 19.9546L74.4034 19.9202C74.3012 19.8723 74.1971 19.8279 74.0912 19.7869L73.957 19.7371L73.6875 19.6504L73.5216 19.6051L73.2479 19.5439L73.1266 19.5219L73.0043 19.5027L72.7701 19.4747C72.611 19.4595 72.4498 19.4517 72.2867 19.4517ZM64.3039 19.7017V17L64.1747 17.001C59.9185 17.0686 56.4896 20.4698 56.4896 24.6556V32.1993C56.4896 32.2365 56.5197 32.2667 56.5569 32.2667H59.1799C59.2171 32.2667 59.2472 32.2365 59.2472 32.1993L59.2479 24.5737C59.2926 21.8755 61.5391 19.7017 64.3039 19.7017Z",fill:"white"})),w3e=e=>_.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("title",null,"AVM"),_.createElement("path",{d:"m19.501 11.786-.003-4.823-10.9 11.925h3.172l5.481-6.07v4.864l4.321-4.783v3.657H24V6.86zm-2.643-6.675-5.267 5.87V7.443H9.345v9.38L20.049 5.111zM0 16.556h3.148l2.924-3.25v3.25H8.41v-9.21z"})),C3e=e=>_.createElement("svg",{"xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg",width:850.39368,height:244.13385,id:"svg145868",...e},_.createElement("defs",{id:"defs145870"}),_.createElement("g",{transform:"translate(-586.37187,-430.72069)",id:"layer1"},_.createElement("g",{transform:"matrix(3.7156602,0,0,3.7156602,-1556.9538,-1604.717)",id:"g146158"},_.createElement("path",{d:"M 785.08478,558.34886 C 783.93091,558.34886 783.0655,558.72392 782.20009,559.50283 C 781.62315,560.31059 781.04574,561.34918 781.04574,562.44546 C 781.04574,563.51284 781.62315,564.52258 782.20009,565.30151 C 783.0655,566.10926 783.93091,566.54202 785.08478,566.54202 C 786.23867,566.54202 787.39254,566.10926 787.96996,565.30151 C 788.83537,564.55143 789.12384,563.57054 789.12384,562.44546 C 789.12384,561.34918 788.83537,560.31059 787.96996,559.56053 C 787.39254,558.75276 786.23867,558.34886 785.08478,558.34886 z M 788.83537,562.4743 C 788.83537,563.42631 788.25843,564.29181 787.68149,564.92649 C 786.8156,565.61886 785.95019,565.99388 785.08478,565.99388 C 784.21937,565.99388 783.35396,565.61886 782.48856,564.92649 C 781.91162,564.23406 781.62315,563.36861 781.62315,562.44546 C 781.62315,561.49342 781.91162,560.59911 782.77703,559.87788 C 783.35396,559.21432 784.21937,558.86815 785.08478,558.86815 C 786.23867,558.86815 787.10407,559.24316 787.68149,559.93558 C 788.25843,560.59911 788.83537,561.46457 788.83537,562.4743 z M 785.37326,560.02212 L 783.64244,560.02212 L 783.64244,564.66682 L 784.50785,564.66682 L 784.50785,562.70509 L 785.37326,562.70509 L 786.23867,564.66682 L 787.10407,564.66682 L 786.23867,562.56085 C 786.8156,562.41661 787.10407,561.95501 787.10407,561.32034 C 787.10407,560.45483 786.52713,560.02212 785.37326,560.02212 z M 785.08478,560.59911 C 785.95019,560.59911 786.23867,560.82989 786.23867,561.40687 C 786.23867,561.95501 785.95019,562.12809 785.08478,562.12809 L 784.50785,562.12809 L 784.50785,560.59911 L 785.08478,560.59911",style:{fill:"#00a9a0",fillRule:"evenodd",stroke:"none",strokeWidth:.10201,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path672"}),_.createElement("path",{d:"M 653.2441,557.51225 C 660.16785,557.51225 667.38007,557.51225 674.30382,557.51225 C 674.88124,557.51225 676.90052,557.62763 677.189,557.68533 C 677.76593,557.97379 676.32359,561.00297 675.1697,561.83963 C 674.88124,562.12809 674.30382,562.12809 674.01535,562.18579 C 672.573,562.35888 671.13065,562.87817 670.84218,564.17637 C 670.26524,566.16701 670.55372,569.02305 670.55372,571.30215 C 670.55372,577.44703 670.55372,583.59187 670.55372,589.73675 C 670.55372,591.5254 669.97677,596.25669 670.84218,597.5549 C 671.41912,599.02619 673.14994,599.02619 674.88124,599.02619 C 675.1697,598.96849 675.74665,598.9108 676.03511,598.85311 C 676.61206,598.65113 676.90052,598.42035 677.47746,598.18958 C 678.63134,597.52605 679.78522,596.45862 680.65063,595.18926 C 681.51652,593.97759 682.09346,592.59284 682.67039,591.17919 C 682.95887,590.40028 682.95887,589.304 683.5358,588.64047 C 684.11274,587.80386 687.28639,587.16917 687.86332,587.19803 C 688.1518,587.16917 688.72874,587.22687 689.01721,587.22687 C 689.01721,592.16008 689.01721,597.12215 689.01721,602.08421 C 689.01721,602.40152 688.72874,603.81517 688.72874,603.87286 C 688.72874,603.87286 668.53442,603.87286 658.43703,603.87286 C 655.84032,603.87286 652.95563,603.87286 650.3594,603.87286 C 650.07093,603.87286 649.49351,603.98825 649.49351,603.69973 C 649.49351,603.69973 649.49351,603.69973 649.49351,603.69973 C 649.49351,602.43037 650.07093,600.06478 651.22481,599.37236 C 651.80175,599.02619 652.37869,599.02619 653.2441,599.02619 C 653.53256,598.79541 654.10951,598.53575 654.68645,598.27612 C 655.84032,597.64144 656.41775,596.54516 656.70621,595.47772 C 657.57162,593.25636 657.28315,590.19835 657.28315,587.57309 C 657.28315,582.20712 657.28315,576.8412 657.28315,571.47523 C 657.28315,569.77311 657.57162,565.41689 656.99468,564.14753 C 656.12927,562.04156 651.80175,562.4743 651.51328,561.55111 C 651.22481,560.42599 652.66716,558.37771 653.2441,557.51225",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path676"}),_.createElement("path",{d:"M 764.31353,557.68533 C 765.17894,557.68533 766.62129,557.51225 767.19823,558.20462 C 767.4867,559.18546 767.19823,562.56085 767.19823,563.97445 C 767.19823,570.4078 767.19823,576.8412 767.19823,583.27455 C 767.4867,583.27455 767.4867,583.30339 767.77517,583.15916 C 770.0834,581.25511 772.1027,578.88948 774.12198,576.81235 C 775.27634,575.83146 776.14175,574.50441 777.58409,573.98511 C 778.4495,573.61005 779.89185,573.81203 780.75726,573.81203 C 783.64244,573.81203 786.52713,573.81203 789.12384,573.81203 C 789.12384,574.87942 788.25843,576.35075 787.68149,577.07197 C 786.8156,577.79319 785.37326,577.47588 784.50785,577.93743 C 783.35396,578.39903 777.58409,584.54391 777.87257,585.03436 C 778.16103,586.39026 780.46879,588.09233 781.62315,589.2463 C 783.64244,591.32347 785.37326,593.4006 787.39254,595.50657 C 788.25843,596.22779 788.83537,597.20869 789.70078,597.67029 C 790.85465,598.27612 792.29701,598.36266 793.73936,598.59344 C 794.31677,598.70883 795.47065,598.59344 796.04759,599.08388 C 796.33606,599.3435 796.04759,600.15132 795.75912,600.41094 C 795.47065,601.16101 794.31677,603.35356 793.45088,603.67088 C 792.29701,604.13249 790.56619,603.84401 789.12384,603.84401 C 787.39254,603.84401 785.95019,603.84401 784.21937,603.84401 C 783.35396,603.84401 781.91162,603.9594 781.04574,603.72858 C 779.02644,603.20934 777.29563,601.36298 775.85328,599.80511 C 774.41045,598.21843 772.67963,596.6317 770.94881,595.04502 C 770.66034,594.58342 767.77517,591.78503 767.77517,591.5254 C 767.4867,591.5254 767.4867,591.66964 767.19823,591.66964 C 767.19823,596.25669 766.04435,599.40125 771.52575,599.40125 C 771.52575,600.38209 770.66034,603.06505 769.79494,603.5555 C 768.92953,604.13249 767.19823,603.84401 765.75588,603.84401 C 761.13989,603.84401 756.23591,603.87286 751.33144,603.87286 C 751.33144,603.75743 751.33144,603.64204 751.33144,603.4978 C 751.90838,602.28613 751.90838,601.04562 752.77379,600.03593 C 753.6392,599.14158 755.08154,599.19928 755.37002,597.90106 C 755.65849,596.97791 755.65849,595.76624 755.65849,594.72766 C 755.65849,592.93901 755.65849,591.15034 755.65849,589.36174 C 755.65849,584.11116 755.65849,578.86063 755.65849,573.61005 C 755.65849,571.18676 755.94695,568.41721 755.65849,566.13811 C 755.08154,564.00329 751.61991,565.04188 751.61991,564.32066 C 751.33144,563.62823 751.61991,562.79162 751.61991,562.18579 C 751.90838,561.55111 751.90838,560.91642 752.48532,560.39713 C 753.06226,559.56053 764.02506,557.82957 764.31353,557.68533",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path686"}),_.createElement("path",{d:"M 698.82566,558.06039 C 700.84542,557.4257 702.28777,558.06039 703.73012,558.86815 C 706.90376,560.65681 707.19224,565.56117 704.59553,567.89791 C 701.71083,570.35011 697.38331,570.43664 693.34425,570.32125 C 692.47884,570.29241 691.61343,570.37895 691.03649,569.85966 C 690.45956,567.09016 694.49861,561.49342 696.80636,559.44514 C 697.38331,558.98353 698.24872,558.32 698.82566,558.06039",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path696"}),_.createElement("path",{d:"M 704.01859,572.02337 C 704.59553,572.08107 704.884,572.13876 705.17246,572.19645 C 706.03835,572.60036 705.7494,578.02397 705.7494,579.35107 C 705.7494,583.765 705.7494,588.17891 705.7494,592.59284 C 705.7494,594.03528 705.46094,596.28554 706.03835,597.49716 C 706.32683,598.56459 707.4807,598.85311 708.63458,599.3435 C 709.21152,599.71857 708.92305,600.46864 708.63458,601.01677 C 708.63458,601.13217 708.63458,601.24755 708.63458,601.33414 C 708.63458,601.42068 708.63458,601.47838 708.63458,601.56491 C 708.05764,602.31498 707.76917,603.0939 707.4807,603.87286 C 702.28777,603.87286 697.09484,603.87286 691.9019,603.87286 C 691.61343,603.87286 690.17108,603.67088 689.88262,603.67088 C 689.88262,603.64204 690.45956,600.93024 691.32497,600.09363 C 692.19038,599.05504 693.05579,598.99734 693.6332,597.5549 C 693.92167,596.37207 693.92167,594.87189 693.92167,593.48714 C 693.92167,590.77533 693.92167,587.97694 693.6332,585.43821 C 693.6332,584.02462 694.21014,581.8898 693.6332,580.70698 C 693.05579,579.92802 690.74803,579.35107 689.88262,579.35107 C 689.59415,579.35107 689.59415,579.1491 689.59415,579.00486 C 690.17108,577.44703 689.88262,575.22563 692.19038,575.22563 C 692.76731,575.16793 693.05579,575.11024 693.6332,575.05254 C 694.49861,574.82171 695.65249,574.5621 696.5179,574.33132 C 699.11412,573.78318 701.9993,573.11966 704.01859,572.02337",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path706"}),_.createElement("path",{d:"M 723.92443,572.19645 C 725.65573,572.74459 724.78984,575.94685 725.07879,577.53357 C 725.07879,577.7355 725.07879,577.90858 725.36726,577.90858 C 726.52114,577.76435 727.96349,576.81235 729.11736,576.20651 C 732.00254,574.76402 736.61805,572.74459 738.92629,572.65805 C 739.7917,572.60036 740.94557,572.71574 741.81098,572.77344 C 744.11922,572.91767 745.85004,574.99484 746.71545,577.07197 C 747.00392,578.57211 747.00392,580.62044 747.00392,582.3802 C 747.00392,586.73643 747.00392,591.09265 747.00392,595.44888 C 747.00392,596.89137 747.58085,598.18958 748.73474,598.99734 C 749.31167,599.25697 749.60015,599.48779 750.17756,599.71857 C 750.46604,599.9205 750.17756,600.35324 750.17756,600.61287 C 749.88861,601.47838 749.60015,602.74774 748.73474,603.35356 C 747.58085,604.24788 744.11922,603.84401 742.38792,603.84401 C 740.08016,603.84401 738.06088,603.78632 736.90652,602.34383 C 733.15642,598.47805 739.21476,580.0723 731.4256,580.59159 C 730.27124,580.64928 729.40583,581.11083 728.54042,581.63012 C 724.2129,584.05346 725.07879,587.74617 725.07879,592.59284 C 725.07879,594.52573 724.78984,597.09329 725.94419,598.4492 C 726.8096,599.54549 728.54042,598.76657 729.40583,599.57433 C 729.6943,599.94934 728.54042,601.96882 728.25195,602.37268 C 728.25195,602.80543 727.96349,603.41127 727.38654,603.64204 C 726.23267,604.19018 724.2129,603.84401 722.77055,603.84401 C 718.73198,603.84401 714.40445,603.87286 710.07693,603.87286 C 710.3654,602.45922 710.65387,600.67061 711.51928,599.71857 C 712.38517,598.93965 713.25057,598.67998 713.53904,597.61259 C 713.82752,596.11241 713.53904,593.89105 713.53904,592.24663 C 713.53904,588.84244 713.53904,585.43821 713.53904,582.03404 C 713.53904,581.54359 713.25057,581.08199 713.25057,580.70698 C 712.38517,579.63954 710.94234,579.69723 709.78846,579.69723 C 710.07693,578.45672 710.3654,577.21621 710.65387,575.94685 C 711.80774,575.68722 712.96211,575.39871 714.11598,575.13908 C 717.28915,574.18704 720.75126,573.69664 723.92443,572.19645",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path710"}),_.createElement("path",{d:"M 655.55186,579.00486 C 656.99468,579.00486 653.2441,585.87097 652.09021,586.30372 C 650.93634,586.82296 648.02237,586.50565 646.49363,586.50565 C 644.01259,586.50565 641.50276,586.50565 638.99246,586.50565 C 638.73278,586.50565 638.32911,586.59219 638.27152,586.33257 C 638.21392,586.33257 641.30068,579.46646 642.0797,579.1491 C 643.0315,578.7164 652.09021,579.00486 655.55186,579.00486",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path714"}),_.createElement("path",{d:"M 629.58767,564.95534 C 627.71286,562.4743 625.77996,559.24316 622.83719,557.97379 C 621.65452,557.4257 620.21169,557.56994 618.76934,557.4834 C 614.96115,557.25257 589.83358,557.4834 588.16036,557.33912 C 587.52582,558.14692 586.19867,560.42599 586.42955,561.57995 C 586.71801,563.10899 590.5838,561.89732 591.36281,563.54169 C 591.82407,564.55143 591.5644,566.31124 591.5644,567.55176 C 591.5644,571.18676 591.5644,574.82171 591.5644,578.45672 C 591.5644,582.46678 591.5644,586.44795 591.5644,590.42912 C 591.53561,592.36201 591.85287,594.64111 591.30521,596.31438 C 590.78587,597.78567 589.37184,597.58374 588.30484,598.33382 C 587.49703,598.88196 585.9966,602.40152 586.45835,603.35356 C 586.83321,604.10364 594.2475,603.87286 595.68985,603.87286 C 600.76759,603.87286 605.81605,603.87286 610.89379,603.87286 C 615.65377,603.87286 621.10638,604.56523 624.59681,602.14191 C 625.60669,601.44953 626.21243,600.43979 626.90505,599.45894 C 628.20292,597.52605 629.53007,595.62201 630.82842,593.71792 C 632.47285,591.26578 634.54973,588.8136 635.81929,586.15944 C 636.6271,584.42853 637.00196,582.40905 637.00196,580.24538 C 637.00196,573.40812 633.25185,569.83081 629.58767,564.95534 z M 613.28794,567.29209 C 614.96115,569.57119 616.63438,571.82144 618.3076,574.10049 C 619.40388,575.62953 620.50016,577.12967 621.56763,578.65865 C 621.94298,579.37993 622.02938,580.38961 621.9137,581.31281 C 621.59644,583.70731 619.51955,585.58245 618.1348,587.45765 C 616.77885,589.21745 615.4229,590.97726 614.09575,592.73707 C 612.82668,594.41034 611.52832,596.05471 610.25876,597.69913 C 609.7975,598.10299 609.22008,598.16074 608.75882,598.5069 C 607.69134,598.5069 606.24899,598.70883 605.75845,597.75682 C 605.21031,596.71824 605.52757,591.81387 605.52757,590.25604 C 605.52757,581.80321 605.55637,573.32158 605.55637,564.86875 C 605.58518,564.14753 605.64278,563.59939 606.24899,563.25322 C 606.24899,563.19552 606.24899,563.13783 606.24899,563.08014 C 607.63374,563.08014 609.19128,562.90701 610.25876,563.57054",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path718"})))),E3e=e=>_.createElement("svg",{width:128,height:44,viewBox:"0 0 128 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("path",{d:"M3.03547 11.8505C6.36347 8.70536 11.6298 5.99907 16.2378 7.82764C19.3098 9.10764 20.0412 12.5819 19.7852 15.5442C19.456 19.5671 17.408 23.6265 14.7383 26.6254C13.056 28.5271 9.80119 31.2334 7.05833 31.0871C6.40004 31.0505 5.70519 31.1236 5.12004 31.4528C5.01033 31.5259 4.13262 32.0379 4.75433 32.0745C8.19204 32.2574 11.7029 30.6116 14.4823 28.7099C18.9806 25.6014 21.9429 20.1888 22.528 14.8128C23.0035 10.4608 20.8092 6.87678 16.3475 6.32821C10.8252 5.63336 4.49833 8.41279 0.548615 12.1431C0.0731868 12.6185 2.59662 12.2528 3.03547 11.8505ZM3.62062 31.2334C5.01033 23.7362 7.02176 15.4345 11.3006 8.96136C11.4103 8.81507 9.03319 8.85164 8.59433 9.50993C4.31547 16.0196 2.26747 24.3579 0.877758 31.9648C0.841187 32.1111 3.47433 32.0014 3.62062 31.2334Z",fill:"url(#paint0_linear_3809_68339)"}),_.createElement("path",{d:"M35.5652 16.6414C36.6258 16.9705 36.8086 18.2871 36.6989 19.3111C36.6623 19.7134 39.4418 19.3111 39.4418 18.5796C39.4418 17.8482 39.4052 17.1168 38.9663 16.4951C36.9183 13.4962 30.9572 16.3488 29.348 18.2871C29.6406 17.4094 29.9698 16.5316 30.2989 15.6539C30.4452 15.2516 29.3846 15.4345 29.2383 15.4711C28.8726 15.5442 28.5435 15.6539 28.2143 15.8002C28.068 15.8734 27.7023 16.0196 27.6292 16.1659C25.764 21.3225 24.228 26.5522 23.1309 31.9282C23.0578 32.3305 25.6543 32.0745 25.8738 31.3065C26.8612 27.9419 27.9218 24.5408 29.5675 21.4322C29.9332 20.7374 30.3355 20.0425 30.8109 19.3476C32.676 16.7145 34.6143 16.3488 35.5652 16.6414Z",fill:"url(#paint1_linear_3809_68339)"}),_.createElement("path",{d:"M54.1966 27.7225C52.1852 29.4779 49.6983 31.3065 46.8823 31.0505C45.1635 30.9042 43.7006 29.8802 43.0789 28.2711C41.616 24.3579 46.0778 19.4208 49.0766 17.5922C51.0515 16.3488 54.7818 16.2025 54.6355 19.3842C54.4526 23.4071 48.9669 24.6505 45.8949 25.0162C45.2732 25.0894 42.896 26.1865 44.688 25.9671C48.9303 25.4916 56.1715 24.1751 57.3418 19.0916C58.4389 14.2642 50.9783 15.8734 48.784 16.7511C44.5052 18.3968 37.52 25.3088 40.9578 30.1728C42.3475 32.1476 45.1269 32.2574 47.248 31.9648C50.7955 31.5259 54.0138 29.7339 56.6835 27.4299C57.1589 26.9911 54.6721 27.3202 54.1966 27.7225Z",fill:"url(#paint2_linear_3809_68339)"}),_.createElement("path",{d:"M75.4038 16.2391C69.9546 14.7396 64.542 17.5191 61.1409 21.7248C59.2026 24.1385 57.0449 28.5271 60.0072 31.0505C62.8598 33.4276 67.9798 30.3922 70.2106 28.6368C70.8689 28.1614 71.4541 27.6494 72.0026 27.1008C71.8929 28.7099 72.0758 30.3191 72.5146 31.8916C72.6609 32.4402 75.4038 31.6722 75.2575 31.1602C74.4529 28.4174 74.6358 25.6014 75.3306 22.8585C76.5375 20.8471 77.3786 18.6162 77.9272 16.2025C77.9638 15.9831 75.4769 16.2756 75.2209 16.8242C74.1603 19.0185 73.1363 21.3591 72.5512 23.7362C72.2952 24.2116 71.966 24.6505 71.6369 25.0894C70.0643 27.1739 65.6392 32.3305 62.6403 30.1728C60.8118 28.8562 61.1775 26.0402 61.9089 24.2848C62.6769 22.4196 64.1032 20.7008 65.566 19.3111C67.7603 17.2265 70.174 16.4219 73.1363 17.2265C73.7215 17.4094 76.0986 16.4585 75.4038 16.2391Z",fill:"url(#paint3_linear_3809_68339)"}),_.createElement("path",{d:"M104.945 17.0436C105.53 17.5922 105.786 18.9454 105.822 19.9694C105.895 21.6151 105.566 23.2974 105.201 24.9431C104.652 27.2471 103.921 29.6242 103.079 31.8185C102.933 32.2208 103.921 32.1111 104.177 32.0745C104.689 32.0014 105.603 31.8185 105.786 31.3065C106.371 29.7339 106.919 28.0151 107.358 26.4059C107.834 24.7968 108.199 23.1876 108.419 21.5785C108.675 19.6036 108.894 16.3488 106.517 15.5076C105.786 15.2516 105.018 15.2882 104.25 15.3614C103.189 15.4345 102.129 15.7271 101.178 16.1659C99.6783 16.8242 98.4715 17.8482 97.4109 19.1282C97.1915 19.4208 96.972 19.6768 96.7892 19.9694C96.7892 19.6036 96.7526 19.2745 96.716 18.9088C96.5698 17.8848 96.2772 16.8608 95.5092 16.1294C94.5949 15.2516 93.1321 15.2151 91.9618 15.3979C90.0601 15.6539 88.2315 16.3854 86.732 17.5922C85.8909 18.3236 85.1229 19.1648 84.428 20.0791C84.9035 18.5796 85.3789 17.1168 85.8909 15.6539C86.0372 15.2516 85.0863 15.3979 84.8303 15.4711C84.5012 15.5442 84.1355 15.6539 83.8063 15.8002C83.66 15.8734 83.2943 16.0196 83.2212 16.1659C81.356 21.2859 79.9663 26.6254 78.9423 31.9648C78.8692 32.2939 80.2589 32.0014 81.0635 31.7088C81.3926 31.5991 81.612 31.4528 81.6486 31.3065C82.636 27.9054 83.9526 24.5042 85.8178 21.4322C86.7686 19.9328 88.2315 18.0311 89.548 17.0436C90.6086 16.2391 92.0349 16.1294 92.9492 17.0436C93.6441 17.8116 93.9001 18.8722 93.9732 19.8596C94.1195 21.2128 93.9732 22.5659 93.7538 23.8825C93.4246 25.6745 92.9492 27.3202 92.3641 29.1854L91.5229 31.8916C91.4863 32.0379 91.5961 32.0745 91.7423 32.1111C92.2543 32.1842 94.0463 31.9282 94.2292 31.3431C94.9606 29.1488 95.3995 27.4299 96.3503 25.2356C97.0818 23.5168 97.9229 21.7979 98.9103 20.2254C100.3 18.0676 103.299 15.5076 104.945 17.0436Z",fill:"url(#paint4_linear_3809_68339)"}),_.createElement("path",{d:"M123.304 27.7225C121.292 29.4779 118.805 31.3065 115.989 31.0505C114.271 30.9042 112.808 29.8802 112.186 28.2711C110.723 24.3579 115.185 19.4208 118.184 17.5922C120.159 16.3488 123.889 16.2025 123.743 19.3842C123.56 23.4071 118.074 24.6505 115.002 25.0162C114.38 25.0894 112.003 26.1865 113.795 25.9671C118.037 25.4916 125.279 24.1751 126.449 19.0916C127.546 14.2642 120.085 15.8734 117.891 16.7511C113.612 18.3968 106.627 25.3088 110.065 30.1728C111.455 32.1476 114.234 32.2574 116.355 31.9648C119.903 31.5259 123.121 29.7339 125.791 27.4299C126.266 26.9911 123.779 27.3202 123.304 27.7225Z",fill:"url(#paint5_linear_3809_68339)"}),_.createElement("defs",null,_.createElement("linearGradient",{id:"paint0_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint1_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint2_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint3_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint4_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint5_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})))),SZ=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...e},_.createElement("g",null,_.createElement("path",{d:"M45.12 24.5c0-1.56-.14-3.06-.4-4.5H24v8.51h11.84c-.51 2.75-2.06 5.08-4.39 6.64v5.52h7.11c4.16-3.83 6.56-9.47 6.56-16.17z"}),_.createElement("path",{d:"M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.11-5.52c-1.97 1.32-4.49 2.1-7.45 2.1-5.73 0-10.58-3.87-12.31-9.07H4.34v5.7C7.96 41.07 15.4 46 24 46z"}),_.createElement("path",{d:"M11.69 28.18C11.25 26.86 11 25.45 11 24s.25-2.86.69-4.18v-5.7H4.34A21.991 21.991 0 0 0 2 24c0 3.55.85 6.91 2.34 9.88l7.35-5.7z"}),_.createElement("path",{d:"M24 10.75c3.23 0 6.13 1.11 8.41 3.29l6.31-6.31C34.91 4.18 29.93 2 24 2 15.4 2 7.96 6.93 4.34 14.12l7.35 5.7c1.73-5.2 6.58-9.07 12.31-9.07z"}))),wZ=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:98.36,height:40,viewBox:"0 0 98.36 40",...e},_.createElement("path",{fill:"#0058ab",d:"M98.36 40H0V0h98.36v40Z"}),_.createElement("path",{fill:"#fbd914",d:"M1.92 20c0 9.66 19.81 17.67 47.26 17.67S96.44 29.66 96.44 20 76.63 2.33 49.18 2.33 1.92 10.34 1.92 20Z"}),_.createElement("path",{fill:"#0058ab",d:"M46.39 25.67c.29.43.63.83 1.04 1.25H36.79c0-.42-.4-1.28-.86-1.96l-2.9-4.38v5.09c0 .42 0 .83.21 1.25h-8.87c.21-.42.21-.83.21-1.25v-12.1c0-.42 0-.83-.21-1.25h8.87c-.21.42-.21.83-.21 1.25v5.28s2.84-3.68 3.48-4.55c.49-.66 1.11-1.57 1.11-1.98h9.24c-.64.42-1.34 1.19-1.92 1.89l-3.39 4.13 4.82 7.33Zm2.79-12.1v12.1c0 .42 0 .83-.21 1.25h17.11v-4.05c-.42.21-.83.21-1.25.21h-7.2v-1.92h6.92v-3.07h-6.92v-1.92h7.2c.42 0 .83 0 1.25.2v-4.05H48.97c.21.42.21.83.21 1.25Zm40.63 12.09c.16.42.32.84.69 1.26h-9.28c.05-.42-.12-.83-.28-1.25l-.33-.84-.08-.22h-5.34l-.08.22-.3.84c-.15.42-.3.83-.24 1.25h-7.32c.36-.42.51-.83.66-1.25l4.39-12.1c.15-.42.3-.83.25-1.25h12.36c-.11.42.11.83.27 1.25l4.63 12.09Zm-10.47-4.12-1.29-3.38a9.4 9.4 0 0 1-.29-.96s-.1.54-.25.96l-1.23 3.38h3.05Zm-59.15-9.22h-9.64c.21.42.21.83.21 1.25v12.1c0 .42 0 .83-.21 1.25h9.64c-.21-.42-.21-.83-.21-1.25v-12.1c0-.42 0-.83.21-1.25Zm66.64 1.15c0-1.12.81-1.92 1.92-1.92s1.92.81 1.92 1.92-.81 1.92-1.92 1.92-1.92-.81-1.92-1.92Zm.39 0c0 .85.64 1.54 1.54 1.54.85 0 1.54-.64 1.54-1.54 0-.85-.64-1.54-1.54-1.54s-1.54.64-1.54 1.54Zm1.15 1.15h-.34v-2.3h.86c.4 0 .72.35.72.75 0 .28-.17.56-.41.67l.5.89h-.38l-.46-.81h-.5v.81Zm0-1.15h.47c.24 0 .43-.17.43-.41s-.19-.41-.43-.41h-.47v.81Z"})),A3e=e=>_.createElement("svg",{width:87,height:22,viewBox:"0 0 87 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("path",{d:"M20.227 6.9772C20.8627 3.67692 19.1349 0.197266 15.3536 0.197266H9.45329L8.47534 5.23738H12.925C13.8377 5.23738 14.4082 6.06245 14.2126 7.04895C14.017 8.05338 13.1369 8.82464 12.2241 8.82464H7.72559L13.7562 21.0931H20.064L15.9892 12.8603C17.0813 12.2146 19.5587 10.403 20.227 6.9772Z",fill:"#6CBB86"}),_.createElement("path",{d:"M1.04314 15.6945L0 21.1112H5.3787L7.72577 8.84277C4.44965 8.96833 1.8744 11.3718 1.04314 15.6945Z",fill:"#6CBB86"}),_.createElement("path",{d:"M4.58026 5.56026C5.98198 5.56026 7.12291 4.32266 7.12291 2.78013C7.12291 1.23761 5.98198 0 4.58026 0C3.17853 0 2.0376 1.23761 2.0376 2.78013C2.0376 4.30472 3.17853 5.56026 4.58026 5.56026Z",fill:"#6CBB86"}),_.createElement("path",{d:"M82.2616 0.197266H77.1763L74.5684 13.8468C73.8024 17.8466 76.3939 21.5415 82.4572 21.5415C82.5061 21.5415 82.6039 21.5236 82.6039 21.5236L83.6307 16.1785C81.7074 16.5014 79.2463 15.7122 79.6863 13.4163L80.3383 10.0084H84.8205L85.7496 5.21944H81.2673L82.2616 0.197266Z",fill:"#6CBB86"}),_.createElement("path",{d:"M50.1036 13.4343C49.7124 15.4432 48.2129 16.8422 46.094 16.8422C43.9751 16.8422 43.1438 15.3714 43.5513 13.2908C43.9588 11.2281 45.3116 10.0264 47.4305 10.0264C49.5331 10.0264 50.4947 11.4254 50.1036 13.4343ZM48.3107 5.32706C47.3001 5.32706 45.5561 5.61404 44.9693 5.95483L46.0777 0.197266H41.0087L38.4497 13.4343C37.537 18.1157 40.4219 21.5594 45.2138 21.5594C50.5599 21.5594 54.1131 19.0304 55.1237 13.793C56.0853 8.73496 52.6951 5.32706 48.3107 5.32706Z",fill:"#6CBB86"}),_.createElement("path",{d:"M68.1628 13.4344C67.7717 15.4432 66.321 16.8423 64.2022 16.8423C62.0833 16.8423 61.1705 15.4612 61.578 13.3806C61.9855 11.3179 63.4035 10.0265 65.5224 10.0265C67.625 10.0265 68.554 11.4255 68.1628 13.4344ZM66.4188 5.32715C61.6269 5.32715 57.4706 8.43013 56.509 13.4523C55.5473 18.4565 58.5138 21.5775 63.1916 21.5775C68.9289 21.5775 72.2865 18.4565 73.2318 13.4523C74.1935 8.43013 71.2108 5.32715 66.4188 5.32715Z",fill:"#6CBB86"}),_.createElement("path",{d:"M31.9463 13.4344C31.5552 15.4432 30.1045 16.8423 27.9857 16.8423C25.8668 16.8423 24.954 15.4612 25.3615 13.3806C25.769 11.3179 27.187 10.0265 29.3059 10.0265C31.4085 10.0265 32.3375 11.4255 31.9463 13.4344ZM30.2186 5.32715C25.4267 5.32715 21.2704 8.43013 20.3088 13.4523C19.3471 18.4565 22.3136 21.5775 26.9914 21.5775C32.7287 21.5775 36.0863 18.4565 37.0317 13.4523C37.977 8.43013 35.0106 5.32715 30.2186 5.32715Z",fill:"#6CBB86"}),_.createElement("path",{d:"M84.9833 1.14786H84.7388V1.63214H84.9833C85.1789 1.63214 85.2604 1.54246 85.2604 1.38103C85.2604 1.27341 85.2115 1.14786 84.9833 1.14786ZM85.5864 2.4034H85.3419L84.9344 1.82944H84.7225V2.4034H84.5106V0.950558H84.9833C85.3419 0.950558 85.4723 1.18373 85.4723 1.38103C85.4723 1.6142 85.3419 1.75769 85.1463 1.79357L85.5864 2.4034ZM84.967 2.76213C85.5049 2.76213 85.9449 2.27785 85.9449 1.68595C85.9449 1.09405 85.5049 0.609767 84.967 0.609767C84.4291 0.609767 83.989 1.09405 83.989 1.68595C83.989 2.27785 84.4291 2.76213 84.967 2.76213ZM84.967 0.394531C85.6027 0.394531 86.1405 0.98643 86.1405 1.68595C86.1405 2.4034 85.619 2.97736 84.967 2.97736C84.315 2.97736 83.7935 2.4034 83.7935 1.68595C83.7935 0.98643 84.315 0.394531 84.967 0.394531Z",fill:"#6CBB86"})),k3e=e=>_.createElement("svg",{width:225,height:99,viewBox:"0 0 225 99",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{clipPath:"url(#clip0_415_130964)"},_.createElement("path",{d:"M134.874 68.7831H165.274V81.2487H120.202V17.2373H134.874V68.7831Z",fill:"#707070"}),_.createElement("path",{d:"M197.534 56.8451H209.482V68.0462C207.288 68.8892 202.987 69.7323 198.905 69.7323C185.694 69.7323 181.301 62.9711 181.301 49.241C181.301 36.1374 185.483 28.4265 198.682 28.4265C206.039 28.4265 210.213 30.7533 213.675 35.1904L222.802 26.7376C217.227 18.726 207.5 16.2981 198.365 16.2981C177.83 16.2897 167.033 27.5807 167.033 49.1314C167.033 70.5753 176.79 82.2007 198.256 82.2007C208.113 82.2007 217.748 79.6716 222.992 75.9651V44.9078H197.534V56.8451Z",fill:"#707070"}),_.createElement("path",{d:"M83.831 84.5045C103.008 65.1736 103.007 33.831 83.829 14.499C64.6508 -4.83307 33.5576 -4.83396 14.3805 14.497C-4.79664 33.8279 -4.79576 65.1705 14.3825 84.5025C33.5607 103.835 64.6538 103.835 83.831 84.5045Z",fill:"#A50034"}),_.createElement("path",{d:"M61.1184 66.6079H51.0826V28.5984H47.3721V70.3594H51.0909V70.3341H61.1268L61.1184 66.6079Z",fill:"white"}),_.createElement("path",{d:"M86.1485 51.0737H61.1759V47.3447H89.8088C89.8479 48.0669 89.8674 48.7891 89.8674 49.5198C89.8674 71.9725 71.7136 90.1707 49.3252 90.1707C26.9368 90.1707 8.78027 71.9809 8.78027 49.5169C8.78027 27.053 26.9313 8.86597 49.3224 8.86597C49.9134 8.86597 50.5016 8.87814 51.0871 8.9025V12.6034C50.5016 12.5772 49.9153 12.5641 49.328 12.5641C28.9775 12.5641 12.474 29.11 12.474 49.5169C12.474 69.9239 28.9747 86.4726 49.328 86.4726C69.121 86.4726 85.2899 70.8175 86.1457 51.1777L86.1485 51.0737Z",fill:"white"}),_.createElement("path",{d:"M34.2066 39.8496C35.3263 39.8441 36.4193 39.5043 37.3476 38.8732C38.276 38.2421 38.9981 37.3479 39.4227 36.3036C39.8474 35.2592 39.9557 34.1114 39.7339 33.005C39.5121 31.8987 38.9701 30.8834 38.1764 30.0872C37.3827 29.2911 36.3728 28.7497 35.2742 28.5316C34.1756 28.3134 33.0374 28.4282 32.0035 28.8614C30.9695 29.2946 30.086 30.0268 29.4645 30.9657C28.8429 31.9046 28.5112 33.008 28.5112 34.1367C28.5131 34.8888 28.6618 35.6331 28.949 36.3273C29.2362 37.0214 29.6563 37.6517 30.1851 38.1822C30.714 38.7127 31.3413 39.133 32.0313 39.4191C32.7213 39.7052 33.4605 39.8515 34.2066 39.8496Z",fill:"white"})),_.createElement("defs",null,_.createElement("clipPath",{id:"clip0_415_130964"},_.createElement("rect",{width:223,height:99,fill:"white"})))),_3e=e=>_.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("title",null,"Lidl"),_.createElement("path",{d:"M0 0v24h24V0zm.209.209h23.582v23.582H.209zm11.789.625C5.83.834.83 5.834.83 12.002c0 6.168 5 11.168 11.168 11.168 6.167 0 11.167-5 11.168-11.166C23.165 5.837 18.166.837 12 .834zm.002.709c5.777 0 10.46 4.682 10.46 10.459v.004c-.004 5.773-4.686 10.452-10.46 10.453-5.777 0-10.46-4.68-10.46-10.457C1.54 6.225 6.222 1.543 12 1.543zM9.229 7.85c-.645 0-1.166.521-1.166 1.166v.004c0 1.044 1.261 1.567 1.999.829.738-.738.215-2-.829-1.999zM2.73 10.059v.71h.551v2.465h-.55v.713h4.644v-.65l.537-.54 1.486 1.491-.55.547.357.36 2.973-2.977v-.713l-.826.83-1.848-1.848-2.129 2.133v-.576l-1.904 1.06V10.77h.549v-.711zm8.905 0v.71h.549v2.465h-.555v.713h3.129c2.325 0 2.355-3.888.008-3.888zm4.963 0v.71h.55v2.465h-.55v.713h4.648v-1.943l-1.906 1.06V10.77h.55v-.711zm-2.43 1.21h.133c.687 0 .685 1.461.023 1.461h-.156v-1.46z"})),CZ=e=>_.createElement("svg",{id:"a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 80.2 14.3",...e},_.createElement("defs",null,_.createElement("style",null,`
|
|
148
148
|
.st0 {
|
|
149
149
|
fill: #0097e0;
|
|
150
150
|
}
|
|
@@ -496,4 +496,4 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
|
|
|
496
496
|
To pick up a draggable item, press the space bar.
|
|
497
497
|
While dragging, use the arrow keys to move the item.
|
|
498
498
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
499
|
-
`},Gat={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Kat(e){let{announcements:t=Gat,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=qat}=e;const{announce:o,announcement:s}=Uat(),a=av("DndLiveRegion"),[l,c]=_.useState(!1);if(_.useEffect(()=>{c(!0)},[]),Vat(_.useMemo(()=>({onDragStart(f){let{active:h}=f;o(t.onDragStart({active:h}))},onDragMove(f){let{active:h,over:g}=f;t.onDragMove&&o(t.onDragMove({active:h,over:g}))},onDragOver(f){let{active:h,over:g}=f;o(t.onDragOver({active:h,over:g}))},onDragEnd(f){let{active:h,over:g}=f;o(t.onDragEnd({active:h,over:g}))},onDragCancel(f){let{active:h,over:g}=f;o(t.onDragCancel({active:h,over:g}))}}),[o,t])),!l)return null;const u=qt.createElement(qt.Fragment,null,qt.createElement(zat,{id:r,value:i.draggable}),qt.createElement(Hat,{id:a,announcement:s}));return n?Dd.createPortal(u,n):u}var Li;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Li||(Li={}));function CS(){}function kK(e,t){return _.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Yat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const sl=Object.freeze({x:0,y:0});function Cle(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ele(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Xat(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function _K(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function Ale(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function DK(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Zat=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=DK(t,t.left,t.top),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=Cle(DK(l),i);o.push({id:a,data:{droppableContainer:s,value:c}})}}return o.sort(Ele)},Jat=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=_K(t),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=_K(l),u=i.reduce((h,g,y)=>h+Cle(c[y],g),0),f=Number((u/4).toFixed(4));o.push({id:a,data:{droppableContainer:s,value:f}})}}return o.sort(Ele)};function Qat(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,c=e.width*e.height,u=s*a,f=u/(l+c-u);return Number(f.toFixed(4))}return 0}const elt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,a=n.get(s);if(a){const l=Qat(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(Xat)};function tlt(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function kle(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:sl}function nlt(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const rlt=nlt(1);function ilt(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function olt(e,t,n){const r=ilt(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat(n),c=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,f=o?e.height/o:e.height;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l}}const slt={ignoreTransform:!1};function pg(e,t){t===void 0&&(t=slt);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=fs(e).getComputedStyle(e);c&&(n=olt(n,c,u))}const{top:r,left:i,width:o,height:s,bottom:a,right:l}=n;return{top:r,left:i,width:o,height:s,bottom:a,right:l}}function OK(e){return pg(e,{ignoreTransform:!0})}function alt(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function llt(e,t){return t===void 0&&(t=fs(e).getComputedStyle(e)),t.position==="fixed"}function clt(e,t){t===void 0&&(t=fs(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function qC(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(xI(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!ov(i)||xle(i)||n.includes(i))return n;const o=fs(e).getComputedStyle(i);return i!==e&&clt(i,o)&&n.push(i),llt(i,o)?n:r(i.parentNode)}return e?r(e):n}function _le(e){const[t]=qC(e,1);return t??null}function XA(e){return!WC||!e?null:fg(e)?e:vI(e)?xI(e)||e===hg(e).scrollingElement?window:ov(e)?e:null:null}function Dle(e){return fg(e)?e.scrollX:e.scrollLeft}function Ole(e){return fg(e)?e.scrollY:e.scrollTop}function XD(e){return{x:Dle(e),y:Ole(e)}}var Xi;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Xi||(Xi={}));function Tle(e){return!WC||!e?!1:e===document.scrollingElement}function Mle(e){const t={x:0,y:0},n=Tle(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}const ult={x:.2,y:.2};function dlt(e,t,n,r,i){let{top:o,left:s,right:a,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=ult);const{isTop:c,isBottom:u,isLeft:f,isRight:h}=Mle(e),g={x:0,y:0},y={x:0,y:0},b={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+b.height?(g.y=Xi.Backward,y.y=r*Math.abs((t.top+b.height-o)/b.height)):!u&&l>=t.bottom-b.height&&(g.y=Xi.Forward,y.y=r*Math.abs((t.bottom-b.height-l)/b.height)),!h&&a>=t.right-b.width?(g.x=Xi.Forward,y.x=r*Math.abs((t.right-b.width-a)/b.width)):!f&&s<=t.left+b.width&&(g.x=Xi.Backward,y.x=r*Math.abs((t.left+b.width-s)/b.width)),{direction:g,speed:y}}function flt(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:s}=window;return{top:0,left:0,right:o,bottom:s,width:o,height:s}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Rle(e){return e.reduce((t,n)=>nm(t,XD(n)),sl)}function hlt(e){return e.reduce((t,n)=>t+Dle(n),0)}function plt(e){return e.reduce((t,n)=>t+Ole(n),0)}function mlt(e,t){if(t===void 0&&(t=pg),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);_le(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const glt=[["x",["left","right"],hlt],["y",["top","bottom"],plt]];class CI{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=qC(n),i=Rle(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,s,a]of glt)for(const l of s)Object.defineProperty(this,l,{get:()=>{const c=a(r),u=i[o]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Iy{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function ylt(e){const{EventTarget:t}=fs(e);return e instanceof t?e:hg(e)}function ZA(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var na;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(na||(na={}));function TK(e){e.preventDefault()}function blt(e){e.stopPropagation()}var Ln;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ln||(Ln={}));const Ile={start:[Ln.Space,Ln.Enter],cancel:[Ln.Esc],end:[Ln.Space,Ln.Enter,Ln.Tab]},vlt=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ln.Right:return{...n,x:n.x+25};case Ln.Left:return{...n,x:n.x-25};case Ln.Down:return{...n,y:n.y+25};case Ln.Up:return{...n,y:n.y-25}}};class EI{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Iy(hg(n)),this.windowListeners=new Iy(fs(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(na.Resize,this.handleCancel),this.windowListeners.add(na.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(na.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&mlt(r),n(sl)}handleKeyDown(t){if(wI(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=Ile,coordinateGetter:s=vlt,scrollBehavior:a="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:sl;this.referenceCoordinates||(this.referenceCoordinates=u);const f=s(t,{active:n,context:r.current,currentCoordinates:u});if(f){const h=nb(f,u),g={x:0,y:0},{scrollableAncestors:y}=r.current;for(const b of y){const v=t.code,{isTop:S,isRight:C,isLeft:w,isBottom:A,maxScroll:E,minScroll:D}=Mle(b),O=flt(b),T={x:Math.min(v===Ln.Right?O.right-O.width/2:O.right,Math.max(v===Ln.Right?O.left:O.left+O.width/2,f.x)),y:Math.min(v===Ln.Down?O.bottom-O.height/2:O.bottom,Math.max(v===Ln.Down?O.top:O.top+O.height/2,f.y))},I=v===Ln.Right&&!C||v===Ln.Left&&!w,N=v===Ln.Down&&!A||v===Ln.Up&&!S;if(I&&T.x!==f.x){const $=b.scrollLeft+h.x,R=v===Ln.Right&&$<=E.x||v===Ln.Left&&$>=D.x;if(R&&!h.y){b.scrollTo({left:$,behavior:a});return}R?g.x=b.scrollLeft-$:g.x=v===Ln.Right?b.scrollLeft-E.x:b.scrollLeft-D.x,g.x&&b.scrollBy({left:-g.x,behavior:a});break}else if(N&&T.y!==f.y){const $=b.scrollTop+h.y,R=v===Ln.Down&&$<=E.y||v===Ln.Up&&$>=D.y;if(R&&!h.x){b.scrollTo({top:$,behavior:a});return}R?g.y=b.scrollTop-$:g.y=v===Ln.Down?b.scrollTop-E.y:b.scrollTop-D.y,g.y&&b.scrollBy({top:-g.y,behavior:a});break}}this.handleMove(t,nm(nb(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}EI.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Ile,onActivation:i}=t,{active:o}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const a=o.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function MK(e){return!!(e&&"distance"in e)}function RK(e){return!!(e&&"delay"in e)}class AI{constructor(t,n,r){var i;r===void 0&&(r=ylt(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:s}=o;this.props=t,this.events=n,this.document=hg(s),this.documentListeners=new Iy(this.document),this.listeners=new Iy(r),this.windowListeners=new Iy(fs(s)),this.initialCoordinates=(i=YD(o))!=null?i:sl,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(na.Resize,this.handleCancel),this.windowListeners.add(na.DragStart,TK),this.windowListeners.add(na.VisibilityChange,this.handleCancel),this.windowListeners.add(na.ContextMenu,TK),this.documentListeners.add(na.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(RK(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(MK(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(na.Click,blt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(na.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:s,options:{activationConstraint:a}}=o;if(!i)return;const l=(n=YD(t))!=null?n:sl,c=nb(i,l);if(!r&&a){if(MK(a)){if(a.tolerance!=null&&ZA(c,a.tolerance))return this.handleCancel();if(ZA(c,a.distance))return this.handleStart()}if(RK(a)&&ZA(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ln.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const xlt={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class kI extends AI{constructor(t){const{event:n}=t,r=hg(n.target);super(t,xlt,r)}}kI.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const Slt={move:{name:"mousemove"},end:{name:"mouseup"}};var ZD;(function(e){e[e.RightClick=2]="RightClick"})(ZD||(ZD={}));class wlt extends AI{constructor(t){super(t,Slt,hg(t.event.target))}}wlt.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===ZD.RightClick?!1:(r?.({event:n}),!0)}}];const JA={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Clt extends AI{constructor(t){super(t,JA)}static setup(){return window.addEventListener(JA.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(JA.move.name,t)};function t(){}}}Clt.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var Py;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Py||(Py={}));var ES;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ES||(ES={}));function Elt(e){let{acceleration:t,activator:n=Py.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:s=5,order:a=ES.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:f,threshold:h}=e;const g=klt({delta:f,disabled:!o}),[y,b]=$at(),v=_.useRef({x:0,y:0}),S=_.useRef({x:0,y:0}),C=_.useMemo(()=>{switch(n){case Py.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Py.DraggableRect:return i}},[n,i,l]),w=_.useRef(null),A=_.useCallback(()=>{const D=w.current;if(!D)return;const O=v.current.x*S.current.x,T=v.current.y*S.current.y;D.scrollBy(O,T)},[]),E=_.useMemo(()=>a===ES.TreeOrder?[...c].reverse():c,[a,c]);_.useEffect(()=>{if(!o||!c.length||!C){b();return}for(const D of E){if(r?.(D)===!1)continue;const O=c.indexOf(D),T=u[O];if(!T)continue;const{direction:I,speed:N}=dlt(D,T,C,t,h);for(const $ of["x","y"])g[$][I[$]]||(N[$]=0,I[$]=0);if(N.x>0||N.y>0){b(),w.current=D,y(A,s),v.current=N,S.current=I;return}}v.current={x:0,y:0},S.current={x:0,y:0},b()},[t,A,r,b,o,s,JSON.stringify(C),JSON.stringify(g),y,c,E,u,JSON.stringify(h)])}const Alt={x:{[Xi.Backward]:!1,[Xi.Forward]:!1},y:{[Xi.Backward]:!1,[Xi.Forward]:!1}};function klt(e){let{delta:t,disabled:n}=e;const r=KD(t);return sv(i=>{if(n||!r||!i)return Alt;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Xi.Backward]:i.x[Xi.Backward]||o.x===-1,[Xi.Forward]:i.x[Xi.Forward]||o.x===1},y:{[Xi.Backward]:i.y[Xi.Backward]||o.y===-1,[Xi.Forward]:i.y[Xi.Forward]||o.y===1}}},[n,t,r])}function _lt(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return sv(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function Dlt(e,t){return _.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...o]},[]),[e,t])}var ib;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ib||(ib={}));var JD;(function(e){e.Optimized="optimized"})(JD||(JD={}));const IK=new Map;function Olt(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,s]=_.useState(null),{frequency:a,measure:l,strategy:c}=i,u=_.useRef(e),f=v(),h=tb(f),g=_.useCallback(function(S){S===void 0&&(S=[]),!h.current&&s(C=>C===null?S:C.concat(S.filter(w=>!C.includes(w))))},[h]),y=_.useRef(null),b=sv(S=>{if(f&&!n)return IK;if(!S||S===IK||u.current!==e||o!=null){const C=new Map;for(let w of e){if(!w)continue;if(o&&o.length>0&&!o.includes(w.id)&&w.rect.current){C.set(w.id,w.rect.current);continue}const A=w.node.current,E=A?new CI(l(A),A):null;w.rect.current=E,E&&C.set(w.id,E)}return C}return S},[e,o,n,f,l]);return _.useEffect(()=>{u.current=e},[e]),_.useEffect(()=>{f||g()},[n,f]),_.useEffect(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),_.useEffect(()=>{f||typeof a!="number"||y.current!==null||(y.current=setTimeout(()=>{g(),y.current=null},a))},[a,f,g,...r]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:o!=null};function v(){switch(c){case ib.Always:return!1;case ib.BeforeDragging:return n;default:return!n}}}function Ple(e,t){return sv(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Tlt(e,t){return Ple(e,t)}function Mlt(e){let{callback:t,disabled:n}=e;const r=SI(t),i=_.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return _.useEffect(()=>()=>i?.disconnect(),[i]),i}function GC(e){let{callback:t,disabled:n}=e;const r=SI(t),i=_.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return _.useEffect(()=>()=>i?.disconnect(),[i]),i}function Rlt(e){return new CI(pg(e),e)}function PK(e,t,n){t===void 0&&(t=Rlt);const[r,i]=_.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const s=Mlt({callback(l){if(e)for(const c of l){const{type:u,target:f}=c;if(u==="childList"&&f instanceof HTMLElement&&f.contains(e)){o();break}}}}),a=GC({callback:o});return yc(()=>{o(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function Ilt(e){const t=Ple(e);return kle(e,t)}const jK=[];function Plt(e){const t=_.useRef(e),n=sv(r=>e?r&&r!==jK&&e&&t.current&&e.parentNode===t.current.parentNode?r:qC(e):jK,[e]);return _.useEffect(()=>{t.current=e},[e]),n}function jlt(e){const[t,n]=_.useState(null),r=_.useRef(e),i=_.useCallback(o=>{const s=XA(o.target);s&&n(a=>a?(a.set(s,XD(s)),new Map(a)):null)},[]);return _.useEffect(()=>{const o=r.current;if(e!==o){s(o);const a=e.map(l=>{const c=XA(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,XD(c)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(o)};function s(a){a.forEach(l=>{const c=XA(l);c?.removeEventListener("scroll",i)})}},[i,e]),_.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,s)=>nm(o,s),sl):Rle(e):sl,[e,t])}function $K(e,t){t===void 0&&(t=[]);const n=_.useRef(null);return _.useEffect(()=>{n.current=null},t),_.useEffect(()=>{const r=e!==sl;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?nb(e,n.current):sl}function $lt(e){_.useEffect(()=>{if(!WC)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function Llt(e,t){return _.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=s=>{o(s,t)},n},{}),[e,t])}function jle(e){return _.useMemo(()=>e?alt(e):null,[e])}const LK=[];function Nlt(e,t){t===void 0&&(t=pg);const[n]=e,r=jle(n?fs(n):null),[i,o]=_.useState(LK);function s(){o(()=>e.length?e.map(l=>Tle(l)?r:new CI(t(l),l)):LK)}const a=GC({callback:s});return yc(()=>{a?.disconnect(),s(),e.forEach(l=>a?.observe(l))},[e]),i}function Flt(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return ov(t)?t:e}function Blt(e){let{measure:t}=e;const[n,r]=_.useState(null),i=_.useCallback(c=>{for(const{target:u}of c)if(ov(u)){r(f=>{const h=t(u);return f?{...f,width:h.width,height:h.height}:h});break}},[t]),o=GC({callback:i}),s=_.useCallback(c=>{const u=Flt(c);o?.disconnect(),u&&o?.observe(u),r(u?t(u):null)},[t,o]),[a,l]=wS(s);return _.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const zlt=[{sensor:kI,options:{}},{sensor:EI,options:{}}],Hlt={current:{}},k4={draggable:{measure:OK},droppable:{measure:OK,strategy:ib.WhileDragging,frequency:JD.Optimized},dragOverlay:{measure:pg}};class jy extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Ult={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new jy,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:CS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:k4,measureDroppableContainers:CS,windowRect:null,measuringScheduled:!1},Vlt={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:CS,draggableNodes:new Map,over:null,measureDroppableContainers:CS},KC=_.createContext(Vlt),$le=_.createContext(Ult);function Wlt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new jy}}}function qlt(e,t){switch(t.type){case Li.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Li.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Li.DragEnd:case Li.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Li.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new jy(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Li.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new jy(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case Li.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new jy(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Glt(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=_.useContext(KC),o=KD(r),s=KD(n?.id);return _.useEffect(()=>{if(!t&&!r&&o&&s!=null){if(!wI(o)||document.activeElement===o.target)return;const a=i.get(s);if(!a)return;const{activatorNode:l,node:c}=a;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const f=Fat(u);if(f){f.focus();break}}})}},[r,t,i,s,o]),null}function Klt(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function Ylt(e){return _.useMemo(()=>({draggable:{...k4.draggable,...e?.draggable},droppable:{...k4.droppable,...e?.droppable},dragOverlay:{...k4.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Xlt(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=_.useRef(!1),{x:s,y:a}=typeof i=="boolean"?{x:i,y:i}:i;yc(()=>{if(!s&&!a||!t){o.current=!1;return}if(o.current||!r)return;const c=t?.node.current;if(!c||c.isConnected===!1)return;const u=n(c),f=kle(u,r);if(s||(f.x=0),a||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const h=_le(c);h&&h.scrollBy({top:f.y,left:f.x})}},[t,s,a,r,n])}const Lle=_.createContext({...sl,scaleX:1,scaleY:1});var xd;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(xd||(xd={}));const Zlt=_.memo(function(t){var n,r,i,o;let{id:s,accessibility:a,autoScroll:l=!0,children:c,sensors:u=zlt,collisionDetection:f=elt,measuring:h,modifiers:g,...y}=t;const b=_.useReducer(qlt,void 0,Wlt),[v,S]=b,[C,w]=Wat(),[A,E]=_.useState(xd.Uninitialized),D=A===xd.Initialized,{draggable:{active:O,nodes:T,translate:I},droppable:{containers:N}}=v,$=O!=null?T.get(O):null,R=_.useRef({initial:null,translated:null}),F=_.useMemo(()=>{var Dt;return O!=null?{id:O,data:(Dt=$?.data)!=null?Dt:Hlt,rect:R}:null},[O,$]),j=_.useRef(null),[z,L]=_.useState(null),[q,V]=_.useState(null),U=tb(y,Object.values(y)),K=av("DndDescribedBy",s),B=_.useMemo(()=>N.getEnabled(),[N]),W=Ylt(h),{droppableRects:X,measureDroppableContainers:H,measuringScheduled:Y}=Olt(B,{dragging:D,dependencies:[I.x,I.y],config:W.droppable}),J=_lt(T,O),ne=_.useMemo(()=>q?YD(q):null,[q]),ee=yr(),se=Tlt(J,W.draggable.measure);Xlt({activeNode:O!=null?T.get(O):null,config:ee.layoutShiftCompensation,initialRect:se,measure:W.draggable.measure});const ue=PK(J,W.draggable.measure,se),te=PK(J?J.parentElement:null),Z=_.useRef({activatorEvent:null,active:null,activeNode:J,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:N,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),re=N.getNodeFor((n=Z.current.over)==null?void 0:n.id),oe=Blt({measure:W.dragOverlay.measure}),fe=(r=oe.nodeRef.current)!=null?r:J,be=D?(i=oe.rect)!=null?i:ue:null,De=!!(oe.nodeRef.current&&oe.rect),Oe=Ilt(De?null:ue),Ke=jle(fe?fs(fe):null),xe=Plt(D?re??J:null),Le=Nlt(xe),Me=Klt(g,{transform:{x:I.x-Oe.x,y:I.y-Oe.y,scaleX:1,scaleY:1},activatorEvent:q,active:F,activeNodeRect:ue,containerNodeRect:te,draggingNodeRect:be,over:Z.current.over,overlayNodeRect:oe.rect,scrollableAncestors:xe,scrollableAncestorRects:Le,windowRect:Ke}),ht=ne?nm(ne,I):null,mt=jlt(xe),ze=$K(mt),Pe=$K(mt,[ue]),He=nm(Me,ze),Je=be?rlt(be,Me):null,nt=F&&Je?f({active:F,collisionRect:Je,droppableRects:X,droppableContainers:B,pointerCoordinates:ht}):null,ot=Ale(nt,"id"),[Xe,Lt]=_.useState(null),Nt=De?Me:nm(Me,Pe),Ot=tlt(Nt,(o=Xe?.rect)!=null?o:null,ue),Xn=_.useRef(null),rn=_.useCallback((Dt,jt)=>{let{sensor:Jt,options:jn}=jt;if(j.current==null)return;const on=T.get(j.current);if(!on)return;const St=Dt.nativeEvent,mn=new Jt({active:j.current,activeNode:on,event:St,options:jn,context:Z,onAbort(br){if(!T.get(br))return;const{onDragAbort:le}=U.current,pe={id:br};le?.(pe),C({type:"onDragAbort",event:pe})},onPending(br,ei,le,pe){if(!T.get(br))return;const{onDragPending:Fe}=U.current,Ue={id:br,constraint:ei,initialCoordinates:le,offset:pe};Fe?.(Ue),C({type:"onDragPending",event:Ue})},onStart(br){const ei=j.current;if(ei==null)return;const le=T.get(ei);if(!le)return;const{onDragStart:pe}=U.current,Se={activatorEvent:St,active:{id:ei,data:le.data,rect:R}};Dd.unstable_batchedUpdates(()=>{pe?.(Se),E(xd.Initializing),S({type:Li.DragStart,initialCoordinates:br,active:ei}),C({type:"onDragStart",event:Se}),L(Xn.current),V(St)})},onMove(br){S({type:Li.DragMove,coordinates:br})},onEnd:Qr(Li.DragEnd),onCancel:Qr(Li.DragCancel)});Xn.current=mn;function Qr(br){return async function(){const{active:le,collisions:pe,over:Se,scrollAdjustedTranslate:Fe}=Z.current;let Ue=null;if(le&&Fe){const{cancelDrop:yt}=U.current;Ue={activatorEvent:St,active:le,collisions:pe,delta:Fe,over:Se},br===Li.DragEnd&&typeof yt=="function"&&await Promise.resolve(yt(Ue))&&(br=Li.DragCancel)}j.current=null,Dd.unstable_batchedUpdates(()=>{S({type:br}),E(xd.Uninitialized),Lt(null),L(null),V(null),Xn.current=null;const yt=br===Li.DragEnd?"onDragEnd":"onDragCancel";if(Ue){const rt=U.current[yt];rt?.(Ue),C({type:yt,event:Ue})}})}}},[T]),at=_.useCallback((Dt,jt)=>(Jt,jn)=>{const on=Jt.nativeEvent,St=T.get(jn);if(j.current!==null||!St||on.dndKit||on.defaultPrevented)return;const mn={active:St};Dt(Jt,jt.options,mn)===!0&&(on.dndKit={capturedBy:jt.sensor},j.current=jn,rn(Jt,jt))},[T,rn]),Ht=Dlt(u,at);$lt(u),yc(()=>{ue&&A===xd.Initializing&&E(xd.Initialized)},[ue,A]),_.useEffect(()=>{const{onDragMove:Dt}=U.current,{active:jt,activatorEvent:Jt,collisions:jn,over:on}=Z.current;if(!jt||!Jt)return;const St={active:jt,activatorEvent:Jt,collisions:jn,delta:{x:He.x,y:He.y},over:on};Dd.unstable_batchedUpdates(()=>{Dt?.(St),C({type:"onDragMove",event:St})})},[He.x,He.y]),_.useEffect(()=>{const{active:Dt,activatorEvent:jt,collisions:Jt,droppableContainers:jn,scrollAdjustedTranslate:on}=Z.current;if(!Dt||j.current==null||!jt||!on)return;const{onDragOver:St}=U.current,mn=jn.get(ot),Qr=mn&&mn.rect.current?{id:mn.id,rect:mn.rect.current,data:mn.data,disabled:mn.disabled}:null,br={active:Dt,activatorEvent:jt,collisions:Jt,delta:{x:on.x,y:on.y},over:Qr};Dd.unstable_batchedUpdates(()=>{Lt(Qr),St?.(br),C({type:"onDragOver",event:br})})},[ot]),yc(()=>{Z.current={activatorEvent:q,active:F,activeNode:J,collisionRect:Je,collisions:nt,droppableRects:X,draggableNodes:T,draggingNode:fe,draggingNodeRect:be,droppableContainers:N,over:Xe,scrollableAncestors:xe,scrollAdjustedTranslate:He},R.current={initial:be,translated:Je}},[F,J,nt,Je,T,fe,be,X,N,Xe,xe,He]),Elt({...ee,delta:I,draggingRect:Je,pointerCoordinates:ht,scrollableAncestors:xe,scrollableAncestorRects:Le});const Dn=_.useMemo(()=>({active:F,activeNode:J,activeNodeRect:ue,activatorEvent:q,collisions:nt,containerNodeRect:te,dragOverlay:oe,draggableNodes:T,droppableContainers:N,droppableRects:X,over:Xe,measureDroppableContainers:H,scrollableAncestors:xe,scrollableAncestorRects:Le,measuringConfiguration:W,measuringScheduled:Y,windowRect:Ke}),[F,J,ue,q,nt,te,oe,T,N,X,Xe,H,xe,Le,W,Y,Ke]),Gn=_.useMemo(()=>({activatorEvent:q,activators:Ht,active:F,activeNodeRect:ue,ariaDescribedById:{draggable:K},dispatch:S,draggableNodes:T,over:Xe,measureDroppableContainers:H}),[q,Ht,F,ue,S,K,T,Xe,H]);return qt.createElement(wle.Provider,{value:w},qt.createElement(KC.Provider,{value:Gn},qt.createElement($le.Provider,{value:Dn},qt.createElement(Lle.Provider,{value:Ot},c)),qt.createElement(Glt,{disabled:a?.restoreFocus===!1})),qt.createElement(Kat,{...a,hiddenTextDescribedById:K}));function yr(){const Dt=z?.autoScrollEnabled===!1,jt=typeof l=="object"?l.enabled===!1:l===!1,Jt=D&&!Dt&&!jt;return typeof l=="object"?{...l,enabled:Jt}:{enabled:Jt}}}),Jlt=_.createContext(null),NK="button",Qlt="Draggable";function ect(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=av(Qlt),{activators:s,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:f,over:h}=_.useContext(KC),{role:g=NK,roleDescription:y="draggable",tabIndex:b=0}=i??{},v=l?.id===t,S=_.useContext(v?Lle:Jlt),[C,w]=wS(),[A,E]=wS(),D=Llt(s,t),O=tb(n);yc(()=>(f.set(t,{id:t,key:o,node:C,activatorNode:A,data:O}),()=>{const I=f.get(t);I&&I.key===o&&f.delete(t)}),[f,t]);const T=_.useMemo(()=>({role:g,tabIndex:b,"aria-disabled":r,"aria-pressed":v&&g===NK?!0:void 0,"aria-roledescription":y,"aria-describedby":u.draggable}),[r,g,b,v,y,u.draggable]);return{active:l,activatorEvent:a,activeNodeRect:c,attributes:T,isDragging:v,listeners:r?void 0:D,node:C,over:h,setNodeRef:w,setActivatorNodeRef:E,transform:S}}function tct(){return _.useContext($le)}const nct="Droppable",rct={timeout:25};function ict(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=av(nct),{active:s,dispatch:a,over:l,measureDroppableContainers:c}=_.useContext(KC),u=_.useRef({disabled:n}),f=_.useRef(!1),h=_.useRef(null),g=_.useRef(null),{disabled:y,updateMeasurementsFor:b,timeout:v}={...rct,...i},S=tb(b??r),C=_.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(S.current)?S.current:[S.current]),g.current=null},v)},[v]),w=GC({callback:C,disabled:y||!s}),A=_.useCallback((T,I)=>{w&&(I&&(w.unobserve(I),f.current=!1),T&&w.observe(T))},[w]),[E,D]=wS(A),O=tb(t);return _.useEffect(()=>{!w||!E.current||(w.disconnect(),f.current=!1,w.observe(E.current))},[E,w]),_.useEffect(()=>(a({type:Li.RegisterDroppable,element:{id:r,key:o,disabled:n,node:E,rect:h,data:O}}),()=>a({type:Li.UnregisterDroppable,key:o,id:r})),[r]),_.useEffect(()=>{n!==u.current.disabled&&(a({type:Li.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,a]),{active:s,rect:h,isOver:l?.id===r,node:E,over:l,setNodeRef:D}}function _I(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function oct(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function A5(e){return e!==null&&e>=0}function sct(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function act(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Nle=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=_I(t,r,n),s=t[i],a=o[i];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},k5={scaleX:1,scaleY:1},lct=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:s}=e;const a=(t=o[n])!=null?t:r;if(!a)return null;if(i===n){const c=o[s];return c?{x:0,y:n<s?c.top+c.height-(a.top+a.height):c.top-a.top,...k5}:null}const l=cct(o,i,n);return i>n&&i<=s?{x:0,y:-a.height-l,...k5}:i<n&&i>=s?{x:0,y:a.height+l,...k5}:{x:0,y:0,...k5}};function cct(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const Fle="Sortable",Ble=qt.createContext({activeIndex:-1,containerId:Fle,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Nle,disabled:{draggable:!1,droppable:!1}});function uct(e){let{children:t,id:n,items:r,strategy:i=Nle,disabled:o=!1}=e;const{active:s,dragOverlay:a,droppableRects:l,over:c,measureDroppableContainers:u}=tct(),f=av(Fle,n),h=a.rect!==null,g=_.useMemo(()=>r.map(D=>typeof D=="object"&&"id"in D?D.id:D),[r]),y=s!=null,b=s?g.indexOf(s.id):-1,v=c?g.indexOf(c.id):-1,S=_.useRef(g),C=!sct(g,S.current),w=v!==-1&&b===-1||C,A=act(o);yc(()=>{C&&y&&u(g)},[C,g,y,u]),_.useEffect(()=>{S.current=g},[g]);const E=_.useMemo(()=>({activeIndex:b,containerId:f,disabled:A,disableTransforms:w,items:g,overIndex:v,useDragOverlay:h,sortedRects:oct(g,l),strategy:i}),[b,f,A.draggable,A.droppable,w,g,v,l,h,i]);return qt.createElement(Ble.Provider,{value:E},t)}const dct=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return _I(n,r,i).indexOf(t)},fct=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:s,previousItems:a,previousContainerId:l,transition:c}=e;return!c||!r||a!==o&&i===s?!1:n?!0:s!==i&&t===l},hct={duration:200,easing:"ease"},zle="transform",pct=rb.Transition.toString({property:zle,duration:0,easing:"linear"}),mct={roleDescription:"sortable"};function gct(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,s]=_.useState(null),a=_.useRef(n);return yc(()=>{if(!t&&n!==a.current&&r.current){const l=i.current;if(l){const c=pg(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&s(u)}}n!==a.current&&(a.current=n)},[t,n,r,i]),_.useEffect(()=>{o&&s(null)},[o]),o}function yct(e){let{animateLayoutChanges:t=fct,attributes:n,disabled:r,data:i,getNewIndex:o=dct,id:s,strategy:a,resizeObserverConfig:l,transition:c=hct}=e;const{items:u,containerId:f,activeIndex:h,disabled:g,disableTransforms:y,sortedRects:b,overIndex:v,useDragOverlay:S,strategy:C}=_.useContext(Ble),w=bct(r,g),A=u.indexOf(s),E=_.useMemo(()=>({sortable:{containerId:f,index:A,items:u},...i}),[f,i,A,u]),D=_.useMemo(()=>u.slice(u.indexOf(s)),[u,s]),{rect:O,node:T,isOver:I,setNodeRef:N}=ict({id:s,data:E,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...l}}),{active:$,activatorEvent:R,activeNodeRect:F,attributes:j,setNodeRef:z,listeners:L,isDragging:q,over:V,setActivatorNodeRef:U,transform:K}=ect({id:s,data:E,attributes:{...mct,...n},disabled:w.draggable}),B=jat(N,z),W=!!$,X=W&&!y&&A5(h)&&A5(v),H=!S&&q,Y=H&&X?K:null,ne=X?Y??(a??C)({rects:b,activeNodeRect:F,activeIndex:h,overIndex:v,index:A}):null,ee=A5(h)&&A5(v)?o({id:s,items:u,activeIndex:h,overIndex:v}):A,se=$?.id,ue=_.useRef({activeId:se,items:u,newIndex:ee,containerId:f}),te=u!==ue.current.items,Z=t({active:$,containerId:f,isDragging:q,isSorting:W,id:s,index:A,items:u,newIndex:ue.current.newIndex,previousItems:ue.current.items,previousContainerId:ue.current.containerId,transition:c,wasDragging:ue.current.activeId!=null}),re=gct({disabled:!Z,index:A,node:T,rect:O});return _.useEffect(()=>{W&&ue.current.newIndex!==ee&&(ue.current.newIndex=ee),f!==ue.current.containerId&&(ue.current.containerId=f),u!==ue.current.items&&(ue.current.items=u)},[W,ee,f,u]),_.useEffect(()=>{if(se===ue.current.activeId)return;if(se!=null&&ue.current.activeId==null){ue.current.activeId=se;return}const fe=setTimeout(()=>{ue.current.activeId=se},50);return()=>clearTimeout(fe)},[se]),{active:$,activeIndex:h,attributes:j,data:E,rect:O,index:A,newIndex:ee,items:u,isOver:I,isSorting:W,isDragging:q,listeners:L,node:T,overIndex:v,over:V,setNodeRef:B,setActivatorNodeRef:U,setDroppableNodeRef:N,setDraggableNodeRef:z,transform:re??ne,transition:oe()};function oe(){if(re||te&&ue.current.newIndex===A)return pct;if(!(H&&!wI(R)||!c)&&(W||Z))return rb.Transition.toString({...c,property:zle})}}function bct(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}function AS(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const vct=[Ln.Down,Ln.Right,Ln.Up,Ln.Left],xct=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:s,scrollableAncestors:a}}=t;if(vct.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];o.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const h=i.get(f.id);if(h)switch(e.code){case Ln.Down:r.top<h.top&&l.push(f);break;case Ln.Up:r.top>h.top&&l.push(f);break;case Ln.Left:r.left>h.left&&l.push(f);break;case Ln.Right:r.left<h.left&&l.push(f);break}});const c=Jat({collisionRect:r,droppableRects:i,droppableContainers:l});let u=Ale(c,"id");if(u===s?.id&&c.length>1&&(u=c[1].id),u!=null){const f=o.get(n.id),h=o.get(u),g=h?i.get(h.id):null,y=h?.node.current;if(y&&g&&f&&h){const v=qC(y).some((D,O)=>a[O]!==D),S=Hle(f,h),C=Sct(f,h),w=v||!S?{x:0,y:0}:{x:C?r.width-g.width:0,y:C?r.height-g.height:0},A={x:g.left,y:g.top};return w.x&&w.y?A:nb(A,w)}}}};function Hle(e,t){return!AS(e)||!AS(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Sct(e,t){return!AS(e)||!AS(t)||!Hle(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const wct=({bridge:e,index:t})=>{const{attributes:n,listeners:r,setNodeRef:i,transform:o,transition:s,isDragging:a}=yct({id:e.id}),[l,c]=_.useState(!1);_.useEffect(()=>{_w(e.id).then(c)},[e.id]);const u={transform:rb.Transform.toString(o),transition:s,opacity:a?.5:1};return m.jsx(tr,{ref:i,style:u,variant:"outlined",sx:{cursor:"grab","&:active":{cursor:"grabbing"},bgcolor:a?"action.selected":"background.paper",width:"fit-content"},children:m.jsxs(gr,{sx:{display:"flex",alignItems:"center",gap:1.5,py:1,"&:last-child":{pb:1}},children:[m.jsx(ce,{...n,...r,sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:m.jsx(QCe,{})}),m.jsx(Et,{label:t+1,size:"small",color:"primary",sx:{minWidth:32,fontWeight:"bold"}}),l?m.jsx(ce,{component:"img",src:t2(e.id),alt:e.name,sx:{width:40,height:40,borderRadius:"50%",objectFit:"cover",boxShadow:2}}):m.jsx(rl,{sx:{bgcolor:MT(e),width:40,height:40,boxShadow:2},children:(()=>{const f=TT(e);return m.jsx(f,{sx:{fontSize:24}})})()}),m.jsxs(ce,{sx:{flex:1},children:[m.jsx(ie,{variant:"subtitle1",fontWeight:500,children:e.name}),m.jsxs(ie,{variant:"caption",color:"text.secondary",children:["Port: ",e.port," • Priority: ",e.priority??100]})]})]})})},Cct=()=>{const e=Tu(),{content:t,isLoading:n}=Vm(),r=SCe(),[i,o]=_.useState([]),[s,a]=_.useState(!1);_.useEffect(()=>{if(t){const h=[...t].sort((g,y)=>{const b=g.priority??100,v=y.priority??100;return b-v});o(h),a(!1)}},[t]);const l=Yat(kK(kI),kK(EI,{coordinateGetter:xct})),c=_.useCallback(h=>{const{active:g,over:y}=h;y&&g.id!==y.id&&(o(b=>{const v=b.findIndex(C=>C.id===g.id),S=b.findIndex(C=>C.id===y.id);return _I(b,v,S)}),a(!0))},[]),u=_.useCallback(async()=>{const h=i.map((g,y)=>({id:g.id,priority:(y+1)*10}));try{await r(h),e.show({message:"Startup order saved successfully",severity:"success"}),a(!1)}catch(g){e.show({message:g instanceof Error?g.message:"Failed to save startup order",severity:"error"})}},[i,r,e]),f=_.useMemo(()=>i.map(h=>h.id),[i]);return n?m.jsx(ie,{children:"Loading..."}):m.jsxs(zt,{spacing:3,children:[m.jsx(lw,{items:[{name:"Bridges",to:Pt.bridges},{name:"Startup Order",to:Pt.startup}]}),m.jsxs(ce,{display:"flex",alignItems:"center",gap:2,children:[m.jsx(yb,{color:"primary",fontSize:"large"}),m.jsxs(ce,{children:[m.jsx(ie,{variant:"h5",fontWeight:600,children:"Startup Order"}),m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Drag and drop bridges to set the startup order. Lower positions start first."})]})]}),s&&m.jsx(vn,{severity:"info",action:m.jsx(kt,{color:"inherit",size:"small",startIcon:m.jsx(n6,{}),onClick:u,children:"Save Changes"}),children:"You have unsaved changes to the startup order."}),m.jsx(Zlt,{sensors:l,collisionDetection:Zat,onDragEnd:c,children:m.jsx(uct,{items:f,strategy:lct,children:m.jsx(zt,{spacing:1,children:i.map((h,g)=>m.jsx(wct,{bridge:h,index:g},h.id))})})}),i.length===0&&m.jsx(ie,{color:"text.secondary",textAlign:"center",py:4,children:"No bridges configured yet."}),s&&i.length>0&&m.jsx(ce,{display:"flex",justifyContent:"flex-end",children:m.jsx(kt,{variant:"contained",startIcon:m.jsx(n6,{}),onClick:u,children:"Save Startup Order"})})]})},QA="https://riddix.github.io/home-assistant-matter-hub",Pt={dashboard:"/",bridges:"/bridges",bridge:e=>`/bridges/${e}`,createBridge:"/bridges/create",editBridge:e=>`/bridges/${e}/edit`,devices:"/devices",networkMap:"/network-map",health:"/health",labels:"/labels",lockCredentials:"/lock-credentials",settings:"/settings",startup:"/startup",githubRepository:"https://github.com/riddix/home-assistant-matter-hub/",documentation:QA,faq:{multiFabric:`${QA}/connect-multiple-fabrics`,bridgeConfig:`${QA}/bridge-configuration`}},Ect=[{path:"",element:m.jsx(_2e,{}),children:[{path:"",element:m.jsx(u9e,{})},{path:Pt.bridges,element:m.jsx(a9e,{})},{path:Pt.createBridge,element:m.jsx(JQe,{})},{path:Pt.bridge(":bridgeId"),element:m.jsx(ICe,{})},{path:Pt.editBridge(":bridgeId"),element:m.jsx(QQe,{})},{path:Pt.devices,element:m.jsx(D9e,{})},{path:Pt.networkMap,element:m.jsx(Tat,{})},{path:Pt.health,element:m.jsx(aet,{})},{path:Pt.labels,element:m.jsx(fet,{})},{path:Pt.lockCredentials,element:m.jsx(bet,{})},{path:Pt.settings,element:m.jsx(Pat,{})},{path:Pt.startup,element:m.jsx(Cct,{})},{path:"*",element:m.jsx(vet,{})}]}],Act={items:{isInitialized:!1,isLoading:!1}},kct=FO(Act,e=>{e.addCase(Bo.pending,t=>{t.items.isLoading=!0}).addCase(Bo.rejected,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=void 0,t.items.error=n.error}).addCase(Bo.fulfilled,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=n.payload,t.items.error=void 0}).addCase(zX.fulfilled,(t,n)=>{t.items.content?.push(n.payload)}).addCase(UX.fulfilled,(t,n)=>{const r=t.items.content?.findIndex(i=>i.id===n.payload.id)??-1;r!==-1&&(t.items.content[r]=n.payload)}).addCase(VX.fulfilled,(t,n)=>{const r=t.items.content?.findIndex(i=>i.id===n.payload.id)??-1;r!==-1&&(t.items.content[r]=n.payload)}).addCase(HX.fulfilled,(t,n)=>{if(t.items.content){const r=t.items.content.findIndex(i=>i.id===n.meta.arg);r!==-1&&t.items.content.splice(r,1)}}).addCase(WX,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=n.payload,t.items.error=void 0}).addCase(qX,(t,n)=>{if(t.items.content){const r=t.items.content.findIndex(i=>i.id===n.payload.id);r!==-1?t.items.content[r]=n.payload:t.items.content.push(n.payload)}})}),_ct={byBridge:{}},Dct=FO(_ct,e=>{e.addCase(du.pending,(t,n)=>{t.byBridge[n.meta.arg]=ek(t.byBridge[n.meta.arg],n)}).addCase(du.rejected,(t,n)=>{t.byBridge[n.meta.arg]=ek(t.byBridge[n.meta.arg],n)}).addCase(du.fulfilled,(t,n)=>{t.byBridge[n.meta.arg]=ek(t.byBridge[n.meta.arg],n)})}),Oct={isInitialized:!1,isLoading:!1,content:void 0,error:void 0},ek=FO(Oct,e=>{e.addCase(du.pending,t=>{t.isLoading=!0}).addCase(du.rejected,(t,n)=>{t.isInitialized=!0,t.isLoading=!1,t.content=void 0,t.error=n.error}).addCase(du.fulfilled,(t,n)=>{t.isInitialized=!0,t.isLoading=!1,t.content=n.payload,t.error=void 0})}),Tct=l2e({reducer:{bridges:kct,devices:Dct}}),DI=Wme({createStyledComponent:me("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ye(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>it({props:e,name:"MuiContainer"})});function Mct(e){return Qe("MuiToolbar",e)}tt("MuiToolbar",["root","gutters","regular","dense"]);const Rct=e=>{const{classes:t,disableGutters:n,variant:r}=e;return et({root:["root",!n&&"gutters",r]},Mct,t)},Ict=me("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ge(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),Ule=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:a="regular",...l}=r,c={...r,component:o,disableGutters:s,variant:a},u=Rct(c);return m.jsx(Ict,{as:o,className:Te(u.root,i),ref:n,ownerState:c,...l})});class Pct extends _.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("ErrorBoundary caught:",t,n.componentStack)}render(){return this.state.hasError?m.jsxs(ce,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"60vh",gap:2,p:4,children:[m.jsx(KO,{color:"error",sx:{fontSize:64}}),m.jsx(ie,{variant:"h5",fontWeight:600,children:"Something went wrong"}),m.jsx(ie,{variant:"body2",color:"text.secondary",textAlign:"center",maxWidth:480,children:this.state.error?.message??"An unexpected error occurred."}),m.jsx(kt,{variant:"contained",onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},children:"Reload Page"})]}):this.props.children}}const jct=[{name:"GitHub",url:Pt.githubRepository},{name:"Documentation",url:Pt.documentation}],$ct=()=>m.jsxs(DI,{sx:{mt:16,mb:4},children:[m.jsx(gi,{sx:{mt:4,mb:4}}),m.jsx(dt,{container:!0,spacing:2,justifyContent:"center",children:jct.map((e,t)=>m.jsx(dt,{size:{xs:12,sm:"auto"},children:m.jsx(kt,{fullWidth:!0,size:"small",variant:"outlined",component:aw,href:e.url,target:"_blank",children:e.name})},t.toString()))})]});function Lct(e){return Qe("MuiAppBar",e)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Nct=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ye(t)}`,`position${ye(n)}`]};return et(i,Lct,r)},FK=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,Fct=me(Ur,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ye(n.position)}`],t[`color${ye(n.color)}`]]}})(Ge(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Fn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?FK(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?FK(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),Bct=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:s=!1,position:a="fixed",...l}=r,c={...r,color:o,position:a,enableColorOnDark:s},u=Nct(c);return m.jsx(Fct,{square:!0,component:"header",ownerState:c,elevation:4,className:Te(u.root,i,a==="fixed"&&"mui-fixed"),ref:n,...l})});function zct(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=tl(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=o.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+a-r.left}px)`:`translateX(${o.innerWidth+a-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function Hct(e){return typeof e=="function"?e():e}function _5(e,t,n){const r=Hct(n),i=zct(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const Uct=_.forwardRef(function(t,n){const r=ro(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:u="down",easing:f=i,in:h,onEnter:g,onEntered:y,onEntering:b,onExit:v,onExited:S,onExiting:C,style:w,timeout:A=o,TransitionComponent:E=Ta,...D}=t,O=_.useRef(null),T=Tr(gf(l),O,n),I=V=>U=>{V&&(U===void 0?V(O.current):V(O.current,U))},N=I((V,U)=>{_5(u,V,c),IO(V),g&&g(V,U)}),$=I((V,U)=>{const K=Kd({timeout:A,style:w,easing:f},{mode:"enter"});V.style.webkitTransition=r.transitions.create("-webkit-transform",{...K}),V.style.transition=r.transitions.create("transform",{...K}),V.style.webkitTransform="none",V.style.transform="none",b&&b(V,U)}),R=I(y),F=I(C),j=I(V=>{const U=Kd({timeout:A,style:w,easing:f},{mode:"exit"});V.style.webkitTransition=r.transitions.create("-webkit-transform",U),V.style.transition=r.transitions.create("transform",U),_5(u,V,c),v&&v(V)}),z=I(V=>{V.style.webkitTransition="",V.style.transition="",S&&S(V)}),L=V=>{s&&s(O.current,V)},q=_.useCallback(()=>{O.current&&_5(u,O.current,c)},[u,c]);return _.useEffect(()=>{if(h||u==="down"||u==="right")return;const V=OO(()=>{O.current&&_5(u,O.current,c)}),U=tl(O.current);return U.addEventListener("resize",V),()=>{V.clear(),U.removeEventListener("resize",V)}},[u,h,c]),_.useEffect(()=>{h||q()},[h,q]),m.jsx(E,{nodeRef:O,onEnter:N,onEntered:R,onEntering:$,onExit:j,onExited:z,onExiting:F,addEndListener:L,appear:a,in:h,timeout:A,...D,children:(V,{ownerState:U,...K})=>_.cloneElement(l,{ref:T,style:{visibility:V==="exited"&&!h?"hidden":void 0,...w,...l.props.style},...K})})});function Vct(e){return Qe("MuiDrawer",e)}tt("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Vle=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,n.variant==="temporary"&&t.modal]},Wct=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root",`anchor${ye(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ye(n)}`,r!=="temporary"&&`paperAnchorDocked${ye(n)}`]};return et(i,Vct,t)},qct=me(ZO,{name:"MuiDrawer",slot:"Root",overridesResolver:Vle})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Gct=me("div",{shouldForwardProp:io,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Vle})({flex:"0 0 auto"}),Kct=me(Ur,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ye(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ye(n.anchor)}`]]}})(Ge(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Wle={left:"right",right:"left",top:"down",bottom:"up"};function Yct(e){return["left","right"].includes(e)}function Xct({direction:e},t){return e==="rtl"&&Yct(t)?Wle[t]:t}const Zct=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDrawer"}),i=ro(),o=mf(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:g,...y}={},onClose:b,open:v=!1,PaperProps:S={},SlideProps:C,TransitionComponent:w,transitionDuration:A=s,variant:E="temporary",slots:D={},slotProps:O={},...T}=r,I=_.useRef(!1);_.useEffect(()=>{I.current=!0},[]);const N=Xct({direction:o?"rtl":"ltr"},a),R={...r,anchor:a,elevation:f,open:v,variant:E,...T},F=Wct(R),j={slots:{transition:w,...D},slotProps:{paper:S,transition:C,...O,backdrop:TO(O.backdrop||{...l,...g},{transitionDuration:A})}},[z,L]=lt("root",{ref:n,elementType:qct,className:Te(F.root,F.modal,u),shouldForwardComponentProp:!0,ownerState:R,externalForwardedProps:{...j,...T,...y},additionalProps:{open:v,onClose:b,hideBackdrop:h,slots:{backdrop:j.slots.backdrop},slotProps:{backdrop:j.slotProps.backdrop}}}),[q,V]=lt("paper",{elementType:Kct,shouldForwardComponentProp:!0,className:Te(F.paper,S.className),ownerState:R,externalForwardedProps:j,additionalProps:{elevation:E==="temporary"?f:0,square:!0,...E==="temporary"&&{role:"dialog","aria-modal":"true"}}}),[U,K]=lt("docked",{elementType:Gct,ref:n,className:Te(F.root,F.docked,u),ownerState:R,externalForwardedProps:j,additionalProps:T}),[B,W]=lt("transition",{elementType:Uct,ownerState:R,externalForwardedProps:j,additionalProps:{in:v,direction:Wle[N],timeout:A,appear:I.current}}),X=m.jsx(q,{...V,children:c});if(E==="permanent")return m.jsx(U,{...K,children:X});const H=m.jsx(B,{...W,children:X});return E==="persistent"?m.jsx(U,{...K,children:H}):m.jsx(z,{...L,children:H})}),Jct=XY({themeId:da}),Qct={error:vf,warn:iw,info:YO,debug:Aw},eut=({open:e,onClose:t})=>{const n=ro(),r=_.useMemo(()=>({error:n.palette.error.main,warn:n.palette.warning.main,info:n.palette.info.main,debug:n.palette.secondary.main}),[n]),[i,o]=_.useState([]),[s,a]=_.useState(!0),[l,c]=_.useState("error,warn,info".split(",")),[u,f]=_.useState(""),[h,g]=_.useState(!0),y=_.useCallback(async()=>{try{const w=new URLSearchParams({level:l.join(","),limit:"500",...u&&{search:u}}),A=await fetch(`api/logs?${w}`);if(A.ok){const E=await A.json();o(E.entries)}}catch(w){console.error("Failed to fetch logs:",w)}finally{a(!1)}},[l,u]);_.useEffect(()=>{e&&y()},[e,y]),_.useEffect(()=>{if(!h||!e)return;const w=setInterval(y,5e3);return()=>clearInterval(w)},[h,e,y]);const b=w=>{c(Array.isArray(w.target.value)?w.target.value:[w.target.value])},v=w=>{f(w.target.value)},S=async()=>{try{await fetch("api/logs",{method:"DELETE"}),o([])}catch(w){console.error("Failed to clear logs:",w)}},C=w=>{const A=Qct[w]||YO;return m.jsx(A,{sx:{fontSize:16,color:r[w]}})};return m.jsxs(vu,{open:e,onClose:t,maxWidth:"lg",fullWidth:!0,children:[m.jsxs(Su,{sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(Aw,{}),"System Logs",m.jsx(ce,{sx:{flexGrow:1}}),m.jsx(cn,{title:"Auto Refresh",children:m.jsx(Et,{label:h?"Auto":"Manual",color:h?"success":"default",size:"small",onClick:()=>g(!h),sx:{cursor:"pointer"}})}),m.jsx(_n,{onClick:t,children:m.jsx(qCe,{})})]}),m.jsxs(xu,{children:[m.jsx(zt,{spacing:2,sx:{mb:2},children:m.jsxs(zt,{direction:"row",spacing:2,alignItems:"center",children:[m.jsxs(pa,{size:"small",sx:{minWidth:200},children:[m.jsx(sc,{children:"Log Level"}),m.jsxs(sa,{value:l,label:"Log Level",onChange:b,multiple:!0,renderValue:w=>m.jsx(ce,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:(Array.isArray(w)?w:[w]).map(A=>m.jsx(Et,{label:A.toUpperCase(),size:"small",sx:{backgroundColor:r[A],color:"white"}},A))}),children:[m.jsx(er,{value:"error",children:"Error"}),m.jsx(er,{value:"warn",children:"Warning"}),m.jsx(er,{value:"info",children:"Info"}),m.jsx(er,{value:"debug",children:"Debug"})]})]}),m.jsx(Lr,{size:"small",placeholder:"Search logs...",value:u,onChange:v,sx:{flexGrow:1}}),m.jsx(kt,{variant:"outlined",onClick:y,children:"Refresh"}),m.jsx(kt,{variant:"outlined",color:"error",onClick:S,children:"Clear"})]})}),m.jsx(ce,{sx:{height:400,overflow:"auto",backgroundColor:"background.paper",border:1,borderColor:"divider",borderRadius:1,p:1},children:s?m.jsx(ce,{sx:{display:"flex",justifyContent:"center",p:4},children:m.jsx(ie,{children:"Loading logs..."})}):i.length===0?m.jsx(ce,{sx:{display:"flex",justifyContent:"center",p:4},children:m.jsx(ie,{color:"text.secondary",children:"No logs found"})}):m.jsx(zt,{spacing:1,children:i.map((w,A)=>m.jsxs(ce,{sx:{p:1,borderRadius:1,backgroundColor:"action.hover",fontFamily:"monospace",fontSize:"0.875rem",wordBreak:"break-all"},children:[m.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[C(w.level),m.jsx(ie,{variant:"caption",color:"text.secondary",children:new Date(w.timestamp).toLocaleString()}),m.jsx(Et,{label:w.level.toUpperCase(),size:"small",sx:{backgroundColor:r[w.level],color:n.palette.getContrastText(r[w.level]??n.palette.grey[500]),fontSize:"0.7rem",height:20}})]}),m.jsx(ie,{sx:{ml:3},children:w.message}),w.context&&m.jsx(ie,{sx:{ml:3,color:"text.secondary",fontSize:"0.8rem"},children:JSON.stringify(w.context,null,2)})]},`${w.timestamp}-${w.level}-${A}`))})})]}),m.jsx(Xd,{children:m.jsx(kt,{onClick:t,children:"Close"})})]})};function BK(){const{isConnected:e}=A2e(),[t,n]=_.useState(null),[r,i]=_.useState(!1);_.useEffect(()=>{const y=async()=>{try{const v=await fetch("api/health");if(v.ok){const S=await v.json();n(S),i(!1)}else i(!0)}catch{i(!0)}};y();const b=setInterval(y,3e4);return()=>clearInterval(b)},[]);const o=y=>{const b=Math.floor(y/3600),v=Math.floor(y%3600/60);return b>0?`${b}h ${v}m`:`${v}m`},s=t?.status==="healthy"&&!r,a=t?.services?.bridges,l=a&&a.total>0&&a.running===a.total,c=a&&a.total===0,u=t?m.jsxs(ce,{sx:{p:.5},children:[m.jsxs("div",{children:[m.jsx("strong",{children:"Version:"})," ",t.version??"Unknown"]}),m.jsxs("div",{children:[m.jsx("strong",{children:"Uptime:"})," ",o(t.uptime??0)]}),t.services?.bridges&&m.jsxs("div",{children:[m.jsx("strong",{children:"Bridges:"})," ",t.services.bridges.running??0,"/",t.services.bridges.total??0," running",(t.services.bridges.stopped??0)>0&&` (${t.services.bridges.stopped} stopped)`]}),t.services?.homeAssistant&&m.jsxs("div",{children:[m.jsx("strong",{children:"Home Assistant:"})," ",t.services.homeAssistant.connected?"Connected":"Disconnected"]}),m.jsxs("div",{children:[m.jsx("strong",{children:"WebSocket:"})," ",e?"Connected":"Disconnected"]})]}):"Loading health status...",f=()=>r||!s?m.jsx(vf,{fontSize:"small"}):l?m.jsx(Mu,{fontSize:"small"}):m.jsx(dw,{fontSize:"small"}),h=()=>r||!s?"error":!l||!e?"warning":"success",g=()=>r?"Error":s?e?c?"No Bridges":l?"Online":"Starting":"Offline":"Unhealthy";return m.jsx(cn,{title:u,arrow:!0,children:m.jsx(Et,{icon:f(),label:g(),color:h(),size:"small",variant:"filled",sx:{borderRadius:1,fontWeight:600,"& .MuiChip-icon":{color:"inherit"}}})})}const tut=e=>_.createElement("svg",{viewBox:"0 0 91 89",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{style:{display:"inline"}},_.createElement("path",{style:{fill:"#18bcf2",fillOpacity:1,strokeWidth:.266194},d:"m 49.149143,1.473171 38.513568,38.536435 c 0,0 1.248354,1.186052 2.207681,3.092371 0.959329,1.906323 1.10864,4.600698 1.10864,4.600698 v 36.786372 c 0,0 -0.01549,1.748506 -1.49842,3.050572 -1.482931,1.302064 -3.333077,1.362947 -3.333077,1.362947 l -81.325658,7.7e-5 c 0,0 -1.7523855,-0.0091 -3.17112,-1.352526 C -0.07808495,85.913164 0.05953025,84.487808 0.05953025,84.487808 V 47.704546 c 0,0 -0.0018381,-2.218618 0.95921785,-4.315832 0.9610554,-2.097209 2.3010618,-3.355005 2.3010618,-3.355005 L 41.545959,1.4719546 c 0,0 1.465224,-1.46837077 3.753488,-1.46837077 2.288268,0 3.849696,1.46958717 3.849696,1.46958717 z"}),_.createElement("path",{style:{fill:"#ffffff",fillOpacity:1,strokeWidth:.175841},d:"m 31.689717,32.051124 c 2.813363,2.331095 6.157331,3.89845 9.721813,4.556421 V 17.180647 l 3.873694,-2.282955 3.870527,2.282955 V 36.60772 c 3.565364,-0.658847 6.910387,-2.226204 9.725159,-4.556417 l 7.032345,4.154609 c -11.437354,11.557779 -29.852321,11.557779 -41.290025,0 z m 8.546732,49.60988 C 44.314996,65.760441 35.09933,49.470196 19.574984,45.139543 v 8.312381 c 3.383916,1.32244 6.386113,3.496288 8.728705,6.320026 L 11.83076,69.485301 v 4.56907 l 3.873697,2.270836 16.469936,-9.713534 c 1.224356,3.48294 1.56683,7.225375 0.996449,10.879778 z M 70.977694,45.139543 c -15.515726,4.34014 -24.72189,20.626696 -20.643519,36.521461 l 7.047658,-4.15742 c -0.569325,-3.654411 -0.2265,-7.3965 0.996449,-10.87979 l 16.457611,9.701233 3.870711,-2.283125 v -4.55677 L 62.233673,59.77195 c 2.342772,-2.822684 5.34497,-4.996533 8.728708,-6.320026 z"}))),nut="home-assistant-matter-hub",rut={name:nut};function iut(){const[e,t]=_.useState("2.0.29");return _.useEffect(()=>{fetch("api/health").then(n=>n.ok?n.json():null).then(n=>{n?.version&&t(n.version)}).catch(()=>{})},[]),_.useMemo(()=>({name:rut.name,version:e}),[e])}const out=e=>{const t=iut();return m.jsxs(ce,{component:Du,to:Pt.dashboard,sx:{display:"flex",alignItems:"center",justifyContent:e.large?"flex-start":"center",flexGrow:1,textDecoration:"none",color:"inherit"},children:[m.jsx(tut,{style:{height:"40px"}}),m.jsx(ie,{variant:"inherit",component:"span",sx:{mr:1,ml:1},children:t.name.split("-").map(ye).join("-")}),e.large&&m.jsx(ie,{variant:"caption",component:"span",children:t.version})]})},sut=()=>{const e=Jct("(min-width:600px)"),{mode:t,setMode:n}=KS(),[r,i]=_.useState(!1),[o,s]=_.useState(!1),a=hf(),l=()=>{n(t==="dark"?"light":"dark")},c=[{label:"Dashboard",icon:m.jsx(CT,{}),to:Pt.dashboard},{label:"Bridges",icon:m.jsx(t6,{}),to:Pt.bridges},{label:"All Devices",icon:m.jsx(Fs,{}),to:Pt.devices},{label:"Network Map",icon:m.jsx(bT,{}),to:Pt.networkMap},{label:"Startup Order",icon:m.jsx(yb,{}),to:Pt.startup},{label:"Lock Credentials",icon:m.jsx(uu,{}),to:Pt.lockCredentials},{label:"Filter Reference",icon:m.jsx(ET,{}),to:Pt.labels},{label:"Settings",icon:m.jsx(wb,{}),to:Pt.settings},{label:t==="dark"?"Light Mode":"Dark Mode",icon:t==="dark"?m.jsx(a8e,{}):m.jsx(YCe,{}),onClick:l},{label:"System Logs",icon:m.jsx(Aw,{}),onClick:()=>i(!0)},{label:"Health Dashboard",icon:m.jsx(QO,{}),to:Pt.health}],u=f=>{s(!1),f.onClick?f.onClick():f.to&&a(f.to)};return m.jsxs(ce,{children:[m.jsx(Bct,{sx:{height:"72px"},children:m.jsx(Ule,{sx:{paddingLeft:"0 !important",paddingRight:"0 !important"},children:m.jsxs(DI,{sx:{padding:2,height:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m.jsx(out,{large:e}),e?m.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.map(f=>f.to?m.jsx(cn,{title:f.label,children:m.jsx(_n,{component:Du,to:f.to,sx:{color:"inherit"},children:f.icon})},f.label):m.jsx(cn,{title:f.label,children:m.jsx(_n,{onClick:f.onClick,sx:{color:"inherit"},children:f.icon})},f.label)),m.jsx(BK,{})]}):m.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:.5},children:[m.jsx(BK,{}),m.jsx(_n,{onClick:()=>s(!0),sx:{color:"inherit"},children:m.jsx(l8e,{})})]})]})})}),m.jsx(Zct,{anchor:"right",open:o,onClose:()=>s(!1),children:m.jsx(bc,{sx:{width:250},children:c.map(f=>m.jsxs(obe,{onClick:()=>u(f),children:[m.jsx(Ul,{children:f.icon}),m.jsx(Va,{primary:f.label})]},f.label))})}),m.jsx(eut,{open:r,onClose:()=>i(!1)})]})},aut=()=>m.jsxs(ce,{children:[m.jsx(sut,{}),m.jsx(Ule,{}),m.jsx(DI,{sx:{p:2},children:m.jsx(Pct,{children:m.jsx(yY,{})})}),m.jsx($ct,{})]}),lut=WS({colorSchemes:{light:{palette:{primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0"},secondary:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"},background:{default:"#f5f5f5",paper:"#ffffff"}}},dark:{palette:{primary:{main:"#90caf9",light:"#e3f2fd",dark:"#42a5f5"},secondary:{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"},background:{default:"#121212",paper:"#1e1e1e"}}}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h1:{fontSize:"2.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h3:{fontSize:"1.75rem",fontWeight:500},h4:{fontSize:"1.5rem",fontWeight:500},h5:{fontSize:"1.25rem",fontWeight:500},h6:{fontSize:"1rem",fontWeight:500}},shape:{borderRadius:8},components:{MuiCard:{styleOverrides:{root:{transition:"transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out","&:hover":{transform:"translateY(-2px)",boxShadow:"0 4px 20px rgba(0,0,0,0.12)"}}}},MuiButton:{styleOverrides:{root:{textTransform:"none",fontWeight:500}}},MuiChip:{styleOverrides:{root:{fontWeight:500}}},MuiAppBar:{styleOverrides:{root:{backgroundImage:"none"}}}}});let _4=document.getElementsByTagName("base")[0]?.href?.replace(/\/$/,"");_4?.startsWith("http")&&(_4=new URL(_4).pathname);const cut=Hhe([{path:"/",element:m.jsx(aut,{}),children:Ect}],{basename:_4});sde.createRoot(document.getElementById("root")).render(m.jsx(_.StrictMode,{children:m.jsx(Cde,{store:Tct,children:m.jsxs(n1e,{theme:lut,children:[m.jsx(Zge,{}),m.jsx(dX,{styles:{".rjsf-field-array > .MuiFormControl-root > .MuiPaper-root > .MuiBox-root > .MuiGrid-root > .MuiGrid-root:has(> .MuiBox-root > .MuiPaper-root > .MuiBox-root > .rjsf-field)":{overflow:"initial !important",flexGrow:1}}}),m.jsx(k2e,{children:m.jsx(yye,{children:m.jsx(epe,{router:cut})})})]})})}));
|
|
499
|
+
`},Gat={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Kat(e){let{announcements:t=Gat,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=qat}=e;const{announce:o,announcement:s}=Uat(),a=av("DndLiveRegion"),[l,c]=_.useState(!1);if(_.useEffect(()=>{c(!0)},[]),Vat(_.useMemo(()=>({onDragStart(f){let{active:h}=f;o(t.onDragStart({active:h}))},onDragMove(f){let{active:h,over:g}=f;t.onDragMove&&o(t.onDragMove({active:h,over:g}))},onDragOver(f){let{active:h,over:g}=f;o(t.onDragOver({active:h,over:g}))},onDragEnd(f){let{active:h,over:g}=f;o(t.onDragEnd({active:h,over:g}))},onDragCancel(f){let{active:h,over:g}=f;o(t.onDragCancel({active:h,over:g}))}}),[o,t])),!l)return null;const u=qt.createElement(qt.Fragment,null,qt.createElement(zat,{id:r,value:i.draggable}),qt.createElement(Hat,{id:a,announcement:s}));return n?Dd.createPortal(u,n):u}var Li;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Li||(Li={}));function CS(){}function kK(e,t){return _.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Yat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const sl=Object.freeze({x:0,y:0});function Cle(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ele(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Xat(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function _K(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function Ale(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function DK(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Zat=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=DK(t,t.left,t.top),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=Cle(DK(l),i);o.push({id:a,data:{droppableContainer:s,value:c}})}}return o.sort(Ele)},Jat=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=_K(t),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=_K(l),u=i.reduce((h,g,y)=>h+Cle(c[y],g),0),f=Number((u/4).toFixed(4));o.push({id:a,data:{droppableContainer:s,value:f}})}}return o.sort(Ele)};function Qat(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,c=e.width*e.height,u=s*a,f=u/(l+c-u);return Number(f.toFixed(4))}return 0}const elt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,a=n.get(s);if(a){const l=Qat(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(Xat)};function tlt(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function kle(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:sl}function nlt(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const rlt=nlt(1);function ilt(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function olt(e,t,n){const r=ilt(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat(n),c=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,f=o?e.height/o:e.height;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l}}const slt={ignoreTransform:!1};function pg(e,t){t===void 0&&(t=slt);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=fs(e).getComputedStyle(e);c&&(n=olt(n,c,u))}const{top:r,left:i,width:o,height:s,bottom:a,right:l}=n;return{top:r,left:i,width:o,height:s,bottom:a,right:l}}function OK(e){return pg(e,{ignoreTransform:!0})}function alt(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function llt(e,t){return t===void 0&&(t=fs(e).getComputedStyle(e)),t.position==="fixed"}function clt(e,t){t===void 0&&(t=fs(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function qC(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(xI(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!ov(i)||xle(i)||n.includes(i))return n;const o=fs(e).getComputedStyle(i);return i!==e&&clt(i,o)&&n.push(i),llt(i,o)?n:r(i.parentNode)}return e?r(e):n}function _le(e){const[t]=qC(e,1);return t??null}function XA(e){return!WC||!e?null:fg(e)?e:vI(e)?xI(e)||e===hg(e).scrollingElement?window:ov(e)?e:null:null}function Dle(e){return fg(e)?e.scrollX:e.scrollLeft}function Ole(e){return fg(e)?e.scrollY:e.scrollTop}function XD(e){return{x:Dle(e),y:Ole(e)}}var Xi;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Xi||(Xi={}));function Tle(e){return!WC||!e?!1:e===document.scrollingElement}function Mle(e){const t={x:0,y:0},n=Tle(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}const ult={x:.2,y:.2};function dlt(e,t,n,r,i){let{top:o,left:s,right:a,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=ult);const{isTop:c,isBottom:u,isLeft:f,isRight:h}=Mle(e),g={x:0,y:0},y={x:0,y:0},b={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+b.height?(g.y=Xi.Backward,y.y=r*Math.abs((t.top+b.height-o)/b.height)):!u&&l>=t.bottom-b.height&&(g.y=Xi.Forward,y.y=r*Math.abs((t.bottom-b.height-l)/b.height)),!h&&a>=t.right-b.width?(g.x=Xi.Forward,y.x=r*Math.abs((t.right-b.width-a)/b.width)):!f&&s<=t.left+b.width&&(g.x=Xi.Backward,y.x=r*Math.abs((t.left+b.width-s)/b.width)),{direction:g,speed:y}}function flt(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:s}=window;return{top:0,left:0,right:o,bottom:s,width:o,height:s}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Rle(e){return e.reduce((t,n)=>nm(t,XD(n)),sl)}function hlt(e){return e.reduce((t,n)=>t+Dle(n),0)}function plt(e){return e.reduce((t,n)=>t+Ole(n),0)}function mlt(e,t){if(t===void 0&&(t=pg),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);_le(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const glt=[["x",["left","right"],hlt],["y",["top","bottom"],plt]];class CI{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=qC(n),i=Rle(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,s,a]of glt)for(const l of s)Object.defineProperty(this,l,{get:()=>{const c=a(r),u=i[o]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Iy{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function ylt(e){const{EventTarget:t}=fs(e);return e instanceof t?e:hg(e)}function ZA(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var na;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(na||(na={}));function TK(e){e.preventDefault()}function blt(e){e.stopPropagation()}var Ln;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ln||(Ln={}));const Ile={start:[Ln.Space,Ln.Enter],cancel:[Ln.Esc],end:[Ln.Space,Ln.Enter,Ln.Tab]},vlt=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ln.Right:return{...n,x:n.x+25};case Ln.Left:return{...n,x:n.x-25};case Ln.Down:return{...n,y:n.y+25};case Ln.Up:return{...n,y:n.y-25}}};class EI{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Iy(hg(n)),this.windowListeners=new Iy(fs(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(na.Resize,this.handleCancel),this.windowListeners.add(na.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(na.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&mlt(r),n(sl)}handleKeyDown(t){if(wI(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=Ile,coordinateGetter:s=vlt,scrollBehavior:a="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:sl;this.referenceCoordinates||(this.referenceCoordinates=u);const f=s(t,{active:n,context:r.current,currentCoordinates:u});if(f){const h=nb(f,u),g={x:0,y:0},{scrollableAncestors:y}=r.current;for(const b of y){const v=t.code,{isTop:S,isRight:C,isLeft:w,isBottom:A,maxScroll:E,minScroll:D}=Mle(b),O=flt(b),T={x:Math.min(v===Ln.Right?O.right-O.width/2:O.right,Math.max(v===Ln.Right?O.left:O.left+O.width/2,f.x)),y:Math.min(v===Ln.Down?O.bottom-O.height/2:O.bottom,Math.max(v===Ln.Down?O.top:O.top+O.height/2,f.y))},I=v===Ln.Right&&!C||v===Ln.Left&&!w,N=v===Ln.Down&&!A||v===Ln.Up&&!S;if(I&&T.x!==f.x){const $=b.scrollLeft+h.x,R=v===Ln.Right&&$<=E.x||v===Ln.Left&&$>=D.x;if(R&&!h.y){b.scrollTo({left:$,behavior:a});return}R?g.x=b.scrollLeft-$:g.x=v===Ln.Right?b.scrollLeft-E.x:b.scrollLeft-D.x,g.x&&b.scrollBy({left:-g.x,behavior:a});break}else if(N&&T.y!==f.y){const $=b.scrollTop+h.y,R=v===Ln.Down&&$<=E.y||v===Ln.Up&&$>=D.y;if(R&&!h.x){b.scrollTo({top:$,behavior:a});return}R?g.y=b.scrollTop-$:g.y=v===Ln.Down?b.scrollTop-E.y:b.scrollTop-D.y,g.y&&b.scrollBy({top:-g.y,behavior:a});break}}this.handleMove(t,nm(nb(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}EI.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Ile,onActivation:i}=t,{active:o}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const a=o.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function MK(e){return!!(e&&"distance"in e)}function RK(e){return!!(e&&"delay"in e)}class AI{constructor(t,n,r){var i;r===void 0&&(r=ylt(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:s}=o;this.props=t,this.events=n,this.document=hg(s),this.documentListeners=new Iy(this.document),this.listeners=new Iy(r),this.windowListeners=new Iy(fs(s)),this.initialCoordinates=(i=YD(o))!=null?i:sl,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(na.Resize,this.handleCancel),this.windowListeners.add(na.DragStart,TK),this.windowListeners.add(na.VisibilityChange,this.handleCancel),this.windowListeners.add(na.ContextMenu,TK),this.documentListeners.add(na.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(RK(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(MK(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(na.Click,blt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(na.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:s,options:{activationConstraint:a}}=o;if(!i)return;const l=(n=YD(t))!=null?n:sl,c=nb(i,l);if(!r&&a){if(MK(a)){if(a.tolerance!=null&&ZA(c,a.tolerance))return this.handleCancel();if(ZA(c,a.distance))return this.handleStart()}if(RK(a)&&ZA(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ln.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const xlt={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class kI extends AI{constructor(t){const{event:n}=t,r=hg(n.target);super(t,xlt,r)}}kI.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const Slt={move:{name:"mousemove"},end:{name:"mouseup"}};var ZD;(function(e){e[e.RightClick=2]="RightClick"})(ZD||(ZD={}));class wlt extends AI{constructor(t){super(t,Slt,hg(t.event.target))}}wlt.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===ZD.RightClick?!1:(r?.({event:n}),!0)}}];const JA={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Clt extends AI{constructor(t){super(t,JA)}static setup(){return window.addEventListener(JA.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(JA.move.name,t)};function t(){}}}Clt.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var Py;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Py||(Py={}));var ES;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ES||(ES={}));function Elt(e){let{acceleration:t,activator:n=Py.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:s=5,order:a=ES.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:f,threshold:h}=e;const g=klt({delta:f,disabled:!o}),[y,b]=$at(),v=_.useRef({x:0,y:0}),S=_.useRef({x:0,y:0}),C=_.useMemo(()=>{switch(n){case Py.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Py.DraggableRect:return i}},[n,i,l]),w=_.useRef(null),A=_.useCallback(()=>{const D=w.current;if(!D)return;const O=v.current.x*S.current.x,T=v.current.y*S.current.y;D.scrollBy(O,T)},[]),E=_.useMemo(()=>a===ES.TreeOrder?[...c].reverse():c,[a,c]);_.useEffect(()=>{if(!o||!c.length||!C){b();return}for(const D of E){if(r?.(D)===!1)continue;const O=c.indexOf(D),T=u[O];if(!T)continue;const{direction:I,speed:N}=dlt(D,T,C,t,h);for(const $ of["x","y"])g[$][I[$]]||(N[$]=0,I[$]=0);if(N.x>0||N.y>0){b(),w.current=D,y(A,s),v.current=N,S.current=I;return}}v.current={x:0,y:0},S.current={x:0,y:0},b()},[t,A,r,b,o,s,JSON.stringify(C),JSON.stringify(g),y,c,E,u,JSON.stringify(h)])}const Alt={x:{[Xi.Backward]:!1,[Xi.Forward]:!1},y:{[Xi.Backward]:!1,[Xi.Forward]:!1}};function klt(e){let{delta:t,disabled:n}=e;const r=KD(t);return sv(i=>{if(n||!r||!i)return Alt;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Xi.Backward]:i.x[Xi.Backward]||o.x===-1,[Xi.Forward]:i.x[Xi.Forward]||o.x===1},y:{[Xi.Backward]:i.y[Xi.Backward]||o.y===-1,[Xi.Forward]:i.y[Xi.Forward]||o.y===1}}},[n,t,r])}function _lt(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return sv(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function Dlt(e,t){return _.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...o]},[]),[e,t])}var ib;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ib||(ib={}));var JD;(function(e){e.Optimized="optimized"})(JD||(JD={}));const IK=new Map;function Olt(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,s]=_.useState(null),{frequency:a,measure:l,strategy:c}=i,u=_.useRef(e),f=v(),h=tb(f),g=_.useCallback(function(S){S===void 0&&(S=[]),!h.current&&s(C=>C===null?S:C.concat(S.filter(w=>!C.includes(w))))},[h]),y=_.useRef(null),b=sv(S=>{if(f&&!n)return IK;if(!S||S===IK||u.current!==e||o!=null){const C=new Map;for(let w of e){if(!w)continue;if(o&&o.length>0&&!o.includes(w.id)&&w.rect.current){C.set(w.id,w.rect.current);continue}const A=w.node.current,E=A?new CI(l(A),A):null;w.rect.current=E,E&&C.set(w.id,E)}return C}return S},[e,o,n,f,l]);return _.useEffect(()=>{u.current=e},[e]),_.useEffect(()=>{f||g()},[n,f]),_.useEffect(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),_.useEffect(()=>{f||typeof a!="number"||y.current!==null||(y.current=setTimeout(()=>{g(),y.current=null},a))},[a,f,g,...r]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:o!=null};function v(){switch(c){case ib.Always:return!1;case ib.BeforeDragging:return n;default:return!n}}}function Ple(e,t){return sv(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Tlt(e,t){return Ple(e,t)}function Mlt(e){let{callback:t,disabled:n}=e;const r=SI(t),i=_.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return _.useEffect(()=>()=>i?.disconnect(),[i]),i}function GC(e){let{callback:t,disabled:n}=e;const r=SI(t),i=_.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return _.useEffect(()=>()=>i?.disconnect(),[i]),i}function Rlt(e){return new CI(pg(e),e)}function PK(e,t,n){t===void 0&&(t=Rlt);const[r,i]=_.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const s=Mlt({callback(l){if(e)for(const c of l){const{type:u,target:f}=c;if(u==="childList"&&f instanceof HTMLElement&&f.contains(e)){o();break}}}}),a=GC({callback:o});return yc(()=>{o(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function Ilt(e){const t=Ple(e);return kle(e,t)}const jK=[];function Plt(e){const t=_.useRef(e),n=sv(r=>e?r&&r!==jK&&e&&t.current&&e.parentNode===t.current.parentNode?r:qC(e):jK,[e]);return _.useEffect(()=>{t.current=e},[e]),n}function jlt(e){const[t,n]=_.useState(null),r=_.useRef(e),i=_.useCallback(o=>{const s=XA(o.target);s&&n(a=>a?(a.set(s,XD(s)),new Map(a)):null)},[]);return _.useEffect(()=>{const o=r.current;if(e!==o){s(o);const a=e.map(l=>{const c=XA(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,XD(c)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(o)};function s(a){a.forEach(l=>{const c=XA(l);c?.removeEventListener("scroll",i)})}},[i,e]),_.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,s)=>nm(o,s),sl):Rle(e):sl,[e,t])}function $K(e,t){t===void 0&&(t=[]);const n=_.useRef(null);return _.useEffect(()=>{n.current=null},t),_.useEffect(()=>{const r=e!==sl;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?nb(e,n.current):sl}function $lt(e){_.useEffect(()=>{if(!WC)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function Llt(e,t){return _.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=s=>{o(s,t)},n},{}),[e,t])}function jle(e){return _.useMemo(()=>e?alt(e):null,[e])}const LK=[];function Nlt(e,t){t===void 0&&(t=pg);const[n]=e,r=jle(n?fs(n):null),[i,o]=_.useState(LK);function s(){o(()=>e.length?e.map(l=>Tle(l)?r:new CI(t(l),l)):LK)}const a=GC({callback:s});return yc(()=>{a?.disconnect(),s(),e.forEach(l=>a?.observe(l))},[e]),i}function Flt(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return ov(t)?t:e}function Blt(e){let{measure:t}=e;const[n,r]=_.useState(null),i=_.useCallback(c=>{for(const{target:u}of c)if(ov(u)){r(f=>{const h=t(u);return f?{...f,width:h.width,height:h.height}:h});break}},[t]),o=GC({callback:i}),s=_.useCallback(c=>{const u=Flt(c);o?.disconnect(),u&&o?.observe(u),r(u?t(u):null)},[t,o]),[a,l]=wS(s);return _.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const zlt=[{sensor:kI,options:{}},{sensor:EI,options:{}}],Hlt={current:{}},k4={draggable:{measure:OK},droppable:{measure:OK,strategy:ib.WhileDragging,frequency:JD.Optimized},dragOverlay:{measure:pg}};class jy extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Ult={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new jy,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:CS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:k4,measureDroppableContainers:CS,windowRect:null,measuringScheduled:!1},Vlt={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:CS,draggableNodes:new Map,over:null,measureDroppableContainers:CS},KC=_.createContext(Vlt),$le=_.createContext(Ult);function Wlt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new jy}}}function qlt(e,t){switch(t.type){case Li.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Li.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Li.DragEnd:case Li.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Li.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new jy(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Li.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new jy(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case Li.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new jy(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Glt(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=_.useContext(KC),o=KD(r),s=KD(n?.id);return _.useEffect(()=>{if(!t&&!r&&o&&s!=null){if(!wI(o)||document.activeElement===o.target)return;const a=i.get(s);if(!a)return;const{activatorNode:l,node:c}=a;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const f=Fat(u);if(f){f.focus();break}}})}},[r,t,i,s,o]),null}function Klt(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function Ylt(e){return _.useMemo(()=>({draggable:{...k4.draggable,...e?.draggable},droppable:{...k4.droppable,...e?.droppable},dragOverlay:{...k4.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Xlt(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=_.useRef(!1),{x:s,y:a}=typeof i=="boolean"?{x:i,y:i}:i;yc(()=>{if(!s&&!a||!t){o.current=!1;return}if(o.current||!r)return;const c=t?.node.current;if(!c||c.isConnected===!1)return;const u=n(c),f=kle(u,r);if(s||(f.x=0),a||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const h=_le(c);h&&h.scrollBy({top:f.y,left:f.x})}},[t,s,a,r,n])}const Lle=_.createContext({...sl,scaleX:1,scaleY:1});var xd;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(xd||(xd={}));const Zlt=_.memo(function(t){var n,r,i,o;let{id:s,accessibility:a,autoScroll:l=!0,children:c,sensors:u=zlt,collisionDetection:f=elt,measuring:h,modifiers:g,...y}=t;const b=_.useReducer(qlt,void 0,Wlt),[v,S]=b,[C,w]=Wat(),[A,E]=_.useState(xd.Uninitialized),D=A===xd.Initialized,{draggable:{active:O,nodes:T,translate:I},droppable:{containers:N}}=v,$=O!=null?T.get(O):null,R=_.useRef({initial:null,translated:null}),F=_.useMemo(()=>{var Dt;return O!=null?{id:O,data:(Dt=$?.data)!=null?Dt:Hlt,rect:R}:null},[O,$]),j=_.useRef(null),[z,L]=_.useState(null),[q,V]=_.useState(null),U=tb(y,Object.values(y)),K=av("DndDescribedBy",s),B=_.useMemo(()=>N.getEnabled(),[N]),W=Ylt(h),{droppableRects:X,measureDroppableContainers:H,measuringScheduled:Y}=Olt(B,{dragging:D,dependencies:[I.x,I.y],config:W.droppable}),J=_lt(T,O),ne=_.useMemo(()=>q?YD(q):null,[q]),ee=yr(),se=Tlt(J,W.draggable.measure);Xlt({activeNode:O!=null?T.get(O):null,config:ee.layoutShiftCompensation,initialRect:se,measure:W.draggable.measure});const ue=PK(J,W.draggable.measure,se),te=PK(J?J.parentElement:null),Z=_.useRef({activatorEvent:null,active:null,activeNode:J,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:N,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),re=N.getNodeFor((n=Z.current.over)==null?void 0:n.id),oe=Blt({measure:W.dragOverlay.measure}),fe=(r=oe.nodeRef.current)!=null?r:J,be=D?(i=oe.rect)!=null?i:ue:null,De=!!(oe.nodeRef.current&&oe.rect),Oe=Ilt(De?null:ue),Ke=jle(fe?fs(fe):null),xe=Plt(D?re??J:null),Le=Nlt(xe),Me=Klt(g,{transform:{x:I.x-Oe.x,y:I.y-Oe.y,scaleX:1,scaleY:1},activatorEvent:q,active:F,activeNodeRect:ue,containerNodeRect:te,draggingNodeRect:be,over:Z.current.over,overlayNodeRect:oe.rect,scrollableAncestors:xe,scrollableAncestorRects:Le,windowRect:Ke}),ht=ne?nm(ne,I):null,mt=jlt(xe),ze=$K(mt),Pe=$K(mt,[ue]),He=nm(Me,ze),Je=be?rlt(be,Me):null,nt=F&&Je?f({active:F,collisionRect:Je,droppableRects:X,droppableContainers:B,pointerCoordinates:ht}):null,ot=Ale(nt,"id"),[Xe,Lt]=_.useState(null),Nt=De?Me:nm(Me,Pe),Ot=tlt(Nt,(o=Xe?.rect)!=null?o:null,ue),Xn=_.useRef(null),rn=_.useCallback((Dt,jt)=>{let{sensor:Jt,options:jn}=jt;if(j.current==null)return;const on=T.get(j.current);if(!on)return;const St=Dt.nativeEvent,mn=new Jt({active:j.current,activeNode:on,event:St,options:jn,context:Z,onAbort(br){if(!T.get(br))return;const{onDragAbort:le}=U.current,pe={id:br};le?.(pe),C({type:"onDragAbort",event:pe})},onPending(br,ei,le,pe){if(!T.get(br))return;const{onDragPending:Fe}=U.current,Ue={id:br,constraint:ei,initialCoordinates:le,offset:pe};Fe?.(Ue),C({type:"onDragPending",event:Ue})},onStart(br){const ei=j.current;if(ei==null)return;const le=T.get(ei);if(!le)return;const{onDragStart:pe}=U.current,Se={activatorEvent:St,active:{id:ei,data:le.data,rect:R}};Dd.unstable_batchedUpdates(()=>{pe?.(Se),E(xd.Initializing),S({type:Li.DragStart,initialCoordinates:br,active:ei}),C({type:"onDragStart",event:Se}),L(Xn.current),V(St)})},onMove(br){S({type:Li.DragMove,coordinates:br})},onEnd:Qr(Li.DragEnd),onCancel:Qr(Li.DragCancel)});Xn.current=mn;function Qr(br){return async function(){const{active:le,collisions:pe,over:Se,scrollAdjustedTranslate:Fe}=Z.current;let Ue=null;if(le&&Fe){const{cancelDrop:yt}=U.current;Ue={activatorEvent:St,active:le,collisions:pe,delta:Fe,over:Se},br===Li.DragEnd&&typeof yt=="function"&&await Promise.resolve(yt(Ue))&&(br=Li.DragCancel)}j.current=null,Dd.unstable_batchedUpdates(()=>{S({type:br}),E(xd.Uninitialized),Lt(null),L(null),V(null),Xn.current=null;const yt=br===Li.DragEnd?"onDragEnd":"onDragCancel";if(Ue){const rt=U.current[yt];rt?.(Ue),C({type:yt,event:Ue})}})}}},[T]),at=_.useCallback((Dt,jt)=>(Jt,jn)=>{const on=Jt.nativeEvent,St=T.get(jn);if(j.current!==null||!St||on.dndKit||on.defaultPrevented)return;const mn={active:St};Dt(Jt,jt.options,mn)===!0&&(on.dndKit={capturedBy:jt.sensor},j.current=jn,rn(Jt,jt))},[T,rn]),Ht=Dlt(u,at);$lt(u),yc(()=>{ue&&A===xd.Initializing&&E(xd.Initialized)},[ue,A]),_.useEffect(()=>{const{onDragMove:Dt}=U.current,{active:jt,activatorEvent:Jt,collisions:jn,over:on}=Z.current;if(!jt||!Jt)return;const St={active:jt,activatorEvent:Jt,collisions:jn,delta:{x:He.x,y:He.y},over:on};Dd.unstable_batchedUpdates(()=>{Dt?.(St),C({type:"onDragMove",event:St})})},[He.x,He.y]),_.useEffect(()=>{const{active:Dt,activatorEvent:jt,collisions:Jt,droppableContainers:jn,scrollAdjustedTranslate:on}=Z.current;if(!Dt||j.current==null||!jt||!on)return;const{onDragOver:St}=U.current,mn=jn.get(ot),Qr=mn&&mn.rect.current?{id:mn.id,rect:mn.rect.current,data:mn.data,disabled:mn.disabled}:null,br={active:Dt,activatorEvent:jt,collisions:Jt,delta:{x:on.x,y:on.y},over:Qr};Dd.unstable_batchedUpdates(()=>{Lt(Qr),St?.(br),C({type:"onDragOver",event:br})})},[ot]),yc(()=>{Z.current={activatorEvent:q,active:F,activeNode:J,collisionRect:Je,collisions:nt,droppableRects:X,draggableNodes:T,draggingNode:fe,draggingNodeRect:be,droppableContainers:N,over:Xe,scrollableAncestors:xe,scrollAdjustedTranslate:He},R.current={initial:be,translated:Je}},[F,J,nt,Je,T,fe,be,X,N,Xe,xe,He]),Elt({...ee,delta:I,draggingRect:Je,pointerCoordinates:ht,scrollableAncestors:xe,scrollableAncestorRects:Le});const Dn=_.useMemo(()=>({active:F,activeNode:J,activeNodeRect:ue,activatorEvent:q,collisions:nt,containerNodeRect:te,dragOverlay:oe,draggableNodes:T,droppableContainers:N,droppableRects:X,over:Xe,measureDroppableContainers:H,scrollableAncestors:xe,scrollableAncestorRects:Le,measuringConfiguration:W,measuringScheduled:Y,windowRect:Ke}),[F,J,ue,q,nt,te,oe,T,N,X,Xe,H,xe,Le,W,Y,Ke]),Gn=_.useMemo(()=>({activatorEvent:q,activators:Ht,active:F,activeNodeRect:ue,ariaDescribedById:{draggable:K},dispatch:S,draggableNodes:T,over:Xe,measureDroppableContainers:H}),[q,Ht,F,ue,S,K,T,Xe,H]);return qt.createElement(wle.Provider,{value:w},qt.createElement(KC.Provider,{value:Gn},qt.createElement($le.Provider,{value:Dn},qt.createElement(Lle.Provider,{value:Ot},c)),qt.createElement(Glt,{disabled:a?.restoreFocus===!1})),qt.createElement(Kat,{...a,hiddenTextDescribedById:K}));function yr(){const Dt=z?.autoScrollEnabled===!1,jt=typeof l=="object"?l.enabled===!1:l===!1,Jt=D&&!Dt&&!jt;return typeof l=="object"?{...l,enabled:Jt}:{enabled:Jt}}}),Jlt=_.createContext(null),NK="button",Qlt="Draggable";function ect(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=av(Qlt),{activators:s,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:f,over:h}=_.useContext(KC),{role:g=NK,roleDescription:y="draggable",tabIndex:b=0}=i??{},v=l?.id===t,S=_.useContext(v?Lle:Jlt),[C,w]=wS(),[A,E]=wS(),D=Llt(s,t),O=tb(n);yc(()=>(f.set(t,{id:t,key:o,node:C,activatorNode:A,data:O}),()=>{const I=f.get(t);I&&I.key===o&&f.delete(t)}),[f,t]);const T=_.useMemo(()=>({role:g,tabIndex:b,"aria-disabled":r,"aria-pressed":v&&g===NK?!0:void 0,"aria-roledescription":y,"aria-describedby":u.draggable}),[r,g,b,v,y,u.draggable]);return{active:l,activatorEvent:a,activeNodeRect:c,attributes:T,isDragging:v,listeners:r?void 0:D,node:C,over:h,setNodeRef:w,setActivatorNodeRef:E,transform:S}}function tct(){return _.useContext($le)}const nct="Droppable",rct={timeout:25};function ict(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=av(nct),{active:s,dispatch:a,over:l,measureDroppableContainers:c}=_.useContext(KC),u=_.useRef({disabled:n}),f=_.useRef(!1),h=_.useRef(null),g=_.useRef(null),{disabled:y,updateMeasurementsFor:b,timeout:v}={...rct,...i},S=tb(b??r),C=_.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(S.current)?S.current:[S.current]),g.current=null},v)},[v]),w=GC({callback:C,disabled:y||!s}),A=_.useCallback((T,I)=>{w&&(I&&(w.unobserve(I),f.current=!1),T&&w.observe(T))},[w]),[E,D]=wS(A),O=tb(t);return _.useEffect(()=>{!w||!E.current||(w.disconnect(),f.current=!1,w.observe(E.current))},[E,w]),_.useEffect(()=>(a({type:Li.RegisterDroppable,element:{id:r,key:o,disabled:n,node:E,rect:h,data:O}}),()=>a({type:Li.UnregisterDroppable,key:o,id:r})),[r]),_.useEffect(()=>{n!==u.current.disabled&&(a({type:Li.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,a]),{active:s,rect:h,isOver:l?.id===r,node:E,over:l,setNodeRef:D}}function _I(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function oct(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function A5(e){return e!==null&&e>=0}function sct(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function act(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Nle=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=_I(t,r,n),s=t[i],a=o[i];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},k5={scaleX:1,scaleY:1},lct=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:s}=e;const a=(t=o[n])!=null?t:r;if(!a)return null;if(i===n){const c=o[s];return c?{x:0,y:n<s?c.top+c.height-(a.top+a.height):c.top-a.top,...k5}:null}const l=cct(o,i,n);return i>n&&i<=s?{x:0,y:-a.height-l,...k5}:i<n&&i>=s?{x:0,y:a.height+l,...k5}:{x:0,y:0,...k5}};function cct(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const Fle="Sortable",Ble=qt.createContext({activeIndex:-1,containerId:Fle,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Nle,disabled:{draggable:!1,droppable:!1}});function uct(e){let{children:t,id:n,items:r,strategy:i=Nle,disabled:o=!1}=e;const{active:s,dragOverlay:a,droppableRects:l,over:c,measureDroppableContainers:u}=tct(),f=av(Fle,n),h=a.rect!==null,g=_.useMemo(()=>r.map(D=>typeof D=="object"&&"id"in D?D.id:D),[r]),y=s!=null,b=s?g.indexOf(s.id):-1,v=c?g.indexOf(c.id):-1,S=_.useRef(g),C=!sct(g,S.current),w=v!==-1&&b===-1||C,A=act(o);yc(()=>{C&&y&&u(g)},[C,g,y,u]),_.useEffect(()=>{S.current=g},[g]);const E=_.useMemo(()=>({activeIndex:b,containerId:f,disabled:A,disableTransforms:w,items:g,overIndex:v,useDragOverlay:h,sortedRects:oct(g,l),strategy:i}),[b,f,A.draggable,A.droppable,w,g,v,l,h,i]);return qt.createElement(Ble.Provider,{value:E},t)}const dct=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return _I(n,r,i).indexOf(t)},fct=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:s,previousItems:a,previousContainerId:l,transition:c}=e;return!c||!r||a!==o&&i===s?!1:n?!0:s!==i&&t===l},hct={duration:200,easing:"ease"},zle="transform",pct=rb.Transition.toString({property:zle,duration:0,easing:"linear"}),mct={roleDescription:"sortable"};function gct(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,s]=_.useState(null),a=_.useRef(n);return yc(()=>{if(!t&&n!==a.current&&r.current){const l=i.current;if(l){const c=pg(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&s(u)}}n!==a.current&&(a.current=n)},[t,n,r,i]),_.useEffect(()=>{o&&s(null)},[o]),o}function yct(e){let{animateLayoutChanges:t=fct,attributes:n,disabled:r,data:i,getNewIndex:o=dct,id:s,strategy:a,resizeObserverConfig:l,transition:c=hct}=e;const{items:u,containerId:f,activeIndex:h,disabled:g,disableTransforms:y,sortedRects:b,overIndex:v,useDragOverlay:S,strategy:C}=_.useContext(Ble),w=bct(r,g),A=u.indexOf(s),E=_.useMemo(()=>({sortable:{containerId:f,index:A,items:u},...i}),[f,i,A,u]),D=_.useMemo(()=>u.slice(u.indexOf(s)),[u,s]),{rect:O,node:T,isOver:I,setNodeRef:N}=ict({id:s,data:E,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...l}}),{active:$,activatorEvent:R,activeNodeRect:F,attributes:j,setNodeRef:z,listeners:L,isDragging:q,over:V,setActivatorNodeRef:U,transform:K}=ect({id:s,data:E,attributes:{...mct,...n},disabled:w.draggable}),B=jat(N,z),W=!!$,X=W&&!y&&A5(h)&&A5(v),H=!S&&q,Y=H&&X?K:null,ne=X?Y??(a??C)({rects:b,activeNodeRect:F,activeIndex:h,overIndex:v,index:A}):null,ee=A5(h)&&A5(v)?o({id:s,items:u,activeIndex:h,overIndex:v}):A,se=$?.id,ue=_.useRef({activeId:se,items:u,newIndex:ee,containerId:f}),te=u!==ue.current.items,Z=t({active:$,containerId:f,isDragging:q,isSorting:W,id:s,index:A,items:u,newIndex:ue.current.newIndex,previousItems:ue.current.items,previousContainerId:ue.current.containerId,transition:c,wasDragging:ue.current.activeId!=null}),re=gct({disabled:!Z,index:A,node:T,rect:O});return _.useEffect(()=>{W&&ue.current.newIndex!==ee&&(ue.current.newIndex=ee),f!==ue.current.containerId&&(ue.current.containerId=f),u!==ue.current.items&&(ue.current.items=u)},[W,ee,f,u]),_.useEffect(()=>{if(se===ue.current.activeId)return;if(se!=null&&ue.current.activeId==null){ue.current.activeId=se;return}const fe=setTimeout(()=>{ue.current.activeId=se},50);return()=>clearTimeout(fe)},[se]),{active:$,activeIndex:h,attributes:j,data:E,rect:O,index:A,newIndex:ee,items:u,isOver:I,isSorting:W,isDragging:q,listeners:L,node:T,overIndex:v,over:V,setNodeRef:B,setActivatorNodeRef:U,setDroppableNodeRef:N,setDraggableNodeRef:z,transform:re??ne,transition:oe()};function oe(){if(re||te&&ue.current.newIndex===A)return pct;if(!(H&&!wI(R)||!c)&&(W||Z))return rb.Transition.toString({...c,property:zle})}}function bct(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}function AS(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const vct=[Ln.Down,Ln.Right,Ln.Up,Ln.Left],xct=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:s,scrollableAncestors:a}}=t;if(vct.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];o.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const h=i.get(f.id);if(h)switch(e.code){case Ln.Down:r.top<h.top&&l.push(f);break;case Ln.Up:r.top>h.top&&l.push(f);break;case Ln.Left:r.left>h.left&&l.push(f);break;case Ln.Right:r.left<h.left&&l.push(f);break}});const c=Jat({collisionRect:r,droppableRects:i,droppableContainers:l});let u=Ale(c,"id");if(u===s?.id&&c.length>1&&(u=c[1].id),u!=null){const f=o.get(n.id),h=o.get(u),g=h?i.get(h.id):null,y=h?.node.current;if(y&&g&&f&&h){const v=qC(y).some((D,O)=>a[O]!==D),S=Hle(f,h),C=Sct(f,h),w=v||!S?{x:0,y:0}:{x:C?r.width-g.width:0,y:C?r.height-g.height:0},A={x:g.left,y:g.top};return w.x&&w.y?A:nb(A,w)}}}};function Hle(e,t){return!AS(e)||!AS(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Sct(e,t){return!AS(e)||!AS(t)||!Hle(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const wct=({bridge:e,index:t})=>{const{attributes:n,listeners:r,setNodeRef:i,transform:o,transition:s,isDragging:a}=yct({id:e.id}),[l,c]=_.useState(!1);_.useEffect(()=>{_w(e.id).then(c)},[e.id]);const u={transform:rb.Transform.toString(o),transition:s,opacity:a?.5:1};return m.jsx(tr,{ref:i,style:u,variant:"outlined",sx:{cursor:"grab","&:active":{cursor:"grabbing"},bgcolor:a?"action.selected":"background.paper",width:"fit-content"},children:m.jsxs(gr,{sx:{display:"flex",alignItems:"center",gap:1.5,py:1,"&:last-child":{pb:1}},children:[m.jsx(ce,{...n,...r,sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:m.jsx(QCe,{})}),m.jsx(Et,{label:t+1,size:"small",color:"primary",sx:{minWidth:32,fontWeight:"bold"}}),l?m.jsx(ce,{component:"img",src:t2(e.id),alt:e.name,sx:{width:40,height:40,borderRadius:"50%",objectFit:"cover",boxShadow:2}}):m.jsx(rl,{sx:{bgcolor:MT(e),width:40,height:40,boxShadow:2},children:(()=>{const f=TT(e);return m.jsx(f,{sx:{fontSize:24}})})()}),m.jsxs(ce,{sx:{flex:1},children:[m.jsx(ie,{variant:"subtitle1",fontWeight:500,children:e.name}),m.jsxs(ie,{variant:"caption",color:"text.secondary",children:["Port: ",e.port," • Priority: ",e.priority??100]})]})]})})},Cct=()=>{const e=Tu(),{content:t,isLoading:n}=Vm(),r=SCe(),[i,o]=_.useState([]),[s,a]=_.useState(!1);_.useEffect(()=>{if(t){const h=[...t].sort((g,y)=>{const b=g.priority??100,v=y.priority??100;return b-v});o(h),a(!1)}},[t]);const l=Yat(kK(kI),kK(EI,{coordinateGetter:xct})),c=_.useCallback(h=>{const{active:g,over:y}=h;y&&g.id!==y.id&&(o(b=>{const v=b.findIndex(C=>C.id===g.id),S=b.findIndex(C=>C.id===y.id);return _I(b,v,S)}),a(!0))},[]),u=_.useCallback(async()=>{const h=i.map((g,y)=>({id:g.id,priority:(y+1)*10}));try{await r(h),e.show({message:"Startup order saved successfully",severity:"success"}),a(!1)}catch(g){e.show({message:g instanceof Error?g.message:"Failed to save startup order",severity:"error"})}},[i,r,e]),f=_.useMemo(()=>i.map(h=>h.id),[i]);return n?m.jsx(ie,{children:"Loading..."}):m.jsxs(zt,{spacing:3,children:[m.jsx(lw,{items:[{name:"Bridges",to:Pt.bridges},{name:"Startup Order",to:Pt.startup}]}),m.jsxs(ce,{display:"flex",alignItems:"center",gap:2,children:[m.jsx(yb,{color:"primary",fontSize:"large"}),m.jsxs(ce,{children:[m.jsx(ie,{variant:"h5",fontWeight:600,children:"Startup Order"}),m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Drag and drop bridges to set the startup order. Lower positions start first."})]})]}),s&&m.jsx(vn,{severity:"info",action:m.jsx(kt,{color:"inherit",size:"small",startIcon:m.jsx(n6,{}),onClick:u,children:"Save Changes"}),children:"You have unsaved changes to the startup order."}),m.jsx(Zlt,{sensors:l,collisionDetection:Zat,onDragEnd:c,children:m.jsx(uct,{items:f,strategy:lct,children:m.jsx(zt,{spacing:1,children:i.map((h,g)=>m.jsx(wct,{bridge:h,index:g},h.id))})})}),i.length===0&&m.jsx(ie,{color:"text.secondary",textAlign:"center",py:4,children:"No bridges configured yet."}),s&&i.length>0&&m.jsx(ce,{display:"flex",justifyContent:"flex-end",children:m.jsx(kt,{variant:"contained",startIcon:m.jsx(n6,{}),onClick:u,children:"Save Startup Order"})})]})},QA="https://riddix.github.io/home-assistant-matter-hub",Pt={dashboard:"/",bridges:"/bridges",bridge:e=>`/bridges/${e}`,createBridge:"/bridges/create",editBridge:e=>`/bridges/${e}/edit`,devices:"/devices",networkMap:"/network-map",health:"/health",labels:"/labels",lockCredentials:"/lock-credentials",settings:"/settings",startup:"/startup",githubRepository:"https://github.com/riddix/home-assistant-matter-hub/",documentation:QA,faq:{multiFabric:`${QA}/connect-multiple-fabrics`,bridgeConfig:`${QA}/bridge-configuration`}},Ect=[{path:"",element:m.jsx(_2e,{}),children:[{path:"",element:m.jsx(u9e,{})},{path:Pt.bridges,element:m.jsx(a9e,{})},{path:Pt.createBridge,element:m.jsx(JQe,{})},{path:Pt.bridge(":bridgeId"),element:m.jsx(ICe,{})},{path:Pt.editBridge(":bridgeId"),element:m.jsx(QQe,{})},{path:Pt.devices,element:m.jsx(D9e,{})},{path:Pt.networkMap,element:m.jsx(Tat,{})},{path:Pt.health,element:m.jsx(aet,{})},{path:Pt.labels,element:m.jsx(fet,{})},{path:Pt.lockCredentials,element:m.jsx(bet,{})},{path:Pt.settings,element:m.jsx(Pat,{})},{path:Pt.startup,element:m.jsx(Cct,{})},{path:"*",element:m.jsx(vet,{})}]}],Act={items:{isInitialized:!1,isLoading:!1}},kct=FO(Act,e=>{e.addCase(Bo.pending,t=>{t.items.isLoading=!0}).addCase(Bo.rejected,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=void 0,t.items.error=n.error}).addCase(Bo.fulfilled,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=n.payload,t.items.error=void 0}).addCase(zX.fulfilled,(t,n)=>{t.items.content?.push(n.payload)}).addCase(UX.fulfilled,(t,n)=>{const r=t.items.content?.findIndex(i=>i.id===n.payload.id)??-1;r!==-1&&(t.items.content[r]=n.payload)}).addCase(VX.fulfilled,(t,n)=>{const r=t.items.content?.findIndex(i=>i.id===n.payload.id)??-1;r!==-1&&(t.items.content[r]=n.payload)}).addCase(HX.fulfilled,(t,n)=>{if(t.items.content){const r=t.items.content.findIndex(i=>i.id===n.meta.arg);r!==-1&&t.items.content.splice(r,1)}}).addCase(WX,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=n.payload,t.items.error=void 0}).addCase(qX,(t,n)=>{if(t.items.content){const r=t.items.content.findIndex(i=>i.id===n.payload.id);r!==-1?t.items.content[r]=n.payload:t.items.content.push(n.payload)}})}),_ct={byBridge:{}},Dct=FO(_ct,e=>{e.addCase(du.pending,(t,n)=>{t.byBridge[n.meta.arg]=ek(t.byBridge[n.meta.arg],n)}).addCase(du.rejected,(t,n)=>{t.byBridge[n.meta.arg]=ek(t.byBridge[n.meta.arg],n)}).addCase(du.fulfilled,(t,n)=>{t.byBridge[n.meta.arg]=ek(t.byBridge[n.meta.arg],n)})}),Oct={isInitialized:!1,isLoading:!1,content:void 0,error:void 0},ek=FO(Oct,e=>{e.addCase(du.pending,t=>{t.isLoading=!0}).addCase(du.rejected,(t,n)=>{t.isInitialized=!0,t.isLoading=!1,t.content=void 0,t.error=n.error}).addCase(du.fulfilled,(t,n)=>{t.isInitialized=!0,t.isLoading=!1,t.content=n.payload,t.error=void 0})}),Tct=l2e({reducer:{bridges:kct,devices:Dct}}),DI=Wme({createStyledComponent:me("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ye(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>it({props:e,name:"MuiContainer"})});function Mct(e){return Qe("MuiToolbar",e)}tt("MuiToolbar",["root","gutters","regular","dense"]);const Rct=e=>{const{classes:t,disableGutters:n,variant:r}=e;return et({root:["root",!n&&"gutters",r]},Mct,t)},Ict=me("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ge(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),Ule=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:a="regular",...l}=r,c={...r,component:o,disableGutters:s,variant:a},u=Rct(c);return m.jsx(Ict,{as:o,className:Te(u.root,i),ref:n,ownerState:c,...l})});class Pct extends _.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("ErrorBoundary caught:",t,n.componentStack)}render(){return this.state.hasError?m.jsxs(ce,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"60vh",gap:2,p:4,children:[m.jsx(KO,{color:"error",sx:{fontSize:64}}),m.jsx(ie,{variant:"h5",fontWeight:600,children:"Something went wrong"}),m.jsx(ie,{variant:"body2",color:"text.secondary",textAlign:"center",maxWidth:480,children:this.state.error?.message??"An unexpected error occurred."}),m.jsx(kt,{variant:"contained",onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},children:"Reload Page"})]}):this.props.children}}const jct=[{name:"GitHub",url:Pt.githubRepository},{name:"Documentation",url:Pt.documentation}],$ct=()=>m.jsxs(DI,{sx:{mt:16,mb:4},children:[m.jsx(gi,{sx:{mt:4,mb:4}}),m.jsx(dt,{container:!0,spacing:2,justifyContent:"center",children:jct.map((e,t)=>m.jsx(dt,{size:{xs:12,sm:"auto"},children:m.jsx(kt,{fullWidth:!0,size:"small",variant:"outlined",component:aw,href:e.url,target:"_blank",children:e.name})},t.toString()))})]});function Lct(e){return Qe("MuiAppBar",e)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Nct=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ye(t)}`,`position${ye(n)}`]};return et(i,Lct,r)},FK=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,Fct=me(Ur,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ye(n.position)}`],t[`color${ye(n.color)}`]]}})(Ge(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Fn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?FK(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?FK(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),Bct=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:s=!1,position:a="fixed",...l}=r,c={...r,color:o,position:a,enableColorOnDark:s},u=Nct(c);return m.jsx(Fct,{square:!0,component:"header",ownerState:c,elevation:4,className:Te(u.root,i,a==="fixed"&&"mui-fixed"),ref:n,...l})});function zct(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=tl(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=o.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+a-r.left}px)`:`translateX(${o.innerWidth+a-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function Hct(e){return typeof e=="function"?e():e}function _5(e,t,n){const r=Hct(n),i=zct(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const Uct=_.forwardRef(function(t,n){const r=ro(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:u="down",easing:f=i,in:h,onEnter:g,onEntered:y,onEntering:b,onExit:v,onExited:S,onExiting:C,style:w,timeout:A=o,TransitionComponent:E=Ta,...D}=t,O=_.useRef(null),T=Tr(gf(l),O,n),I=V=>U=>{V&&(U===void 0?V(O.current):V(O.current,U))},N=I((V,U)=>{_5(u,V,c),IO(V),g&&g(V,U)}),$=I((V,U)=>{const K=Kd({timeout:A,style:w,easing:f},{mode:"enter"});V.style.webkitTransition=r.transitions.create("-webkit-transform",{...K}),V.style.transition=r.transitions.create("transform",{...K}),V.style.webkitTransform="none",V.style.transform="none",b&&b(V,U)}),R=I(y),F=I(C),j=I(V=>{const U=Kd({timeout:A,style:w,easing:f},{mode:"exit"});V.style.webkitTransition=r.transitions.create("-webkit-transform",U),V.style.transition=r.transitions.create("transform",U),_5(u,V,c),v&&v(V)}),z=I(V=>{V.style.webkitTransition="",V.style.transition="",S&&S(V)}),L=V=>{s&&s(O.current,V)},q=_.useCallback(()=>{O.current&&_5(u,O.current,c)},[u,c]);return _.useEffect(()=>{if(h||u==="down"||u==="right")return;const V=OO(()=>{O.current&&_5(u,O.current,c)}),U=tl(O.current);return U.addEventListener("resize",V),()=>{V.clear(),U.removeEventListener("resize",V)}},[u,h,c]),_.useEffect(()=>{h||q()},[h,q]),m.jsx(E,{nodeRef:O,onEnter:N,onEntered:R,onEntering:$,onExit:j,onExited:z,onExiting:F,addEndListener:L,appear:a,in:h,timeout:A,...D,children:(V,{ownerState:U,...K})=>_.cloneElement(l,{ref:T,style:{visibility:V==="exited"&&!h?"hidden":void 0,...w,...l.props.style},...K})})});function Vct(e){return Qe("MuiDrawer",e)}tt("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Vle=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,n.variant==="temporary"&&t.modal]},Wct=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root",`anchor${ye(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ye(n)}`,r!=="temporary"&&`paperAnchorDocked${ye(n)}`]};return et(i,Vct,t)},qct=me(ZO,{name:"MuiDrawer",slot:"Root",overridesResolver:Vle})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Gct=me("div",{shouldForwardProp:io,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Vle})({flex:"0 0 auto"}),Kct=me(Ur,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ye(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ye(n.anchor)}`]]}})(Ge(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Wle={left:"right",right:"left",top:"down",bottom:"up"};function Yct(e){return["left","right"].includes(e)}function Xct({direction:e},t){return e==="rtl"&&Yct(t)?Wle[t]:t}const Zct=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDrawer"}),i=ro(),o=mf(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:g,...y}={},onClose:b,open:v=!1,PaperProps:S={},SlideProps:C,TransitionComponent:w,transitionDuration:A=s,variant:E="temporary",slots:D={},slotProps:O={},...T}=r,I=_.useRef(!1);_.useEffect(()=>{I.current=!0},[]);const N=Xct({direction:o?"rtl":"ltr"},a),R={...r,anchor:a,elevation:f,open:v,variant:E,...T},F=Wct(R),j={slots:{transition:w,...D},slotProps:{paper:S,transition:C,...O,backdrop:TO(O.backdrop||{...l,...g},{transitionDuration:A})}},[z,L]=lt("root",{ref:n,elementType:qct,className:Te(F.root,F.modal,u),shouldForwardComponentProp:!0,ownerState:R,externalForwardedProps:{...j,...T,...y},additionalProps:{open:v,onClose:b,hideBackdrop:h,slots:{backdrop:j.slots.backdrop},slotProps:{backdrop:j.slotProps.backdrop}}}),[q,V]=lt("paper",{elementType:Kct,shouldForwardComponentProp:!0,className:Te(F.paper,S.className),ownerState:R,externalForwardedProps:j,additionalProps:{elevation:E==="temporary"?f:0,square:!0,...E==="temporary"&&{role:"dialog","aria-modal":"true"}}}),[U,K]=lt("docked",{elementType:Gct,ref:n,className:Te(F.root,F.docked,u),ownerState:R,externalForwardedProps:j,additionalProps:T}),[B,W]=lt("transition",{elementType:Uct,ownerState:R,externalForwardedProps:j,additionalProps:{in:v,direction:Wle[N],timeout:A,appear:I.current}}),X=m.jsx(q,{...V,children:c});if(E==="permanent")return m.jsx(U,{...K,children:X});const H=m.jsx(B,{...W,children:X});return E==="persistent"?m.jsx(U,{...K,children:H}):m.jsx(z,{...L,children:H})}),Jct=XY({themeId:da}),Qct={error:vf,warn:iw,info:YO,debug:Aw},eut=({open:e,onClose:t})=>{const n=ro(),r=_.useMemo(()=>({error:n.palette.error.main,warn:n.palette.warning.main,info:n.palette.info.main,debug:n.palette.secondary.main}),[n]),[i,o]=_.useState([]),[s,a]=_.useState(!0),[l,c]=_.useState("error,warn,info".split(",")),[u,f]=_.useState(""),[h,g]=_.useState(!0),y=_.useCallback(async()=>{try{const w=new URLSearchParams({level:l.join(","),limit:"500",...u&&{search:u}}),A=await fetch(`api/logs?${w}`);if(A.ok){const E=await A.json();o(E.entries)}}catch(w){console.error("Failed to fetch logs:",w)}finally{a(!1)}},[l,u]);_.useEffect(()=>{e&&y()},[e,y]),_.useEffect(()=>{if(!h||!e)return;const w=setInterval(y,5e3);return()=>clearInterval(w)},[h,e,y]);const b=w=>{c(Array.isArray(w.target.value)?w.target.value:[w.target.value])},v=w=>{f(w.target.value)},S=async()=>{try{await fetch("api/logs",{method:"DELETE"}),o([])}catch(w){console.error("Failed to clear logs:",w)}},C=w=>{const A=Qct[w]||YO;return m.jsx(A,{sx:{fontSize:16,color:r[w]}})};return m.jsxs(vu,{open:e,onClose:t,maxWidth:"lg",fullWidth:!0,children:[m.jsxs(Su,{sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(Aw,{}),"System Logs",m.jsx(ce,{sx:{flexGrow:1}}),m.jsx(cn,{title:"Auto Refresh",children:m.jsx(Et,{label:h?"Auto":"Manual",color:h?"success":"default",size:"small",onClick:()=>g(!h),sx:{cursor:"pointer"}})}),m.jsx(_n,{onClick:t,children:m.jsx(qCe,{})})]}),m.jsxs(xu,{children:[m.jsx(zt,{spacing:2,sx:{mb:2},children:m.jsxs(zt,{direction:"row",spacing:2,alignItems:"center",children:[m.jsxs(pa,{size:"small",sx:{minWidth:200},children:[m.jsx(sc,{children:"Log Level"}),m.jsxs(sa,{value:l,label:"Log Level",onChange:b,multiple:!0,renderValue:w=>m.jsx(ce,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:(Array.isArray(w)?w:[w]).map(A=>m.jsx(Et,{label:A.toUpperCase(),size:"small",sx:{backgroundColor:r[A],color:"white"}},A))}),children:[m.jsx(er,{value:"error",children:"Error"}),m.jsx(er,{value:"warn",children:"Warning"}),m.jsx(er,{value:"info",children:"Info"}),m.jsx(er,{value:"debug",children:"Debug"})]})]}),m.jsx(Lr,{size:"small",placeholder:"Search logs...",value:u,onChange:v,sx:{flexGrow:1}}),m.jsx(kt,{variant:"outlined",onClick:y,children:"Refresh"}),m.jsx(kt,{variant:"outlined",color:"error",onClick:S,children:"Clear"})]})}),m.jsx(ce,{sx:{height:400,overflow:"auto",backgroundColor:"background.paper",border:1,borderColor:"divider",borderRadius:1,p:1},children:s?m.jsx(ce,{sx:{display:"flex",justifyContent:"center",p:4},children:m.jsx(ie,{children:"Loading logs..."})}):i.length===0?m.jsx(ce,{sx:{display:"flex",justifyContent:"center",p:4},children:m.jsx(ie,{color:"text.secondary",children:"No logs found"})}):m.jsx(zt,{spacing:1,children:i.map((w,A)=>m.jsxs(ce,{sx:{p:1,borderRadius:1,backgroundColor:"action.hover",fontFamily:"monospace",fontSize:"0.875rem",wordBreak:"break-all"},children:[m.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[C(w.level),m.jsx(ie,{variant:"caption",color:"text.secondary",children:new Date(w.timestamp).toLocaleString()}),m.jsx(Et,{label:w.level.toUpperCase(),size:"small",sx:{backgroundColor:r[w.level],color:n.palette.getContrastText(r[w.level]??n.palette.grey[500]),fontSize:"0.7rem",height:20}})]}),m.jsx(ie,{sx:{ml:3},children:w.message}),w.context&&m.jsx(ie,{sx:{ml:3,color:"text.secondary",fontSize:"0.8rem"},children:JSON.stringify(w.context,null,2)})]},`${w.timestamp}-${w.level}-${A}`))})})]}),m.jsx(Xd,{children:m.jsx(kt,{onClick:t,children:"Close"})})]})};function BK(){const{isConnected:e}=A2e(),[t,n]=_.useState(null),[r,i]=_.useState(!1);_.useEffect(()=>{const y=async()=>{try{const v=await fetch("api/health");if(v.ok){const S=await v.json();n(S),i(!1)}else i(!0)}catch{i(!0)}};y();const b=setInterval(y,3e4);return()=>clearInterval(b)},[]);const o=y=>{const b=Math.floor(y/3600),v=Math.floor(y%3600/60);return b>0?`${b}h ${v}m`:`${v}m`},s=t?.status==="healthy"&&!r,a=t?.services?.bridges,l=a&&a.total>0&&a.running===a.total,c=a&&a.total===0,u=t?m.jsxs(ce,{sx:{p:.5},children:[m.jsxs("div",{children:[m.jsx("strong",{children:"Version:"})," ",t.version??"Unknown"]}),m.jsxs("div",{children:[m.jsx("strong",{children:"Uptime:"})," ",o(t.uptime??0)]}),t.services?.bridges&&m.jsxs("div",{children:[m.jsx("strong",{children:"Bridges:"})," ",t.services.bridges.running??0,"/",t.services.bridges.total??0," running",(t.services.bridges.stopped??0)>0&&` (${t.services.bridges.stopped} stopped)`]}),t.services?.homeAssistant&&m.jsxs("div",{children:[m.jsx("strong",{children:"Home Assistant:"})," ",t.services.homeAssistant.connected?"Connected":"Disconnected"]}),m.jsxs("div",{children:[m.jsx("strong",{children:"WebSocket:"})," ",e?"Connected":"Disconnected"]})]}):"Loading health status...",f=()=>r||!s?m.jsx(vf,{fontSize:"small"}):l?m.jsx(Mu,{fontSize:"small"}):m.jsx(dw,{fontSize:"small"}),h=()=>r||!s?"error":!l||!e?"warning":"success",g=()=>r?"Error":s?e?c?"No Bridges":l?"Online":"Starting":"Offline":"Unhealthy";return m.jsx(cn,{title:u,arrow:!0,children:m.jsx(Et,{icon:f(),label:g(),color:h(),size:"small",variant:"filled",sx:{borderRadius:1,fontWeight:600,"& .MuiChip-icon":{color:"inherit"}}})})}const tut=e=>_.createElement("svg",{viewBox:"0 0 91 89",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{style:{display:"inline"}},_.createElement("path",{style:{fill:"#18bcf2",fillOpacity:1,strokeWidth:.266194},d:"m 49.149143,1.473171 38.513568,38.536435 c 0,0 1.248354,1.186052 2.207681,3.092371 0.959329,1.906323 1.10864,4.600698 1.10864,4.600698 v 36.786372 c 0,0 -0.01549,1.748506 -1.49842,3.050572 -1.482931,1.302064 -3.333077,1.362947 -3.333077,1.362947 l -81.325658,7.7e-5 c 0,0 -1.7523855,-0.0091 -3.17112,-1.352526 C -0.07808495,85.913164 0.05953025,84.487808 0.05953025,84.487808 V 47.704546 c 0,0 -0.0018381,-2.218618 0.95921785,-4.315832 0.9610554,-2.097209 2.3010618,-3.355005 2.3010618,-3.355005 L 41.545959,1.4719546 c 0,0 1.465224,-1.46837077 3.753488,-1.46837077 2.288268,0 3.849696,1.46958717 3.849696,1.46958717 z"}),_.createElement("path",{style:{fill:"#ffffff",fillOpacity:1,strokeWidth:.175841},d:"m 31.689717,32.051124 c 2.813363,2.331095 6.157331,3.89845 9.721813,4.556421 V 17.180647 l 3.873694,-2.282955 3.870527,2.282955 V 36.60772 c 3.565364,-0.658847 6.910387,-2.226204 9.725159,-4.556417 l 7.032345,4.154609 c -11.437354,11.557779 -29.852321,11.557779 -41.290025,0 z m 8.546732,49.60988 C 44.314996,65.760441 35.09933,49.470196 19.574984,45.139543 v 8.312381 c 3.383916,1.32244 6.386113,3.496288 8.728705,6.320026 L 11.83076,69.485301 v 4.56907 l 3.873697,2.270836 16.469936,-9.713534 c 1.224356,3.48294 1.56683,7.225375 0.996449,10.879778 z M 70.977694,45.139543 c -15.515726,4.34014 -24.72189,20.626696 -20.643519,36.521461 l 7.047658,-4.15742 c -0.569325,-3.654411 -0.2265,-7.3965 0.996449,-10.87979 l 16.457611,9.701233 3.870711,-2.283125 v -4.55677 L 62.233673,59.77195 c 2.342772,-2.822684 5.34497,-4.996533 8.728708,-6.320026 z"}))),nut="home-assistant-matter-hub",rut={name:nut};function iut(){const[e,t]=_.useState("2.0.30");return _.useEffect(()=>{fetch("api/health").then(n=>n.ok?n.json():null).then(n=>{n?.version&&t(n.version)}).catch(()=>{})},[]),_.useMemo(()=>({name:rut.name,version:e}),[e])}const out=e=>{const t=iut();return m.jsxs(ce,{component:Du,to:Pt.dashboard,sx:{display:"flex",alignItems:"center",justifyContent:e.large?"flex-start":"center",flexGrow:1,textDecoration:"none",color:"inherit"},children:[m.jsx(tut,{style:{height:"40px"}}),m.jsx(ie,{variant:"inherit",component:"span",sx:{mr:1,ml:1},children:t.name.split("-").map(ye).join("-")}),e.large&&m.jsx(ie,{variant:"caption",component:"span",children:t.version})]})},sut=()=>{const e=Jct("(min-width:600px)"),{mode:t,setMode:n}=KS(),[r,i]=_.useState(!1),[o,s]=_.useState(!1),a=hf(),l=()=>{n(t==="dark"?"light":"dark")},c=[{label:"Dashboard",icon:m.jsx(CT,{}),to:Pt.dashboard},{label:"Bridges",icon:m.jsx(t6,{}),to:Pt.bridges},{label:"All Devices",icon:m.jsx(Fs,{}),to:Pt.devices},{label:"Network Map",icon:m.jsx(bT,{}),to:Pt.networkMap},{label:"Startup Order",icon:m.jsx(yb,{}),to:Pt.startup},{label:"Lock Credentials",icon:m.jsx(uu,{}),to:Pt.lockCredentials},{label:"Filter Reference",icon:m.jsx(ET,{}),to:Pt.labels},{label:"Settings",icon:m.jsx(wb,{}),to:Pt.settings},{label:t==="dark"?"Light Mode":"Dark Mode",icon:t==="dark"?m.jsx(a8e,{}):m.jsx(YCe,{}),onClick:l},{label:"System Logs",icon:m.jsx(Aw,{}),onClick:()=>i(!0)},{label:"Health Dashboard",icon:m.jsx(QO,{}),to:Pt.health}],u=f=>{s(!1),f.onClick?f.onClick():f.to&&a(f.to)};return m.jsxs(ce,{children:[m.jsx(Bct,{sx:{height:"72px"},children:m.jsx(Ule,{sx:{paddingLeft:"0 !important",paddingRight:"0 !important"},children:m.jsxs(DI,{sx:{padding:2,height:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m.jsx(out,{large:e}),e?m.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.map(f=>f.to?m.jsx(cn,{title:f.label,children:m.jsx(_n,{component:Du,to:f.to,sx:{color:"inherit"},children:f.icon})},f.label):m.jsx(cn,{title:f.label,children:m.jsx(_n,{onClick:f.onClick,sx:{color:"inherit"},children:f.icon})},f.label)),m.jsx(BK,{})]}):m.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:.5},children:[m.jsx(BK,{}),m.jsx(_n,{onClick:()=>s(!0),sx:{color:"inherit"},children:m.jsx(l8e,{})})]})]})})}),m.jsx(Zct,{anchor:"right",open:o,onClose:()=>s(!1),children:m.jsx(bc,{sx:{width:250},children:c.map(f=>m.jsxs(obe,{onClick:()=>u(f),children:[m.jsx(Ul,{children:f.icon}),m.jsx(Va,{primary:f.label})]},f.label))})}),m.jsx(eut,{open:r,onClose:()=>i(!1)})]})},aut=()=>m.jsxs(ce,{children:[m.jsx(sut,{}),m.jsx(Ule,{}),m.jsx(DI,{sx:{p:2},children:m.jsx(Pct,{children:m.jsx(yY,{})})}),m.jsx($ct,{})]}),lut=WS({colorSchemes:{light:{palette:{primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0"},secondary:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"},background:{default:"#f5f5f5",paper:"#ffffff"}}},dark:{palette:{primary:{main:"#90caf9",light:"#e3f2fd",dark:"#42a5f5"},secondary:{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"},background:{default:"#121212",paper:"#1e1e1e"}}}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h1:{fontSize:"2.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h3:{fontSize:"1.75rem",fontWeight:500},h4:{fontSize:"1.5rem",fontWeight:500},h5:{fontSize:"1.25rem",fontWeight:500},h6:{fontSize:"1rem",fontWeight:500}},shape:{borderRadius:8},components:{MuiCard:{styleOverrides:{root:{transition:"transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out","&:hover":{transform:"translateY(-2px)",boxShadow:"0 4px 20px rgba(0,0,0,0.12)"}}}},MuiButton:{styleOverrides:{root:{textTransform:"none",fontWeight:500}}},MuiChip:{styleOverrides:{root:{fontWeight:500}}},MuiAppBar:{styleOverrides:{root:{backgroundImage:"none"}}}}});let _4=document.getElementsByTagName("base")[0]?.href?.replace(/\/$/,"");_4?.startsWith("http")&&(_4=new URL(_4).pathname);const cut=Hhe([{path:"/",element:m.jsx(aut,{}),children:Ect}],{basename:_4});sde.createRoot(document.getElementById("root")).render(m.jsx(_.StrictMode,{children:m.jsx(Cde,{store:Tct,children:m.jsxs(n1e,{theme:lut,children:[m.jsx(Zge,{}),m.jsx(dX,{styles:{".rjsf-field-array > .MuiFormControl-root > .MuiPaper-root > .MuiBox-root > .MuiGrid-root > .MuiGrid-root:has(> .MuiBox-root > .MuiPaper-root > .MuiBox-root > .rjsf-field)":{overflow:"initial !important",flexGrow:1}}}),m.jsx(k2e,{children:m.jsx(yye,{children:m.jsx(epe,{router:cut})})})]})})}));
|