From d7373d88c411dc45aa810357dfe052c924886779 Mon Sep 17 00:00:00 2001 From: elimelt <98496503+elimelt@users.noreply.github.com> Date: Tue, 23 Jul 2024 02:05:20 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20hcp-uw/c?= =?UTF-8?q?lub-website-v2@a79b3d5c331ecddfbfc1cb50468160f47daa5dd4=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{index-C9rAMO74.js => index-BJLxK08n.js} | 6 +++--- index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename assets/{index-C9rAMO74.js => index-BJLxK08n.js} (99%) diff --git a/assets/index-C9rAMO74.js b/assets/index-BJLxK08n.js similarity index 99% rename from assets/index-C9rAMO74.js rename to assets/index-BJLxK08n.js index 4e7f01a..38c7c8a 100644 --- a/assets/index-C9rAMO74.js +++ b/assets/index-BJLxK08n.js @@ -337,7 +337,7 @@ Error generating stack: `+o.message+` transparent 0%, ${ur(r,s)} 50%, transparent 100% - )`;return{...!n&&a&&o,...n?{bgImage:l}:{bgColor:s}}},ML={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},TL=e=>({bg:le("gray.100","whiteAlpha.300")(e)}),EL=e=>({transitionProperty:"common",transitionDuration:"slow",...CL(e)}),DL=kd(e=>({label:ML,filledTrack:EL(e),track:TL(e)})),jL={xs:kd({track:{h:"1"}}),sm:kd({track:{h:"2"}}),md:kd({track:{h:"3"}}),lg:kd({track:{h:"4"}})},IL=OL({sizes:jL,baseStyle:DL,defaultProps:{size:"md",colorScheme:"blue"}}),AL=e=>typeof e=="function";function dr(e,...t){return AL(e)?e(...t):e}var{definePartsStyle:jm,defineMultiStyleConfig:FL}=at(C7.keys),Zd=ue("checkbox-size"),RL=e=>{const{colorScheme:t}=e;return{w:Zd.reference,h:Zd.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:le(`${t}.500`,`${t}.200`)(e),borderColor:le(`${t}.500`,`${t}.200`)(e),color:le("white","gray.900")(e),_hover:{bg:le(`${t}.600`,`${t}.300`)(e),borderColor:le(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:le("gray.200","transparent")(e),bg:le("gray.200","whiteAlpha.300")(e),color:le("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:le(`${t}.500`,`${t}.200`)(e),borderColor:le(`${t}.500`,`${t}.200`)(e),color:le("white","gray.900")(e)},_disabled:{bg:le("gray.100","whiteAlpha.100")(e),borderColor:le("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:le("red.500","red.300")(e)}}},kL={_disabled:{cursor:"not-allowed"}},NL={userSelect:"none",_disabled:{opacity:.4}},LL={transitionProperty:"transform",transitionDuration:"normal"},zL=jm(e=>({icon:LL,container:kL,control:dr(RL,e),label:NL})),WL={sm:jm({control:{[Zd.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:jm({control:{[Zd.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:jm({control:{[Zd.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},p0=FL({baseStyle:zL,sizes:WL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:BL,definePartsStyle:Im}=at(L7.keys),VL=e=>{var t;const r=(t=dr(p0.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},HL=Im(e=>{var t,r,n,a;return{label:(r=(t=p0).baseStyle)==null?void 0:r.call(t,e).label,container:(a=(n=p0).baseStyle)==null?void 0:a.call(n,e).container,control:VL(e)}}),YL={md:Im({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Im({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Im({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},UL=BL({baseStyle:HL,sizes:YL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:GL,definePartsStyle:qL}=at(z7.keys),Hh=ue("select-bg"),aP,QL={...(aP=He.baseStyle)==null?void 0:aP.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Hh.reference,[Hh.variable]:"colors.white",_dark:{[Hh.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Hh.reference}},XL={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},KL=qL({field:QL,icon:XL}),Yh={paddingInlineEnd:"8"},iP,oP,sP,lP,uP,cP,dP,fP,ZL={lg:{...(iP=He.sizes)==null?void 0:iP.lg,field:{...(oP=He.sizes)==null?void 0:oP.lg.field,...Yh}},md:{...(sP=He.sizes)==null?void 0:sP.md,field:{...(lP=He.sizes)==null?void 0:lP.md.field,...Yh}},sm:{...(uP=He.sizes)==null?void 0:uP.sm,field:{...(cP=He.sizes)==null?void 0:cP.sm.field,...Yh}},xs:{...(dP=He.sizes)==null?void 0:dP.xs,field:{...(fP=He.sizes)==null?void 0:fP.xs.field,...Yh},icon:{insetEnd:"1"}}},JL=GL({baseStyle:KL,sizes:ZL,variants:He.variants,defaultProps:He.defaultProps}),Xp=ue("skeleton-start-color"),Kp=ue("skeleton-end-color"),ez={[Xp.variable]:"colors.gray.100",[Kp.variable]:"colors.gray.400",_dark:{[Xp.variable]:"colors.gray.800",[Kp.variable]:"colors.gray.600"},background:Xp.reference,borderColor:Kp.reference,opacity:.7,borderRadius:"sm"},tz={baseStyle:ez},Zp=ue("skip-link-bg"),rz={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Zp.variable]:"colors.white",_dark:{[Zp.variable]:"colors.gray.700"},bg:Zp.reference}},nz={baseStyle:rz},{defineMultiStyleConfig:az,definePartsStyle:vv}=at(W7.keys),Df=ue("slider-thumb-size"),jf=ue("slider-track-size"),ro=ue("slider-bg"),iz=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Qy({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},oz=e=>({...Qy({orientation:e.orientation,horizontal:{h:jf.reference},vertical:{w:jf.reference}}),overflow:"hidden",borderRadius:"sm",[ro.variable]:"colors.gray.200",_dark:{[ro.variable]:"colors.whiteAlpha.200"},_disabled:{[ro.variable]:"colors.gray.300",_dark:{[ro.variable]:"colors.whiteAlpha.300"}},bg:ro.reference}),sz=e=>{const{orientation:t}=e;return{...Qy({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Df.reference,h:Df.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},lz=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[ro.variable]:`colors.${t}.500`,_dark:{[ro.variable]:`colors.${t}.200`},bg:ro.reference}},uz=vv(e=>({container:iz(e),track:oz(e),thumb:sz(e),filledTrack:lz(e)})),cz=vv({container:{[Df.variable]:"sizes.4",[jf.variable]:"sizes.1"}}),dz=vv({container:{[Df.variable]:"sizes.3.5",[jf.variable]:"sizes.1"}}),fz=vv({container:{[Df.variable]:"sizes.2.5",[jf.variable]:"sizes.0.5"}}),hz={lg:cz,md:dz,sm:fz},mz=az({baseStyle:uz,sizes:hz,defaultProps:{size:"md",colorScheme:"blue"}}),Ls=Et("spinner-size"),vz={width:[Ls.reference],height:[Ls.reference]},pz={xs:{[Ls.variable]:"sizes.3"},sm:{[Ls.variable]:"sizes.4"},md:{[Ls.variable]:"sizes.6"},lg:{[Ls.variable]:"sizes.8"},xl:{[Ls.variable]:"sizes.12"}},gz={baseStyle:vz,sizes:pz,defaultProps:{size:"md"}},{defineMultiStyleConfig:bz,definePartsStyle:MM}=at(B7.keys),yz={fontWeight:"medium"},_z={opacity:.8,marginBottom:"2"},xz={verticalAlign:"baseline",fontWeight:"semibold"},wz={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Sz=MM({container:{},label:yz,helpText:_z,number:xz,icon:wz}),Pz={md:MM({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},$z=bz({baseStyle:Sz,sizes:Pz,defaultProps:{size:"md"}}),Jp=ue("kbd-bg"),Oz={[Jp.variable]:"colors.gray.100",_dark:{[Jp.variable]:"colors.whiteAlpha.100"},bg:Jp.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},Cz={baseStyle:Oz},Mz={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Tz={baseStyle:Mz},{defineMultiStyleConfig:Ez,definePartsStyle:Dz}=at(I7.keys),jz={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Iz=Dz({icon:jz}),Az=Ez({baseStyle:Iz}),{defineMultiStyleConfig:Fz,definePartsStyle:Rz}=at(A7.keys),Xn=ue("menu-bg"),eg=ue("menu-shadow"),kz={[Xn.variable]:"#fff",[eg.variable]:"shadows.sm",_dark:{[Xn.variable]:"colors.gray.700",[eg.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Xn.reference,boxShadow:eg.reference},Nz={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Xn.variable]:"colors.gray.100",_dark:{[Xn.variable]:"colors.whiteAlpha.100"}},_active:{[Xn.variable]:"colors.gray.200",_dark:{[Xn.variable]:"colors.whiteAlpha.200"}},_expanded:{[Xn.variable]:"colors.gray.100",_dark:{[Xn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Xn.reference},Lz={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},zz={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},Wz={opacity:.6},Bz={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Vz={transitionProperty:"common",transitionDuration:"normal"},Hz=Rz({button:Vz,list:kz,item:Nz,groupTitle:Lz,icon:zz,command:Wz,divider:Bz}),Yz=Fz({baseStyle:Hz}),{defineMultiStyleConfig:Uz,definePartsStyle:sb}=at(F7.keys),tg=ue("modal-bg"),rg=ue("modal-shadow"),Gz={bg:"blackAlpha.600",zIndex:"modal"},qz=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},Qz=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[tg.variable]:"colors.white",[rg.variable]:"shadows.lg",_dark:{[tg.variable]:"colors.gray.700",[rg.variable]:"shadows.dark-lg"},bg:tg.reference,boxShadow:rg.reference}},Xz={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Kz={position:"absolute",top:"2",insetEnd:"3"},Zz=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},Jz={px:"6",py:"4"},eW=sb(e=>({overlay:Gz,dialogContainer:dr(qz,e),dialog:dr(Qz,e),header:Xz,closeButton:Kz,body:dr(Zz,e),footer:Jz}));function Pn(e){return sb(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var tW={xs:Pn("xs"),sm:Pn("sm"),md:Pn("md"),lg:Pn("lg"),xl:Pn("xl"),"2xl":Pn("2xl"),"3xl":Pn("3xl"),"4xl":Pn("4xl"),"5xl":Pn("5xl"),"6xl":Pn("6xl"),full:Pn("full")},rW=Uz({baseStyle:eW,sizes:tW,defaultProps:{size:"md"}}),{defineMultiStyleConfig:nW,definePartsStyle:TM}=at(R7.keys),Ky=Et("number-input-stepper-width"),EM=Et("number-input-input-padding"),aW=Ra(Ky).add("0.5rem").toString(),ng=Et("number-input-bg"),ag=Et("number-input-color"),ig=Et("number-input-border-color"),iW={[Ky.variable]:"sizes.6",[EM.variable]:aW},oW=e=>{var t,r;return(r=(t=dr(He.baseStyle,e))==null?void 0:t.field)!=null?r:{}},sW={width:Ky.reference},lW={borderStart:"1px solid",borderStartColor:ig.reference,color:ag.reference,bg:ng.reference,[ag.variable]:"colors.chakra-body-text",[ig.variable]:"colors.chakra-border-color",_dark:{[ag.variable]:"colors.whiteAlpha.800",[ig.variable]:"colors.whiteAlpha.300"},_active:{[ng.variable]:"colors.gray.200",_dark:{[ng.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},uW=TM(e=>{var t;return{root:iW,field:(t=dr(oW,e))!=null?t:{},stepperGroup:sW,stepper:lW}});function Uh(e){var t,r,n;const a=(t=He.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(n=(r=a.field)==null?void 0:r.fontSize)!=null?n:"md",l=SM.fontSizes[s];return TM({field:{...a.field,paddingInlineEnd:EM.reference,verticalAlign:"top"},stepper:{fontSize:Ra(l).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var cW={xs:Uh("xs"),sm:Uh("sm"),md:Uh("md"),lg:Uh("lg")},dW=nW({baseStyle:uW,sizes:cW,variants:He.variants,defaultProps:He.defaultProps}),hP,fW={...(hP=He.baseStyle)==null?void 0:hP.field,textAlign:"center"},hW={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},mP,vP,mW={outline:e=>{var t,r,n;return(n=(r=dr((t=He.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=dr((t=He.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=dr((t=He.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(vP=(mP=He.variants)==null?void 0:mP.unstyled.field)!=null?vP:{}},vW={baseStyle:fW,sizes:hW,variants:mW,defaultProps:He.defaultProps},{defineMultiStyleConfig:pW,definePartsStyle:gW}=at(k7.keys),Gh=Et("popper-bg"),bW=Et("popper-arrow-bg"),pP=Et("popper-arrow-shadow-color"),yW={zIndex:10},_W={[Gh.variable]:"colors.white",bg:Gh.reference,[bW.variable]:Gh.reference,[pP.variable]:"colors.gray.200",_dark:{[Gh.variable]:"colors.gray.700",[pP.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},xW={px:3,py:2,borderBottomWidth:"1px"},wW={px:3,py:2},SW={px:3,py:2,borderTopWidth:"1px"},PW={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},$W=gW({popper:yW,content:_W,header:xW,body:wW,footer:SW,closeButton:PW}),OW=pW({baseStyle:$W}),{definePartsStyle:lb,defineMultiStyleConfig:CW}=at(M7.keys),og=ue("drawer-bg"),sg=ue("drawer-box-shadow");function zl(e){return lb(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var MW={bg:"blackAlpha.600",zIndex:"modal"},TW={display:"flex",zIndex:"modal",justifyContent:"center"},EW=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[og.variable]:"colors.white",[sg.variable]:"shadows.lg",_dark:{[og.variable]:"colors.gray.700",[sg.variable]:"shadows.dark-lg"},bg:og.reference,boxShadow:sg.reference}},DW={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},jW={position:"absolute",top:"2",insetEnd:"3"},IW={px:"6",py:"2",flex:"1",overflow:"auto"},AW={px:"6",py:"4"},FW=lb(e=>({overlay:MW,dialogContainer:TW,dialog:dr(EW,e),header:DW,closeButton:jW,body:IW,footer:AW})),RW={xs:zl("xs"),sm:zl("md"),md:zl("lg"),lg:zl("2xl"),xl:zl("4xl"),full:zl("full")},kW=CW({baseStyle:FW,sizes:RW,defaultProps:{size:"xs"}}),{definePartsStyle:NW,defineMultiStyleConfig:LW}=at(T7.keys),zW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},WW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},BW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},VW=NW({preview:zW,input:WW,textarea:BW}),HW=LW({baseStyle:VW}),{definePartsStyle:YW,defineMultiStyleConfig:UW}=at(E7.keys),Mu=ue("form-control-color"),GW={marginStart:"1",[Mu.variable]:"colors.red.500",_dark:{[Mu.variable]:"colors.red.300"},color:Mu.reference},qW={mt:"2",[Mu.variable]:"colors.gray.600",_dark:{[Mu.variable]:"colors.whiteAlpha.600"},color:Mu.reference,lineHeight:"normal",fontSize:"sm"},QW=YW({container:{width:"100%",position:"relative"},requiredIndicator:GW,helperText:qW}),XW=UW({baseStyle:QW}),{definePartsStyle:KW,defineMultiStyleConfig:ZW}=at(D7.keys),Tu=ue("form-error-color"),JW={[Tu.variable]:"colors.red.500",_dark:{[Tu.variable]:"colors.red.300"},color:Tu.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},eB={marginEnd:"0.5em",[Tu.variable]:"colors.red.500",_dark:{[Tu.variable]:"colors.red.300"},color:Tu.reference},tB=KW({text:JW,icon:eB}),rB=ZW({baseStyle:tB}),nB={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},aB={baseStyle:nB},iB={fontFamily:"heading",fontWeight:"bold"},oB={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},sB={baseStyle:iB,sizes:oB,defaultProps:{size:"xl"}},{defineMultiStyleConfig:lB,definePartsStyle:uB}=at(O7.keys),lg=ue("breadcrumb-link-decor"),cB={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:lg.reference,[lg.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[lg.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},dB=uB({link:cB}),fB=lB({baseStyle:dB}),hB={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},DM=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:le("gray.800","whiteAlpha.900")(e),_hover:{bg:le("gray.100","whiteAlpha.200")(e)},_active:{bg:le("gray.200","whiteAlpha.300")(e)}};const n=Bu(`${t}.200`,.12)(r),a=Bu(`${t}.200`,.24)(r);return{color:le(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:le(`${t}.50`,n)(e)},_active:{bg:le(`${t}.100`,a)(e)}}},mB=e=>{const{colorScheme:t}=e,r=le("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...dr(DM,e)}},vB={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},pB=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const u=le("gray.100","whiteAlpha.200")(e);return{bg:u,color:le("gray.800","whiteAlpha.900")(e),_hover:{bg:le("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:le("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:a="white",hoverBg:o=`${r}.600`,activeBg:s=`${r}.700`}=(t=vB[r])!=null?t:{},l=le(n,`${r}.200`)(e);return{bg:l,color:le(a,"gray.800")(e),_hover:{bg:le(o,`${r}.300`)(e),_disabled:{bg:l}},_active:{bg:le(s,`${r}.400`)(e)}}},gB=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:le(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:le(`${t}.700`,`${t}.500`)(e)}}},bB={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},yB={ghost:DM,outline:mB,solid:pB,link:gB,unstyled:bB},_B={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},xB={baseStyle:hB,variants:yB,sizes:_B,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Xs,defineMultiStyleConfig:wB}=at(G7.keys),g0=ue("card-bg"),Va=ue("card-padding"),jM=ue("card-shadow"),Am=ue("card-radius"),IM=ue("card-border-width","0"),AM=ue("card-border-color"),SB=Xs({container:{[g0.variable]:"colors.chakra-body-bg",backgroundColor:g0.reference,boxShadow:jM.reference,borderRadius:Am.reference,color:"chakra-body-text",borderWidth:IM.reference,borderColor:AM.reference},body:{padding:Va.reference,flex:"1 1 0%"},header:{padding:Va.reference},footer:{padding:Va.reference}}),PB={sm:Xs({container:{[Am.variable]:"radii.base",[Va.variable]:"space.3"}}),md:Xs({container:{[Am.variable]:"radii.md",[Va.variable]:"space.5"}}),lg:Xs({container:{[Am.variable]:"radii.xl",[Va.variable]:"space.7"}})},$B={elevated:Xs({container:{[jM.variable]:"shadows.base",_dark:{[g0.variable]:"colors.gray.700"}}}),outline:Xs({container:{[IM.variable]:"1px",[AM.variable]:"colors.chakra-border-color"}}),filled:Xs({container:{[g0.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Va.variable]:0},header:{[Va.variable]:0},footer:{[Va.variable]:0}}},OB=wB({baseStyle:SB,variants:$B,sizes:PB,defaultProps:{variant:"elevated",size:"md"}}),Jd=Et("close-button-size"),dd=Et("close-button-bg"),CB={w:[Jd.reference],h:[Jd.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[dd.variable]:"colors.blackAlpha.100",_dark:{[dd.variable]:"colors.whiteAlpha.100"}},_active:{[dd.variable]:"colors.blackAlpha.200",_dark:{[dd.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:dd.reference},MB={lg:{[Jd.variable]:"sizes.10",fontSize:"md"},md:{[Jd.variable]:"sizes.8",fontSize:"xs"},sm:{[Jd.variable]:"sizes.6",fontSize:"2xs"}},TB={baseStyle:CB,sizes:MB,defaultProps:{size:"md"}},{variants:EB,defaultProps:DB}=Kd,jB={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:_t.bg.reference,color:_t.color.reference,boxShadow:_t.shadow.reference},IB={baseStyle:jB,variants:EB,defaultProps:DB},AB={w:"100%",mx:"auto",maxW:"prose",px:"4"},FB={baseStyle:AB},RB={opacity:.6,borderColor:"inherit"},kB={borderStyle:"solid"},NB={borderStyle:"dashed"},LB={solid:kB,dashed:NB},zB={baseStyle:RB,variants:LB,defaultProps:{variant:"solid"}},{definePartsStyle:WB,defineMultiStyleConfig:BB}=at(S7.keys),VB={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},HB={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},YB={pt:"2",px:"4",pb:"5"},UB={fontSize:"1.25em"},GB=WB({container:VB,button:HB,panel:YB,icon:UB}),qB=BB({baseStyle:GB}),{definePartsStyle:Zf,defineMultiStyleConfig:QB}=at(P7.keys),Nr=ue("alert-fg"),Ja=ue("alert-bg"),XB=Zf({container:{bg:Ja.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Nr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Nr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Zy(e){const{theme:t,colorScheme:r}=e,n=Bu(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var KB=Zf(e=>{const{colorScheme:t}=e,r=Zy(e);return{container:{[Nr.variable]:`colors.${t}.600`,[Ja.variable]:r.light,_dark:{[Nr.variable]:`colors.${t}.200`,[Ja.variable]:r.dark}}}}),ZB=Zf(e=>{const{colorScheme:t}=e,r=Zy(e);return{container:{[Nr.variable]:`colors.${t}.600`,[Ja.variable]:r.light,_dark:{[Nr.variable]:`colors.${t}.200`,[Ja.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Nr.reference}}}),JB=Zf(e=>{const{colorScheme:t}=e,r=Zy(e);return{container:{[Nr.variable]:`colors.${t}.600`,[Ja.variable]:r.light,_dark:{[Nr.variable]:`colors.${t}.200`,[Ja.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Nr.reference}}}),eV=Zf(e=>{const{colorScheme:t}=e;return{container:{[Nr.variable]:"colors.white",[Ja.variable]:`colors.${t}.600`,_dark:{[Nr.variable]:"colors.gray.900",[Ja.variable]:`colors.${t}.200`},color:Nr.reference}}}),tV={subtle:KB,"left-accent":ZB,"top-accent":JB,solid:eV},rV=QB({baseStyle:XB,variants:tV,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:FM,defineMultiStyleConfig:nV}=at($7.keys),Eu=ue("avatar-border-color"),ef=ue("avatar-bg"),If=ue("avatar-font-size"),Vu=ue("avatar-size"),aV={borderRadius:"full",border:"0.2em solid",borderColor:Eu.reference,[Eu.variable]:"white",_dark:{[Eu.variable]:"colors.gray.800"}},iV={bg:ef.reference,fontSize:If.reference,width:Vu.reference,height:Vu.reference,lineHeight:"1",[ef.variable]:"colors.gray.200",_dark:{[ef.variable]:"colors.whiteAlpha.400"}},oV=e=>{const{name:t,theme:r}=e,n=t?hN({string:t}):"colors.gray.400",a=dN(n)(r);let o="white";return a||(o="gray.800"),{bg:ef.reference,fontSize:If.reference,color:o,borderColor:Eu.reference,verticalAlign:"top",width:Vu.reference,height:Vu.reference,"&:not([data-loaded])":{[ef.variable]:n},[Eu.variable]:"colors.white",_dark:{[Eu.variable]:"colors.gray.800"}}},sV={fontSize:If.reference,lineHeight:"1"},lV=FM(e=>({badge:dr(aV,e),excessLabel:dr(iV,e),container:dr(oV,e),label:sV}));function Vi(e){const t=e!=="100%"?$M[e]:void 0;return FM({container:{[Vu.variable]:t??e,[If.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Vu.variable]:t??e,[If.variable]:`calc(${t??e} / 2.5)`}})}var uV={"2xs":Vi(4),xs:Vi(6),sm:Vi(8),md:Vi(12),lg:Vi(16),xl:Vi(24),"2xl":Vi(32),full:Vi("100%")},cV=nV({baseStyle:lV,sizes:uV,defaultProps:{size:"md"}}),dV={Accordion:qB,Alert:rV,Avatar:cV,Badge:Kd,Breadcrumb:fB,Button:xB,Checkbox:p0,CloseButton:TB,Code:IB,Container:FB,Divider:zB,Drawer:kW,Editable:HW,Form:XW,FormError:rB,FormLabel:aB,Heading:sB,Input:He,Kbd:Cz,Link:Tz,List:Az,Menu:Yz,Modal:rW,NumberInput:dW,PinInput:vW,Popover:OW,Progress:IL,Radio:UL,Select:JL,Skeleton:tz,SkipLink:nz,Slider:mz,Spinner:gz,Stat:$z,Switch:TN,Table:RN,Tabs:KN,Tag:cL,Textarea:wL,Tooltip:$L,Card:OB,Stepper:w7},fV={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},hV={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},mV="ltr",vV={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},RM={semanticTokens:fV,direction:mV,...y7,components:dV,styles:hV,config:vV};function pV(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var gV=pV();function bV(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function yV(e,t,r,n){const a=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,a,o,s)=>{if(typeof n>"u")return e(n,a,o);t.has(n)||t.set(n,new Map);const l=t.get(n);if(l.has(a))return l.get(a);const u=e(n,a,o,s);return l.set(a,u),u}},kM=_V(yV);function NM(e,t){const r={};return Object.keys(e).forEach(n=>{const a=e[n];t(a,n,e)&&(r[n]=a)}),r}var LM=e=>NM(e,t=>t!=null);function xV(e){return typeof e=="function"}function zM(e,...t){return xV(e)?e(...t):e}function wV(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var SV=typeof Element<"u",PV=typeof Map=="function",$V=typeof Set=="function",OV=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Fm(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Fm(e[n],t[n]))return!1;return!0}var o;if(PV&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!Fm(n.value[1],t.get(n.value[0])))return!1;return!0}if($V&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(OV&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;if(SV&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((a[n]==="_owner"||a[n]==="__v"||a[n]==="__o")&&e.$$typeof)&&!Fm(e[a[n]],t[a[n]]))return!1;return!0}return e!==e&&t!==t}var CV=function(t,r){try{return Fm(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const MV=zb(CV);function WM(e,t={}){var r;const{styleConfig:n,...a}=t,{theme:o,colorMode:s}=TR(),l=e?kM(o,`components.${e}`):void 0,u=n||l,c=ta({theme:o,colorMode:s},(r=u==null?void 0:u.defaultProps)!=null?r:{},LM(bV(a,["children"]))),d=S.useRef({});if(u){const m=Qk(u)(c);MV(d.current,m)||(d.current=m)}return d.current}function ri(e,t={}){return WM(e,t)}function Mo(e,t={}){return WM(e,t)}var TV=new Set([...kk,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),EV=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function DV(e){return EV.has(e)||!TV.has(e)}function jV(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a in r&&delete r[a],r[a]=n[a]);return r}function Jy(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var IV=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,AV=KC(function(e){return IV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),FV=AV,RV=function(t){return t!=="theme"},gP=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?FV:RV},bP=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},kV=!1,NV=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return nM(r,n,a),cR(function(){return aM(r,n,a)}),null},LV=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,s;r!==void 0&&(o=r.label,s=r.target);var l=bP(t,r,n),u=l||gP(a),c=!u("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var m=d.length,g=1;gt=>{const{theme:r,css:n,__css:a,sx:o,...s}=t,l=NM(s,(f,m)=>Lk(m)),u=zM(e,t),c=jV({},a,u,LM(l),o),d=wM(c)(t.theme);return n?[d,n]:d};function ug(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=DV);const a=BV({baseStyle:r}),o=WV(e,n)(a);return on.forwardRef(function(u,c){const{colorMode:d,forced:f}=dv();return on.createElement(o,{ref:c,"data-theme":f?d:void 0,...u})})}function VV(){const e=new Map;return new Proxy(ug,{apply(t,r,n){return ug(...n)},get(t,r){return e.has(r)||e.set(r,ug(r)),e.get(r)}})}var fe=VV();function he(e){return S.forwardRef(e)}function HV(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,a=S.createContext(void 0);a.displayName=n;function o(){var s;const l=S.useContext(a);if(!l&&t){const u=new Error(r);throw u.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,u,o),u}return l}return[a.Provider,o,a]}function YV(e){const{cssVarsRoot:t,theme:r,children:n}=e,a=S.useMemo(()=>Ak(r),[r]);return w.jsxs(hR,{theme:a,children:[w.jsx(UV,{root:t}),n]})}function UV({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return w.jsx(cv,{styles:r=>({[t]:r.__cssVars})})}HV({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function GV(){const{colorMode:e}=dv();return w.jsx(cv,{styles:t=>{const r=kM(t,"styles.global"),n=zM(r,{theme:t,colorMode:e});return n?wM(n)(t):void 0}})}var BM=S.createContext({getDocument(){return document},getWindow(){return window}});BM.displayName="EnvironmentContext";function VM(e){const{children:t,environment:r,disabled:n}=e,a=S.useRef(null),o=S.useMemo(()=>r||{getDocument:()=>{var l,u;return(u=(l=a.current)==null?void 0:l.ownerDocument)!=null?u:document},getWindow:()=>{var l,u;return(u=(l=a.current)==null?void 0:l.ownerDocument.defaultView)!=null?u:window}},[r]),s=!n||!r;return w.jsxs(BM.Provider,{value:o,children:[t,s&&w.jsx("span",{id:"__chakra_env",hidden:!0,ref:a})]})}VM.displayName="EnvironmentProvider";var qV=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:a,resetCSS:o=!0,theme:s={},environment:l,cssVarsRoot:u,disableEnvironment:c,disableGlobalStyle:d}=e,f=w.jsx(VM,{environment:l,disabled:c,children:t});return w.jsx(YV,{theme:s,cssVarsRoot:u,children:w.jsxs(vM,{colorModeManager:r,options:s.config,children:[o?w.jsx(pR,{scope:a}):w.jsx(vR,{}),!d&&w.jsx(GV,{}),n?w.jsx(fM,{zIndex:n,children:f}):f]})})},QV=(e,t)=>e.find(r=>r.id===t);function _P(e,t){const r=HM(e,t),n=r?e[r].findIndex(a=>a.id===t):-1;return{position:r,index:n}}function HM(e,t){for(const[r,n]of Object.entries(e))if(QV(n,t))return r}function XV(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function KV(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,a=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:a,right:o,left:s}}function ZV(e,t=[]){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useCallback((...n)=>{var a;return(a=r.current)==null?void 0:a.call(r,...n)},t)}function JV(e,t){const r=ZV(e);S.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function xP(e,t){const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const e_=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),pv=S.createContext({}),Jf=S.createContext(null),t_=typeof document<"u",r_=t_?S.useLayoutEffect:S.useEffect,YM=S.createContext({strict:!1}),gv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eH="framerAppearId",UM="data-"+gv(eH),tH={skipAnimations:!1,useManualTiming:!1};function rH(e){let t=new Set,r=new Set,n=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(s)}const u={schedule:(c,d=!1,f=!1)=>{const g=f&&n?t:r;return d&&o.add(c),g.has(c)||g.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(s=c,n){a=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(l),n=!1,a&&(a=!1,u.process(c))}};return u}const qh=["read","resolveKeyframes","update","preRender","render","postRender"],nH=40;function GM(e,t){let r=!1,n=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,s=qh.reduce((b,y)=>(b[y]=rH(o),b),{}),{read:l,resolveKeyframes:u,update:c,preRender:d,render:f,postRender:m}=s,g=()=>{const b=performance.now();r=!1,a.delta=n?1e3/60:Math.max(Math.min(b-a.timestamp,nH),1),a.timestamp=b,a.isProcessing=!0,l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),m.process(a),a.isProcessing=!1,r&&t&&(n=!1,e(g))},x=()=>{r=!0,n=!0,a.isProcessing||e(g)};return{schedule:qh.reduce((b,y)=>{const P=s[y];return b[y]=(M,A=!1,F=!1)=>(r||x(),P.schedule(M,A,F)),b},{}),cancel:b=>{for(let y=0;y{d&&d.update(r,l)});const m=S.useRef(!!(r[UM]&&!window.HandoffComplete));return r_(()=>{d&&(d.updateFeatures(),n_.render(d.render),m.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(m.current=!1,wP||(wP=!0,queueMicrotask(iH))))}),d}function iH(){window.HandoffComplete=!0}function oH(e,t,r,n){const{layoutId:a,layout:o,drag:s,dragConstraints:l,layoutScroll:u,layoutRoot:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:QM(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!s||l&&vu(l),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,layoutScroll:u,layoutRoot:c})}function QM(e){if(e)return e.options.allowProjection!==!1?e.projection:QM(e.parent)}function sH(e,t,r){return S.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):vu(r)&&(r.current=n))},[t])}function Af(e){return typeof e=="string"||Array.isArray(e)}function Ff(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const a_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i_=["initial",...a_];function bv(e){return Ff(e.animate)||i_.some(t=>Af(e[t]))}function XM(e){return!!(bv(e)||e.variants)}function lH(e,t){if(bv(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Af(r)?r:void 0,animate:Af(n)?n:void 0}}return e.inherit!==!1?t:{}}function uH(e){const{initial:t,animate:r}=lH(e,S.useContext(pv));return S.useMemo(()=>({initial:t,animate:r}),[SP(t),SP(r)])}function SP(e){return Array.isArray(e)?e.join(" "):e}const PP={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Hu={};for(const e in PP)Hu[e]={isEnabled:t=>PP[e].some(r=>!!t[r])};function cH(e){for(const t in e)Hu[t]={...Hu[t],...e[t]}}const o_=S.createContext({}),dH=Symbol.for("motionComponentSymbol"),rr=e=>e;let ub=rr;function fH({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:a}){e&&cH(e);function o(l,u){let c;const d={...S.useContext(e_),...l,layoutId:hH(l)},{isStatic:f}=d,m=uH(l),g=n(l,f);if(!f&&t_){mH();const x=vH(d);c=x.MeasureLayout,m.visualElement=aH(a,g,d,t,x.ProjectionNode)}return w.jsxs(pv.Provider,{value:m,children:[c&&m.visualElement?w.jsx(c,{visualElement:m.visualElement,...d}):null,r(a,l,sH(g,m.visualElement,u),g,f,m.visualElement)]})}const s=S.forwardRef(o);return s[dH]=a,s}function hH({layoutId:e}){const t=S.useContext(o_).id;return t&&e!==void 0?t+"-"+e:e}function mH(e,t){S.useContext(YM).strict}function vH(e){const{drag:t,layout:r}=Hu;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t!=null&&t.isEnabled(e)||r!=null&&r.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function pH(e){function t(n,a={}){return fH(e(n,a))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,a)=>(r.has(a)||r.set(a,t(a)),r.get(a))})}const gH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s_(e){return typeof e!="string"||e.includes("-")?!1:!!(gH.indexOf(e)>-1||/[A-Z]/u.test(e))}const y0={};function bH(e){Object.assign(y0,e)}const eh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],To=new Set(eh);function KM(e,{layout:t,layoutId:r}){return To.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!y0[e]||e==="opacity")}const er=e=>!!(e&&e.getVelocity),yH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_H=eh.length;function xH(e,t,r){let n="";for(let a=0;a<_H;a++){const o=eh[a];if(e[o]!==void 0){const s=yH[o]||o;n+=`${s}(${e[o]}) `}}return n=n.trim(),r?n=r(e,t?"":n):t&&(n="none"),n}const ZM=e=>t=>typeof t=="string"&&t.startsWith(e),JM=ZM("--"),wH=ZM("var(--"),l_=e=>wH(e)?SH.test(e.split("/*")[0].trim()):!1,SH=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,PH=(e,t)=>t&&typeof e=="number"?t.transform(e):e,So=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},tf={...Ku,transform:e=>So(0,1,e)},Qh={...Ku,default:1},rf=e=>Math.round(e*1e5)/1e5,u_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,$H=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,OH=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function th(e){return typeof e=="string"}function CH(e){return e==null}const rh=e=>({test:t=>th(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qi=rh("deg"),oa=rh("%"),de=rh("px"),MH=rh("vh"),TH=rh("vw"),$P={...oa,parse:e=>oa.parse(e)/100,transform:e=>oa.transform(e*100)},OP={...Ku,transform:Math.round},eT={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,radius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,size:de,top:de,right:de,bottom:de,left:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,rotate:Qi,rotateX:Qi,rotateY:Qi,rotateZ:Qi,scale:Qh,scaleX:Qh,scaleY:Qh,scaleZ:Qh,skew:Qi,skewX:Qi,skewY:Qi,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:tf,originX:$P,originY:$P,originZ:de,zIndex:OP,backgroundPositionX:de,backgroundPositionY:de,fillOpacity:tf,strokeOpacity:tf,numOctaves:OP};function c_(e,t,r){const{style:n,vars:a,transform:o,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(JM(d)){a[d]=f;continue}const m=eT[d],g=PH(f,m);if(To.has(d)){if(l=!0,o[d]=g,!c)continue;f!==(m.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=g):n[d]=g}if(t.transform||(l||r?n.transform=xH(e.transform,c,r):n.transform&&(n.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:m=0}=s;n.transformOrigin=`${d} ${f} ${m}`}}const d_=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tT(e,t,r){for(const n in t)!er(t[n])&&!KM(n,r)&&(e[n]=t[n])}function EH({transformTemplate:e},t){return S.useMemo(()=>{const r=d_();return c_(r,t,e),Object.assign({},r.vars,r.style)},[t])}function DH(e,t){const r=e.style||{},n={};return tT(n,r,e),Object.assign(n,EH(e,t)),n}function jH(e,t){const r={},n=DH(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const IH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _0(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||IH.has(e)}let rT=e=>!_0(e);function AH(e){e&&(rT=t=>t.startsWith("on")?!_0(t):e(t))}try{AH(require("@emotion/is-prop-valid").default)}catch{}function FH(e,t,r){const n={};for(const a in e)a==="values"&&typeof e.values=="object"||(rT(a)||r===!0&&_0(a)||!t&&!_0(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}function CP(e,t,r){return typeof e=="string"?e:de.transform(t+r*e)}function RH(e,t,r){const n=CP(t,e.x,e.width),a=CP(r,e.y,e.height);return`${n} ${a}`}const kH={offset:"stroke-dashoffset",array:"stroke-dasharray"},NH={offset:"strokeDashoffset",array:"strokeDasharray"};function LH(e,t,r=1,n=0,a=!0){e.pathLength=1;const o=a?kH:NH;e[o.offset]=de.transform(-n);const s=de.transform(t),l=de.transform(r);e[o.array]=`${s} ${l}`}function f_(e,{attrX:t,attrY:r,attrScale:n,originX:a,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:u=0,...c},d,f){if(c_(e,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:x}=e;m.transform&&(x&&(g.transform=m.transform),delete m.transform),x&&(a!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=RH(x,a!==void 0?a:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),r!==void 0&&(m.y=r),n!==void 0&&(m.scale=n),s!==void 0&&LH(m,s,l,u,!1)}const nT=()=>({...d_(),attrs:{}}),h_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function zH(e,t,r,n){const a=S.useMemo(()=>{const o=nT();return f_(o,t,h_(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};tT(o,e.style,e),a.style={...o,...a.style}}return a}function WH(e=!1){return(r,n,a,{latestValues:o},s)=>{const u=(s_(r)?zH:jH)(n,o,s,r),c=FH(n,typeof r=="string",e),d=r!==S.Fragment?{...c,...u,ref:a}:{},{children:f}=n,m=S.useMemo(()=>er(f)?f.get():f,[f]);return S.createElement(r,{...d,children:m})}}function aT(e,{style:t,vars:r},n,a){Object.assign(e.style,t,a&&a.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const iT=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function oT(e,t,r,n){aT(e,t,void 0,n);for(const a in t.attrs)e.setAttribute(iT.has(a)?a:gv(a),t.attrs[a])}function m_(e,t,r){var n;const{style:a}=e,o={};for(const s in a)(er(a[s])||t.style&&er(t.style[s])||KM(s,e)||((n=r==null?void 0:r.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(o[s]=a[s]);return r&&a&&typeof a.willChange=="string"&&(r.applyWillChange=!1),o}function sT(e,t,r){const n=m_(e,t,r);for(const a in e)if(er(e[a])||er(t[a])){const o=eh.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;n[o]=e[a]}return n}function MP(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function v_(e,t,r,n){if(typeof t=="function"){const[a,o]=MP(n);t=t(r!==void 0?r:e.custom,a,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,o]=MP(n);t=t(r!==void 0?r:e.custom,a,o)}return t}function lT(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const cb=e=>Array.isArray(e),BH=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),VH=e=>cb(e)?e[e.length-1]||0:e;function Rm(e){const t=er(e)?e.get():e;return BH(t)?t.toValue():t}const uT=new Set(["opacity","clipPath","filter","transform"]);function cT(e){if(To.has(e))return"transform";if(uT.has(e))return gv(e)}function yv(e,t){e.indexOf(t)===-1&&e.push(t)}function _v(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function HH({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:r,onMount:n},a,o,s,l){const u={latestValues:UH(a,o,s,l?!1:e,t),renderState:r()};return n&&(u.mount=c=>n(a,c,u)),u}const dT=e=>(t,r)=>{const n=S.useContext(pv),a=S.useContext(Jf),o=()=>HH(e,t,n,a,r);return r?o():lT(o)};function YH(e,t){const r=cT(t);r&&yv(e,r)}function TP(e,t,r){const n=Array.isArray(t)?t:[t];for(let a=0;a{for(const y in $){let P=$[y];if(Array.isArray(P)){const M=x?P.length-1:0;P=P[M]}P!==null&&(s[y]=P)}for(const y in b)s[y]=b[y]}),u&&(f&&d!==!1&&!Ff(f)&&TP(e,f,$=>{for(const b in $)YH(l,b)}),l.length&&(s.willChange=l.join(","))),s}const{schedule:Xe,cancel:ei,state:Vt,steps:cg}=GM(typeof requestAnimationFrame<"u"?requestAnimationFrame:rr,!0),GH={useVisualState:dT({scrapeMotionValuesFromProps:sT,createRenderState:nT,onMount:(e,t,{renderState:r,latestValues:n})=>{Xe.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Xe.render(()=>{f_(r,n,h_(t.tagName),e.transformTemplate),oT(t,r)})}})},qH={useVisualState:dT({applyWillChange:!0,scrapeMotionValuesFromProps:m_,createRenderState:d_})};function QH(e,{forwardMotionProps:t=!1},r,n){return{...s_(e)?GH:qH,preloadedFeatures:r,useRender:WH(t),createVisualElement:n,Component:e}}function za(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const fT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function xv(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const XH=e=>t=>fT(t)&&e(t,xv(t));function Ha(e,t,r,n){return za(e,t,XH(r),n)}const KH=(e,t)=>r=>t(e(r)),Ya=(...e)=>e.reduce(KH);function hT(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const EP=hT("dragHorizontal"),DP=hT("dragVertical");function mT(e){let t=!1;if(e==="y")t=DP();else if(e==="x")t=EP();else{const r=EP(),n=DP();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function vT(){const e=mT(!0);return e?(e(),!1):!0}class Eo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function jP(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",a=(o,s)=>{if(o.pointerType==="touch"||vT())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t);const u=l[n];u&&Xe.postRender(()=>u(o,s))};return Ha(e.current,r,a,{passive:!e.getProps()[n]})}class ZH extends Eo{mount(){this.unmount=Ya(jP(this.node,!0),jP(this.node,!1))}unmount(){}}class JH extends Eo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ya(za(this.node.current,"focus",()=>this.onFocus()),za(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const pT=(e,t)=>t?e===t?!0:pT(e,t.parentElement):!1;function dg(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,xv(r))}class eY extends Eo{constructor(){super(...arguments),this.removeStartListeners=rr,this.removeEndListeners=rr,this.removeAccessibleListeners=rr,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),o=Ha(window,"pointerup",(l,u)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d,globalTapTarget:f}=this.node.getProps(),m=!f&&!pT(this.node.current,l.target)?d:c;m&&Xe.update(()=>m(l,u))},{passive:!(n.onTap||n.onPointerUp)}),s=Ha(window,"pointercancel",(l,u)=>this.cancelPress(l,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ya(o,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||dg("up",(u,c)=>{const{onTap:d}=this.node.getProps();d&&Xe.postRender(()=>d(u,c))})};this.removeEndListeners(),this.removeEndListeners=za(this.node.current,"keyup",s),dg("down",(l,u)=>{this.startPress(l,u)})},r=za(this.node.current,"keydown",t),n=()=>{this.isPressing&&dg("cancel",(o,s)=>this.cancelPress(o,s))},a=za(this.node.current,"blur",n);this.removeAccessibleListeners=Ya(r,a)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:a}=this.node.getProps();a&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Xe.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!vT()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Xe.postRender(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Ha(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=za(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ya(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const db=new WeakMap,fg=new WeakMap,tY=e=>{const t=db.get(e.target);t&&t(e)},rY=e=>{e.forEach(tY)};function nY({root:e,...t}){const r=e||document;fg.has(r)||fg.set(r,{});const n=fg.get(r),a=JSON.stringify(t);return n[a]||(n[a]=new IntersectionObserver(rY,{root:e,...t})),n[a]}function aY(e,t,r){const n=nY(t);return db.set(e,r),n.observe(e),()=>{db.delete(e),n.unobserve(e)}}const iY={some:0,all:1};class oY extends Eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:a="some",once:o}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof a=="number"?a:iY[a]},l=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=c?d:f;m&&m(u)};return aY(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(sY(t,r))&&this.startObserver()}unmount(){}}function sY({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const lY={inView:{Feature:oY},tap:{Feature:eY},focus:{Feature:JH},hover:{Feature:ZH}};function gT(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;ne*1e3,Ua=e=>e/1e3,uY={type:"spring",stiffness:500,damping:25,restSpeed:10},cY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dY={type:"keyframes",duration:.8},fY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hY=(e,{keyframes:t})=>t.length>2?dY:To.has(e)?e.startsWith("scale")?cY(t[1]):uY:fY;function mY({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:o,repeatType:s,repeatDelay:l,from:u,elapsed:c,...d}){return!!Object.keys(d).length}function p_(e,t){return e[t]||e.default||e}const vY=e=>e!==null;function Sv(e,{repeat:t,repeatType:r="loop"},n){const a=e.filter(vY),o=t&&r!=="loop"&&t%2===1?0:a.length-1;return!o||n===void 0?a[o]:n}let km;function pY(){km=void 0}const bo={now:()=>(km===void 0&&bo.set(Vt.isProcessing||tH.useManualTiming?Vt.timestamp:performance.now()),km),set:e=>{km=e,queueMicrotask(pY)}},bT=e=>/^0[^.\s]+$/u.test(e);function gY(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||bT(e):!0}const yT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),bY=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yY(e){const t=bY.exec(e);if(!t)return[,];const[,r,n,a]=t;return[`--${r??n}`,a]}function _T(e,t,r=1){const[n,a]=yY(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const s=o.trim();return yT(s)?parseFloat(s):s}return l_(a)?_T(a,t,r+1):a}const _Y=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),IP=e=>e===Ku||e===de,AP=(e,t)=>parseFloat(e.split(", ")[t]),FP=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const a=n.match(/^matrix3d\((.+)\)$/u);if(a)return AP(a[1],t);{const o=n.match(/^matrix\((.+)\)$/u);return o?AP(o[1],e):0}},xY=new Set(["x","y","z"]),wY=eh.filter(e=>!xY.has(e));function SY(e){const t=[];return wY.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const Yu={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:FP(4,13),y:FP(5,14)};Yu.translateX=Yu.x;Yu.translateY=Yu.y;const xT=e=>t=>t.test(e),PY={test:e=>e==="auto",parse:e=>e},wT=[Ku,de,oa,Qi,TH,MH,PY],RP=e=>wT.find(xT(e)),Ks=new Set;let fb=!1,hb=!1;function ST(){if(hb){const e=Array.from(Ks).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const a=SY(n);a.length&&(r.set(n,a),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const a=r.get(n);a&&a.forEach(([o,s])=>{var l;(l=n.getValue(o))===null||l===void 0||l.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}hb=!1,fb=!1,Ks.forEach(e=>e.complete()),Ks.clear()}function PT(){Ks.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(hb=!0)})}function $Y(){PT(),ST()}class g_{constructor(t,r,n,a,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=a,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ks.add(this),fb||(fb=!0,Xe.read(PT),Xe.resolveKeyframes(ST))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:a}=this;for(let o=0;or=>!!(th(r)&&OH.test(r)&&r.startsWith(e)||t&&!CH(r)&&Object.prototype.hasOwnProperty.call(r,t)),$T=(e,t,r)=>n=>{if(!th(n))return n;const[a,o,s,l]=n.match(u_);return{[e]:parseFloat(a),[t]:parseFloat(o),[r]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},OY=e=>So(0,255,e),hg={...Ku,transform:e=>Math.round(OY(e))},Hs={test:b_("rgb","red"),parse:$T("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+hg.transform(e)+", "+hg.transform(t)+", "+hg.transform(r)+", "+rf(tf.transform(n))+")"};function CY(e){let t="",r="",n="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}}const mb={test:b_("#"),parse:CY,transform:Hs.transform},pu={test:b_("hsl","hue"),parse:$T("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+oa.transform(rf(t))+", "+oa.transform(rf(r))+", "+rf(tf.transform(n))+")"},Zt={test:e=>Hs.test(e)||mb.test(e)||pu.test(e),parse:e=>Hs.test(e)?Hs.parse(e):pu.test(e)?pu.parse(e):mb.parse(e),transform:e=>th(e)?e:e.hasOwnProperty("red")?Hs.transform(e):pu.transform(e)};function MY(e){var t,r;return isNaN(e)&&th(e)&&(((t=e.match(u_))===null||t===void 0?void 0:t.length)||0)+(((r=e.match($H))===null||r===void 0?void 0:r.length)||0)>0}const OT="number",CT="color",TY="var",EY="var(",kP="${}",DY=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Rf(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},a=[];let o=0;const l=t.replace(DY,u=>(Zt.test(u)?(n.color.push(o),a.push(CT),r.push(Zt.parse(u))):u.startsWith(EY)?(n.var.push(o),a.push(TY),r.push(u)):(n.number.push(o),a.push(OT),r.push(parseFloat(u))),++o,kP)).split(kP);return{values:r,split:l,indexes:n,types:a}}function MT(e){return Rf(e).values}function TT(e){const{split:t,types:r}=Rf(e),n=t.length;return a=>{let o="";for(let s=0;stypeof e=="number"?0:e;function IY(e){const t=MT(e);return TT(e)(t.map(jY))}const Po={test:MY,parse:MT,createTransformer:TT,getAnimatableNone:IY},AY=new Set(["brightness","contrast","saturate","opacity"]);function FY(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(u_)||[];if(!n)return e;const a=r.replace(n,"");let o=AY.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+a+")"}const RY=/\b([a-z-]*)\(.*?\)/gu,vb={...Po,getAnimatableNone:e=>{const t=e.match(RY);return t?t.map(FY).join(" "):e}},kY={...eT,color:Zt,backgroundColor:Zt,outlineColor:Zt,fill:Zt,stroke:Zt,borderColor:Zt,borderTopColor:Zt,borderRightColor:Zt,borderBottomColor:Zt,borderLeftColor:Zt,filter:vb,WebkitFilter:vb},y_=e=>kY[e];function ET(e,t){let r=y_(e);return r!==vb&&(r=Po),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const NY=new Set(["auto","none","0"]);function LY(e,t,r){let n=0,a;for(;n{r.getValue(u).set(c)}),this.resolveNoneKeyframes()}}function jT(e){let t;return()=>(t===void 0&&(t=e()),t)}const NP=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Po.test(e)||e==="0")&&!e.startsWith("url("));function zY(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r{this.resolveFinishedPromise=t})}}function AT(e,t){return t?e*(1e3/t):0}const BY=5;function FT(e,t,r){const n=Math.max(t-BY,0);return AT(r-e(n),t-n)}const mg=.001,VY=.01,HY=10,YY=.05,UY=1;function GY({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let a,o,s=1-t;s=So(YY,UY,s),e=So(VY,HY,Ua(e)),s<1?(a=c=>{const d=c*s,f=d*e,m=d-r,g=pb(c,s),x=Math.exp(-f);return mg-m/g*x},o=c=>{const f=c*s*e,m=f*r+r,g=Math.pow(s,2)*Math.pow(c,2)*e,x=Math.exp(-f),p=pb(Math.pow(c,2),s);return(-a(c)+mg>0?-1:1)*((m-g)*x)/p}):(a=c=>{const d=Math.exp(-c*e),f=(c-r)*e+1;return-mg+d*f},o=c=>{const d=Math.exp(-c*e),f=(r-c)*(e*e);return d*f});const l=5/e,u=QY(a,o,l);if(e=go(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(u,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}const qY=12;function QY(e,t,r){let n=r;for(let a=1;ae[r]!==void 0)}function ZY(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!LP(e,KY)&&LP(e,XY)){const r=GY(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function RT({keyframes:e,restDelta:t,restSpeed:r,...n}){const a=e[0],o=e[e.length-1],s={done:!1,value:a},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:m}=ZY({...n,velocity:-Ua(n.velocity||0)}),g=f||0,x=u/(2*Math.sqrt(l*c)),p=o-a,$=Ua(Math.sqrt(l/c)),b=Math.abs(p)<5;r||(r=b?.01:2),t||(t=b?.005:.5);let y;if(x<1){const P=pb($,x);y=M=>{const A=Math.exp(-x*$*M);return o-A*((g+x*$*p)/P*Math.sin(P*M)+p*Math.cos(P*M))}}else if(x===1)y=P=>o-Math.exp(-$*P)*(p+(g+$*p)*P);else{const P=$*Math.sqrt(x*x-1);y=M=>{const A=Math.exp(-x*$*M),F=Math.min(P*M,300);return o-A*((g+x*$*p)*Math.sinh(F)+P*p*Math.cosh(F))/P}}return{calculatedDuration:m&&d||null,next:P=>{const M=y(P);if(m)s.done=P>=d;else{let A=g;P!==0&&(x<1?A=FT(y,P,M):A=0);const F=Math.abs(A)<=r,L=Math.abs(o-M)<=t;s.done=F&&L}return s.value=s.done?o:M,s}}}function zP({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:u,restDelta:c=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},g=z=>l!==void 0&&zu,x=z=>l===void 0?u:u===void 0||Math.abs(l-z)-p*Math.exp(-z/n),P=z=>b+y(z),M=z=>{const q=y(z),Q=P(z);m.done=Math.abs(q)<=c,m.value=m.done?b:Q};let A,F;const L=z=>{g(m.value)&&(A=z,F=RT({keyframes:[m.value,x(m.value)],velocity:FT(P,z,m.value),damping:a,stiffness:o,restDelta:c,restSpeed:d}))};return L(0),{calculatedDuration:null,next:z=>{let q=!1;return!F&&A===void 0&&(q=!0,M(z),L(z)),A!==void 0&&z>=A?F.next(z-A):(!q&&M(z),m)}}}const kT=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,JY=1e-7,eU=12;function tU(e,t,r,n,a){let o,s,l=0;do s=t+(r-t)/2,o=kT(s,n,a)-e,o>0?r=s:t=s;while(Math.abs(o)>JY&&++ltU(o,0,1,e,r);return o=>o===0||o===1?o:kT(a(o),t,n)}const rU=nh(.42,0,1,1),nU=nh(0,0,.58,1),NT=nh(.42,0,.58,1),aU=e=>Array.isArray(e)&&typeof e[0]!="number",LT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zT=e=>t=>1-e(1-t),__=e=>1-Math.sin(Math.acos(e)),WT=zT(__),iU=LT(__),BT=nh(.33,1.53,.69,.99),x_=zT(BT),oU=LT(x_),sU=e=>(e*=2)<1?.5*x_(e):.5*(2-Math.pow(2,-10*(e-1))),WP={linear:rr,easeIn:rU,easeInOut:NT,easeOut:nU,circIn:__,circInOut:iU,circOut:WT,backIn:x_,backInOut:oU,backOut:BT,anticipate:sU},BP=e=>{if(Array.isArray(e)){ub(e.length===4);const[t,r,n,a]=e;return nh(t,r,n,a)}else if(typeof e=="string")return ub(WP[e]!==void 0),WP[e];return e},kf=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},dt=(e,t,r)=>e+(t-e)*r;function vg(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function lU({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let a=0,o=0,s=0;if(!t)a=o=s=r;else{const l=r<.5?r*(1+t):r+t-r*t,u=2*r-l;a=vg(u,l,e+1/3),o=vg(u,l,e),s=vg(u,l,e-1/3)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}function x0(e,t){return r=>r>0?t:e}const pg=(e,t,r)=>{const n=e*e,a=r*(t*t-n)+n;return a<0?0:Math.sqrt(a)},uU=[mb,Hs,pu],cU=e=>uU.find(t=>t.test(e));function VP(e){const t=cU(e);if(!t)return!1;let r=t.parse(e);return t===pu&&(r=lU(r)),r}const HP=(e,t)=>{const r=VP(e),n=VP(t);if(!r||!n)return x0(e,t);const a={...r};return o=>(a.red=pg(r.red,n.red,o),a.green=pg(r.green,n.green,o),a.blue=pg(r.blue,n.blue,o),a.alpha=dt(r.alpha,n.alpha,o),Hs.transform(a))},gb=new Set(["none","hidden"]);function dU(e,t){return gb.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function fU(e,t){return r=>dt(e,t,r)}function w_(e){return typeof e=="number"?fU:typeof e=="string"?l_(e)?x0:Zt.test(e)?HP:vU:Array.isArray(e)?VT:typeof e=="object"?Zt.test(e)?HP:hU:x0}function VT(e,t){const r=[...e],n=r.length,a=e.map((o,s)=>w_(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in n)r[o]=n[o](a);return r}}function mU(e,t){var r;const n=[],a={color:0,var:0,number:0};for(let o=0;o{const r=Po.createTransformer(t),n=Rf(e),a=Rf(t);return n.indexes.var.length===a.indexes.var.length&&n.indexes.color.length===a.indexes.color.length&&n.indexes.number.length>=a.indexes.number.length?gb.has(e)&&!a.values.length||gb.has(t)&&!n.values.length?dU(e,t):Ya(VT(mU(n,a),a.values),r):x0(e,t)};function HT(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?dt(e,t,r):w_(e)(e,t)}function pU(e,t,r){const n=[],a=r||HT,o=e.length-1;for(let s=0;st[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=pU(t,n,a),l=s.length,u=c=>{let d=0;if(l>1)for(;du(So(e[0],e[o-1],c)):u}function bU(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const a=kf(0,t,n);e.push(dt(r,1,a))}}function yU(e){const t=[0];return bU(t,e.length-1),t}function _U(e,t){return e.map(r=>r*t)}function xU(e,t){return e.map(()=>t||NT).splice(0,e.length-1)}function w0({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const a=aU(n)?n.map(BP):BP(n),o={done:!1,value:t[0]},s=_U(r&&r.length===t.length?r:yU(t),e),l=gU(s,t,{ease:Array.isArray(a)?a:xU(t,a)});return{calculatedDuration:e,next:u=>(o.value=l(u),o.done=u>=e,o)}}const YP=2e4;function wU(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=YP?1/0:t}const SU=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Xe.update(t,!0),stop:()=>ei(t),now:()=>Vt.isProcessing?Vt.timestamp:bo.now()}},PU={decay:zP,inertia:zP,tween:w0,keyframes:w0,spring:RT},$U=e=>e/100;class S_ extends IT{constructor({KeyframeResolver:t=g_,...r}){super(r),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:a,keyframes:o}=this.options,s=(l,u)=>this.onKeyframesResolved(l,u);n&&a&&a.owner?this.resolver=a.owner.resolveKeyframes(o,s,n,a):this.resolver=new t(o,s,n,a),this.resolver.scheduleResolve()}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:o,velocity:s=0}=this.options,l=PU[r]||w0;let u,c;l!==w0&&typeof t[0]!="number"&&(u=Ya($U,HT(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});o==="mirror"&&(c=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=wU(d));const{calculatedDuration:f}=d,m=f+a,g=m*(n+1)-a;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:u,calculatedDuration:f,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:z}=this.options;return{done:!0,value:z[z.length-1]}}const{finalKeyframe:a,generator:o,mirroredGenerator:s,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:c,totalDuration:d,resolvedDuration:f}=n;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:x,repeatDelay:p,onUpdate:$}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let P=this.currentTime,M=o;if(g){const z=Math.min(this.currentTime,d)/f;let q=Math.floor(z),Q=z%1;!Q&&z>=1&&(Q=1),Q===1&&q--,q=Math.min(q,g+1),!!(q%2)&&(x==="reverse"?(Q=1-Q,p&&(Q-=p/f)):x==="mirror"&&(M=s)),P=So(0,1,Q)*f}const A=y?{done:!1,value:u[0]}:M.next(P);l&&(A.value=l(A.value));let{done:F}=A;!y&&c!==null&&(F=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return L&&a!==void 0&&(A.value=Sv(u,this.options,a)),$&&$(A.value),L&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Ua(t.calculatedDuration):0}get time(){return Ua(this.currentTime)}set time(t){t=go(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Ua(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=SU,onPlay:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),r&&r();const n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=n),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const YT=e=>Array.isArray(e)&&typeof e[0]=="number";function UT(e){return!!(!e||typeof e=="string"&&e in P_||YT(e)||Array.isArray(e)&&e.every(UT))}const Nd=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,P_={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nd([0,.65,.55,1]),circOut:Nd([.55,0,1,.45]),backIn:Nd([.31,.01,.66,-.59]),backOut:Nd([.33,1.53,.69,.99])};function OU(e){return GT(e)||P_.easeOut}function GT(e){if(e)return YT(e)?Nd(e):Array.isArray(e)?e.map(OU):P_[e]}function CU(e,t,r,{delay:n=0,duration:a=300,repeat:o=0,repeatType:s="loop",ease:l,times:u}={}){const c={[t]:r};u&&(c.offset=u);const d=GT(l);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:n,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const MU=jT(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),S0=10,TU=2e4;function EU(e){return e.type==="spring"||!UT(e.ease)}function DU(e,t){const r=new S_({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const a=[];let o=0;for(;!n.done&&othis.onKeyframesResolved(o,s),r,n),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:a=300,times:o,ease:s,type:l,motionValue:u,name:c}=this.options;if(!(!((n=u.owner)===null||n===void 0)&&n.current))return!1;if(EU(this.options)){const{onComplete:f,onUpdate:m,motionValue:g,...x}=this.options,p=DU(t,x);t=p.keyframes,t.length===1&&(t[1]=t[0]),a=p.duration,o=p.times,s=p.ease,l="keyframes"}const d=CU(u.owner.current,c,t,{...this.options,duration:a,times:o,ease:s});return d.startTime=bo.now(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(Sv(t,this.options,r)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:a,times:o,type:l,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:r}=t;return Ua(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return Ua(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=go(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:r}=t;return r.playbackRate}set speed(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:r}=t;return r.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return rr;const{animation:n}=r;n.timeline=t,n.onfinish=null}return rr}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:a,type:o,ease:s,times:l}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:f,...m}=this.options,g=new S_({...m,keyframes:n,duration:a,type:o,ease:s,times:l,isGenerator:!0}),x=go(this.time);c.setWithVelocity(g.sample(x-S0).value,g.sample(x).value,S0)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:a,repeatType:o,damping:s,type:l}=t;return MU()&&n&&uT.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!a&&o!=="mirror"&&s!==0&&l!=="inertia"}}function jU(e,t){let r;const n=()=>{const{currentTime:a}=t,s=(a===null?0:a.value)/100;r!==s&&e(s),r=s};return Xe.update(n,!0),()=>ei(n)}const IU=jT(()=>window.ScrollTimeline!==void 0);class AU{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,r){return Promise.all(this.animations).then(t).catch(r)}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n{if(IU()&&n.attachTimeline)n.attachTimeline(t);else return n.pause(),jU(a=>{n.time=n.duration*a},t)});return()=>{r.forEach((n,a)=>{n&&n(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let r=0;rr[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const $_=(e,t,r,n={},a,o,s)=>l=>{const u=p_(n,e)||{},c=u.delay||n.delay||0;let{elapsed:d=0}=n;d=d-go(c);let f={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{l(),u.onComplete&&u.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:o?void 0:a};mY(u)||(f={...f,...hY(e,f)}),f.duration&&(f.duration=go(f.duration)),f.repeatDelay&&(f.repeatDelay=go(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let m=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(m=!0)),m&&!o&&t.get()!==void 0){const g=Sv(f.keyframes,u);if(g!==void 0)return Xe.update(()=>{f.onUpdate(g),f.onComplete()}),new AU([])}return!o&&UP.supports(f)?new UP(f):new S_(f)};class O_{constructor(){this.subscriptions=[]}add(t){return yv(this.subscriptions,t),()=>_v(this.subscriptions,t)}notify(t,r,n){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,r,n);else for(let o=0;o!isNaN(parseFloat(e));class qT{constructor(t,r={}){this.version="11.3.8",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,a=!0)=>{const o=bo.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=bo.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=FU(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new O_);const n=this.events[t].add(r);return t==="change"?()=>{n(),Xe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=bo.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>GP)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,GP);return AT(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Nf(e,t){return new qT(e,t)}function RU(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Nf(r))}function kU(e,t){const r=wv(e,t);let{transitionEnd:n={},transition:a={},...o}=r||{};o={...o,...n};for(const s in o){const l=VH(o[s]);RU(e,s,l)}}function QT(e){return e.getProps()[UM]}class NU extends qT{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const r=cT(t);if(!r)return;const n=this.counts.get(r)||0;this.counts.set(r,n+1),n===0&&(this.output.push(r),this.update());let a=!1;return()=>{if(a)return;a=!0;const o=this.counts.get(r)-1;this.counts.set(r,o),o===0&&(_v(this.output,r),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function LU(e){return!!(er(e)&&e.add)}function bb(e,t){var r;if(!e.applyWillChange)return;let n=e.getValue("willChange");if(!n&&!(!((r=e.props.style)===null||r===void 0)&&r.willChange)&&(n=new NU("auto"),e.addValue("willChange",n)),LU(n))return n.add(t)}function zU({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function XT(e,t,{delay:r=0,transitionOverride:n,type:a}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;n&&(s=n);const c=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const f in u){const m=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),g=u[f];if(g===void 0||d&&zU(d,f))continue;const x={delay:r,elapsed:0,...p_(s||{},f)};let p=!1;if(window.HandoffAppearAnimations){const b=QT(e);if(b){const y=window.HandoffAppearAnimations(b,f,m,Xe);y!==null&&(x.elapsed=y,p=!0)}}m.start($_(f,m,g,e.shouldReduceMotion&&To.has(f)?{type:!1}:x,e,p,bb(e,f)));const $=m.animation;$&&c.push($)}return l&&Promise.all(c).then(()=>{Xe.update(()=>{l&&kU(e,l)})}),c}function yb(e,t,r={}){var n;const a=wv(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(o=r.transitionOverride);const s=a?()=>Promise.all(XT(e,a,r)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:m}=o;return WU(e,t,d+c,f,m,r)}:()=>Promise.resolve(),{when:u}=o;if(u){const[c,d]=u==="beforeChildren"?[s,l]:[l,s];return c().then(()=>d())}else return Promise.all([s(),l(r.delay)])}function WU(e,t,r=0,n=0,a=1,o){const s=[],l=(e.variantChildren.size-1)*n,u=a===1?(c=0)=>c*n:(c=0)=>l-c*n;return Array.from(e.variantChildren).sort(BU).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(yb(c,t,{...o,delay:r+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function BU(e,t){return e.sortNodePosition(t)}function VU(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const a=t.map(o=>yb(e,o,r));n=Promise.all(a)}else if(typeof t=="string")n=yb(e,t,r);else{const a=typeof t=="function"?wv(e,t,r.custom):t;n=Promise.all(XT(e,a,r))}return n.then(()=>{Xe.postRender(()=>{e.notify("AnimationComplete",t)})})}const HU=[...a_].reverse(),YU=a_.length;function UU(e){return t=>Promise.all(t.map(({animation:r,options:n})=>VU(e,r,n)))}function GU(e){let t=UU(e),r=qP(),n=!0;const a=u=>(c,d)=>{var f;const m=wv(e,d,u==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(m){const{transition:g,transitionEnd:x,...p}=m;c={...c,...p,...x}}return c};function o(u){t=u(e)}function s(u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],m=new Set;let g={},x=1/0;for(let $=0;$x&&M,q=!1;const Q=Array.isArray(P)?P:[P];let ve=Q.reduce(a(b),{});A===!1&&(ve={});const{prevResolvedValues:Me={}}=y,tt={...Me,...ve},et=Ce=>{z=!0,m.has(Ce)&&(q=!0,m.delete(Ce)),y.needsAnimating[Ce]=!0;const Ne=e.getValue(Ce);Ne&&(Ne.liveStyle=!1)};for(const Ce in tt){const Ne=ve[Ce],Se=Me[Ce];if(g.hasOwnProperty(Ce))continue;let H=!1;cb(Ne)&&cb(Se)?H=!gT(Ne,Se):H=Ne!==Se,H?Ne!=null?et(Ce):m.add(Ce):Ne!==void 0&&m.has(Ce)?et(Ce):y.protectedKeys[Ce]=!0}y.prevProp=P,y.prevResolvedValues=ve,y.isActive&&(g={...g,...ve}),n&&e.blockInitialAnimation&&(z=!1),z&&(!F||q)&&f.push(...Q.map(Ce=>({animation:Ce,options:{type:b}})))}if(m.size){const $={};m.forEach(b=>{const y=e.getBaseTarget(b),P=e.getValue(b);P&&(P.liveStyle=!0),$[b]=y??null}),f.push({animation:$})}let p=!!f.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(f):Promise.resolve()}function l(u,c){var d;if(r[u].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(u,c)}),r[u].isActive=c;const f=s(u);for(const m in r)r[m].protectedKeys={};return f}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>r,reset:()=>{r=qP(),n=!0}}}function qU(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gT(t,e):!1}function Ts(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qP(){return{animate:Ts(!0),whileInView:Ts(),whileHover:Ts(),whileTap:Ts(),whileDrag:Ts(),whileFocus:Ts(),exit:Ts()}}class QU extends Eo{constructor(t){super(t),t.animationState||(t.animationState=GU(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ff(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let XU=0;class KU extends Eo{constructor(){super(...arguments),this.id=XU++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const a=this.node.animationState.setActive("exit",!t);r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const ZU={animation:{Feature:QU},exit:{Feature:KU}},QP=(e,t)=>Math.abs(e-t);function JU(e,t){const r=QP(e.x,t.x),n=QP(e.y,t.y);return Math.sqrt(r**2+n**2)}class KT{constructor(t,r,{transformPagePoint:n,contextWindow:a,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=bg(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=JU(f.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:x}=f,{timestamp:p}=Vt;this.history.push({...x,timestamp:p});const{onStart:$,onMove:b}=this.handlers;m||($&&$(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=gg(m,this.transformPagePoint),Xe.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const $=bg(f.type==="pointercancel"?this.lastMoveEventInfo:gg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,$),x&&x(f,$)},!fT(t))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=n,this.contextWindow=a||window;const s=xv(t),l=gg(s,this.transformPagePoint),{point:u}=l,{timestamp:c}=Vt;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=r;d&&d(t,bg(l,this.history)),this.removeListeners=Ya(Ha(this.contextWindow,"pointermove",this.handlePointerMove),Ha(this.contextWindow,"pointerup",this.handlePointerUp),Ha(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ei(this.updatePoint)}}function gg(e,t){return t?{point:t(e.point)}:e}function XP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bg({point:e},t){return{point:e,delta:XP(e,ZT(t)),offset:XP(e,eG(t)),velocity:tG(t,.1)}}function eG(e){return e[0]}function ZT(e){return e[e.length-1]}function tG(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const a=ZT(e);for(;r>=0&&(n=e[r],!(a.timestamp-n.timestamp>go(t)));)r--;if(!n)return{x:0,y:0};const o=Ua(a.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const s={x:(a.x-n.x)/o,y:(a.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const JT=1e-4,rG=1-JT,nG=1+JT,eE=.01,aG=0-eE,iG=0+eE;function Wr(e){return e.max-e.min}function oG(e,t,r){return Math.abs(e-t)<=r}function KP(e,t,r,n=.5){e.origin=n,e.originPoint=dt(t.min,t.max,e.origin),e.scale=Wr(r)/Wr(t),e.translate=dt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=rG&&e.scale<=nG||isNaN(e.scale))&&(e.scale=1),(e.translate>=aG&&e.translate<=iG||isNaN(e.translate))&&(e.translate=0)}function nf(e,t,r,n){KP(e.x,t.x,r.x,n?n.originX:void 0),KP(e.y,t.y,r.y,n?n.originY:void 0)}function ZP(e,t,r){e.min=r.min+t.min,e.max=e.min+Wr(t)}function sG(e,t,r){ZP(e.x,t.x,r.x),ZP(e.y,t.y,r.y)}function JP(e,t,r){e.min=t.min-r.min,e.max=e.min+Wr(t)}function af(e,t,r){JP(e.x,t.x,r.x),JP(e.y,t.y,r.y)}function lG(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?dt(r,e,n.max):Math.min(e,r)),e}function e$(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function uG(e,{top:t,left:r,bottom:n,right:a}){return{x:e$(e.x,r,a),y:e$(e.y,t,n)}}function t$(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=kf(t.min,t.max-n,e.min):n>a&&(r=kf(e.min,e.max-a,t.min)),So(0,1,r)}function fG(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const _b=.35;function hG(e=_b){return e===!1?e=0:e===!0&&(e=_b),{x:r$(e,"left","right"),y:r$(e,"top","bottom")}}function r$(e,t,r){return{min:n$(e,t),max:n$(e,r)}}function n$(e,t){return typeof e=="number"?e:e[t]||0}const a$=()=>({translate:0,scale:1,origin:0,originPoint:0}),gu=()=>({x:a$(),y:a$()}),i$=()=>({min:0,max:0}),bt=()=>({x:i$(),y:i$()});function Jr(e){return[e("x"),e("y")]}function tE({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function mG({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function vG(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function yg(e){return e===void 0||e===1}function xb({scale:e,scaleX:t,scaleY:r}){return!yg(e)||!yg(t)||!yg(r)}function As(e){return xb(e)||rE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rE(e){return o$(e.x)||o$(e.y)}function o$(e){return e&&e!=="0%"}function P0(e,t,r){const n=e-r,a=t*n;return r+a}function s$(e,t,r,n,a){return a!==void 0&&(e=P0(e,a,n)),P0(e,r,n)+t}function wb(e,t=0,r=1,n,a){e.min=s$(e.min,t,r,n,a),e.max=s$(e.max,t,r,n,a)}function nE(e,{x:t,y:r}){wb(e.x,t.translate,t.scale,t.originPoint),wb(e.y,r.translate,r.scale,r.originPoint)}const l$=.999999999999,u$=1.0000000000001;function pG(e,t,r,n=!1){const a=r.length;if(!a)return;t.x=t.y=1;let o,s;for(let l=0;ll$&&(t.x=1),t.yl$&&(t.y=1)}function Ji(e,t){e.min=e.min+t,e.max=e.max+t}function c$(e,t,r,n,a=.5){const o=dt(e.min,e.max,a);wb(e,t,r,o,n)}function bu(e,t){c$(e.x,t.x,t.scaleX,t.scale,t.originX),c$(e.y,t.y,t.scaleY,t.scale,t.originY)}function aE(e,t){return tE(vG(e.getBoundingClientRect(),t))}function gG(e,t,r){const n=aE(e,r),{scroll:a}=t;return a&&(Ji(n.x,a.offset.x),Ji(n.y,a.offset.y)),n}const iE=({current:e})=>e?e.ownerDocument.defaultView:null,bG=new WeakMap;class yG{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=bt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(xv(d,"page").point)},o=(d,f)=>{var m;const{drag:g,dragPropagation:x,onDragStart:p}=this.getProps();if(g&&!x&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=mT(g),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Jr(b=>{let y=this.getAxisMotionValue(b).get()||0;if(oa.test(y)){const{projection:P}=this.visualElement;if(P&&P.layout){const M=P.layout.layoutBox[b];M&&(y=Wr(M)*(parseFloat(y)/100))}}this.originPoint[b]=y}),p&&Xe.postRender(()=>p(d,f)),(m=this.removeWillChange)===null||m===void 0||m.call(this),this.removeWillChange=bb(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:x,onDrag:p}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:$}=f;if(g&&this.currentDirection===null){this.currentDirection=_G($),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,$),this.updateAxis("y",f.point,$),this.visualElement.render(),p&&p(d,f)},l=(d,f)=>this.stop(d,f),u=()=>Jr(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new KT(t,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:iE(this.visualElement)})}stop(t,r){var n;(n=this.removeWillChange)===null||n===void 0||n.call(this);const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&Xe.postRender(()=>s(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:a}=this.getProps();if(!n||!Xh(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=lG(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;r&&vu(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=uG(a.layoutBox,r):this.constraints=!1,this.elastic=hG(n),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Jr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=fG(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!vu(t))return!1;const n=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const o=gG(n,a.root,this.visualElement.getTransformPagePoint());let s=cG(a.layout.layoutBox,o);if(r){const l=r(mG(s));this.hasMutatedConstraints=!!l,l&&(s=tE(l))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:a,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},c=Jr(d=>{if(!Xh(d,r,this.currentDirection))return;let f=u&&u[d]||{};s&&(f={min:0,max:0});const m=a?200:1e6,g=a?40:1e7,x={type:"inertia",velocity:n?t[d]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(c).then(l)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start($_(t,n,0,r,this.visualElement,!1,bb(this.visualElement,t)))}stopAnimation(){Jr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Jr(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),a=n[r];return a||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Jr(r=>{const{drag:n}=this.getProps();if(!Xh(r,n,this.currentDirection))return;const{projection:a}=this.visualElement,o=this.getAxisMotionValue(r);if(a&&a.layout){const{min:s,max:l}=a.layout.layoutBox[r];o.set(t[r]-dt(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!vu(r)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Jr(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const u=l.get();a[s]=dG({min:u,max:u},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Jr(s=>{if(!Xh(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:c}=this.constraints[s];l.set(dt(u,c,a[s]))})}addListeners(){if(!this.visualElement.current)return;bG.set(this.visualElement,this);const t=this.visualElement.current,r=Ha(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();vu(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,o=a.addEventListener("measure",n);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Xe.read(n);const s=za(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Jr(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{s(),r(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:s=_b,dragMomentum:l=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Xh(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function _G(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class xG extends Eo{constructor(t){super(t),this.removeGroupControls=rr,this.removeListeners=rr,this.controls=new yG(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||rr}unmount(){this.removeGroupControls(),this.removeListeners()}}const d$=e=>(t,r)=>{e&&Xe.postRender(()=>e(t,r))};class wG extends Eo{constructor(){super(...arguments),this.removePointerDownListener=rr}onPointerDown(t){this.session=new KT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:d$(t),onStart:d$(r),onMove:n,onEnd:(o,s)=>{delete this.session,a&&Xe.postRender(()=>a(o,s))}}}mount(){this.removePointerDownListener=Ha(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function oE(){const e=S.useContext(Jf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,a=S.useId();return S.useEffect(()=>n(a),[]),!t&&r?[!1,()=>r&&r(a)]:[!0]}function SG(){return PG(S.useContext(Jf))}function PG(e){return e===null?!0:e.isPresent}const Nm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function f$(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;const r=f$(e,t.target.x),n=f$(e,t.target.y);return`${r}% ${n}%`}},$G={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,a=Po.parse(e);if(a.length>5)return n;const o=Po.createTransformer(e),s=typeof a[0]!="number"?1:0,l=r.x.scale*t.x,u=r.y.scale*t.y;a[0+s]/=l,a[1+s]/=u;const c=dt(l,u,.5);return typeof a[2+s]=="number"&&(a[2+s]/=c),typeof a[3+s]=="number"&&(a[3+s]/=c),o(a)}};class OG extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:o}=t;bH(CG),o&&(r.group&&r.group.add(o),n&&n.register&&a&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Nm.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:a,isPresent:o}=this.props,s=n.projection;return s&&(s.isPresent=o,a||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Xe.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),n_.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),n&&n.deregister&&n.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sE(e){const[t,r]=oE(),n=S.useContext(o_);return w.jsx(OG,{...e,layoutGroup:n,switchLayoutGroup:S.useContext(qM),isPresent:t,safeToRemove:r})}const CG={borderRadius:{...fd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fd,borderTopRightRadius:fd,borderBottomLeftRadius:fd,borderBottomRightRadius:fd,boxShadow:$G},lE=["TopLeft","TopRight","BottomLeft","BottomRight"],MG=lE.length,h$=e=>typeof e=="string"?parseFloat(e):e,m$=e=>typeof e=="number"||de.test(e);function TG(e,t,r,n,a,o){a?(e.opacity=dt(0,r.opacity!==void 0?r.opacity:1,EG(n)),e.opacityExit=dt(t.opacity!==void 0?t.opacity:1,0,DG(n))):o&&(e.opacity=dt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;snt?1:r(kf(e,t,n))}function p$(e,t){e.min=t.min,e.max=t.max}function Kr(e,t){p$(e.x,t.x),p$(e.y,t.y)}function g$(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function b$(e,t,r,n,a){return e-=t,e=P0(e,1/r,n),a!==void 0&&(e=P0(e,1/a,n)),e}function jG(e,t=0,r=1,n=.5,a,o=e,s=e){if(oa.test(t)&&(t=parseFloat(t),t=dt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=dt(o.min,o.max,n);e===o&&(l-=t),e.min=b$(e.min,t,r,l,a),e.max=b$(e.max,t,r,l,a)}function y$(e,t,[r,n,a],o,s){jG(e,t[r],t[n],t[a],t.scale,o,s)}const IG=["x","scaleX","originX"],AG=["y","scaleY","originY"];function _$(e,t,r,n){y$(e.x,t,IG,r?r.x:void 0,n?n.x:void 0),y$(e.y,t,AG,r?r.y:void 0,n?n.y:void 0)}function x$(e){return e.translate===0&&e.scale===1}function cE(e){return x$(e.x)&&x$(e.y)}function FG(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function dE(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function w$(e){return Wr(e.x)/Wr(e.y)}function S$(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class RG{constructor(){this.members=[]}add(t){yv(this.members,t),t.scheduleRender()}remove(t){if(_v(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(a=>t===a);if(r===0)return!1;let n;for(let a=r;a>=0;a--){const o=this.members[a];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function kG(e,t,r){let n="";const a=e.x.translate/t.x,o=e.y.translate/t.y,s=(r==null?void 0:r.z)||0;if((a||o||s)&&(n=`translate3d(${a}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:c,rotate:d,rotateX:f,rotateY:m,skewX:g,skewY:x}=r;c&&(n=`perspective(${c}px) ${n}`),d&&(n+=`rotate(${d}deg) `),f&&(n+=`rotateX(${f}deg) `),m&&(n+=`rotateY(${m}deg) `),g&&(n+=`skewX(${g}deg) `),x&&(n+=`skewY(${x}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(n+=`scale(${l}, ${u})`),n||"none"}const NG=(e,t)=>e.depth-t.depth;class LG{constructor(){this.children=[],this.isDirty=!1}add(t){yv(this.children,t),this.isDirty=!0}remove(t){_v(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(NG),this.isDirty=!1,this.children.forEach(t)}}function zG(e,t){const r=bo.now(),n=({timestamp:a})=>{const o=a-r;o>=t&&(ei(n),e(o-t))};return Xe.read(n,!0),()=>ei(n)}function WG(e){return e instanceof SVGElement&&e.tagName!=="svg"}function BG(e,t,r){const n=er(e)?e:Nf(e);return n.start($_("",n,t,r)),n.animation}const Fs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},_g=["","X","Y","Z"],VG={visibility:"hidden"},P$=1e3;let HG=0;function xg(e,t,r,n){const{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),n&&(n[e]=0))}function fE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?QT(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?fE(e.parent):!1:!1}function hE({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(s={},l=t==null?void 0:t()){this.id=HG++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,window.MotionDebug&&(Fs.totalNodes=Fs.resolvedTargetDeltas=Fs.recalculatedProjection=0),this.nodes.forEach(GG),this.nodes.forEach(ZG),this.nodes.forEach(JG),this.nodes.forEach(qG),window.MotionDebug&&window.MotionDebug.record(Fs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=zG(m,250),Nm.hasAnimatedSinceResize&&(Nm.hasAnimatedSinceResize=!1,this.nodes.forEach(O$))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||d.getDefaultTransition()||aq,{onLayoutAnimationStart:$,onLayoutAnimationComplete:b}=d.getProps(),y=!this.targetLayout||!dE(this.targetLayout,x)||g,P=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,P);const M={...p_(p,"layout"),onPlay:$,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M)}else m||O$(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ei(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(eq),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&fE(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const A=M/1e3;C$(f.x,s.x,A),C$(f.y,s.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(af(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rq(this.relativeTarget,this.relativeTargetOrigin,m,A),P&&FG(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=bt()),Kr(P,this.relativeTarget)),p&&(this.animationValues=d,TG(d,c,this.latestValues,A,y,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ei(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{Nm.hasAnimatedSinceResize=!0,this.currentAnimation=BG(0,P$,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(P$),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:u,layout:c,latestValues:d}=s;if(!(!l||!u||!c)){if(this!==s&&this.layout&&c&&mE(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||bt();const f=Wr(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+f;const m=Wr(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}Kr(l,u),bu(l,d),nf(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new RG),this.sharedNodes.get(s).add(l);const c=l.options.initialPromotionConfig;l.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const c={};u.z&&xg("z",s,c,this.animationValues);for(let d=0;d<_g.length;d++)xg(`rotate${_g[d]}`,s,c,this.animationValues),xg(`skew${_g[d]}`,s,c,this.animationValues);s.render();for(const d in c)s.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);s.scheduleRender()}getProjectionStyles(s){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return VG;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Rm(s==null?void 0:s.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Rm(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!As(this.latestValues)&&(p.transform=d?d({},""):"none",this.hasProjected=!1),p}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=kG(this.projectionDeltaWithTransform,this.treeScale,m),d&&(c.transform=d(m,c.transform));const{x:g,y:x}=this.projectionDelta;c.transformOrigin=`${g.origin*100}% ${x.origin*100}% 0`,f.animationValues?c.opacity=f===this?(u=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:c.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const p in y0){if(m[p]===void 0)continue;const{correct:$,applyTo:b}=y0[p],y=c.transform==="none"?m[p]:$(m[p],f);if(b){const P=b.length;for(let M=0;M{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach($$),this.root.sharedNodes.clear()}}}function YG(e){e.updateLayout()}function UG(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:a}=e.layout,{animationType:o}=e.options,s=r.source!==e.layout.source;o==="size"?Jr(f=>{const m=s?r.measuredBox[f]:r.layoutBox[f],g=Wr(m);m.min=n[f].min,m.max=m.min+g}):mE(o,r.layoutBox,n)&&Jr(f=>{const m=s?r.measuredBox[f]:r.layoutBox[f],g=Wr(n[f]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=gu();nf(l,n,r.layoutBox);const u=gu();s?nf(u,e.applyTransform(a,!0),r.measuredBox):nf(u,n,r.layoutBox);const c=!cE(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:g}=f;if(m&&g){const x=bt();af(x,r.layoutBox,m.layoutBox);const p=bt();af(p,n,g.layoutBox),dE(x,p)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:l,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function GG(e){window.MotionDebug&&Fs.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function qG(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function QG(e){e.clearSnapshot()}function $$(e){e.clearMeasurements()}function XG(e){e.isLayoutDirty=!1}function KG(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function O$(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ZG(e){e.resolveTargetDelta()}function JG(e){e.calcProjection()}function eq(e){e.resetSkewAndRotation()}function tq(e){e.removeLeadSnapshot()}function C$(e,t,r){e.translate=dt(t.translate,0,r),e.scale=dt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function M$(e,t,r,n){e.min=dt(t.min,r.min,n),e.max=dt(t.max,r.max,n)}function rq(e,t,r,n){M$(e.x,t.x,r.x,n),M$(e.y,t.y,r.y,n)}function nq(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const aq={duration:.45,ease:[.4,0,.1,1]},T$=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),E$=T$("applewebkit/")&&!T$("chrome/")?Math.round:rr;function D$(e){e.min=E$(e.min),e.max=E$(e.max)}function iq(e){D$(e.x),D$(e.y)}function mE(e,t,r){return e==="position"||e==="preserve-aspect"&&!oG(w$(t),w$(r),.2)}const oq=hE({attachResizeListener:(e,t)=>za(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wg={current:void 0},vE=hE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wg.current){const e=new oq({});e.mount(window),e.setOptions({layoutScroll:!0}),wg.current=e}return wg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sq={pan:{Feature:wG},drag:{Feature:xG,ProjectionNode:vE,MeasureLayout:sE}},Sb={current:null},pE={current:!1};function lq(){if(pE.current=!0,!!t_)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Sb.current=e.matches;e.addListener(t),t()}else Sb.current=!1}function uq(e,t,r){for(const n in t){const a=t[n],o=r[n];if(er(a))e.addValue(n,a);else if(er(o))e.addValue(n,Nf(a,{owner:e}));else if(o!==a)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(n);e.addValue(n,Nf(s!==void 0?s:a,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const j$=new WeakMap,cq=[...wT,Zt,Po],dq=e=>cq.find(xT(e)),I$=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],fq=i_.length;class hq{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:a,blockInitialAnimation:o,visualState:s},l={}){this.applyWillChange=!1,this.resolveKeyframes=(m,g,x,p)=>new this.KeyframeResolver(m,g,x,p,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=g_,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,Xe.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=bv(r),this.isVariantNode=XM(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(r,{},this);for(const m in f){const g=f[m];u[m]!==void 0&&er(g)&&g.set(u[m],!1)}}mount(t){this.current=t,j$.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),pE.current||lq(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Sb.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){j$.delete(this.current),this.projection&&this.projection.unmount(),ei(this.notifyUpdate),ei(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){const n=To.has(t),a=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Xe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{a(),o(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hu){const r=Hu[t];if(!r)continue;const{isEnabled:n,Feature:a}=r;if(!this.features[t]&&a&&n(this.props)&&(this.features[t]=new a(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Nf(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(yT(a)||bT(a))?a=parseFloat(a):!dq(a)&&Po.test(r)&&(a=ET(t,r)),this.setBaseTarget(t,er(a)?a.get():a)),er(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props;let a;if(typeof n=="string"||typeof n=="object"){const s=v_(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);s&&(a=s[t])}if(n&&a!==void 0)return a;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!er(o)?o:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new O_),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class gE extends hq{constructor(){super(...arguments),this.KeyframeResolver=DT}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}}function mq(e){return window.getComputedStyle(e)}class vq extends gE{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=aT}readValueFromInstance(t,r){if(To.has(r)){const n=y_(r);return n&&n.default||0}else{const n=mq(t),a=(JM(r)?n.getPropertyValue(r):n[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return aE(t,r)}build(t,r,n){c_(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return m_(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;er(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class pq extends gE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(To.has(r)){const n=y_(r);return n&&n.default||0}return r=iT.has(r)?r:gv(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return sT(t,r,n)}build(t,r,n){f_(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,a){oT(t,r,n,a)}mount(t){this.isSVGTag=h_(t.tagName),super.mount(t)}}const gq=(e,t)=>s_(e)?new pq(t):new vq(t,{allowProjection:e!==S.Fragment}),bq={layout:{ProjectionNode:vE,MeasureLayout:sE}},yq={...ZU,...lY,...sq,...bq},ni=pH((e,t)=>QH(e,t,yq,gq));function bE(){const e=S.useRef(!1);return r_(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function _q(){const e=bE(),[t,r]=S.useState(0),n=S.useCallback(()=>{e.current&&r(t+1)},[t]);return[S.useCallback(()=>Xe.postRender(n),[n]),t]}class xq extends S.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function wq({children:e,isPresent:t}){const r=S.useId(),n=S.useRef(null),a=S.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=S.useContext(e_);return S.useInsertionEffect(()=>{const{width:s,height:l,top:u,left:c}=a.current;if(t||!n.current||!s||!l)return;n.current.dataset.motionPopId=r;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` + )`;return{...!n&&a&&o,...n?{bgImage:l}:{bgColor:s}}},ML={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},TL=e=>({bg:le("gray.100","whiteAlpha.300")(e)}),EL=e=>({transitionProperty:"common",transitionDuration:"slow",...CL(e)}),DL=kd(e=>({label:ML,filledTrack:EL(e),track:TL(e)})),jL={xs:kd({track:{h:"1"}}),sm:kd({track:{h:"2"}}),md:kd({track:{h:"3"}}),lg:kd({track:{h:"4"}})},IL=OL({sizes:jL,baseStyle:DL,defaultProps:{size:"md",colorScheme:"blue"}}),AL=e=>typeof e=="function";function dr(e,...t){return AL(e)?e(...t):e}var{definePartsStyle:jm,defineMultiStyleConfig:FL}=at(C7.keys),Zd=ue("checkbox-size"),RL=e=>{const{colorScheme:t}=e;return{w:Zd.reference,h:Zd.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:le(`${t}.500`,`${t}.200`)(e),borderColor:le(`${t}.500`,`${t}.200`)(e),color:le("white","gray.900")(e),_hover:{bg:le(`${t}.600`,`${t}.300`)(e),borderColor:le(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:le("gray.200","transparent")(e),bg:le("gray.200","whiteAlpha.300")(e),color:le("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:le(`${t}.500`,`${t}.200`)(e),borderColor:le(`${t}.500`,`${t}.200`)(e),color:le("white","gray.900")(e)},_disabled:{bg:le("gray.100","whiteAlpha.100")(e),borderColor:le("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:le("red.500","red.300")(e)}}},kL={_disabled:{cursor:"not-allowed"}},NL={userSelect:"none",_disabled:{opacity:.4}},LL={transitionProperty:"transform",transitionDuration:"normal"},zL=jm(e=>({icon:LL,container:kL,control:dr(RL,e),label:NL})),WL={sm:jm({control:{[Zd.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:jm({control:{[Zd.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:jm({control:{[Zd.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},p0=FL({baseStyle:zL,sizes:WL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:BL,definePartsStyle:Im}=at(L7.keys),VL=e=>{var t;const r=(t=dr(p0.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},HL=Im(e=>{var t,r,n,a;return{label:(r=(t=p0).baseStyle)==null?void 0:r.call(t,e).label,container:(a=(n=p0).baseStyle)==null?void 0:a.call(n,e).container,control:VL(e)}}),YL={md:Im({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Im({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Im({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},UL=BL({baseStyle:HL,sizes:YL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:GL,definePartsStyle:qL}=at(z7.keys),Hh=ue("select-bg"),aP,QL={...(aP=He.baseStyle)==null?void 0:aP.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Hh.reference,[Hh.variable]:"colors.white",_dark:{[Hh.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Hh.reference}},XL={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},KL=qL({field:QL,icon:XL}),Yh={paddingInlineEnd:"8"},iP,oP,sP,lP,uP,cP,dP,fP,ZL={lg:{...(iP=He.sizes)==null?void 0:iP.lg,field:{...(oP=He.sizes)==null?void 0:oP.lg.field,...Yh}},md:{...(sP=He.sizes)==null?void 0:sP.md,field:{...(lP=He.sizes)==null?void 0:lP.md.field,...Yh}},sm:{...(uP=He.sizes)==null?void 0:uP.sm,field:{...(cP=He.sizes)==null?void 0:cP.sm.field,...Yh}},xs:{...(dP=He.sizes)==null?void 0:dP.xs,field:{...(fP=He.sizes)==null?void 0:fP.xs.field,...Yh},icon:{insetEnd:"1"}}},JL=GL({baseStyle:KL,sizes:ZL,variants:He.variants,defaultProps:He.defaultProps}),Xp=ue("skeleton-start-color"),Kp=ue("skeleton-end-color"),ez={[Xp.variable]:"colors.gray.100",[Kp.variable]:"colors.gray.400",_dark:{[Xp.variable]:"colors.gray.800",[Kp.variable]:"colors.gray.600"},background:Xp.reference,borderColor:Kp.reference,opacity:.7,borderRadius:"sm"},tz={baseStyle:ez},Zp=ue("skip-link-bg"),rz={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Zp.variable]:"colors.white",_dark:{[Zp.variable]:"colors.gray.700"},bg:Zp.reference}},nz={baseStyle:rz},{defineMultiStyleConfig:az,definePartsStyle:vv}=at(W7.keys),Df=ue("slider-thumb-size"),jf=ue("slider-track-size"),ro=ue("slider-bg"),iz=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Qy({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},oz=e=>({...Qy({orientation:e.orientation,horizontal:{h:jf.reference},vertical:{w:jf.reference}}),overflow:"hidden",borderRadius:"sm",[ro.variable]:"colors.gray.200",_dark:{[ro.variable]:"colors.whiteAlpha.200"},_disabled:{[ro.variable]:"colors.gray.300",_dark:{[ro.variable]:"colors.whiteAlpha.300"}},bg:ro.reference}),sz=e=>{const{orientation:t}=e;return{...Qy({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Df.reference,h:Df.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},lz=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[ro.variable]:`colors.${t}.500`,_dark:{[ro.variable]:`colors.${t}.200`},bg:ro.reference}},uz=vv(e=>({container:iz(e),track:oz(e),thumb:sz(e),filledTrack:lz(e)})),cz=vv({container:{[Df.variable]:"sizes.4",[jf.variable]:"sizes.1"}}),dz=vv({container:{[Df.variable]:"sizes.3.5",[jf.variable]:"sizes.1"}}),fz=vv({container:{[Df.variable]:"sizes.2.5",[jf.variable]:"sizes.0.5"}}),hz={lg:cz,md:dz,sm:fz},mz=az({baseStyle:uz,sizes:hz,defaultProps:{size:"md",colorScheme:"blue"}}),Ls=Et("spinner-size"),vz={width:[Ls.reference],height:[Ls.reference]},pz={xs:{[Ls.variable]:"sizes.3"},sm:{[Ls.variable]:"sizes.4"},md:{[Ls.variable]:"sizes.6"},lg:{[Ls.variable]:"sizes.8"},xl:{[Ls.variable]:"sizes.12"}},gz={baseStyle:vz,sizes:pz,defaultProps:{size:"md"}},{defineMultiStyleConfig:bz,definePartsStyle:MM}=at(B7.keys),yz={fontWeight:"medium"},_z={opacity:.8,marginBottom:"2"},xz={verticalAlign:"baseline",fontWeight:"semibold"},wz={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Sz=MM({container:{},label:yz,helpText:_z,number:xz,icon:wz}),Pz={md:MM({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},$z=bz({baseStyle:Sz,sizes:Pz,defaultProps:{size:"md"}}),Jp=ue("kbd-bg"),Oz={[Jp.variable]:"colors.gray.100",_dark:{[Jp.variable]:"colors.whiteAlpha.100"},bg:Jp.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},Cz={baseStyle:Oz},Mz={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Tz={baseStyle:Mz},{defineMultiStyleConfig:Ez,definePartsStyle:Dz}=at(I7.keys),jz={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Iz=Dz({icon:jz}),Az=Ez({baseStyle:Iz}),{defineMultiStyleConfig:Fz,definePartsStyle:Rz}=at(A7.keys),Xn=ue("menu-bg"),eg=ue("menu-shadow"),kz={[Xn.variable]:"#fff",[eg.variable]:"shadows.sm",_dark:{[Xn.variable]:"colors.gray.700",[eg.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Xn.reference,boxShadow:eg.reference},Nz={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Xn.variable]:"colors.gray.100",_dark:{[Xn.variable]:"colors.whiteAlpha.100"}},_active:{[Xn.variable]:"colors.gray.200",_dark:{[Xn.variable]:"colors.whiteAlpha.200"}},_expanded:{[Xn.variable]:"colors.gray.100",_dark:{[Xn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Xn.reference},Lz={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},zz={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},Wz={opacity:.6},Bz={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Vz={transitionProperty:"common",transitionDuration:"normal"},Hz=Rz({button:Vz,list:kz,item:Nz,groupTitle:Lz,icon:zz,command:Wz,divider:Bz}),Yz=Fz({baseStyle:Hz}),{defineMultiStyleConfig:Uz,definePartsStyle:sb}=at(F7.keys),tg=ue("modal-bg"),rg=ue("modal-shadow"),Gz={bg:"blackAlpha.600",zIndex:"modal"},qz=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},Qz=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[tg.variable]:"colors.white",[rg.variable]:"shadows.lg",_dark:{[tg.variable]:"colors.gray.700",[rg.variable]:"shadows.dark-lg"},bg:tg.reference,boxShadow:rg.reference}},Xz={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Kz={position:"absolute",top:"2",insetEnd:"3"},Zz=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},Jz={px:"6",py:"4"},eW=sb(e=>({overlay:Gz,dialogContainer:dr(qz,e),dialog:dr(Qz,e),header:Xz,closeButton:Kz,body:dr(Zz,e),footer:Jz}));function Pn(e){return sb(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var tW={xs:Pn("xs"),sm:Pn("sm"),md:Pn("md"),lg:Pn("lg"),xl:Pn("xl"),"2xl":Pn("2xl"),"3xl":Pn("3xl"),"4xl":Pn("4xl"),"5xl":Pn("5xl"),"6xl":Pn("6xl"),full:Pn("full")},rW=Uz({baseStyle:eW,sizes:tW,defaultProps:{size:"md"}}),{defineMultiStyleConfig:nW,definePartsStyle:TM}=at(R7.keys),Ky=Et("number-input-stepper-width"),EM=Et("number-input-input-padding"),aW=Ra(Ky).add("0.5rem").toString(),ng=Et("number-input-bg"),ag=Et("number-input-color"),ig=Et("number-input-border-color"),iW={[Ky.variable]:"sizes.6",[EM.variable]:aW},oW=e=>{var t,r;return(r=(t=dr(He.baseStyle,e))==null?void 0:t.field)!=null?r:{}},sW={width:Ky.reference},lW={borderStart:"1px solid",borderStartColor:ig.reference,color:ag.reference,bg:ng.reference,[ag.variable]:"colors.chakra-body-text",[ig.variable]:"colors.chakra-border-color",_dark:{[ag.variable]:"colors.whiteAlpha.800",[ig.variable]:"colors.whiteAlpha.300"},_active:{[ng.variable]:"colors.gray.200",_dark:{[ng.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},uW=TM(e=>{var t;return{root:iW,field:(t=dr(oW,e))!=null?t:{},stepperGroup:sW,stepper:lW}});function Uh(e){var t,r,n;const a=(t=He.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(n=(r=a.field)==null?void 0:r.fontSize)!=null?n:"md",l=SM.fontSizes[s];return TM({field:{...a.field,paddingInlineEnd:EM.reference,verticalAlign:"top"},stepper:{fontSize:Ra(l).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var cW={xs:Uh("xs"),sm:Uh("sm"),md:Uh("md"),lg:Uh("lg")},dW=nW({baseStyle:uW,sizes:cW,variants:He.variants,defaultProps:He.defaultProps}),hP,fW={...(hP=He.baseStyle)==null?void 0:hP.field,textAlign:"center"},hW={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},mP,vP,mW={outline:e=>{var t,r,n;return(n=(r=dr((t=He.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=dr((t=He.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=dr((t=He.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(vP=(mP=He.variants)==null?void 0:mP.unstyled.field)!=null?vP:{}},vW={baseStyle:fW,sizes:hW,variants:mW,defaultProps:He.defaultProps},{defineMultiStyleConfig:pW,definePartsStyle:gW}=at(k7.keys),Gh=Et("popper-bg"),bW=Et("popper-arrow-bg"),pP=Et("popper-arrow-shadow-color"),yW={zIndex:10},_W={[Gh.variable]:"colors.white",bg:Gh.reference,[bW.variable]:Gh.reference,[pP.variable]:"colors.gray.200",_dark:{[Gh.variable]:"colors.gray.700",[pP.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},xW={px:3,py:2,borderBottomWidth:"1px"},wW={px:3,py:2},SW={px:3,py:2,borderTopWidth:"1px"},PW={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},$W=gW({popper:yW,content:_W,header:xW,body:wW,footer:SW,closeButton:PW}),OW=pW({baseStyle:$W}),{definePartsStyle:lb,defineMultiStyleConfig:CW}=at(M7.keys),og=ue("drawer-bg"),sg=ue("drawer-box-shadow");function zl(e){return lb(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var MW={bg:"blackAlpha.600",zIndex:"modal"},TW={display:"flex",zIndex:"modal",justifyContent:"center"},EW=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[og.variable]:"colors.white",[sg.variable]:"shadows.lg",_dark:{[og.variable]:"colors.gray.700",[sg.variable]:"shadows.dark-lg"},bg:og.reference,boxShadow:sg.reference}},DW={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},jW={position:"absolute",top:"2",insetEnd:"3"},IW={px:"6",py:"2",flex:"1",overflow:"auto"},AW={px:"6",py:"4"},FW=lb(e=>({overlay:MW,dialogContainer:TW,dialog:dr(EW,e),header:DW,closeButton:jW,body:IW,footer:AW})),RW={xs:zl("xs"),sm:zl("md"),md:zl("lg"),lg:zl("2xl"),xl:zl("4xl"),full:zl("full")},kW=CW({baseStyle:FW,sizes:RW,defaultProps:{size:"xs"}}),{definePartsStyle:NW,defineMultiStyleConfig:LW}=at(T7.keys),zW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},WW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},BW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},VW=NW({preview:zW,input:WW,textarea:BW}),HW=LW({baseStyle:VW}),{definePartsStyle:YW,defineMultiStyleConfig:UW}=at(E7.keys),Mu=ue("form-control-color"),GW={marginStart:"1",[Mu.variable]:"colors.red.500",_dark:{[Mu.variable]:"colors.red.300"},color:Mu.reference},qW={mt:"2",[Mu.variable]:"colors.gray.600",_dark:{[Mu.variable]:"colors.whiteAlpha.600"},color:Mu.reference,lineHeight:"normal",fontSize:"sm"},QW=YW({container:{width:"100%",position:"relative"},requiredIndicator:GW,helperText:qW}),XW=UW({baseStyle:QW}),{definePartsStyle:KW,defineMultiStyleConfig:ZW}=at(D7.keys),Tu=ue("form-error-color"),JW={[Tu.variable]:"colors.red.500",_dark:{[Tu.variable]:"colors.red.300"},color:Tu.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},eB={marginEnd:"0.5em",[Tu.variable]:"colors.red.500",_dark:{[Tu.variable]:"colors.red.300"},color:Tu.reference},tB=KW({text:JW,icon:eB}),rB=ZW({baseStyle:tB}),nB={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},aB={baseStyle:nB},iB={fontFamily:"heading",fontWeight:"bold"},oB={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},sB={baseStyle:iB,sizes:oB,defaultProps:{size:"xl"}},{defineMultiStyleConfig:lB,definePartsStyle:uB}=at(O7.keys),lg=ue("breadcrumb-link-decor"),cB={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:lg.reference,[lg.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[lg.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},dB=uB({link:cB}),fB=lB({baseStyle:dB}),hB={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},DM=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:le("gray.800","whiteAlpha.900")(e),_hover:{bg:le("gray.100","whiteAlpha.200")(e)},_active:{bg:le("gray.200","whiteAlpha.300")(e)}};const n=Bu(`${t}.200`,.12)(r),a=Bu(`${t}.200`,.24)(r);return{color:le(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:le(`${t}.50`,n)(e)},_active:{bg:le(`${t}.100`,a)(e)}}},mB=e=>{const{colorScheme:t}=e,r=le("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...dr(DM,e)}},vB={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},pB=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const u=le("gray.100","whiteAlpha.200")(e);return{bg:u,color:le("gray.800","whiteAlpha.900")(e),_hover:{bg:le("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:le("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:a="white",hoverBg:o=`${r}.600`,activeBg:s=`${r}.700`}=(t=vB[r])!=null?t:{},l=le(n,`${r}.200`)(e);return{bg:l,color:le(a,"gray.800")(e),_hover:{bg:le(o,`${r}.300`)(e),_disabled:{bg:l}},_active:{bg:le(s,`${r}.400`)(e)}}},gB=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:le(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:le(`${t}.700`,`${t}.500`)(e)}}},bB={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},yB={ghost:DM,outline:mB,solid:pB,link:gB,unstyled:bB},_B={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},xB={baseStyle:hB,variants:yB,sizes:_B,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Xs,defineMultiStyleConfig:wB}=at(G7.keys),g0=ue("card-bg"),Va=ue("card-padding"),jM=ue("card-shadow"),Am=ue("card-radius"),IM=ue("card-border-width","0"),AM=ue("card-border-color"),SB=Xs({container:{[g0.variable]:"colors.chakra-body-bg",backgroundColor:g0.reference,boxShadow:jM.reference,borderRadius:Am.reference,color:"chakra-body-text",borderWidth:IM.reference,borderColor:AM.reference},body:{padding:Va.reference,flex:"1 1 0%"},header:{padding:Va.reference},footer:{padding:Va.reference}}),PB={sm:Xs({container:{[Am.variable]:"radii.base",[Va.variable]:"space.3"}}),md:Xs({container:{[Am.variable]:"radii.md",[Va.variable]:"space.5"}}),lg:Xs({container:{[Am.variable]:"radii.xl",[Va.variable]:"space.7"}})},$B={elevated:Xs({container:{[jM.variable]:"shadows.base",_dark:{[g0.variable]:"colors.gray.700"}}}),outline:Xs({container:{[IM.variable]:"1px",[AM.variable]:"colors.chakra-border-color"}}),filled:Xs({container:{[g0.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Va.variable]:0},header:{[Va.variable]:0},footer:{[Va.variable]:0}}},OB=wB({baseStyle:SB,variants:$B,sizes:PB,defaultProps:{variant:"elevated",size:"md"}}),Jd=Et("close-button-size"),dd=Et("close-button-bg"),CB={w:[Jd.reference],h:[Jd.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[dd.variable]:"colors.blackAlpha.100",_dark:{[dd.variable]:"colors.whiteAlpha.100"}},_active:{[dd.variable]:"colors.blackAlpha.200",_dark:{[dd.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:dd.reference},MB={lg:{[Jd.variable]:"sizes.10",fontSize:"md"},md:{[Jd.variable]:"sizes.8",fontSize:"xs"},sm:{[Jd.variable]:"sizes.6",fontSize:"2xs"}},TB={baseStyle:CB,sizes:MB,defaultProps:{size:"md"}},{variants:EB,defaultProps:DB}=Kd,jB={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:_t.bg.reference,color:_t.color.reference,boxShadow:_t.shadow.reference},IB={baseStyle:jB,variants:EB,defaultProps:DB},AB={w:"100%",mx:"auto",maxW:"prose",px:"4"},FB={baseStyle:AB},RB={opacity:.6,borderColor:"inherit"},kB={borderStyle:"solid"},NB={borderStyle:"dashed"},LB={solid:kB,dashed:NB},zB={baseStyle:RB,variants:LB,defaultProps:{variant:"solid"}},{definePartsStyle:WB,defineMultiStyleConfig:BB}=at(S7.keys),VB={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},HB={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},YB={pt:"2",px:"4",pb:"5"},UB={fontSize:"1.25em"},GB=WB({container:VB,button:HB,panel:YB,icon:UB}),qB=BB({baseStyle:GB}),{definePartsStyle:Zf,defineMultiStyleConfig:QB}=at(P7.keys),Nr=ue("alert-fg"),Ja=ue("alert-bg"),XB=Zf({container:{bg:Ja.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Nr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Nr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Zy(e){const{theme:t,colorScheme:r}=e,n=Bu(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var KB=Zf(e=>{const{colorScheme:t}=e,r=Zy(e);return{container:{[Nr.variable]:`colors.${t}.600`,[Ja.variable]:r.light,_dark:{[Nr.variable]:`colors.${t}.200`,[Ja.variable]:r.dark}}}}),ZB=Zf(e=>{const{colorScheme:t}=e,r=Zy(e);return{container:{[Nr.variable]:`colors.${t}.600`,[Ja.variable]:r.light,_dark:{[Nr.variable]:`colors.${t}.200`,[Ja.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Nr.reference}}}),JB=Zf(e=>{const{colorScheme:t}=e,r=Zy(e);return{container:{[Nr.variable]:`colors.${t}.600`,[Ja.variable]:r.light,_dark:{[Nr.variable]:`colors.${t}.200`,[Ja.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Nr.reference}}}),eV=Zf(e=>{const{colorScheme:t}=e;return{container:{[Nr.variable]:"colors.white",[Ja.variable]:`colors.${t}.600`,_dark:{[Nr.variable]:"colors.gray.900",[Ja.variable]:`colors.${t}.200`},color:Nr.reference}}}),tV={subtle:KB,"left-accent":ZB,"top-accent":JB,solid:eV},rV=QB({baseStyle:XB,variants:tV,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:FM,defineMultiStyleConfig:nV}=at($7.keys),Eu=ue("avatar-border-color"),ef=ue("avatar-bg"),If=ue("avatar-font-size"),Vu=ue("avatar-size"),aV={borderRadius:"full",border:"0.2em solid",borderColor:Eu.reference,[Eu.variable]:"white",_dark:{[Eu.variable]:"colors.gray.800"}},iV={bg:ef.reference,fontSize:If.reference,width:Vu.reference,height:Vu.reference,lineHeight:"1",[ef.variable]:"colors.gray.200",_dark:{[ef.variable]:"colors.whiteAlpha.400"}},oV=e=>{const{name:t,theme:r}=e,n=t?hN({string:t}):"colors.gray.400",a=dN(n)(r);let o="white";return a||(o="gray.800"),{bg:ef.reference,fontSize:If.reference,color:o,borderColor:Eu.reference,verticalAlign:"top",width:Vu.reference,height:Vu.reference,"&:not([data-loaded])":{[ef.variable]:n},[Eu.variable]:"colors.white",_dark:{[Eu.variable]:"colors.gray.800"}}},sV={fontSize:If.reference,lineHeight:"1"},lV=FM(e=>({badge:dr(aV,e),excessLabel:dr(iV,e),container:dr(oV,e),label:sV}));function Vi(e){const t=e!=="100%"?$M[e]:void 0;return FM({container:{[Vu.variable]:t??e,[If.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Vu.variable]:t??e,[If.variable]:`calc(${t??e} / 2.5)`}})}var uV={"2xs":Vi(4),xs:Vi(6),sm:Vi(8),md:Vi(12),lg:Vi(16),xl:Vi(24),"2xl":Vi(32),full:Vi("100%")},cV=nV({baseStyle:lV,sizes:uV,defaultProps:{size:"md"}}),dV={Accordion:qB,Alert:rV,Avatar:cV,Badge:Kd,Breadcrumb:fB,Button:xB,Checkbox:p0,CloseButton:TB,Code:IB,Container:FB,Divider:zB,Drawer:kW,Editable:HW,Form:XW,FormError:rB,FormLabel:aB,Heading:sB,Input:He,Kbd:Cz,Link:Tz,List:Az,Menu:Yz,Modal:rW,NumberInput:dW,PinInput:vW,Popover:OW,Progress:IL,Radio:UL,Select:JL,Skeleton:tz,SkipLink:nz,Slider:mz,Spinner:gz,Stat:$z,Switch:TN,Table:RN,Tabs:KN,Tag:cL,Textarea:wL,Tooltip:$L,Card:OB,Stepper:w7},fV={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},hV={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},mV="ltr",vV={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},RM={semanticTokens:fV,direction:mV,...y7,components:dV,styles:hV,config:vV};function pV(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var gV=pV();function bV(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function yV(e,t,r,n){const a=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,a,o,s)=>{if(typeof n>"u")return e(n,a,o);t.has(n)||t.set(n,new Map);const l=t.get(n);if(l.has(a))return l.get(a);const u=e(n,a,o,s);return l.set(a,u),u}},kM=_V(yV);function NM(e,t){const r={};return Object.keys(e).forEach(n=>{const a=e[n];t(a,n,e)&&(r[n]=a)}),r}var LM=e=>NM(e,t=>t!=null);function xV(e){return typeof e=="function"}function zM(e,...t){return xV(e)?e(...t):e}function wV(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var SV=typeof Element<"u",PV=typeof Map=="function",$V=typeof Set=="function",OV=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Fm(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Fm(e[n],t[n]))return!1;return!0}var o;if(PV&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!Fm(n.value[1],t.get(n.value[0])))return!1;return!0}if($V&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(OV&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;if(SV&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((a[n]==="_owner"||a[n]==="__v"||a[n]==="__o")&&e.$$typeof)&&!Fm(e[a[n]],t[a[n]]))return!1;return!0}return e!==e&&t!==t}var CV=function(t,r){try{return Fm(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const MV=zb(CV);function WM(e,t={}){var r;const{styleConfig:n,...a}=t,{theme:o,colorMode:s}=TR(),l=e?kM(o,`components.${e}`):void 0,u=n||l,c=ta({theme:o,colorMode:s},(r=u==null?void 0:u.defaultProps)!=null?r:{},LM(bV(a,["children"]))),d=S.useRef({});if(u){const m=Qk(u)(c);MV(d.current,m)||(d.current=m)}return d.current}function ri(e,t={}){return WM(e,t)}function Mo(e,t={}){return WM(e,t)}var TV=new Set([...kk,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),EV=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function DV(e){return EV.has(e)||!TV.has(e)}function jV(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a in r&&delete r[a],r[a]=n[a]);return r}function Jy(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var IV=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,AV=KC(function(e){return IV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),FV=AV,RV=function(t){return t!=="theme"},gP=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?FV:RV},bP=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},kV=!1,NV=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return nM(r,n,a),cR(function(){return aM(r,n,a)}),null},LV=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,s;r!==void 0&&(o=r.label,s=r.target);var l=bP(t,r,n),u=l||gP(a),c=!u("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var m=d.length,g=1;gt=>{const{theme:r,css:n,__css:a,sx:o,...s}=t,l=NM(s,(f,m)=>Lk(m)),u=zM(e,t),c=jV({},a,u,LM(l),o),d=wM(c)(t.theme);return n?[d,n]:d};function ug(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=DV);const a=BV({baseStyle:r}),o=WV(e,n)(a);return on.forwardRef(function(u,c){const{colorMode:d,forced:f}=dv();return on.createElement(o,{ref:c,"data-theme":f?d:void 0,...u})})}function VV(){const e=new Map;return new Proxy(ug,{apply(t,r,n){return ug(...n)},get(t,r){return e.has(r)||e.set(r,ug(r)),e.get(r)}})}var fe=VV();function he(e){return S.forwardRef(e)}function HV(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,a=S.createContext(void 0);a.displayName=n;function o(){var s;const l=S.useContext(a);if(!l&&t){const u=new Error(r);throw u.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,u,o),u}return l}return[a.Provider,o,a]}function YV(e){const{cssVarsRoot:t,theme:r,children:n}=e,a=S.useMemo(()=>Ak(r),[r]);return w.jsxs(hR,{theme:a,children:[w.jsx(UV,{root:t}),n]})}function UV({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return w.jsx(cv,{styles:r=>({[t]:r.__cssVars})})}HV({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function GV(){const{colorMode:e}=dv();return w.jsx(cv,{styles:t=>{const r=kM(t,"styles.global"),n=zM(r,{theme:t,colorMode:e});return n?wM(n)(t):void 0}})}var BM=S.createContext({getDocument(){return document},getWindow(){return window}});BM.displayName="EnvironmentContext";function VM(e){const{children:t,environment:r,disabled:n}=e,a=S.useRef(null),o=S.useMemo(()=>r||{getDocument:()=>{var l,u;return(u=(l=a.current)==null?void 0:l.ownerDocument)!=null?u:document},getWindow:()=>{var l,u;return(u=(l=a.current)==null?void 0:l.ownerDocument.defaultView)!=null?u:window}},[r]),s=!n||!r;return w.jsxs(BM.Provider,{value:o,children:[t,s&&w.jsx("span",{id:"__chakra_env",hidden:!0,ref:a})]})}VM.displayName="EnvironmentProvider";var qV=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:a,resetCSS:o=!0,theme:s={},environment:l,cssVarsRoot:u,disableEnvironment:c,disableGlobalStyle:d}=e,f=w.jsx(VM,{environment:l,disabled:c,children:t});return w.jsx(YV,{theme:s,cssVarsRoot:u,children:w.jsxs(vM,{colorModeManager:r,options:s.config,children:[o?w.jsx(pR,{scope:a}):w.jsx(vR,{}),!d&&w.jsx(GV,{}),n?w.jsx(fM,{zIndex:n,children:f}):f]})})},QV=(e,t)=>e.find(r=>r.id===t);function _P(e,t){const r=HM(e,t),n=r?e[r].findIndex(a=>a.id===t):-1;return{position:r,index:n}}function HM(e,t){for(const[r,n]of Object.entries(e))if(QV(n,t))return r}function XV(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function KV(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,a=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:a,right:o,left:s}}function ZV(e,t=[]){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useCallback((...n)=>{var a;return(a=r.current)==null?void 0:a.call(r,...n)},t)}function JV(e,t){const r=ZV(e);S.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function xP(e,t){const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const e_=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),pv=S.createContext({}),Jf=S.createContext(null),t_=typeof document<"u",r_=t_?S.useLayoutEffect:S.useEffect,YM=S.createContext({strict:!1}),gv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eH="framerAppearId",UM="data-"+gv(eH),tH={skipAnimations:!1,useManualTiming:!1};function rH(e){let t=new Set,r=new Set,n=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(s)}const u={schedule:(c,d=!1,f=!1)=>{const g=f&&n?t:r;return d&&o.add(c),g.has(c)||g.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(s=c,n){a=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(l),n=!1,a&&(a=!1,u.process(c))}};return u}const qh=["read","resolveKeyframes","update","preRender","render","postRender"],nH=40;function GM(e,t){let r=!1,n=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,s=qh.reduce((b,y)=>(b[y]=rH(o),b),{}),{read:l,resolveKeyframes:u,update:c,preRender:d,render:f,postRender:m}=s,g=()=>{const b=performance.now();r=!1,a.delta=n?1e3/60:Math.max(Math.min(b-a.timestamp,nH),1),a.timestamp=b,a.isProcessing=!0,l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),m.process(a),a.isProcessing=!1,r&&t&&(n=!1,e(g))},x=()=>{r=!0,n=!0,a.isProcessing||e(g)};return{schedule:qh.reduce((b,y)=>{const P=s[y];return b[y]=(M,A=!1,F=!1)=>(r||x(),P.schedule(M,A,F)),b},{}),cancel:b=>{for(let y=0;y{d&&d.update(r,l)});const m=S.useRef(!!(r[UM]&&!window.HandoffComplete));return r_(()=>{d&&(d.updateFeatures(),n_.render(d.render),m.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(m.current=!1,wP||(wP=!0,queueMicrotask(iH))))}),d}function iH(){window.HandoffComplete=!0}function oH(e,t,r,n){const{layoutId:a,layout:o,drag:s,dragConstraints:l,layoutScroll:u,layoutRoot:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:QM(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!s||l&&vu(l),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,layoutScroll:u,layoutRoot:c})}function QM(e){if(e)return e.options.allowProjection!==!1?e.projection:QM(e.parent)}function sH(e,t,r){return S.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):vu(r)&&(r.current=n))},[t])}function Af(e){return typeof e=="string"||Array.isArray(e)}function Ff(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const a_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i_=["initial",...a_];function bv(e){return Ff(e.animate)||i_.some(t=>Af(e[t]))}function XM(e){return!!(bv(e)||e.variants)}function lH(e,t){if(bv(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Af(r)?r:void 0,animate:Af(n)?n:void 0}}return e.inherit!==!1?t:{}}function uH(e){const{initial:t,animate:r}=lH(e,S.useContext(pv));return S.useMemo(()=>({initial:t,animate:r}),[SP(t),SP(r)])}function SP(e){return Array.isArray(e)?e.join(" "):e}const PP={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Hu={};for(const e in PP)Hu[e]={isEnabled:t=>PP[e].some(r=>!!t[r])};function cH(e){for(const t in e)Hu[t]={...Hu[t],...e[t]}}const o_=S.createContext({}),dH=Symbol.for("motionComponentSymbol"),rr=e=>e;let ub=rr;function fH({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:a}){e&&cH(e);function o(l,u){let c;const d={...S.useContext(e_),...l,layoutId:hH(l)},{isStatic:f}=d,m=uH(l),g=n(l,f);if(!f&&t_){mH();const x=vH(d);c=x.MeasureLayout,m.visualElement=aH(a,g,d,t,x.ProjectionNode)}return w.jsxs(pv.Provider,{value:m,children:[c&&m.visualElement?w.jsx(c,{visualElement:m.visualElement,...d}):null,r(a,l,sH(g,m.visualElement,u),g,f,m.visualElement)]})}const s=S.forwardRef(o);return s[dH]=a,s}function hH({layoutId:e}){const t=S.useContext(o_).id;return t&&e!==void 0?t+"-"+e:e}function mH(e,t){S.useContext(YM).strict}function vH(e){const{drag:t,layout:r}=Hu;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t!=null&&t.isEnabled(e)||r!=null&&r.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function pH(e){function t(n,a={}){return fH(e(n,a))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,a)=>(r.has(a)||r.set(a,t(a)),r.get(a))})}const gH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s_(e){return typeof e!="string"||e.includes("-")?!1:!!(gH.indexOf(e)>-1||/[A-Z]/u.test(e))}const y0={};function bH(e){Object.assign(y0,e)}const eh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],To=new Set(eh);function KM(e,{layout:t,layoutId:r}){return To.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!y0[e]||e==="opacity")}const er=e=>!!(e&&e.getVelocity),yH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_H=eh.length;function xH(e,t,r){let n="";for(let a=0;a<_H;a++){const o=eh[a];if(e[o]!==void 0){const s=yH[o]||o;n+=`${s}(${e[o]}) `}}return n=n.trim(),r?n=r(e,t?"":n):t&&(n="none"),n}const ZM=e=>t=>typeof t=="string"&&t.startsWith(e),JM=ZM("--"),wH=ZM("var(--"),l_=e=>wH(e)?SH.test(e.split("/*")[0].trim()):!1,SH=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,PH=(e,t)=>t&&typeof e=="number"?t.transform(e):e,So=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},tf={...Ku,transform:e=>So(0,1,e)},Qh={...Ku,default:1},rf=e=>Math.round(e*1e5)/1e5,u_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,$H=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,OH=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function th(e){return typeof e=="string"}function CH(e){return e==null}const rh=e=>({test:t=>th(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qi=rh("deg"),oa=rh("%"),de=rh("px"),MH=rh("vh"),TH=rh("vw"),$P={...oa,parse:e=>oa.parse(e)/100,transform:e=>oa.transform(e*100)},OP={...Ku,transform:Math.round},eT={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,radius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,size:de,top:de,right:de,bottom:de,left:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,rotate:Qi,rotateX:Qi,rotateY:Qi,rotateZ:Qi,scale:Qh,scaleX:Qh,scaleY:Qh,scaleZ:Qh,skew:Qi,skewX:Qi,skewY:Qi,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:tf,originX:$P,originY:$P,originZ:de,zIndex:OP,backgroundPositionX:de,backgroundPositionY:de,fillOpacity:tf,strokeOpacity:tf,numOctaves:OP};function c_(e,t,r){const{style:n,vars:a,transform:o,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(JM(d)){a[d]=f;continue}const m=eT[d],g=PH(f,m);if(To.has(d)){if(l=!0,o[d]=g,!c)continue;f!==(m.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=g):n[d]=g}if(t.transform||(l||r?n.transform=xH(e.transform,c,r):n.transform&&(n.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:m=0}=s;n.transformOrigin=`${d} ${f} ${m}`}}const d_=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tT(e,t,r){for(const n in t)!er(t[n])&&!KM(n,r)&&(e[n]=t[n])}function EH({transformTemplate:e},t){return S.useMemo(()=>{const r=d_();return c_(r,t,e),Object.assign({},r.vars,r.style)},[t])}function DH(e,t){const r=e.style||{},n={};return tT(n,r,e),Object.assign(n,EH(e,t)),n}function jH(e,t){const r={},n=DH(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const IH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _0(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||IH.has(e)}let rT=e=>!_0(e);function AH(e){e&&(rT=t=>t.startsWith("on")?!_0(t):e(t))}try{AH(require("@emotion/is-prop-valid").default)}catch{}function FH(e,t,r){const n={};for(const a in e)a==="values"&&typeof e.values=="object"||(rT(a)||r===!0&&_0(a)||!t&&!_0(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}function CP(e,t,r){return typeof e=="string"?e:de.transform(t+r*e)}function RH(e,t,r){const n=CP(t,e.x,e.width),a=CP(r,e.y,e.height);return`${n} ${a}`}const kH={offset:"stroke-dashoffset",array:"stroke-dasharray"},NH={offset:"strokeDashoffset",array:"strokeDasharray"};function LH(e,t,r=1,n=0,a=!0){e.pathLength=1;const o=a?kH:NH;e[o.offset]=de.transform(-n);const s=de.transform(t),l=de.transform(r);e[o.array]=`${s} ${l}`}function f_(e,{attrX:t,attrY:r,attrScale:n,originX:a,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:u=0,...c},d,f){if(c_(e,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:x}=e;m.transform&&(x&&(g.transform=m.transform),delete m.transform),x&&(a!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=RH(x,a!==void 0?a:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),r!==void 0&&(m.y=r),n!==void 0&&(m.scale=n),s!==void 0&&LH(m,s,l,u,!1)}const nT=()=>({...d_(),attrs:{}}),h_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function zH(e,t,r,n){const a=S.useMemo(()=>{const o=nT();return f_(o,t,h_(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};tT(o,e.style,e),a.style={...o,...a.style}}return a}function WH(e=!1){return(r,n,a,{latestValues:o},s)=>{const u=(s_(r)?zH:jH)(n,o,s,r),c=FH(n,typeof r=="string",e),d=r!==S.Fragment?{...c,...u,ref:a}:{},{children:f}=n,m=S.useMemo(()=>er(f)?f.get():f,[f]);return S.createElement(r,{...d,children:m})}}function aT(e,{style:t,vars:r},n,a){Object.assign(e.style,t,a&&a.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const iT=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function oT(e,t,r,n){aT(e,t,void 0,n);for(const a in t.attrs)e.setAttribute(iT.has(a)?a:gv(a),t.attrs[a])}function m_(e,t,r){var n;const{style:a}=e,o={};for(const s in a)(er(a[s])||t.style&&er(t.style[s])||KM(s,e)||((n=r==null?void 0:r.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(o[s]=a[s]);return r&&a&&typeof a.willChange=="string"&&(r.applyWillChange=!1),o}function sT(e,t,r){const n=m_(e,t,r);for(const a in e)if(er(e[a])||er(t[a])){const o=eh.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;n[o]=e[a]}return n}function MP(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function v_(e,t,r,n){if(typeof t=="function"){const[a,o]=MP(n);t=t(r!==void 0?r:e.custom,a,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,o]=MP(n);t=t(r!==void 0?r:e.custom,a,o)}return t}function lT(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const cb=e=>Array.isArray(e),BH=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),VH=e=>cb(e)?e[e.length-1]||0:e;function Rm(e){const t=er(e)?e.get():e;return BH(t)?t.toValue():t}const uT=new Set(["opacity","clipPath","filter","transform"]);function cT(e){if(To.has(e))return"transform";if(uT.has(e))return gv(e)}function yv(e,t){e.indexOf(t)===-1&&e.push(t)}function _v(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function HH({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:r,onMount:n},a,o,s,l){const u={latestValues:UH(a,o,s,l?!1:e,t),renderState:r()};return n&&(u.mount=c=>n(a,c,u)),u}const dT=e=>(t,r)=>{const n=S.useContext(pv),a=S.useContext(Jf),o=()=>HH(e,t,n,a,r);return r?o():lT(o)};function YH(e,t){const r=cT(t);r&&yv(e,r)}function TP(e,t,r){const n=Array.isArray(t)?t:[t];for(let a=0;a{for(const y in $){let P=$[y];if(Array.isArray(P)){const M=x?P.length-1:0;P=P[M]}P!==null&&(s[y]=P)}for(const y in b)s[y]=b[y]}),u&&(f&&d!==!1&&!Ff(f)&&TP(e,f,$=>{for(const b in $)YH(l,b)}),l.length&&(s.willChange=l.join(","))),s}const{schedule:Xe,cancel:ei,state:Vt,steps:cg}=GM(typeof requestAnimationFrame<"u"?requestAnimationFrame:rr,!0),GH={useVisualState:dT({scrapeMotionValuesFromProps:sT,createRenderState:nT,onMount:(e,t,{renderState:r,latestValues:n})=>{Xe.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Xe.render(()=>{f_(r,n,h_(t.tagName),e.transformTemplate),oT(t,r)})}})},qH={useVisualState:dT({applyWillChange:!0,scrapeMotionValuesFromProps:m_,createRenderState:d_})};function QH(e,{forwardMotionProps:t=!1},r,n){return{...s_(e)?GH:qH,preloadedFeatures:r,useRender:WH(t),createVisualElement:n,Component:e}}function za(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const fT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function xv(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const XH=e=>t=>fT(t)&&e(t,xv(t));function Ha(e,t,r,n){return za(e,t,XH(r),n)}const KH=(e,t)=>r=>t(e(r)),Ya=(...e)=>e.reduce(KH);function hT(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const EP=hT("dragHorizontal"),DP=hT("dragVertical");function mT(e){let t=!1;if(e==="y")t=DP();else if(e==="x")t=EP();else{const r=EP(),n=DP();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function vT(){const e=mT(!0);return e?(e(),!1):!0}class Eo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function jP(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",a=(o,s)=>{if(o.pointerType==="touch"||vT())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t);const u=l[n];u&&Xe.postRender(()=>u(o,s))};return Ha(e.current,r,a,{passive:!e.getProps()[n]})}class ZH extends Eo{mount(){this.unmount=Ya(jP(this.node,!0),jP(this.node,!1))}unmount(){}}class JH extends Eo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ya(za(this.node.current,"focus",()=>this.onFocus()),za(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const pT=(e,t)=>t?e===t?!0:pT(e,t.parentElement):!1;function dg(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,xv(r))}class eY extends Eo{constructor(){super(...arguments),this.removeStartListeners=rr,this.removeEndListeners=rr,this.removeAccessibleListeners=rr,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),o=Ha(window,"pointerup",(l,u)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d,globalTapTarget:f}=this.node.getProps(),m=!f&&!pT(this.node.current,l.target)?d:c;m&&Xe.update(()=>m(l,u))},{passive:!(n.onTap||n.onPointerUp)}),s=Ha(window,"pointercancel",(l,u)=>this.cancelPress(l,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ya(o,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||dg("up",(u,c)=>{const{onTap:d}=this.node.getProps();d&&Xe.postRender(()=>d(u,c))})};this.removeEndListeners(),this.removeEndListeners=za(this.node.current,"keyup",s),dg("down",(l,u)=>{this.startPress(l,u)})},r=za(this.node.current,"keydown",t),n=()=>{this.isPressing&&dg("cancel",(o,s)=>this.cancelPress(o,s))},a=za(this.node.current,"blur",n);this.removeAccessibleListeners=Ya(r,a)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:a}=this.node.getProps();a&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Xe.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!vT()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Xe.postRender(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Ha(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=za(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ya(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const db=new WeakMap,fg=new WeakMap,tY=e=>{const t=db.get(e.target);t&&t(e)},rY=e=>{e.forEach(tY)};function nY({root:e,...t}){const r=e||document;fg.has(r)||fg.set(r,{});const n=fg.get(r),a=JSON.stringify(t);return n[a]||(n[a]=new IntersectionObserver(rY,{root:e,...t})),n[a]}function aY(e,t,r){const n=nY(t);return db.set(e,r),n.observe(e),()=>{db.delete(e),n.unobserve(e)}}const iY={some:0,all:1};class oY extends Eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:a="some",once:o}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof a=="number"?a:iY[a]},l=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=c?d:f;m&&m(u)};return aY(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(sY(t,r))&&this.startObserver()}unmount(){}}function sY({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const lY={inView:{Feature:oY},tap:{Feature:eY},focus:{Feature:JH},hover:{Feature:ZH}};function gT(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;ne*1e3,Ua=e=>e/1e3,uY={type:"spring",stiffness:500,damping:25,restSpeed:10},cY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dY={type:"keyframes",duration:.8},fY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hY=(e,{keyframes:t})=>t.length>2?dY:To.has(e)?e.startsWith("scale")?cY(t[1]):uY:fY;function mY({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:o,repeatType:s,repeatDelay:l,from:u,elapsed:c,...d}){return!!Object.keys(d).length}function p_(e,t){return e[t]||e.default||e}const vY=e=>e!==null;function Sv(e,{repeat:t,repeatType:r="loop"},n){const a=e.filter(vY),o=t&&r!=="loop"&&t%2===1?0:a.length-1;return!o||n===void 0?a[o]:n}let km;function pY(){km=void 0}const bo={now:()=>(km===void 0&&bo.set(Vt.isProcessing||tH.useManualTiming?Vt.timestamp:performance.now()),km),set:e=>{km=e,queueMicrotask(pY)}},bT=e=>/^0[^.\s]+$/u.test(e);function gY(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||bT(e):!0}const yT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),bY=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yY(e){const t=bY.exec(e);if(!t)return[,];const[,r,n,a]=t;return[`--${r??n}`,a]}function _T(e,t,r=1){const[n,a]=yY(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const s=o.trim();return yT(s)?parseFloat(s):s}return l_(a)?_T(a,t,r+1):a}const _Y=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),IP=e=>e===Ku||e===de,AP=(e,t)=>parseFloat(e.split(", ")[t]),FP=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const a=n.match(/^matrix3d\((.+)\)$/u);if(a)return AP(a[1],t);{const o=n.match(/^matrix\((.+)\)$/u);return o?AP(o[1],e):0}},xY=new Set(["x","y","z"]),wY=eh.filter(e=>!xY.has(e));function SY(e){const t=[];return wY.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const Yu={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:FP(4,13),y:FP(5,14)};Yu.translateX=Yu.x;Yu.translateY=Yu.y;const xT=e=>t=>t.test(e),PY={test:e=>e==="auto",parse:e=>e},wT=[Ku,de,oa,Qi,TH,MH,PY],RP=e=>wT.find(xT(e)),Ks=new Set;let fb=!1,hb=!1;function ST(){if(hb){const e=Array.from(Ks).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const a=SY(n);a.length&&(r.set(n,a),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const a=r.get(n);a&&a.forEach(([o,s])=>{var l;(l=n.getValue(o))===null||l===void 0||l.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}hb=!1,fb=!1,Ks.forEach(e=>e.complete()),Ks.clear()}function PT(){Ks.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(hb=!0)})}function $Y(){PT(),ST()}class g_{constructor(t,r,n,a,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=a,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ks.add(this),fb||(fb=!0,Xe.read(PT),Xe.resolveKeyframes(ST))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:a}=this;for(let o=0;or=>!!(th(r)&&OH.test(r)&&r.startsWith(e)||t&&!CH(r)&&Object.prototype.hasOwnProperty.call(r,t)),$T=(e,t,r)=>n=>{if(!th(n))return n;const[a,o,s,l]=n.match(u_);return{[e]:parseFloat(a),[t]:parseFloat(o),[r]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},OY=e=>So(0,255,e),hg={...Ku,transform:e=>Math.round(OY(e))},Hs={test:b_("rgb","red"),parse:$T("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+hg.transform(e)+", "+hg.transform(t)+", "+hg.transform(r)+", "+rf(tf.transform(n))+")"};function CY(e){let t="",r="",n="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}}const mb={test:b_("#"),parse:CY,transform:Hs.transform},pu={test:b_("hsl","hue"),parse:$T("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+oa.transform(rf(t))+", "+oa.transform(rf(r))+", "+rf(tf.transform(n))+")"},Zt={test:e=>Hs.test(e)||mb.test(e)||pu.test(e),parse:e=>Hs.test(e)?Hs.parse(e):pu.test(e)?pu.parse(e):mb.parse(e),transform:e=>th(e)?e:e.hasOwnProperty("red")?Hs.transform(e):pu.transform(e)};function MY(e){var t,r;return isNaN(e)&&th(e)&&(((t=e.match(u_))===null||t===void 0?void 0:t.length)||0)+(((r=e.match($H))===null||r===void 0?void 0:r.length)||0)>0}const OT="number",CT="color",TY="var",EY="var(",kP="${}",DY=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Rf(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},a=[];let o=0;const l=t.replace(DY,u=>(Zt.test(u)?(n.color.push(o),a.push(CT),r.push(Zt.parse(u))):u.startsWith(EY)?(n.var.push(o),a.push(TY),r.push(u)):(n.number.push(o),a.push(OT),r.push(parseFloat(u))),++o,kP)).split(kP);return{values:r,split:l,indexes:n,types:a}}function MT(e){return Rf(e).values}function TT(e){const{split:t,types:r}=Rf(e),n=t.length;return a=>{let o="";for(let s=0;stypeof e=="number"?0:e;function IY(e){const t=MT(e);return TT(e)(t.map(jY))}const Po={test:MY,parse:MT,createTransformer:TT,getAnimatableNone:IY},AY=new Set(["brightness","contrast","saturate","opacity"]);function FY(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(u_)||[];if(!n)return e;const a=r.replace(n,"");let o=AY.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+a+")"}const RY=/\b([a-z-]*)\(.*?\)/gu,vb={...Po,getAnimatableNone:e=>{const t=e.match(RY);return t?t.map(FY).join(" "):e}},kY={...eT,color:Zt,backgroundColor:Zt,outlineColor:Zt,fill:Zt,stroke:Zt,borderColor:Zt,borderTopColor:Zt,borderRightColor:Zt,borderBottomColor:Zt,borderLeftColor:Zt,filter:vb,WebkitFilter:vb},y_=e=>kY[e];function ET(e,t){let r=y_(e);return r!==vb&&(r=Po),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const NY=new Set(["auto","none","0"]);function LY(e,t,r){let n=0,a;for(;n{r.getValue(u).set(c)}),this.resolveNoneKeyframes()}}function jT(e){let t;return()=>(t===void 0&&(t=e()),t)}const NP=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Po.test(e)||e==="0")&&!e.startsWith("url("));function zY(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r{this.resolveFinishedPromise=t})}}function AT(e,t){return t?e*(1e3/t):0}const BY=5;function FT(e,t,r){const n=Math.max(t-BY,0);return AT(r-e(n),t-n)}const mg=.001,VY=.01,HY=10,YY=.05,UY=1;function GY({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let a,o,s=1-t;s=So(YY,UY,s),e=So(VY,HY,Ua(e)),s<1?(a=c=>{const d=c*s,f=d*e,m=d-r,g=pb(c,s),x=Math.exp(-f);return mg-m/g*x},o=c=>{const f=c*s*e,m=f*r+r,g=Math.pow(s,2)*Math.pow(c,2)*e,x=Math.exp(-f),p=pb(Math.pow(c,2),s);return(-a(c)+mg>0?-1:1)*((m-g)*x)/p}):(a=c=>{const d=Math.exp(-c*e),f=(c-r)*e+1;return-mg+d*f},o=c=>{const d=Math.exp(-c*e),f=(r-c)*(e*e);return d*f});const l=5/e,u=QY(a,o,l);if(e=go(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(u,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}const qY=12;function QY(e,t,r){let n=r;for(let a=1;ae[r]!==void 0)}function ZY(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!LP(e,KY)&&LP(e,XY)){const r=GY(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function RT({keyframes:e,restDelta:t,restSpeed:r,...n}){const a=e[0],o=e[e.length-1],s={done:!1,value:a},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:m}=ZY({...n,velocity:-Ua(n.velocity||0)}),g=f||0,x=u/(2*Math.sqrt(l*c)),p=o-a,$=Ua(Math.sqrt(l/c)),b=Math.abs(p)<5;r||(r=b?.01:2),t||(t=b?.005:.5);let y;if(x<1){const P=pb($,x);y=M=>{const A=Math.exp(-x*$*M);return o-A*((g+x*$*p)/P*Math.sin(P*M)+p*Math.cos(P*M))}}else if(x===1)y=P=>o-Math.exp(-$*P)*(p+(g+$*p)*P);else{const P=$*Math.sqrt(x*x-1);y=M=>{const A=Math.exp(-x*$*M),F=Math.min(P*M,300);return o-A*((g+x*$*p)*Math.sinh(F)+P*p*Math.cosh(F))/P}}return{calculatedDuration:m&&d||null,next:P=>{const M=y(P);if(m)s.done=P>=d;else{let A=g;P!==0&&(x<1?A=FT(y,P,M):A=0);const F=Math.abs(A)<=r,L=Math.abs(o-M)<=t;s.done=F&&L}return s.value=s.done?o:M,s}}}function zP({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:u,restDelta:c=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},g=z=>l!==void 0&&zu,x=z=>l===void 0?u:u===void 0||Math.abs(l-z)-p*Math.exp(-z/n),P=z=>b+y(z),M=z=>{const q=y(z),Q=P(z);m.done=Math.abs(q)<=c,m.value=m.done?b:Q};let A,F;const L=z=>{g(m.value)&&(A=z,F=RT({keyframes:[m.value,x(m.value)],velocity:FT(P,z,m.value),damping:a,stiffness:o,restDelta:c,restSpeed:d}))};return L(0),{calculatedDuration:null,next:z=>{let q=!1;return!F&&A===void 0&&(q=!0,M(z),L(z)),A!==void 0&&z>=A?F.next(z-A):(!q&&M(z),m)}}}const kT=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,JY=1e-7,eU=12;function tU(e,t,r,n,a){let o,s,l=0;do s=t+(r-t)/2,o=kT(s,n,a)-e,o>0?r=s:t=s;while(Math.abs(o)>JY&&++ltU(o,0,1,e,r);return o=>o===0||o===1?o:kT(a(o),t,n)}const rU=nh(.42,0,1,1),nU=nh(0,0,.58,1),NT=nh(.42,0,.58,1),aU=e=>Array.isArray(e)&&typeof e[0]!="number",LT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zT=e=>t=>1-e(1-t),__=e=>1-Math.sin(Math.acos(e)),WT=zT(__),iU=LT(__),BT=nh(.33,1.53,.69,.99),x_=zT(BT),oU=LT(x_),sU=e=>(e*=2)<1?.5*x_(e):.5*(2-Math.pow(2,-10*(e-1))),WP={linear:rr,easeIn:rU,easeInOut:NT,easeOut:nU,circIn:__,circInOut:iU,circOut:WT,backIn:x_,backInOut:oU,backOut:BT,anticipate:sU},BP=e=>{if(Array.isArray(e)){ub(e.length===4);const[t,r,n,a]=e;return nh(t,r,n,a)}else if(typeof e=="string")return ub(WP[e]!==void 0),WP[e];return e},kf=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},dt=(e,t,r)=>e+(t-e)*r;function vg(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function lU({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let a=0,o=0,s=0;if(!t)a=o=s=r;else{const l=r<.5?r*(1+t):r+t-r*t,u=2*r-l;a=vg(u,l,e+1/3),o=vg(u,l,e),s=vg(u,l,e-1/3)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}function x0(e,t){return r=>r>0?t:e}const pg=(e,t,r)=>{const n=e*e,a=r*(t*t-n)+n;return a<0?0:Math.sqrt(a)},uU=[mb,Hs,pu],cU=e=>uU.find(t=>t.test(e));function VP(e){const t=cU(e);if(!t)return!1;let r=t.parse(e);return t===pu&&(r=lU(r)),r}const HP=(e,t)=>{const r=VP(e),n=VP(t);if(!r||!n)return x0(e,t);const a={...r};return o=>(a.red=pg(r.red,n.red,o),a.green=pg(r.green,n.green,o),a.blue=pg(r.blue,n.blue,o),a.alpha=dt(r.alpha,n.alpha,o),Hs.transform(a))},gb=new Set(["none","hidden"]);function dU(e,t){return gb.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function fU(e,t){return r=>dt(e,t,r)}function w_(e){return typeof e=="number"?fU:typeof e=="string"?l_(e)?x0:Zt.test(e)?HP:vU:Array.isArray(e)?VT:typeof e=="object"?Zt.test(e)?HP:hU:x0}function VT(e,t){const r=[...e],n=r.length,a=e.map((o,s)=>w_(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in n)r[o]=n[o](a);return r}}function mU(e,t){var r;const n=[],a={color:0,var:0,number:0};for(let o=0;o{const r=Po.createTransformer(t),n=Rf(e),a=Rf(t);return n.indexes.var.length===a.indexes.var.length&&n.indexes.color.length===a.indexes.color.length&&n.indexes.number.length>=a.indexes.number.length?gb.has(e)&&!a.values.length||gb.has(t)&&!n.values.length?dU(e,t):Ya(VT(mU(n,a),a.values),r):x0(e,t)};function HT(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?dt(e,t,r):w_(e)(e,t)}function pU(e,t,r){const n=[],a=r||HT,o=e.length-1;for(let s=0;st[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=pU(t,n,a),l=s.length,u=c=>{let d=0;if(l>1)for(;du(So(e[0],e[o-1],c)):u}function bU(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const a=kf(0,t,n);e.push(dt(r,1,a))}}function yU(e){const t=[0];return bU(t,e.length-1),t}function _U(e,t){return e.map(r=>r*t)}function xU(e,t){return e.map(()=>t||NT).splice(0,e.length-1)}function w0({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const a=aU(n)?n.map(BP):BP(n),o={done:!1,value:t[0]},s=_U(r&&r.length===t.length?r:yU(t),e),l=gU(s,t,{ease:Array.isArray(a)?a:xU(t,a)});return{calculatedDuration:e,next:u=>(o.value=l(u),o.done=u>=e,o)}}const YP=2e4;function wU(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=YP?1/0:t}const SU=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Xe.update(t,!0),stop:()=>ei(t),now:()=>Vt.isProcessing?Vt.timestamp:bo.now()}},PU={decay:zP,inertia:zP,tween:w0,keyframes:w0,spring:RT},$U=e=>e/100;class S_ extends IT{constructor({KeyframeResolver:t=g_,...r}){super(r),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:a,keyframes:o}=this.options,s=(l,u)=>this.onKeyframesResolved(l,u);n&&a&&a.owner?this.resolver=a.owner.resolveKeyframes(o,s,n,a):this.resolver=new t(o,s,n,a),this.resolver.scheduleResolve()}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:o,velocity:s=0}=this.options,l=PU[r]||w0;let u,c;l!==w0&&typeof t[0]!="number"&&(u=Ya($U,HT(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});o==="mirror"&&(c=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=wU(d));const{calculatedDuration:f}=d,m=f+a,g=m*(n+1)-a;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:u,calculatedDuration:f,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:z}=this.options;return{done:!0,value:z[z.length-1]}}const{finalKeyframe:a,generator:o,mirroredGenerator:s,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:c,totalDuration:d,resolvedDuration:f}=n;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:x,repeatDelay:p,onUpdate:$}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let P=this.currentTime,M=o;if(g){const z=Math.min(this.currentTime,d)/f;let q=Math.floor(z),Q=z%1;!Q&&z>=1&&(Q=1),Q===1&&q--,q=Math.min(q,g+1),!!(q%2)&&(x==="reverse"?(Q=1-Q,p&&(Q-=p/f)):x==="mirror"&&(M=s)),P=So(0,1,Q)*f}const A=y?{done:!1,value:u[0]}:M.next(P);l&&(A.value=l(A.value));let{done:F}=A;!y&&c!==null&&(F=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return L&&a!==void 0&&(A.value=Sv(u,this.options,a)),$&&$(A.value),L&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Ua(t.calculatedDuration):0}get time(){return Ua(this.currentTime)}set time(t){t=go(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Ua(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=SU,onPlay:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),r&&r();const n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=n),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const YT=e=>Array.isArray(e)&&typeof e[0]=="number";function UT(e){return!!(!e||typeof e=="string"&&e in P_||YT(e)||Array.isArray(e)&&e.every(UT))}const Nd=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,P_={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nd([0,.65,.55,1]),circOut:Nd([.55,0,1,.45]),backIn:Nd([.31,.01,.66,-.59]),backOut:Nd([.33,1.53,.69,.99])};function OU(e){return GT(e)||P_.easeOut}function GT(e){if(e)return YT(e)?Nd(e):Array.isArray(e)?e.map(OU):P_[e]}function CU(e,t,r,{delay:n=0,duration:a=300,repeat:o=0,repeatType:s="loop",ease:l,times:u}={}){const c={[t]:r};u&&(c.offset=u);const d=GT(l);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:n,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const MU=jT(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),S0=10,TU=2e4;function EU(e){return e.type==="spring"||!UT(e.ease)}function DU(e,t){const r=new S_({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const a=[];let o=0;for(;!n.done&&othis.onKeyframesResolved(o,s),r,n),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:a=300,times:o,ease:s,type:l,motionValue:u,name:c}=this.options;if(!(!((n=u.owner)===null||n===void 0)&&n.current))return!1;if(EU(this.options)){const{onComplete:f,onUpdate:m,motionValue:g,...x}=this.options,p=DU(t,x);t=p.keyframes,t.length===1&&(t[1]=t[0]),a=p.duration,o=p.times,s=p.ease,l="keyframes"}const d=CU(u.owner.current,c,t,{...this.options,duration:a,times:o,ease:s});return d.startTime=bo.now(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(Sv(t,this.options,r)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:a,times:o,type:l,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:r}=t;return Ua(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return Ua(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=go(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:r}=t;return r.playbackRate}set speed(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:r}=t;return r.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return rr;const{animation:n}=r;n.timeline=t,n.onfinish=null}return rr}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:a,type:o,ease:s,times:l}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:f,...m}=this.options,g=new S_({...m,keyframes:n,duration:a,type:o,ease:s,times:l,isGenerator:!0}),x=go(this.time);c.setWithVelocity(g.sample(x-S0).value,g.sample(x).value,S0)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:a,repeatType:o,damping:s,type:l}=t;return MU()&&n&&uT.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!a&&o!=="mirror"&&s!==0&&l!=="inertia"}}function jU(e,t){let r;const n=()=>{const{currentTime:a}=t,s=(a===null?0:a.value)/100;r!==s&&e(s),r=s};return Xe.update(n,!0),()=>ei(n)}const IU=jT(()=>window.ScrollTimeline!==void 0);class AU{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,r){return Promise.all(this.animations).then(t).catch(r)}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n{if(IU()&&n.attachTimeline)n.attachTimeline(t);else return n.pause(),jU(a=>{n.time=n.duration*a},t)});return()=>{r.forEach((n,a)=>{n&&n(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let r=0;rr[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const $_=(e,t,r,n={},a,o,s)=>l=>{const u=p_(n,e)||{},c=u.delay||n.delay||0;let{elapsed:d=0}=n;d=d-go(c);let f={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{l(),u.onComplete&&u.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:o?void 0:a};mY(u)||(f={...f,...hY(e,f)}),f.duration&&(f.duration=go(f.duration)),f.repeatDelay&&(f.repeatDelay=go(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let m=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(m=!0)),m&&!o&&t.get()!==void 0){const g=Sv(f.keyframes,u);if(g!==void 0)return Xe.update(()=>{f.onUpdate(g),f.onComplete()}),new AU([])}return!o&&UP.supports(f)?new UP(f):new S_(f)};class O_{constructor(){this.subscriptions=[]}add(t){return yv(this.subscriptions,t),()=>_v(this.subscriptions,t)}notify(t,r,n){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,r,n);else for(let o=0;o!isNaN(parseFloat(e));class qT{constructor(t,r={}){this.version="11.3.8",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,a=!0)=>{const o=bo.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=bo.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=FU(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new O_);const n=this.events[t].add(r);return t==="change"?()=>{n(),Xe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=bo.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>GP)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,GP);return AT(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Nf(e,t){return new qT(e,t)}function RU(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Nf(r))}function kU(e,t){const r=wv(e,t);let{transitionEnd:n={},transition:a={},...o}=r||{};o={...o,...n};for(const s in o){const l=VH(o[s]);RU(e,s,l)}}function QT(e){return e.getProps()[UM]}class NU extends qT{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const r=cT(t);if(!r)return;const n=this.counts.get(r)||0;this.counts.set(r,n+1),n===0&&(this.output.push(r),this.update());let a=!1;return()=>{if(a)return;a=!0;const o=this.counts.get(r)-1;this.counts.set(r,o),o===0&&(_v(this.output,r),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function LU(e){return!!(er(e)&&e.add)}function bb(e,t){var r;if(!e.applyWillChange)return;let n=e.getValue("willChange");if(!n&&!(!((r=e.props.style)===null||r===void 0)&&r.willChange)&&(n=new NU("auto"),e.addValue("willChange",n)),LU(n))return n.add(t)}function zU({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function XT(e,t,{delay:r=0,transitionOverride:n,type:a}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;n&&(s=n);const c=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const f in u){const m=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),g=u[f];if(g===void 0||d&&zU(d,f))continue;const x={delay:r,elapsed:0,...p_(s||{},f)};let p=!1;if(window.HandoffAppearAnimations){const b=QT(e);if(b){const y=window.HandoffAppearAnimations(b,f,m,Xe);y!==null&&(x.elapsed=y,p=!0)}}m.start($_(f,m,g,e.shouldReduceMotion&&To.has(f)?{type:!1}:x,e,p,bb(e,f)));const $=m.animation;$&&c.push($)}return l&&Promise.all(c).then(()=>{Xe.update(()=>{l&&kU(e,l)})}),c}function yb(e,t,r={}){var n;const a=wv(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(o=r.transitionOverride);const s=a?()=>Promise.all(XT(e,a,r)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:m}=o;return WU(e,t,d+c,f,m,r)}:()=>Promise.resolve(),{when:u}=o;if(u){const[c,d]=u==="beforeChildren"?[s,l]:[l,s];return c().then(()=>d())}else return Promise.all([s(),l(r.delay)])}function WU(e,t,r=0,n=0,a=1,o){const s=[],l=(e.variantChildren.size-1)*n,u=a===1?(c=0)=>c*n:(c=0)=>l-c*n;return Array.from(e.variantChildren).sort(BU).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(yb(c,t,{...o,delay:r+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function BU(e,t){return e.sortNodePosition(t)}function VU(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const a=t.map(o=>yb(e,o,r));n=Promise.all(a)}else if(typeof t=="string")n=yb(e,t,r);else{const a=typeof t=="function"?wv(e,t,r.custom):t;n=Promise.all(XT(e,a,r))}return n.then(()=>{Xe.postRender(()=>{e.notify("AnimationComplete",t)})})}const HU=[...a_].reverse(),YU=a_.length;function UU(e){return t=>Promise.all(t.map(({animation:r,options:n})=>VU(e,r,n)))}function GU(e){let t=UU(e),r=qP(),n=!0;const a=u=>(c,d)=>{var f;const m=wv(e,d,u==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(m){const{transition:g,transitionEnd:x,...p}=m;c={...c,...p,...x}}return c};function o(u){t=u(e)}function s(u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],m=new Set;let g={},x=1/0;for(let $=0;$x&&M,q=!1;const Q=Array.isArray(P)?P:[P];let ve=Q.reduce(a(b),{});A===!1&&(ve={});const{prevResolvedValues:Me={}}=y,tt={...Me,...ve},et=Ce=>{z=!0,m.has(Ce)&&(q=!0,m.delete(Ce)),y.needsAnimating[Ce]=!0;const Ne=e.getValue(Ce);Ne&&(Ne.liveStyle=!1)};for(const Ce in tt){const Ne=ve[Ce],Se=Me[Ce];if(g.hasOwnProperty(Ce))continue;let H=!1;cb(Ne)&&cb(Se)?H=!gT(Ne,Se):H=Ne!==Se,H?Ne!=null?et(Ce):m.add(Ce):Ne!==void 0&&m.has(Ce)?et(Ce):y.protectedKeys[Ce]=!0}y.prevProp=P,y.prevResolvedValues=ve,y.isActive&&(g={...g,...ve}),n&&e.blockInitialAnimation&&(z=!1),z&&(!F||q)&&f.push(...Q.map(Ce=>({animation:Ce,options:{type:b}})))}if(m.size){const $={};m.forEach(b=>{const y=e.getBaseTarget(b),P=e.getValue(b);P&&(P.liveStyle=!0),$[b]=y??null}),f.push({animation:$})}let p=!!f.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(f):Promise.resolve()}function l(u,c){var d;if(r[u].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(u,c)}),r[u].isActive=c;const f=s(u);for(const m in r)r[m].protectedKeys={};return f}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>r,reset:()=>{r=qP(),n=!0}}}function qU(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gT(t,e):!1}function Ts(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qP(){return{animate:Ts(!0),whileInView:Ts(),whileHover:Ts(),whileTap:Ts(),whileDrag:Ts(),whileFocus:Ts(),exit:Ts()}}class QU extends Eo{constructor(t){super(t),t.animationState||(t.animationState=GU(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ff(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let XU=0;class KU extends Eo{constructor(){super(...arguments),this.id=XU++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const a=this.node.animationState.setActive("exit",!t);r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const ZU={animation:{Feature:QU},exit:{Feature:KU}},QP=(e,t)=>Math.abs(e-t);function JU(e,t){const r=QP(e.x,t.x),n=QP(e.y,t.y);return Math.sqrt(r**2+n**2)}class KT{constructor(t,r,{transformPagePoint:n,contextWindow:a,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=bg(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=JU(f.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:x}=f,{timestamp:p}=Vt;this.history.push({...x,timestamp:p});const{onStart:$,onMove:b}=this.handlers;m||($&&$(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=gg(m,this.transformPagePoint),Xe.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const $=bg(f.type==="pointercancel"?this.lastMoveEventInfo:gg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,$),x&&x(f,$)},!fT(t))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=n,this.contextWindow=a||window;const s=xv(t),l=gg(s,this.transformPagePoint),{point:u}=l,{timestamp:c}=Vt;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=r;d&&d(t,bg(l,this.history)),this.removeListeners=Ya(Ha(this.contextWindow,"pointermove",this.handlePointerMove),Ha(this.contextWindow,"pointerup",this.handlePointerUp),Ha(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ei(this.updatePoint)}}function gg(e,t){return t?{point:t(e.point)}:e}function XP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bg({point:e},t){return{point:e,delta:XP(e,ZT(t)),offset:XP(e,eG(t)),velocity:tG(t,.1)}}function eG(e){return e[0]}function ZT(e){return e[e.length-1]}function tG(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const a=ZT(e);for(;r>=0&&(n=e[r],!(a.timestamp-n.timestamp>go(t)));)r--;if(!n)return{x:0,y:0};const o=Ua(a.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const s={x:(a.x-n.x)/o,y:(a.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const JT=1e-4,rG=1-JT,nG=1+JT,eE=.01,aG=0-eE,iG=0+eE;function Wr(e){return e.max-e.min}function oG(e,t,r){return Math.abs(e-t)<=r}function KP(e,t,r,n=.5){e.origin=n,e.originPoint=dt(t.min,t.max,e.origin),e.scale=Wr(r)/Wr(t),e.translate=dt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=rG&&e.scale<=nG||isNaN(e.scale))&&(e.scale=1),(e.translate>=aG&&e.translate<=iG||isNaN(e.translate))&&(e.translate=0)}function nf(e,t,r,n){KP(e.x,t.x,r.x,n?n.originX:void 0),KP(e.y,t.y,r.y,n?n.originY:void 0)}function ZP(e,t,r){e.min=r.min+t.min,e.max=e.min+Wr(t)}function sG(e,t,r){ZP(e.x,t.x,r.x),ZP(e.y,t.y,r.y)}function JP(e,t,r){e.min=t.min-r.min,e.max=e.min+Wr(t)}function af(e,t,r){JP(e.x,t.x,r.x),JP(e.y,t.y,r.y)}function lG(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?dt(r,e,n.max):Math.min(e,r)),e}function e$(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function uG(e,{top:t,left:r,bottom:n,right:a}){return{x:e$(e.x,r,a),y:e$(e.y,t,n)}}function t$(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=kf(t.min,t.max-n,e.min):n>a&&(r=kf(e.min,e.max-a,t.min)),So(0,1,r)}function fG(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const _b=.35;function hG(e=_b){return e===!1?e=0:e===!0&&(e=_b),{x:r$(e,"left","right"),y:r$(e,"top","bottom")}}function r$(e,t,r){return{min:n$(e,t),max:n$(e,r)}}function n$(e,t){return typeof e=="number"?e:e[t]||0}const a$=()=>({translate:0,scale:1,origin:0,originPoint:0}),gu=()=>({x:a$(),y:a$()}),i$=()=>({min:0,max:0}),bt=()=>({x:i$(),y:i$()});function Jr(e){return[e("x"),e("y")]}function tE({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function mG({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function vG(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function yg(e){return e===void 0||e===1}function xb({scale:e,scaleX:t,scaleY:r}){return!yg(e)||!yg(t)||!yg(r)}function As(e){return xb(e)||rE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rE(e){return o$(e.x)||o$(e.y)}function o$(e){return e&&e!=="0%"}function P0(e,t,r){const n=e-r,a=t*n;return r+a}function s$(e,t,r,n,a){return a!==void 0&&(e=P0(e,a,n)),P0(e,r,n)+t}function wb(e,t=0,r=1,n,a){e.min=s$(e.min,t,r,n,a),e.max=s$(e.max,t,r,n,a)}function nE(e,{x:t,y:r}){wb(e.x,t.translate,t.scale,t.originPoint),wb(e.y,r.translate,r.scale,r.originPoint)}const l$=.999999999999,u$=1.0000000000001;function pG(e,t,r,n=!1){const a=r.length;if(!a)return;t.x=t.y=1;let o,s;for(let l=0;ll$&&(t.x=1),t.yl$&&(t.y=1)}function Ji(e,t){e.min=e.min+t,e.max=e.max+t}function c$(e,t,r,n,a=.5){const o=dt(e.min,e.max,a);wb(e,t,r,o,n)}function bu(e,t){c$(e.x,t.x,t.scaleX,t.scale,t.originX),c$(e.y,t.y,t.scaleY,t.scale,t.originY)}function aE(e,t){return tE(vG(e.getBoundingClientRect(),t))}function gG(e,t,r){const n=aE(e,r),{scroll:a}=t;return a&&(Ji(n.x,a.offset.x),Ji(n.y,a.offset.y)),n}const iE=({current:e})=>e?e.ownerDocument.defaultView:null,bG=new WeakMap;class yG{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=bt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(xv(d,"page").point)},o=(d,f)=>{var m;const{drag:g,dragPropagation:x,onDragStart:p}=this.getProps();if(g&&!x&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=mT(g),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Jr(b=>{let y=this.getAxisMotionValue(b).get()||0;if(oa.test(y)){const{projection:P}=this.visualElement;if(P&&P.layout){const M=P.layout.layoutBox[b];M&&(y=Wr(M)*(parseFloat(y)/100))}}this.originPoint[b]=y}),p&&Xe.postRender(()=>p(d,f)),(m=this.removeWillChange)===null||m===void 0||m.call(this),this.removeWillChange=bb(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:x,onDrag:p}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:$}=f;if(g&&this.currentDirection===null){this.currentDirection=_G($),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,$),this.updateAxis("y",f.point,$),this.visualElement.render(),p&&p(d,f)},l=(d,f)=>this.stop(d,f),u=()=>Jr(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new KT(t,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:iE(this.visualElement)})}stop(t,r){var n;(n=this.removeWillChange)===null||n===void 0||n.call(this);const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&Xe.postRender(()=>s(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:a}=this.getProps();if(!n||!Xh(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=lG(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;r&&vu(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=uG(a.layoutBox,r):this.constraints=!1,this.elastic=hG(n),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Jr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=fG(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!vu(t))return!1;const n=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const o=gG(n,a.root,this.visualElement.getTransformPagePoint());let s=cG(a.layout.layoutBox,o);if(r){const l=r(mG(s));this.hasMutatedConstraints=!!l,l&&(s=tE(l))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:a,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},c=Jr(d=>{if(!Xh(d,r,this.currentDirection))return;let f=u&&u[d]||{};s&&(f={min:0,max:0});const m=a?200:1e6,g=a?40:1e7,x={type:"inertia",velocity:n?t[d]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(c).then(l)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start($_(t,n,0,r,this.visualElement,!1,bb(this.visualElement,t)))}stopAnimation(){Jr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Jr(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),a=n[r];return a||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Jr(r=>{const{drag:n}=this.getProps();if(!Xh(r,n,this.currentDirection))return;const{projection:a}=this.visualElement,o=this.getAxisMotionValue(r);if(a&&a.layout){const{min:s,max:l}=a.layout.layoutBox[r];o.set(t[r]-dt(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!vu(r)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Jr(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const u=l.get();a[s]=dG({min:u,max:u},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Jr(s=>{if(!Xh(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:c}=this.constraints[s];l.set(dt(u,c,a[s]))})}addListeners(){if(!this.visualElement.current)return;bG.set(this.visualElement,this);const t=this.visualElement.current,r=Ha(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();vu(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,o=a.addEventListener("measure",n);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Xe.read(n);const s=za(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Jr(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{s(),r(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:s=_b,dragMomentum:l=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Xh(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function _G(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class xG extends Eo{constructor(t){super(t),this.removeGroupControls=rr,this.removeListeners=rr,this.controls=new yG(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||rr}unmount(){this.removeGroupControls(),this.removeListeners()}}const d$=e=>(t,r)=>{e&&Xe.postRender(()=>e(t,r))};class wG extends Eo{constructor(){super(...arguments),this.removePointerDownListener=rr}onPointerDown(t){this.session=new KT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:d$(t),onStart:d$(r),onMove:n,onEnd:(o,s)=>{delete this.session,a&&Xe.postRender(()=>a(o,s))}}}mount(){this.removePointerDownListener=Ha(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function oE(){const e=S.useContext(Jf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,a=S.useId();return S.useEffect(()=>n(a),[]),!t&&r?[!1,()=>r&&r(a)]:[!0]}function SG(){return PG(S.useContext(Jf))}function PG(e){return e===null?!0:e.isPresent}const Nm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function f$(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;const r=f$(e,t.target.x),n=f$(e,t.target.y);return`${r}% ${n}%`}},$G={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,a=Po.parse(e);if(a.length>5)return n;const o=Po.createTransformer(e),s=typeof a[0]!="number"?1:0,l=r.x.scale*t.x,u=r.y.scale*t.y;a[0+s]/=l,a[1+s]/=u;const c=dt(l,u,.5);return typeof a[2+s]=="number"&&(a[2+s]/=c),typeof a[3+s]=="number"&&(a[3+s]/=c),o(a)}};class OG extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:o}=t;bH(CG),o&&(r.group&&r.group.add(o),n&&n.register&&a&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Nm.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:a,isPresent:o}=this.props,s=n.projection;return s&&(s.isPresent=o,a||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Xe.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),n_.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),n&&n.deregister&&n.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sE(e){const[t,r]=oE(),n=S.useContext(o_);return w.jsx(OG,{...e,layoutGroup:n,switchLayoutGroup:S.useContext(qM),isPresent:t,safeToRemove:r})}const CG={borderRadius:{...fd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fd,borderTopRightRadius:fd,borderBottomLeftRadius:fd,borderBottomRightRadius:fd,boxShadow:$G},lE=["TopLeft","TopRight","BottomLeft","BottomRight"],MG=lE.length,h$=e=>typeof e=="string"?parseFloat(e):e,m$=e=>typeof e=="number"||de.test(e);function TG(e,t,r,n,a,o){a?(e.opacity=dt(0,r.opacity!==void 0?r.opacity:1,EG(n)),e.opacityExit=dt(t.opacity!==void 0?t.opacity:1,0,DG(n))):o&&(e.opacity=dt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;snt?1:r(kf(e,t,n))}function p$(e,t){e.min=t.min,e.max=t.max}function Kr(e,t){p$(e.x,t.x),p$(e.y,t.y)}function g$(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function b$(e,t,r,n,a){return e-=t,e=P0(e,1/r,n),a!==void 0&&(e=P0(e,1/a,n)),e}function jG(e,t=0,r=1,n=.5,a,o=e,s=e){if(oa.test(t)&&(t=parseFloat(t),t=dt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=dt(o.min,o.max,n);e===o&&(l-=t),e.min=b$(e.min,t,r,l,a),e.max=b$(e.max,t,r,l,a)}function y$(e,t,[r,n,a],o,s){jG(e,t[r],t[n],t[a],t.scale,o,s)}const IG=["x","scaleX","originX"],AG=["y","scaleY","originY"];function _$(e,t,r,n){y$(e.x,t,IG,r?r.x:void 0,n?n.x:void 0),y$(e.y,t,AG,r?r.y:void 0,n?n.y:void 0)}function x$(e){return e.translate===0&&e.scale===1}function cE(e){return x$(e.x)&&x$(e.y)}function FG(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function dE(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function w$(e){return Wr(e.x)/Wr(e.y)}function S$(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class RG{constructor(){this.members=[]}add(t){yv(this.members,t),t.scheduleRender()}remove(t){if(_v(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(a=>t===a);if(r===0)return!1;let n;for(let a=r;a>=0;a--){const o=this.members[a];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function kG(e,t,r){let n="";const a=e.x.translate/t.x,o=e.y.translate/t.y,s=(r==null?void 0:r.z)||0;if((a||o||s)&&(n=`translate3d(${a}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:c,rotate:d,rotateX:f,rotateY:m,skewX:g,skewY:x}=r;c&&(n=`perspective(${c}px) ${n}`),d&&(n+=`rotate(${d}deg) `),f&&(n+=`rotateX(${f}deg) `),m&&(n+=`rotateY(${m}deg) `),g&&(n+=`skewX(${g}deg) `),x&&(n+=`skewY(${x}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(n+=`scale(${l}, ${u})`),n||"none"}const NG=(e,t)=>e.depth-t.depth;class LG{constructor(){this.children=[],this.isDirty=!1}add(t){yv(this.children,t),this.isDirty=!0}remove(t){_v(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(NG),this.isDirty=!1,this.children.forEach(t)}}function zG(e,t){const r=bo.now(),n=({timestamp:a})=>{const o=a-r;o>=t&&(ei(n),e(o-t))};return Xe.read(n,!0),()=>ei(n)}function WG(e){return e instanceof SVGElement&&e.tagName!=="svg"}function BG(e,t,r){const n=er(e)?e:Nf(e);return n.start($_("",n,t,r)),n.animation}const Fs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},_g=["","X","Y","Z"],VG={visibility:"hidden"},P$=1e3;let HG=0;function xg(e,t,r,n){const{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),n&&(n[e]=0))}function fE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?QT(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?fE(e.parent):!1:!1}function hE({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(s={},l=t==null?void 0:t()){this.id=HG++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,window.MotionDebug&&(Fs.totalNodes=Fs.resolvedTargetDeltas=Fs.recalculatedProjection=0),this.nodes.forEach(GG),this.nodes.forEach(ZG),this.nodes.forEach(JG),this.nodes.forEach(qG),window.MotionDebug&&window.MotionDebug.record(Fs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=zG(m,250),Nm.hasAnimatedSinceResize&&(Nm.hasAnimatedSinceResize=!1,this.nodes.forEach(O$))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||d.getDefaultTransition()||aq,{onLayoutAnimationStart:$,onLayoutAnimationComplete:b}=d.getProps(),y=!this.targetLayout||!dE(this.targetLayout,x)||g,P=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,P);const M={...p_(p,"layout"),onPlay:$,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M)}else m||O$(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ei(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(eq),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&fE(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const A=M/1e3;C$(f.x,s.x,A),C$(f.y,s.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(af(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rq(this.relativeTarget,this.relativeTargetOrigin,m,A),P&&FG(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=bt()),Kr(P,this.relativeTarget)),p&&(this.animationValues=d,TG(d,c,this.latestValues,A,y,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ei(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{Nm.hasAnimatedSinceResize=!0,this.currentAnimation=BG(0,P$,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(P$),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:u,layout:c,latestValues:d}=s;if(!(!l||!u||!c)){if(this!==s&&this.layout&&c&&mE(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||bt();const f=Wr(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+f;const m=Wr(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}Kr(l,u),bu(l,d),nf(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new RG),this.sharedNodes.get(s).add(l);const c=l.options.initialPromotionConfig;l.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const c={};u.z&&xg("z",s,c,this.animationValues);for(let d=0;d<_g.length;d++)xg(`rotate${_g[d]}`,s,c,this.animationValues),xg(`skew${_g[d]}`,s,c,this.animationValues);s.render();for(const d in c)s.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);s.scheduleRender()}getProjectionStyles(s){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return VG;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Rm(s==null?void 0:s.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Rm(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!As(this.latestValues)&&(p.transform=d?d({},""):"none",this.hasProjected=!1),p}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=kG(this.projectionDeltaWithTransform,this.treeScale,m),d&&(c.transform=d(m,c.transform));const{x:g,y:x}=this.projectionDelta;c.transformOrigin=`${g.origin*100}% ${x.origin*100}% 0`,f.animationValues?c.opacity=f===this?(u=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:c.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const p in y0){if(m[p]===void 0)continue;const{correct:$,applyTo:b}=y0[p],y=c.transform==="none"?m[p]:$(m[p],f);if(b){const P=b.length;for(let M=0;M{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach($$),this.root.sharedNodes.clear()}}}function YG(e){e.updateLayout()}function UG(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:a}=e.layout,{animationType:o}=e.options,s=r.source!==e.layout.source;o==="size"?Jr(f=>{const m=s?r.measuredBox[f]:r.layoutBox[f],g=Wr(m);m.min=n[f].min,m.max=m.min+g}):mE(o,r.layoutBox,n)&&Jr(f=>{const m=s?r.measuredBox[f]:r.layoutBox[f],g=Wr(n[f]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=gu();nf(l,n,r.layoutBox);const u=gu();s?nf(u,e.applyTransform(a,!0),r.measuredBox):nf(u,n,r.layoutBox);const c=!cE(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:g}=f;if(m&&g){const x=bt();af(x,r.layoutBox,m.layoutBox);const p=bt();af(p,n,g.layoutBox),dE(x,p)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:l,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function GG(e){window.MotionDebug&&Fs.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function qG(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function QG(e){e.clearSnapshot()}function $$(e){e.clearMeasurements()}function XG(e){e.isLayoutDirty=!1}function KG(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function O$(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ZG(e){e.resolveTargetDelta()}function JG(e){e.calcProjection()}function eq(e){e.resetSkewAndRotation()}function tq(e){e.removeLeadSnapshot()}function C$(e,t,r){e.translate=dt(t.translate,0,r),e.scale=dt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function M$(e,t,r,n){e.min=dt(t.min,r.min,n),e.max=dt(t.max,r.max,n)}function rq(e,t,r,n){M$(e.x,t.x,r.x,n),M$(e.y,t.y,r.y,n)}function nq(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const aq={duration:.45,ease:[.4,0,.1,1]},T$=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),E$=T$("applewebkit/")&&!T$("chrome/")?Math.round:rr;function D$(e){e.min=E$(e.min),e.max=E$(e.max)}function iq(e){D$(e.x),D$(e.y)}function mE(e,t,r){return e==="position"||e==="preserve-aspect"&&!oG(w$(t),w$(r),.2)}const oq=hE({attachResizeListener:(e,t)=>za(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wg={current:void 0},vE=hE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wg.current){const e=new oq({});e.mount(window),e.setOptions({layoutScroll:!0}),wg.current=e}return wg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sq={pan:{Feature:wG},drag:{Feature:xG,ProjectionNode:vE,MeasureLayout:sE}},Sb={current:null},pE={current:!1};function lq(){if(pE.current=!0,!!t_)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Sb.current=e.matches;e.addListener(t),t()}else Sb.current=!1}function uq(e,t,r){for(const n in t){const a=t[n],o=r[n];if(er(a))e.addValue(n,a);else if(er(o))e.addValue(n,Nf(a,{owner:e}));else if(o!==a)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(n);e.addValue(n,Nf(s!==void 0?s:a,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const j$=new WeakMap,cq=[...wT,Zt,Po],dq=e=>cq.find(xT(e)),I$=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],fq=i_.length;class hq{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:a,blockInitialAnimation:o,visualState:s},l={}){this.applyWillChange=!1,this.resolveKeyframes=(m,g,x,p)=>new this.KeyframeResolver(m,g,x,p,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=g_,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,Xe.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=bv(r),this.isVariantNode=XM(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(r,{},this);for(const m in f){const g=f[m];u[m]!==void 0&&er(g)&&g.set(u[m],!1)}}mount(t){this.current=t,j$.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),pE.current||lq(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Sb.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){j$.delete(this.current),this.projection&&this.projection.unmount(),ei(this.notifyUpdate),ei(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){const n=To.has(t),a=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Xe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{a(),o(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hu){const r=Hu[t];if(!r)continue;const{isEnabled:n,Feature:a}=r;if(!this.features[t]&&a&&n(this.props)&&(this.features[t]=new a(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Nf(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(yT(a)||bT(a))?a=parseFloat(a):!dq(a)&&Po.test(r)&&(a=ET(t,r)),this.setBaseTarget(t,er(a)?a.get():a)),er(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props;let a;if(typeof n=="string"||typeof n=="object"){const s=v_(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);s&&(a=s[t])}if(n&&a!==void 0)return a;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!er(o)?o:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new O_),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class gE extends hq{constructor(){super(...arguments),this.KeyframeResolver=DT}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}}function mq(e){return window.getComputedStyle(e)}class vq extends gE{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=aT}readValueFromInstance(t,r){if(To.has(r)){const n=y_(r);return n&&n.default||0}else{const n=mq(t),a=(JM(r)?n.getPropertyValue(r):n[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return aE(t,r)}build(t,r,n){c_(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return m_(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;er(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class pq extends gE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(To.has(r)){const n=y_(r);return n&&n.default||0}return r=iT.has(r)?r:gv(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return sT(t,r,n)}build(t,r,n){f_(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,a){oT(t,r,n,a)}mount(t){this.isSVGTag=h_(t.tagName),super.mount(t)}}const gq=(e,t)=>s_(e)?new pq(t):new vq(t,{allowProjection:e!==S.Fragment}),bq={layout:{ProjectionNode:vE,MeasureLayout:sE}},yq={...ZU,...lY,...sq,...bq},ni=pH((e,t)=>QH(e,t,yq,gq));function bE(){const e=S.useRef(!1);return r_(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function _q(){const e=bE(),[t,r]=S.useState(0),n=S.useCallback(()=>{e.current&&r(t+1)},[t]);return[S.useCallback(()=>Xe.postRender(n),[n]),t]}class xq extends S.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function wq({children:e,isPresent:t}){const r=S.useId(),n=S.useRef(null),a=S.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=S.useContext(e_);return S.useInsertionEffect(()=>{const{width:s,height:l,top:u,left:c}=a.current;if(t||!n.current||!s||!l)return;n.current.dataset.motionPopId=r;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${s}px !important; @@ -345,7 +345,7 @@ Error generating stack: `+o.message+` top: ${u}px !important; left: ${c}px !important; } - `),()=>{document.head.removeChild(d)}},[t]),w.jsx(xq,{isPresent:t,childRef:n,sizeRef:a,children:S.cloneElement(e,{ref:n})})}const Sg=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:a,presenceAffectsLayout:o,mode:s})=>{const l=lT(Sq),u=S.useId(),c=S.useMemo(()=>({id:u,initial:t,isPresent:r,custom:a,onExitComplete:d=>{l.set(d,!0);for(const f of l.values())if(!f)return;n&&n()},register:d=>(l.set(d,!1),()=>l.delete(d))}),o?[Math.random()]:[r]);return S.useMemo(()=>{l.forEach((d,f)=>l.set(f,!1))},[r]),S.useEffect(()=>{!r&&!l.size&&n&&n()},[r]),s==="popLayout"&&(e=w.jsx(wq,{isPresent:r,children:e})),w.jsx(Jf.Provider,{value:c,children:e})};function Sq(){return new Map}function Pq(e){return S.useEffect(()=>()=>e(),[])}const Rs=e=>e.key||"";function $q(e,t){e.forEach(r=>{const n=Rs(r);t.set(n,r)})}function Oq(e){const t=[];return S.Children.forEach(e,r=>{S.isValidElement(r)&&t.push(r)}),t}const Zu=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:a,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const l=S.useContext(o_).forceRender||_q()[0],u=bE(),c=Oq(e);let d=c;const f=S.useRef(new Map).current,m=S.useRef(d),g=S.useRef(new Map).current,x=S.useRef(!0);if(r_(()=>{x.current=!1,$q(c,g),m.current=d}),Pq(()=>{x.current=!0,g.clear(),f.clear()}),x.current)return w.jsx(w.Fragment,{children:d.map(y=>w.jsx(Sg,{isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:s,children:y},Rs(y)))});d=[...d];const p=m.current.map(Rs),$=c.map(Rs),b=p.length;for(let y=0;y{if($.indexOf(P)!==-1)return;const M=g.get(P);if(!M)return;const A=p.indexOf(P);let F=y;if(!F){const L=()=>{f.delete(P);const z=Array.from(g.keys()).filter(q=>!$.includes(q));if(z.forEach(q=>g.delete(q)),m.current=c.filter(q=>{const Q=Rs(q);return Q===P||z.includes(Q)}),!f.size){if(u.current===!1)return;l(),n&&n()}};F=w.jsx(Sg,{isPresent:!1,onExitComplete:L,custom:t,presenceAffectsLayout:o,mode:s,children:M},Rs(M)),f.set(P,F)}d.splice(A,0,F)}),d=d.map(y=>{const P=y.key;return f.has(P)?y:w.jsx(Sg,{isPresent:!0,presenceAffectsLayout:o,mode:s,children:y},Rs(y))}),w.jsx(w.Fragment,{children:f.size?d:d.map(y=>S.cloneElement(y))})};var Cq={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},yE=S.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:a,requestClose:o=!1,position:s="bottom",duration:l=5e3,containerStyle:u,motionVariants:c=Cq,toastSpacing:d="0.5rem"}=e,[f,m]=S.useState(l),g=SG();xP(()=>{g||n==null||n()},[g]),xP(()=>{m(l)},[l]);const x=()=>m(null),p=()=>m(l),$=()=>{g&&a()};S.useEffect(()=>{g&&o&&a()},[g,o,a]),JV($,f);const b=S.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...u}),[u,d]),y=S.useMemo(()=>XV(s),[s]);return w.jsx(ni.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:x,onHoverEnd:p,custom:{position:s},style:y,children:w.jsx(fe.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:io(r,{id:t,onClose:$})})})});yE.displayName="ToastComponent";var A$={path:w.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),w.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Lr=he((e,t)=>{const{as:r,viewBox:n,color:a="currentColor",focusable:o=!1,children:s,className:l,__css:u,...c}=e,d=ke("chakra-icon",l),f=ri("Icon",e),m={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a,...u,...f},g={ref:t,focusable:o,className:d,__css:m},x=n??A$.viewBox;if(r&&typeof r!="string")return w.jsx(fe.svg,{as:r,...g,...c});const p=s??A$.path;return w.jsx(fe.svg,{verticalAlign:"middle",viewBox:x,...g,...c,children:p})});Lr.displayName="Icon";function _E(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:a={}}=e,o=S.Children.toArray(e.path),s=he((l,u)=>w.jsx(Lr,{ref:u,viewBox:t,...a,...l,children:o.length?o:w.jsx("path",{fill:"currentColor",d:r})}));return s.displayName=n,s}function Mq(e){return w.jsx(Lr,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function Tq(e){return w.jsx(Lr,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function F$(e){return w.jsx(Lr,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var Eq=uM({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),fl=he((e,t)=>{const r=ri("Spinner",e),{label:n="Loading...",thickness:a="2px",speed:o="0.45s",emptyColor:s="transparent",className:l,...u}=mr(e),c=ke("chakra-spinner",l),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:a,borderBottomColor:s,borderLeftColor:s,animation:`${Eq} ${o} linear infinite`,...r};return w.jsx(fe.div,{ref:t,__css:d,className:c,...u,children:n&&w.jsx(fe.span,{srOnly:!0,children:n})})});fl.displayName="Spinner";var[Dq,C_]=Yr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[jq,M_]=Yr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),xE={info:{icon:Tq,colorScheme:"blue"},warning:{icon:F$,colorScheme:"orange"},success:{icon:Mq,colorScheme:"green"},error:{icon:F$,colorScheme:"red"},loading:{icon:fl,colorScheme:"blue"}};function Iq(e){return xE[e].colorScheme}function Aq(e){return xE[e].icon}var wE=he(function(t,r){const n=M_(),{status:a}=C_(),o={display:"inline",...n.description};return w.jsx(fe.div,{ref:r,"data-status":a,...t,className:ke("chakra-alert__desc",t.className),__css:o})});wE.displayName="AlertDescription";function SE(e){const{status:t}=C_(),r=Aq(t),n=M_(),a=t==="loading"?n.spinner:n.icon;return w.jsx(fe.span,{display:"inherit","data-status":t,...e,className:ke("chakra-alert__icon",e.className),__css:a,children:e.children||w.jsx(r,{h:"100%",w:"100%"})})}SE.displayName="AlertIcon";var PE=he(function(t,r){const n=M_(),{status:a}=C_();return w.jsx(fe.div,{ref:r,"data-status":a,...t,className:ke("chakra-alert__title",t.className),__css:n.title})});PE.displayName="AlertTitle";var $E=he(function(t,r){var n;const{status:a="info",addRole:o=!0,...s}=mr(t),l=(n=t.colorScheme)!=null?n:Iq(a),u=Mo("Alert",{...t,colorScheme:l}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return w.jsx(Dq,{value:{status:a},children:w.jsx(jq,{value:u,children:w.jsx(fe.div,{"data-status":a,role:o?"alert":void 0,ref:r,...s,className:ke("chakra-alert",t.className),__css:c})})})});$E.displayName="Alert";function Fq(e){return w.jsx(Lr,{focusable:"false","aria-hidden":!0,...e,children:w.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var T_=he(function(t,r){const n=ri("CloseButton",t),{children:a,isDisabled:o,__css:s,...l}=mr(t),u={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return w.jsx(fe.button,{type:"button","aria-label":"Close",ref:r,disabled:o,__css:{...u,...n,...s},...l,children:a||w.jsx(Fq,{width:"1em",height:"1em"})})});T_.displayName="CloseButton";var Rq={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},of=kq(Rq);function kq(e){let t=e;const r=new Set,n=a=>{t=a(t),r.forEach(o=>o())};return{getState:()=>t,subscribe:a=>(r.add(a),()=>{n(()=>e),r.delete(a)}),removeToast:(a,o)=>{n(s=>({...s,[o]:s[o].filter(l=>l.id!=a)}))},notify:(a,o)=>{const s=Nq(a,o),{position:l,id:u}=s;return n(c=>{var d,f;const g=l.includes("top")?[s,...(d=c[l])!=null?d:[]]:[...(f=c[l])!=null?f:[],s];return{...c,[l]:g}}),u},update:(a,o)=>{a&&n(s=>{const l={...s},{position:u,index:c}=_P(l,a);return u&&c!==-1&&(l[u][c]={...l[u][c],...o,message:zq(o)}),l})},closeAll:({positions:a}={})=>{n(o=>(a??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((u,c)=>(u[c]=o[c].map(d=>({...d,requestClose:!0})),u),{...o}))},close:a=>{n(o=>{const s=HM(o,a);return s?{...o,[s]:o[s].map(l=>l.id==a?{...l,requestClose:!0}:l)}:o})},isActive:a=>!!_P(of.getState(),a).position}}var R$=0;function Nq(e,t={}){var r,n;R$+=1;const a=(r=t.id)!=null?r:R$,o=(n=t.position)!=null?n:"bottom";return{id:a,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>of.removeToast(String(a),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var Lq=e=>{const{status:t,variant:r="solid",id:n,title:a,isClosable:o,onClose:s,description:l,colorScheme:u,icon:c}=e,d=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return w.jsxs($E,{addRole:!1,status:t,variant:r,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[w.jsx(SE,{children:c}),w.jsxs(fe.div,{flex:"1",maxWidth:"100%",children:[a&&w.jsx(PE,{id:d==null?void 0:d.title,children:a}),l&&w.jsx(wE,{id:d==null?void 0:d.description,display:"block",children:l})]}),o&&w.jsx(T_,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function zq(e={}){const{render:t,toastComponent:r=Lq}=e;return a=>typeof t=="function"?t({...a,...e}):w.jsx(r,{...a,...e})}var[Wq,zme]=Yr({name:"ToastOptionsContext",strict:!1}),Bq=e=>{const t=S.useSyncExternalStore(of.subscribe,of.getState,of.getState),{motionVariants:r,component:n=yE,portalProps:a}=e,s=Object.keys(t).map(l=>{const u=t[l];return w.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:KV(l),children:w.jsx(Zu,{initial:!1,children:u.map(c=>w.jsx(n,{motionVariants:r,...c},c.id))})},l)});return w.jsx(Kf,{...a,children:s})},Vq=e=>function({children:r,theme:n=e,toastOptions:a,...o}){return w.jsxs(qV,{theme:n,...o,children:[w.jsx(Wq,{value:a==null?void 0:a.defaultOptions,children:r}),w.jsx(Bq,{...a})]})},Hq=Vq(RM);function Yq(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Lf(...e){return t=>{e.forEach(r=>{Yq(r,t)})}}function Uq(...e){return S.useMemo(()=>Lf(...e),e)}var k$={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Zs={enter:{duration:.2,ease:k$.easeOut},exit:{duration:.1,ease:k$.easeIn}},Js={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},Gq={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:(n=e==null?void 0:e.enter)!=null?n:Js.enter(Zs.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:(n=e==null?void 0:e.exit)!=null?n:Js.exit(Zs.exit,r),transitionEnd:t==null?void 0:t.exit}}},OE={initial:"exit",animate:"enter",exit:"exit",variants:Gq},qq=S.forwardRef(function(t,r){const{unmountOnExit:n,in:a,className:o,transition:s,transitionEnd:l,delay:u,...c}=t,d=a||n?"enter":"exit",f=n?a&&n:!0,m={transition:s,transitionEnd:l,delay:u};return w.jsx(Zu,{custom:m,children:f&&w.jsx(ni.div,{ref:r,className:ke("chakra-fade",o),custom:m,...OE,animate:d,...c})})});qq.displayName="Fade";var Qq={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:a})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{scale:t,...n==null?void 0:n.exit}},transition:(o=r==null?void 0:r.exit)!=null?o:Js.exit(Zs.exit,a)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:(n=t==null?void 0:t.enter)!=null?n:Js.enter(Zs.enter,r),transitionEnd:e==null?void 0:e.enter}}},CE={initial:"exit",animate:"enter",exit:"exit",variants:Qq},Xq=S.forwardRef(function(t,r){const{unmountOnExit:n,in:a,reverse:o=!0,initialScale:s=.95,className:l,transition:u,transitionEnd:c,delay:d,...f}=t,m=n?a&&n:!0,g=a||n?"enter":"exit",x={initialScale:s,reverse:o,transition:u,transitionEnd:c,delay:d};return w.jsx(Zu,{custom:x,children:m&&w.jsx(ni.div,{ref:r,className:ke("chakra-offset-slide",l),...CE,animate:g,custom:x,...f})})});Xq.displayName="ScaleFade";var Kq={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:a})=>{var o;return{opacity:0,x:e,y:t,transition:(o=r==null?void 0:r.exit)!=null?o:Js.exit(Zs.exit,a),transitionEnd:n==null?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:(n=e==null?void 0:e.enter)!=null?n:Js.enter(Zs.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:a,delay:o})=>{var s;const l={x:t,y:e};return{opacity:0,transition:(s=r==null?void 0:r.exit)!=null?s:Js.exit(Zs.exit,o),...a?{...l,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{...l,...n==null?void 0:n.exit}}}}},Ld={initial:"initial",animate:"enter",exit:"exit",variants:Kq},Zq=S.forwardRef(function(t,r){const{unmountOnExit:n,in:a,reverse:o=!0,className:s,offsetX:l=0,offsetY:u=8,transition:c,transitionEnd:d,delay:f,...m}=t,g=n?a&&n:!0,x=a||n?"enter":"exit",p={offsetX:l,offsetY:u,reverse:o,transition:c,transitionEnd:d,delay:f};return w.jsx(Zu,{custom:p,children:g&&w.jsx(ni.div,{ref:r,className:ke("chakra-offset-slide",s),custom:p,...Ld,animate:x,...m})})});Zq.displayName="SlideFade";var[Jq,eQ]=Yr({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""});function tQ(e){var t;const r=e.split(" "),n=(t=r[0])!=null?t:"",a=r.length>1?r[r.length-1]:"";return n&&a?`${n.charAt(0)}${a.charAt(0)}`:n.charAt(0)}function ME(e){const{name:t,getInitials:r,...n}=e,a=eQ();return w.jsx(fe.div,{role:"img","aria-label":t,...n,__css:a.label,children:t?r==null?void 0:r(t):null})}ME.displayName="AvatarName";var TE=e=>w.jsxs(fe.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[w.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),w.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]}),Pb=he(function(t,r){const{htmlWidth:n,htmlHeight:a,alt:o,...s}=t;return w.jsx("img",{width:n,height:a,ref:r,alt:o,...s})});Pb.displayName="NativeImage";function EE(e){const{loading:t,src:r,srcSet:n,onLoad:a,onError:o,crossOrigin:s,sizes:l,ignoreFallback:u}=e,[c,d]=S.useState("pending");S.useEffect(()=>{d(r?"loading":"pending")},[r]);const f=S.useRef(),m=S.useCallback(()=>{if(!r)return;g();const x=new Image;x.src=r,s&&(x.crossOrigin=s),n&&(x.srcset=n),l&&(x.sizes=l),t&&(x.loading=t),x.onload=p=>{g(),d("loaded"),a==null||a(p)},x.onerror=p=>{g(),d("failed"),o==null||o(p)},f.current=x},[r,s,n,l,a,o,t]),g=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return Tf(()=>{if(!u)return c==="loading"&&m(),()=>{g()}},[c,m,u]),u?"loaded":c}var rQ=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function nQ(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var Pv=he(function(t,r){const{fallbackSrc:n,fallback:a,src:o,srcSet:s,align:l,fit:u,loading:c,ignoreFallback:d,crossOrigin:f,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:g,...x}=t,p=n!==void 0||a!==void 0,$=c!=null||d||!p,b=EE({...t,crossOrigin:f,ignoreFallback:$}),y=rQ(b,m),P={ref:r,objectFit:u,objectPosition:l,...$?x:nQ(x,["onError","onLoad"])};return y?a||w.jsx(fe.img,{as:Pb,className:"chakra-image__placeholder",src:n,...P}):w.jsx(fe.img,{as:Pb,src:o,srcSet:s,crossOrigin:f,loading:c,referrerPolicy:g,className:"chakra-image",...P})});Pv.displayName="Image";function DE(e){const{src:t,srcSet:r,onError:n,onLoad:a,getInitials:o,name:s,borderRadius:l,loading:u,iconLabel:c,icon:d=w.jsx(TE,{}),ignoreFallback:f,referrerPolicy:m,crossOrigin:g}=e,p=EE({src:t,onError:n,crossOrigin:g,ignoreFallback:f})==="loaded";return!t||!p?s?w.jsx(ME,{className:"chakra-avatar__initials",getInitials:o,name:s}):S.cloneElement(d,{role:"img","aria-label":c}):w.jsx(fe.img,{src:t,srcSet:r,alt:s,onLoad:a,referrerPolicy:m,crossOrigin:g??void 0,className:"chakra-avatar__img",loading:u,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:l}})}DE.displayName="AvatarImage";var aQ={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},E_=he((e,t)=>{const r=Mo("Avatar",e),[n,a]=S.useState(!1),{src:o,srcSet:s,name:l,showBorder:u,borderRadius:c="full",onError:d,onLoad:f,getInitials:m=tQ,icon:g=w.jsx(TE,{}),iconLabel:x=" avatar",loading:p,children:$,borderColor:b,ignoreFallback:y,crossOrigin:P,referrerPolicy:M,...A}=mr(e),F={borderRadius:c,borderWidth:u?"2px":void 0,...aQ,...r.container};return b&&(F.borderColor=b),w.jsx(fe.span,{ref:t,...A,className:ke("chakra-avatar",e.className),"data-loaded":en(n),__css:F,children:w.jsxs(Jq,{value:r,children:[w.jsx(DE,{src:o,srcSet:s,loading:p,onLoad:oo(f,()=>{a(!0)}),onError:d,getInitials:m,name:l,borderRadius:c,icon:g,iconLabel:x,ignoreFallback:y,crossOrigin:P,referrerPolicy:M}),$]})})});E_.displayName="Avatar";function D_(e){return S.Children.toArray(e).filter(t=>S.isValidElement(t))}var[Wme,iQ]=Yr({strict:!1,name:"ButtonGroupContext"});function oQ(e){const[t,r]=S.useState(!e);return{ref:S.useCallback(o=>{o&&r(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}function $b(e){const{children:t,className:r,...n}=e,a=S.isValidElement(t)?S.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=ke("chakra-button__icon",r);return w.jsx(fe.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:o,children:a})}$b.displayName="ButtonIcon";function Ob(e){const{label:t,placement:r,spacing:n="0.5rem",children:a=w.jsx(fl,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:s,...l}=e,u=ke("chakra-button__spinner",o),c=r==="start"?"marginEnd":"marginStart",d=S.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,c,n]);return w.jsx(fe.div,{className:u,...l,__css:d,children:a})}Ob.displayName="ButtonSpinner";var Ju=he((e,t)=>{const r=iQ(),n=ri("Button",{...r,...e}),{isDisabled:a=r==null?void 0:r.isDisabled,isLoading:o,isActive:s,children:l,leftIcon:u,rightIcon:c,loadingText:d,iconSpacing:f="0.5rem",type:m,spinner:g,spinnerPlacement:x="start",className:p,as:$,...b}=mr(e),y=S.useMemo(()=>{const F={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:F}}},[n,r]),{ref:P,type:M}=oQ($),A={rightIcon:c,leftIcon:u,iconSpacing:f,children:l};return w.jsxs(fe.button,{ref:Uq(t,P),as:$,type:m??M,"data-active":en(s),"data-loading":en(o),__css:y,className:ke("chakra-button",p),...b,disabled:a||o,children:[o&&x==="start"&&w.jsx(Ob,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:g}),o?d||w.jsx(fe.span,{opacity:0,children:w.jsx(N$,{...A})}):w.jsx(N$,{...A}),o&&x==="end"&&w.jsx(Ob,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:g})]})});Ju.displayName="Button";function N$(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:a}=e;return w.jsxs(w.Fragment,{children:[t&&w.jsx($b,{marginEnd:a,children:t}),n,r&&w.jsx($b,{marginStart:a,children:r})]})}var[sQ,lQ]=Yr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[uQ,jE]=Yr({strict:!1,name:"FormControlContext"});function cQ(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:a,isReadOnly:o,...s}=e,l=S.useId(),u=t||`field-${l}`,c=`${u}-label`,d=`${u}-feedback`,f=`${u}-helptext`,[m,g]=S.useState(!1),[x,p]=S.useState(!1),[$,b]=S.useState(!1),y=S.useCallback((L={},z=null)=>({id:f,...L,ref:Lf(z,q=>{q&&p(!0)})}),[f]),P=S.useCallback((L={},z=null)=>({...L,ref:z,"data-focus":en($),"data-disabled":en(a),"data-invalid":en(n),"data-readonly":en(o),id:L.id!==void 0?L.id:c,htmlFor:L.htmlFor!==void 0?L.htmlFor:u}),[u,a,$,n,o,c]),M=S.useCallback((L={},z=null)=>({id:d,...L,ref:Lf(z,q=>{q&&g(!0)}),"aria-live":"polite"}),[d]),A=S.useCallback((L={},z=null)=>({...L,...s,ref:z,role:"group","data-focus":en($),"data-disabled":en(a),"data-invalid":en(n),"data-readonly":en(o)}),[s,a,$,n,o]),F=S.useCallback((L={},z=null)=>({...L,ref:z,role:"presentation","aria-hidden":!0,children:L.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!o,isDisabled:!!a,isFocused:!!$,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:x,setHasHelpText:p,id:u,labelId:c,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:y,getErrorMessageProps:M,getRootProps:A,getLabelProps:P,getRequiredIndicatorProps:F}}var dQ=he(function(t,r){const n=Mo("Form",t),a=mr(t),{getRootProps:o,htmlProps:s,...l}=cQ(a),u=ke("chakra-form-control",t.className);return w.jsx(uQ,{value:l,children:w.jsx(sQ,{value:n,children:w.jsx(fe.div,{...o({},r),className:u,__css:n.container})})})});dQ.displayName="FormControl";var fQ=he(function(t,r){const n=jE(),a=lQ(),o=ke("chakra-form__helper-text",t.className);return w.jsx(fe.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:a.helperText,className:o})});fQ.displayName="FormHelperText";function IE(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:a,...o}=hQ(e);return{...o,disabled:t,readOnly:n,required:a,"aria-invalid":Yp(r),"aria-required":Yp(a),"aria-readonly":Yp(n)}}function hQ(e){var t,r,n;const a=jE(),{id:o,disabled:s,readOnly:l,required:u,isRequired:c,isInvalid:d,isReadOnly:f,isDisabled:m,onFocus:g,onBlur:x,...p}=e,$=e["aria-describedby"]?[e["aria-describedby"]]:[];return a!=null&&a.hasFeedbackText&&(a!=null&&a.isInvalid)&&$.push(a.feedbackId),a!=null&&a.hasHelpText&&$.push(a.helpTextId),{...p,"aria-describedby":$.join(" ")||void 0,id:o??(a==null?void 0:a.id),isDisabled:(t=s??m)!=null?t:a==null?void 0:a.isDisabled,isReadOnly:(r=l??f)!=null?r:a==null?void 0:a.isReadOnly,isRequired:(n=u??c)!=null?n:a==null?void 0:a.isRequired,isInvalid:d??(a==null?void 0:a.isInvalid),onFocus:oo(a==null?void 0:a.onFocus,g),onBlur:oo(a==null?void 0:a.onBlur,x)}}function mQ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var Cb="data-focus-lock",AE="data-focus-lock-disabled",vQ="data-no-focus-lock",pQ="data-autofocus-inside",gQ="data-no-autofocus";function Pg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bQ(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var yQ=typeof window<"u"?S.useLayoutEffect:S.useEffect,L$=new WeakMap;function FE(e,t){var r=bQ(null,function(n){return e.forEach(function(a){return Pg(a,n)})});return yQ(function(){var n=L$.get(r);if(n){var a=new Set(n),o=new Set(e),s=r.current;a.forEach(function(l){o.has(l)||Pg(l,null)}),o.forEach(function(l){a.has(l)||Pg(l,s)})}L$.set(r,e)},[e]),r}var $g={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},ea=function(){return ea=Object.assign||function(t){for(var r,n=1,a=arguments.length;n=0}).sort(LQ)},WQ=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],R_=WQ.join(","),BQ="".concat(R_,", [data-focus-guard]"),KE=function(e,t){return sa((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?BQ:R_)?[n]:[],KE(n))},[])},VQ=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?Uu([e.contentDocument.body],t):[e]},Uu=function(e,t){return e.reduce(function(r,n){var a,o=KE(n,t),s=(a=[]).concat.apply(a,o.map(function(l){return VQ(l,t)}));return r.concat(s,n.parentNode?sa(n.parentNode.querySelectorAll(R_)).filter(function(l){return l===n}):[])},[])},HQ=function(e){var t=e.querySelectorAll("[".concat(pQ,"]"));return sa(t).map(function(r){return Uu([r])}).reduce(function(r,n){return r.concat(n)},[])},k_=function(e,t){return sa(e).filter(function(r){return UE(t,r)}).filter(function(r){return RQ(r)})},z$=function(e,t){return t===void 0&&(t=new Map),sa(e).filter(function(r){return GE(t,r)})},N_=function(e,t,r){return F_(k_(Uu(e,r),t),!0,r)},$0=function(e,t){return F_(k_(Uu(e),t),!1)},YQ=function(e,t){return k_(HQ(e),t)},el=function(e,t){return e.shadowRoot?el(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:sa(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var a=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return a?el(a,t):!1}return el(r,t)})},UQ=function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(a),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(s,l){return!t.has(l)})},ZE=function(e){return e.parentNode?ZE(e.parentNode):e},L_=function(e){var t=sl(e);return t.filter(Boolean).reduce(function(r,n){var a=n.getAttribute(Cb);return r.push.apply(r,a?UQ(sa(ZE(n).querySelectorAll("[".concat(Cb,'="').concat(a,'"]:not([').concat(AE,'="disabled"])')))):[n]),r},[])},GQ=function(e){try{return e()}catch{return}},Wf=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Wf(t.shadowRoot):t instanceof HTMLIFrameElement&&GQ(function(){return t.contentWindow.document})?Wf(t.contentWindow.document):t}},qQ=function(e,t){return e===t},QQ=function(e,t){return!!sa(e.querySelectorAll("iframe")).some(function(r){return qQ(r,t)})},JE=function(e,t){return t===void 0&&(t=Wf(VE(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:L_(e).some(function(r){return el(r,t)||QQ(r,t)})},XQ=function(e){e===void 0&&(e=document);var t=Wf(e);return t?sa(e.querySelectorAll("[".concat(vQ,"]"))).some(function(r){return el(r,t)}):!1},KQ=function(e,t){return t.filter(XE).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},z_=function(e,t){return XE(e)&&e.name?KQ(e,t):e},ZQ=function(e){var t=new Set;return e.forEach(function(r){return t.add(z_(r,e))}),e.filter(function(r){return t.has(r)})},W$=function(e){return e[0]&&e.length>1?z_(e[0],e):e[0]},B$=function(e,t){return e.indexOf(z_(t,e))},Eb="NEW_FOCUS",JQ=function(e,t,r,n,a){var o=e.length,s=e[0],l=e[o-1],u=A_(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?r.indexOf(n):-1,d=a?r.indexOf(a):c,f=a?e.indexOf(a):-1;if(c===-1)return f!==-1?f:Eb;if(f===-1)return Eb;var m=c-d,g=r.indexOf(s),x=r.indexOf(l),p=ZQ(r),$=n!==void 0?p.indexOf(n):-1,b=$-(a?p.indexOf(a):c);if(!m&&f>=0||t.length===0)return f;var y=B$(e,t[0]),P=B$(e,t[t.length-1]);if(c<=g&&u&&Math.abs(m)>1)return P;if(c>=x&&u&&Math.abs(m)>1)return y;if(m&&Math.abs(b)>1)return f;if(c<=g)return P;if(c>x)return y;if(m)return Math.abs(m)>1?f:(o+f+m)%o}},eX=function(e){return function(t){var r,n=(r=qE(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},V$=function(e,t,r){var n=e.map(function(o){var s=o.node;return s}),a=z$(n.filter(eX(r)));return a&&a.length?W$(a):W$(z$(t))},Db=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Db(e.parentNode.host||e.parentNode,t),t},Og=function(e,t){for(var r=Db(e),n=Db(t),a=0;a=0)return o}return!1},e4=function(e,t,r){var n=sl(e),a=sl(t),o=n[0],s=!1;return a.filter(Boolean).forEach(function(l){s=Og(s||l,l)||s,r.filter(Boolean).forEach(function(u){var c=Og(o,u);c&&(!s||el(c,s)?s=c:s=Og(c,s))})}),s},H$=function(e,t){return e.reduce(function(r,n){return r.concat(YQ(n,t))},[])},tX=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(NQ)},rX=function(e,t){var r=Wf(sl(e).length>0?document:VE(e).ownerDocument),n=L_(e).filter(Tb),a=e4(r||e,e,n),o=new Map,s=$0(n,o),l=s.filter(function(x){var p=x.node;return Tb(p)});if(l[0]){var u=$0([a],o).map(function(x){var p=x.node;return p}),c=tX(u,l),d=c.map(function(x){var p=x.node;return p}),f=c.filter(function(x){var p=x.tabIndex;return p>=0}).map(function(x){var p=x.node;return p}),m=JQ(d,f,u,r,t);if(m===Eb){var g=V$(s,f,H$(n,o))||V$(s,d,H$(n,o));if(g)return{node:g};console.warn("focus-lock: cannot find any node to move focus into");return}return m===void 0?m:c[m]}},nX=function(e){var t=L_(e).filter(Tb),r=e4(e,e,t),n=F_(Uu([r],!0),!0,!0),a=Uu(t,!1);return n.map(function(o){var s=o.node,l=o.index;return{node:s,index:l,lockItem:a.indexOf(s)>=0,guard:A_(s)}})},W_=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Cg=0,Mg=!1,t4=function(e,t,r){r===void 0&&(r={});var n=rX(e,t);if(!Mg&&n){if(Cg>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Mg=!0,setTimeout(function(){Mg=!1},1);return}Cg++,W_(n.node,r.focusOptions),Cg--}};function hd(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var aX=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:hd(r),parent:hd(r.parentElement),left:hd(r.previousElementSibling),right:hd(r.nextElementSibling)}),r=r.parentElement;return{element:hd(e),stack:t,ownerDocument:e.ownerDocument}},iX=function(e){var t,r,n,a,o;if(e)for(var s=e.stack,l=e.ownerDocument,u=new Map,c=0,d=s;c-1&&(g.filter(function(p){var $=p.guard,b=p.node;return $&&b.dataset.focusAutoGuard}).forEach(function(p){var $=p.node;return $.removeAttribute("tabIndex")}),Y$(x,g.length,1,g),Y$(x,-1,-1,g))}}}return t},a4=function(t){O0()&&t&&(t.stopPropagation(),t.preventDefault())},V_=function(){return B_(O0)},PX=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||yX(n,r)},$X=function(){return null},i4=function(){Bf="just",B_(function(){Bf="meanwhile"})},OX=function(){document.addEventListener("focusin",a4),document.addEventListener("focusout",V_),window.addEventListener("blur",i4)},CX=function(){document.removeEventListener("focusin",a4),document.removeEventListener("focusout",V_),window.removeEventListener("blur",i4)};function MX(e){return e.filter(function(t){var r=t.disabled;return!r})}var o4={moveFocusInside:t4,focusInside:JE,focusNextElement:cX,focusPrevElement:dX,focusFirstElement:fX,focusLastElement:hX,captureFocusRestore:oX};function TX(e){var t=e.slice(-1)[0];t&&!Du&&OX();var r=Du,n=r&&t&&t.id===r.id;Du=t,r&&!n&&(r.onDeactivation(),e.filter(function(a){var o=a.id;return o===r.id}).length||r.returnFocus(!t)),t?(yu=null,(!n||r.observed!==t.observed)&&t.onActivation(o4),O0(),B_(O0)):(CX(),yu=null)}WE.assignSyncMedium(PX);BE.assignMedium(V_);wQ.assignMedium(function(e){return e(o4)});const EX=EQ(MX,TX)($X);var jb=S.forwardRef(function(t,r){return S.createElement(I_,ol({sideCar:EX,ref:r},t))}),s4=I_.propTypes||{};s4.sideCar;mQ(s4,["sideCar"]);jb.propTypes={};function DX(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function jX(e){var t;if(!DX(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}var IX=e=>e.hasAttribute("tabindex");function AX(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function l4(e){return e.parentElement&&l4(e.parentElement)?!0:e.hidden}function FX(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function RX(e){if(!jX(e)||l4(e)||AX(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():FX(e)?!0:IX(e)}var kX=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],NX=kX.join(),LX=e=>e.offsetWidth>0&&e.offsetHeight>0;function zX(e){const t=Array.from(e.querySelectorAll(NX));return t.unshift(e),t.filter(r=>RX(r)&&LX(r))}var U$,WX=(U$=jb.default)!=null?U$:jb,u4=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:a,children:o,isDisabled:s,autoFocus:l,persistentFocus:u,lockFocusAcrossFrames:c}=e,d=S.useCallback(()=>{t!=null&&t.current?t.current.focus():n!=null&&n.current&&zX(n.current).length===0&&requestAnimationFrame(()=>{var x;(x=n.current)==null||x.focus()})},[t,n]),f=S.useCallback(()=>{var g;(g=r==null?void 0:r.current)==null||g.focus()},[r]),m=a&&!r;return w.jsx(WX,{crossFrame:c,persistentFocus:u,autoFocus:l,disabled:s,onActivation:d,onDeactivation:f,returnFocus:m,children:o})};u4.displayName="FocusLock";var BX=gV?S.useLayoutEffect:S.useEffect;function G$(e,t=[]){const r=S.useRef(e);return BX(()=>{r.current=e}),S.useCallback((...n)=>{var a;return(a=r.current)==null?void 0:a.call(r,...n)},t)}function VX(e,t){const r=S.useId();return S.useMemo(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function HX(e,t){const r=e!==void 0;return[r,r&&typeof e<"u"?e:t]}function YX(e={}){const{onClose:t,onOpen:r,isOpen:n,id:a}=e,o=G$(r),s=G$(t),[l,u]=S.useState(e.defaultIsOpen||!1),[c,d]=HX(n,l),f=VX(a,"disclosure"),m=S.useCallback(()=>{c||u(!1),s==null||s()},[c,s]),g=S.useCallback(()=>{c||u(!0),o==null||o()},[c,o]),x=S.useCallback(()=>{(d?m:g)()},[d,g,m]);return{isOpen:!!d,onOpen:g,onClose:m,onToggle:x,isControlled:c,getButtonProps:(p={})=>({...p,"aria-expanded":d,"aria-controls":f,onClick:wV(p.onClick,x)}),getDisclosureProps:(p={})=>({...p,hidden:!d,id:f})}}var[UX,GX]=Yr({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),$v=he(function(t,r){const n=Mo("Input",t),{children:a,className:o,...s}=mr(t),l=ke("chakra-input__group",o),u={},c=D_(a),d=n.field;c.forEach(m=>{var g,x;n&&(d&&m.type.id==="InputLeftElement"&&(u.paddingStart=(g=d.height)!=null?g:d.h),d&&m.type.id==="InputRightElement"&&(u.paddingEnd=(x=d.height)!=null?x:d.h),m.type.id==="InputRightAddon"&&(u.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(u.borderStartRadius=0))});const f=c.map(m=>{var g,x;const p=Jy({size:((g=m.props)==null?void 0:g.size)||t.size,variant:((x=m.props)==null?void 0:x.variant)||t.variant});return m.type.id!=="Input"?S.cloneElement(m,p):S.cloneElement(m,Object.assign(p,u,m.props))});return w.jsx(fe.div,{className:l,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...s,children:w.jsx(UX,{value:n,children:f})})});$v.displayName="InputGroup";var qX=fe("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Ov=he(function(t,r){var n,a;const{placement:o="left",...s}=t,l=GX(),u=l.field,d={[o==="left"?"insetStart":"insetEnd"]:"0",width:(n=u==null?void 0:u.height)!=null?n:u==null?void 0:u.h,height:(a=u==null?void 0:u.height)!=null?a:u==null?void 0:u.h,fontSize:u==null?void 0:u.fontSize,...l.element};return w.jsx(qX,{ref:r,__css:d,...s})});Ov.id="InputElement";Ov.displayName="InputElement";var ah=he(function(t,r){const{className:n,...a}=t,o=ke("chakra-input__left-element",n);return w.jsx(Ov,{ref:r,placement:"left",className:o,...a})});ah.id="InputLeftElement";ah.displayName="InputLeftElement";var c4=he(function(t,r){const{className:n,...a}=t,o=ke("chakra-input__right-element",n);return w.jsx(Ov,{ref:r,placement:"right",className:o,...a})});c4.id="InputRightElement";c4.displayName="InputRightElement";var ih=he(function(t,r){const{htmlSize:n,...a}=t,o=Mo("Input",a),s=mr(a),l=IE(s),u=ke("chakra-input",t.className);return w.jsx(fe.input,{size:n,...l,__css:o.field,ref:r,className:u})});ih.displayName="Input";ih.id="Input";var Ga=he(function(t,r){const n=ri("Link",t),{className:a,isExternal:o,...s}=mr(t);return w.jsx(fe.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:r,className:ke("chakra-link",a),...s,__css:n})});Ga.displayName="Link";var[QX,d4]=Yr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Cv=he(function(t,r){const n=Mo("List",t),{children:a,styleType:o="none",stylePosition:s,spacing:l,...u}=mr(t),c=D_(a),f=l?{["& > *:not(style) ~ *:not(style)"]:{mt:l}}:{};return w.jsx(QX,{value:n,children:w.jsx(fe.ul,{ref:r,listStyleType:o,listStylePosition:s,role:"list",__css:{...n.container,...f},...u,children:c})})});Cv.displayName="List";var XX=he((e,t)=>{const{as:r,...n}=e;return w.jsx(Cv,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});XX.displayName="OrderedList";var KX=he(function(t,r){const{as:n,...a}=t;return w.jsx(Cv,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...a})});KX.displayName="UnorderedList";var f4=he(function(t,r){const n=d4();return w.jsx(fe.li,{ref:r,...t,__css:n.item})});f4.displayName="ListItem";var ZX=he(function(t,r){const n=d4();return w.jsx(Lr,{ref:r,role:"presentation",...t,__css:n.icon})});ZX.displayName="ListIcon";var H_=he(function(t,r){const{templateAreas:n,gap:a,rowGap:o,columnGap:s,column:l,row:u,autoFlow:c,autoRows:d,templateRows:f,autoColumns:m,templateColumns:g,...x}=t,p={display:"grid",gridTemplateAreas:n,gridGap:a,gridRowGap:o,gridColumnGap:s,gridAutoColumns:m,gridColumn:l,gridRow:u,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:g};return w.jsx(fe.div,{ref:r,__css:p,...x})});H_.displayName="Grid";function Mv(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):jn(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}var Tv=he(function(t,r){const{columns:n,spacingX:a,spacingY:o,spacing:s,minChildWidth:l,...u}=t,c=mM(),d=l?eK(l,c):tK(n);return w.jsx(H_,{ref:r,gap:s,columnGap:a,rowGap:o,templateColumns:d,...u})});Tv.displayName="SimpleGrid";function JX(e){return typeof e=="number"?`${e}px`:e}function eK(e,t){return Mv(e,r=>{const n=DR("sizes",r,JX(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function tK(e){return Mv(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Qe=he(function(t,r){const n=ri("Text",t),{className:a,align:o,decoration:s,casing:l,...u}=mr(t),c=Jy({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return w.jsx(fe.p,{ref:r,className:ke("chakra-text",t.className),...c,...u,__css:n})});Qe.displayName="Text";var h4=e=>w.jsx(fe.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});h4.displayName="StackItem";function rK(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Mv(r,a=>n[a])}}var Y_=he((e,t)=>{const{isInline:r,direction:n,align:a,justify:o,spacing:s="0.5rem",wrap:l,children:u,divider:c,className:d,shouldWrapChildren:f,...m}=e,g=r?"row":n??"column",x=S.useMemo(()=>rK({spacing:s,direction:g}),[s,g]),p=!!c,$=!f&&!p,b=S.useMemo(()=>{const P=D_(u);return $?P:P.map((M,A)=>{const F=typeof M.key<"u"?M.key:A,L=A+1===P.length,q=f?w.jsx(h4,{children:M},F):M;if(!p)return q;const Q=S.cloneElement(c,{__css:x}),ve=L?null:Q;return w.jsxs(S.Fragment,{children:[q,ve]},F)})},[c,x,p,$,f,u]),y=ke("chakra-stack",d);return w.jsx(fe.div,{ref:t,display:"flex",alignItems:a,justifyContent:o,flexDirection:g,flexWrap:l,gap:p?void 0:s,className:y,...m,children:b})});Y_.displayName="Stack";var cn=he((e,t)=>w.jsx(Y_,{align:"center",...e,direction:"column",ref:t}));cn.displayName="VStack";var qa=he((e,t)=>w.jsx(Y_,{align:"center",...e,direction:"row",ref:t}));qa.displayName="HStack";function q$(e){return Mv(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Ib=he(function(t,r){const{area:n,colSpan:a,colStart:o,colEnd:s,rowEnd:l,rowSpan:u,rowStart:c,...d}=t,f=Jy({gridArea:n,gridColumn:q$(a),gridRow:q$(u),gridColumnStart:o,gridColumnEnd:s,gridRowStart:c,gridRowEnd:l});return w.jsx(fe.div,{ref:r,__css:f,...d})});Ib.displayName="GridItem";var Do=he(function(t,r){const n=ri("Heading",t),{className:a,...o}=mr(t);return w.jsx(fe.h2,{ref:r,className:ke("chakra-heading",t.className),...o,__css:n})});Do.displayName="Heading";var Mt=fe("div");Mt.displayName="Box";var m4=he(function(t,r){const{size:n,centerContent:a=!0,...o}=t,s=a?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return w.jsx(Mt,{ref:r,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...o})});m4.displayName="Square";var nK=he(function(t,r){const{size:n,...a}=t;return w.jsx(m4,{size:n,ref:r,borderRadius:"9999px",...a})});nK.displayName="Circle";var v4=he(function(t,r){const n=ri("Badge",t),{className:a,...o}=mr(t);return w.jsx(fe.span,{ref:r,className:ke("chakra-badge",t.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});v4.displayName="Badge";var Lm=he(function(t,r){const{className:n,centerContent:a,...o}=mr(t),s=ri("Container",t);return w.jsx(fe.div,{ref:r,className:ke("chakra-container",n),...o,__css:{...s,...a&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Lm.displayName="Container";var Ys=he(function(t,r){const{direction:n,align:a,justify:o,wrap:s,basis:l,grow:u,shrink:c,...d}=t,f={display:"flex",flexDirection:n,alignItems:a,justifyContent:o,flexWrap:s,flexBasis:l,flexGrow:u,flexShrink:c};return w.jsx(fe.div,{ref:r,__css:f,...d})});Ys.displayName="Flex";var aK={slideInBottom:{...Ld,custom:{offsetY:16,reverse:!0}},slideInRight:{...Ld,custom:{offsetX:16,reverse:!0}},slideInTop:{...Ld,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Ld,custom:{offsetX:-16,reverse:!0}},scale:{...CE,custom:{initialScale:.95,reverse:!0}},none:{}},iK=fe(ni.section),oK=e=>aK[e||"none"],p4=S.forwardRef((e,t)=>{const{preset:r,motionProps:n=oK(r),...a}=e;return w.jsx(iK,{ref:t,...n,...a})});p4.displayName="ModalTransition";var sK=Object.defineProperty,lK=(e,t,r)=>t in e?sK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uK=(e,t,r)=>(lK(e,t+"",r),r),cK=class{constructor(){uK(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},Ab=new cK;function g4(e,t){const[r,n]=S.useState(0);return S.useEffect(()=>{const a=e.current;if(a){if(t){const o=Ab.add(a);n(o)}return()=>{Ab.remove(a),n(0)}}},[t,e]),r}var dK=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wl=new WeakMap,Kh=new WeakMap,Zh={},Tg=0,b4=function(e){return e&&(e.host||b4(e.parentNode))},fK=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=b4(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},hK=function(e,t,r,n){var a=fK(t,Array.isArray(e)?e:[e]);Zh[r]||(Zh[r]=new WeakMap);var o=Zh[r],s=[],l=new Set,u=new Set(a),c=function(f){!f||l.has(f)||(l.add(f),c(f.parentNode))};a.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(m){if(l.has(m))d(m);else try{var g=m.getAttribute(n),x=g!==null&&g!=="false",p=(Wl.get(m)||0)+1,$=(o.get(m)||0)+1;Wl.set(m,p),o.set(m,$),s.push(m),p===1&&x&&Kh.set(m,!0),$===1&&m.setAttribute(r,"true"),x||m.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",m,b)}})};return d(t),l.clear(),Tg++,function(){s.forEach(function(f){var m=Wl.get(f)-1,g=o.get(f)-1;Wl.set(f,m),o.set(f,g),m||(Kh.has(f)||f.removeAttribute(n),Kh.delete(f)),g||f.removeAttribute(r)}),Tg--,Tg||(Wl=new WeakMap,Wl=new WeakMap,Kh=new WeakMap,Zh={})}},mK=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=dK(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),hK(n,a,r,"aria-hidden")):function(){return null}};function vK(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:a=!0,closeOnEsc:o=!0,useInert:s=!0,onOverlayClick:l,onEsc:u}=e,c=S.useRef(null),d=S.useRef(null),[f,m,g]=gK(n,"chakra-modal","chakra-modal--header","chakra-modal--body");pK(c,t&&s);const x=g4(c,t),p=S.useRef(null),$=S.useCallback(q=>{p.current=q.target},[]),b=S.useCallback(q=>{q.key==="Escape"&&(q.stopPropagation(),o&&(r==null||r()),u==null||u())},[o,r,u]),[y,P]=S.useState(!1),[M,A]=S.useState(!1),F=S.useCallback((q={},Q=null)=>({role:"dialog",...q,ref:Lf(Q,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?m:void 0,"aria-describedby":M?g:void 0,onClick:oo(q.onClick,ve=>ve.stopPropagation())}),[g,M,f,m,y]),L=S.useCallback(q=>{q.stopPropagation(),p.current===q.target&&Ab.isTopModal(c.current)&&(a&&(r==null||r()),l==null||l())},[r,a,l]),z=S.useCallback((q={},Q=null)=>({...q,ref:Lf(Q,d),onClick:oo(q.onClick,L),onKeyDown:oo(q.onKeyDown,b),onMouseDown:oo(q.onMouseDown,$)}),[b,$,L]);return{isOpen:t,onClose:r,headerId:m,bodyId:g,setBodyMounted:A,setHeaderMounted:P,dialogRef:c,overlayRef:d,getDialogProps:F,getDialogContainerProps:z,index:x}}function pK(e,t){const r=e.current;S.useEffect(()=>{if(!(!e.current||!t))return mK(e.current)},[t,e,r])}function gK(e,...t){const r=S.useId(),n=e||r;return S.useMemo(()=>t.map(a=>`${a}-${n}`),[n,t])}var[bK,ec]=Yr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[yK,ll]=Yr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),y4=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:a,trapFocus:o,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:m,lockFocusAcrossFrames:g,onCloseComplete:x}=t,p=Mo("Modal",t),b={...vK(t),autoFocus:a,trapFocus:o,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:m,lockFocusAcrossFrames:g};return w.jsx(yK,{value:b,children:w.jsx(bK,{value:p,children:w.jsx(Zu,{onExitComplete:x,children:b.isOpen&&w.jsx(Kf,{...r,children:n})})})})};y4.displayName="Modal";var zm="right-scroll-bar-position",Wm="width-before-scroll-bar",_K="with-scroll-bars-hidden",xK="--removed-body-scroll-bar-size",_4=LE(),Eg=function(){},Ev=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:Eg,onWheelCapture:Eg,onTouchMoveCapture:Eg}),a=n[0],o=n[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,g=e.noIsolation,x=e.inert,p=e.allowPinchZoom,$=e.as,b=$===void 0?"div":$,y=e.gapMode,P=RE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=m,A=FE([r,t]),F=ea(ea({},P),a);return S.createElement(S.Fragment,null,d&&S.createElement(M,{sideCar:_4,removeScrollBar:c,shards:f,noIsolation:g,inert:x,setCallbacks:o,allowPinchZoom:!!p,lockRef:r,gapMode:y}),s?S.cloneElement(S.Children.only(l),ea(ea({},F),{ref:A})):S.createElement(b,ea({},F,{className:u,ref:A}),l))});Ev.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ev.classNames={fullWidth:Wm,zeroRight:zm};var wK=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SK(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wK();return t&&e.setAttribute("nonce",t),e}function PK(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $K(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var OK=function(){var e=0,t=null;return{add:function(r){e==0&&(t=SK())&&(PK(t,r),$K(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},CK=function(){var e=OK();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},x4=function(){var e=CK(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},MK={left:0,top:0,right:0,gap:0},Dg=function(e){return parseInt(e||"",10)||0},TK=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Dg(r),Dg(n),Dg(a)]},EK=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return MK;var t=TK(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},DK=x4(),Iu="data-scroll-locked",jK=function(e,t,r,n){var a=e.left,o=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),` + `),()=>{document.head.removeChild(d)}},[t]),w.jsx(xq,{isPresent:t,childRef:n,sizeRef:a,children:S.cloneElement(e,{ref:n})})}const Sg=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:a,presenceAffectsLayout:o,mode:s})=>{const l=lT(Sq),u=S.useId(),c=S.useMemo(()=>({id:u,initial:t,isPresent:r,custom:a,onExitComplete:d=>{l.set(d,!0);for(const f of l.values())if(!f)return;n&&n()},register:d=>(l.set(d,!1),()=>l.delete(d))}),o?[Math.random()]:[r]);return S.useMemo(()=>{l.forEach((d,f)=>l.set(f,!1))},[r]),S.useEffect(()=>{!r&&!l.size&&n&&n()},[r]),s==="popLayout"&&(e=w.jsx(wq,{isPresent:r,children:e})),w.jsx(Jf.Provider,{value:c,children:e})};function Sq(){return new Map}function Pq(e){return S.useEffect(()=>()=>e(),[])}const Rs=e=>e.key||"";function $q(e,t){e.forEach(r=>{const n=Rs(r);t.set(n,r)})}function Oq(e){const t=[];return S.Children.forEach(e,r=>{S.isValidElement(r)&&t.push(r)}),t}const Zu=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:a,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const l=S.useContext(o_).forceRender||_q()[0],u=bE(),c=Oq(e);let d=c;const f=S.useRef(new Map).current,m=S.useRef(d),g=S.useRef(new Map).current,x=S.useRef(!0);if(r_(()=>{x.current=!1,$q(c,g),m.current=d}),Pq(()=>{x.current=!0,g.clear(),f.clear()}),x.current)return w.jsx(w.Fragment,{children:d.map(y=>w.jsx(Sg,{isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:s,children:y},Rs(y)))});d=[...d];const p=m.current.map(Rs),$=c.map(Rs),b=p.length;for(let y=0;y{if($.indexOf(P)!==-1)return;const M=g.get(P);if(!M)return;const A=p.indexOf(P);let F=y;if(!F){const L=()=>{f.delete(P);const z=Array.from(g.keys()).filter(q=>!$.includes(q));if(z.forEach(q=>g.delete(q)),m.current=c.filter(q=>{const Q=Rs(q);return Q===P||z.includes(Q)}),!f.size){if(u.current===!1)return;l(),n&&n()}};F=w.jsx(Sg,{isPresent:!1,onExitComplete:L,custom:t,presenceAffectsLayout:o,mode:s,children:M},Rs(M)),f.set(P,F)}d.splice(A,0,F)}),d=d.map(y=>{const P=y.key;return f.has(P)?y:w.jsx(Sg,{isPresent:!0,presenceAffectsLayout:o,mode:s,children:y},Rs(y))}),w.jsx(w.Fragment,{children:f.size?d:d.map(y=>S.cloneElement(y))})};var Cq={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},yE=S.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:a,requestClose:o=!1,position:s="bottom",duration:l=5e3,containerStyle:u,motionVariants:c=Cq,toastSpacing:d="0.5rem"}=e,[f,m]=S.useState(l),g=SG();xP(()=>{g||n==null||n()},[g]),xP(()=>{m(l)},[l]);const x=()=>m(null),p=()=>m(l),$=()=>{g&&a()};S.useEffect(()=>{g&&o&&a()},[g,o,a]),JV($,f);const b=S.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...u}),[u,d]),y=S.useMemo(()=>XV(s),[s]);return w.jsx(ni.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:x,onHoverEnd:p,custom:{position:s},style:y,children:w.jsx(fe.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:io(r,{id:t,onClose:$})})})});yE.displayName="ToastComponent";var A$={path:w.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),w.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Lr=he((e,t)=>{const{as:r,viewBox:n,color:a="currentColor",focusable:o=!1,children:s,className:l,__css:u,...c}=e,d=ke("chakra-icon",l),f=ri("Icon",e),m={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a,...u,...f},g={ref:t,focusable:o,className:d,__css:m},x=n??A$.viewBox;if(r&&typeof r!="string")return w.jsx(fe.svg,{as:r,...g,...c});const p=s??A$.path;return w.jsx(fe.svg,{verticalAlign:"middle",viewBox:x,...g,...c,children:p})});Lr.displayName="Icon";function _E(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:a={}}=e,o=S.Children.toArray(e.path),s=he((l,u)=>w.jsx(Lr,{ref:u,viewBox:t,...a,...l,children:o.length?o:w.jsx("path",{fill:"currentColor",d:r})}));return s.displayName=n,s}function Mq(e){return w.jsx(Lr,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function Tq(e){return w.jsx(Lr,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function F$(e){return w.jsx(Lr,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var Eq=uM({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),fl=he((e,t)=>{const r=ri("Spinner",e),{label:n="Loading...",thickness:a="2px",speed:o="0.45s",emptyColor:s="transparent",className:l,...u}=mr(e),c=ke("chakra-spinner",l),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:a,borderBottomColor:s,borderLeftColor:s,animation:`${Eq} ${o} linear infinite`,...r};return w.jsx(fe.div,{ref:t,__css:d,className:c,...u,children:n&&w.jsx(fe.span,{srOnly:!0,children:n})})});fl.displayName="Spinner";var[Dq,C_]=Yr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[jq,M_]=Yr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),xE={info:{icon:Tq,colorScheme:"blue"},warning:{icon:F$,colorScheme:"orange"},success:{icon:Mq,colorScheme:"green"},error:{icon:F$,colorScheme:"red"},loading:{icon:fl,colorScheme:"blue"}};function Iq(e){return xE[e].colorScheme}function Aq(e){return xE[e].icon}var wE=he(function(t,r){const n=M_(),{status:a}=C_(),o={display:"inline",...n.description};return w.jsx(fe.div,{ref:r,"data-status":a,...t,className:ke("chakra-alert__desc",t.className),__css:o})});wE.displayName="AlertDescription";function SE(e){const{status:t}=C_(),r=Aq(t),n=M_(),a=t==="loading"?n.spinner:n.icon;return w.jsx(fe.span,{display:"inherit","data-status":t,...e,className:ke("chakra-alert__icon",e.className),__css:a,children:e.children||w.jsx(r,{h:"100%",w:"100%"})})}SE.displayName="AlertIcon";var PE=he(function(t,r){const n=M_(),{status:a}=C_();return w.jsx(fe.div,{ref:r,"data-status":a,...t,className:ke("chakra-alert__title",t.className),__css:n.title})});PE.displayName="AlertTitle";var $E=he(function(t,r){var n;const{status:a="info",addRole:o=!0,...s}=mr(t),l=(n=t.colorScheme)!=null?n:Iq(a),u=Mo("Alert",{...t,colorScheme:l}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return w.jsx(Dq,{value:{status:a},children:w.jsx(jq,{value:u,children:w.jsx(fe.div,{"data-status":a,role:o?"alert":void 0,ref:r,...s,className:ke("chakra-alert",t.className),__css:c})})})});$E.displayName="Alert";function Fq(e){return w.jsx(Lr,{focusable:"false","aria-hidden":!0,...e,children:w.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var T_=he(function(t,r){const n=ri("CloseButton",t),{children:a,isDisabled:o,__css:s,...l}=mr(t),u={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return w.jsx(fe.button,{type:"button","aria-label":"Close",ref:r,disabled:o,__css:{...u,...n,...s},...l,children:a||w.jsx(Fq,{width:"1em",height:"1em"})})});T_.displayName="CloseButton";var Rq={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},of=kq(Rq);function kq(e){let t=e;const r=new Set,n=a=>{t=a(t),r.forEach(o=>o())};return{getState:()=>t,subscribe:a=>(r.add(a),()=>{n(()=>e),r.delete(a)}),removeToast:(a,o)=>{n(s=>({...s,[o]:s[o].filter(l=>l.id!=a)}))},notify:(a,o)=>{const s=Nq(a,o),{position:l,id:u}=s;return n(c=>{var d,f;const g=l.includes("top")?[s,...(d=c[l])!=null?d:[]]:[...(f=c[l])!=null?f:[],s];return{...c,[l]:g}}),u},update:(a,o)=>{a&&n(s=>{const l={...s},{position:u,index:c}=_P(l,a);return u&&c!==-1&&(l[u][c]={...l[u][c],...o,message:zq(o)}),l})},closeAll:({positions:a}={})=>{n(o=>(a??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((u,c)=>(u[c]=o[c].map(d=>({...d,requestClose:!0})),u),{...o}))},close:a=>{n(o=>{const s=HM(o,a);return s?{...o,[s]:o[s].map(l=>l.id==a?{...l,requestClose:!0}:l)}:o})},isActive:a=>!!_P(of.getState(),a).position}}var R$=0;function Nq(e,t={}){var r,n;R$+=1;const a=(r=t.id)!=null?r:R$,o=(n=t.position)!=null?n:"bottom";return{id:a,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>of.removeToast(String(a),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var Lq=e=>{const{status:t,variant:r="solid",id:n,title:a,isClosable:o,onClose:s,description:l,colorScheme:u,icon:c}=e,d=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return w.jsxs($E,{addRole:!1,status:t,variant:r,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[w.jsx(SE,{children:c}),w.jsxs(fe.div,{flex:"1",maxWidth:"100%",children:[a&&w.jsx(PE,{id:d==null?void 0:d.title,children:a}),l&&w.jsx(wE,{id:d==null?void 0:d.description,display:"block",children:l})]}),o&&w.jsx(T_,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function zq(e={}){const{render:t,toastComponent:r=Lq}=e;return a=>typeof t=="function"?t({...a,...e}):w.jsx(r,{...a,...e})}var[Wq,Lme]=Yr({name:"ToastOptionsContext",strict:!1}),Bq=e=>{const t=S.useSyncExternalStore(of.subscribe,of.getState,of.getState),{motionVariants:r,component:n=yE,portalProps:a}=e,s=Object.keys(t).map(l=>{const u=t[l];return w.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:KV(l),children:w.jsx(Zu,{initial:!1,children:u.map(c=>w.jsx(n,{motionVariants:r,...c},c.id))})},l)});return w.jsx(Kf,{...a,children:s})},Vq=e=>function({children:r,theme:n=e,toastOptions:a,...o}){return w.jsxs(qV,{theme:n,...o,children:[w.jsx(Wq,{value:a==null?void 0:a.defaultOptions,children:r}),w.jsx(Bq,{...a})]})},Hq=Vq(RM);function Yq(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Lf(...e){return t=>{e.forEach(r=>{Yq(r,t)})}}function Uq(...e){return S.useMemo(()=>Lf(...e),e)}var k$={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Zs={enter:{duration:.2,ease:k$.easeOut},exit:{duration:.1,ease:k$.easeIn}},Js={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},Gq={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:(n=e==null?void 0:e.enter)!=null?n:Js.enter(Zs.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:(n=e==null?void 0:e.exit)!=null?n:Js.exit(Zs.exit,r),transitionEnd:t==null?void 0:t.exit}}},OE={initial:"exit",animate:"enter",exit:"exit",variants:Gq},qq=S.forwardRef(function(t,r){const{unmountOnExit:n,in:a,className:o,transition:s,transitionEnd:l,delay:u,...c}=t,d=a||n?"enter":"exit",f=n?a&&n:!0,m={transition:s,transitionEnd:l,delay:u};return w.jsx(Zu,{custom:m,children:f&&w.jsx(ni.div,{ref:r,className:ke("chakra-fade",o),custom:m,...OE,animate:d,...c})})});qq.displayName="Fade";var Qq={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:a})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{scale:t,...n==null?void 0:n.exit}},transition:(o=r==null?void 0:r.exit)!=null?o:Js.exit(Zs.exit,a)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:(n=t==null?void 0:t.enter)!=null?n:Js.enter(Zs.enter,r),transitionEnd:e==null?void 0:e.enter}}},CE={initial:"exit",animate:"enter",exit:"exit",variants:Qq},Xq=S.forwardRef(function(t,r){const{unmountOnExit:n,in:a,reverse:o=!0,initialScale:s=.95,className:l,transition:u,transitionEnd:c,delay:d,...f}=t,m=n?a&&n:!0,g=a||n?"enter":"exit",x={initialScale:s,reverse:o,transition:u,transitionEnd:c,delay:d};return w.jsx(Zu,{custom:x,children:m&&w.jsx(ni.div,{ref:r,className:ke("chakra-offset-slide",l),...CE,animate:g,custom:x,...f})})});Xq.displayName="ScaleFade";var Kq={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:a})=>{var o;return{opacity:0,x:e,y:t,transition:(o=r==null?void 0:r.exit)!=null?o:Js.exit(Zs.exit,a),transitionEnd:n==null?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:(n=e==null?void 0:e.enter)!=null?n:Js.enter(Zs.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:a,delay:o})=>{var s;const l={x:t,y:e};return{opacity:0,transition:(s=r==null?void 0:r.exit)!=null?s:Js.exit(Zs.exit,o),...a?{...l,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{...l,...n==null?void 0:n.exit}}}}},Ld={initial:"initial",animate:"enter",exit:"exit",variants:Kq},Zq=S.forwardRef(function(t,r){const{unmountOnExit:n,in:a,reverse:o=!0,className:s,offsetX:l=0,offsetY:u=8,transition:c,transitionEnd:d,delay:f,...m}=t,g=n?a&&n:!0,x=a||n?"enter":"exit",p={offsetX:l,offsetY:u,reverse:o,transition:c,transitionEnd:d,delay:f};return w.jsx(Zu,{custom:p,children:g&&w.jsx(ni.div,{ref:r,className:ke("chakra-offset-slide",s),custom:p,...Ld,animate:x,...m})})});Zq.displayName="SlideFade";var[Jq,eQ]=Yr({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""});function tQ(e){var t;const r=e.split(" "),n=(t=r[0])!=null?t:"",a=r.length>1?r[r.length-1]:"";return n&&a?`${n.charAt(0)}${a.charAt(0)}`:n.charAt(0)}function ME(e){const{name:t,getInitials:r,...n}=e,a=eQ();return w.jsx(fe.div,{role:"img","aria-label":t,...n,__css:a.label,children:t?r==null?void 0:r(t):null})}ME.displayName="AvatarName";var TE=e=>w.jsxs(fe.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[w.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),w.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]}),Pb=he(function(t,r){const{htmlWidth:n,htmlHeight:a,alt:o,...s}=t;return w.jsx("img",{width:n,height:a,ref:r,alt:o,...s})});Pb.displayName="NativeImage";function EE(e){const{loading:t,src:r,srcSet:n,onLoad:a,onError:o,crossOrigin:s,sizes:l,ignoreFallback:u}=e,[c,d]=S.useState("pending");S.useEffect(()=>{d(r?"loading":"pending")},[r]);const f=S.useRef(),m=S.useCallback(()=>{if(!r)return;g();const x=new Image;x.src=r,s&&(x.crossOrigin=s),n&&(x.srcset=n),l&&(x.sizes=l),t&&(x.loading=t),x.onload=p=>{g(),d("loaded"),a==null||a(p)},x.onerror=p=>{g(),d("failed"),o==null||o(p)},f.current=x},[r,s,n,l,a,o,t]),g=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return Tf(()=>{if(!u)return c==="loading"&&m(),()=>{g()}},[c,m,u]),u?"loaded":c}var rQ=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function nQ(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var Pv=he(function(t,r){const{fallbackSrc:n,fallback:a,src:o,srcSet:s,align:l,fit:u,loading:c,ignoreFallback:d,crossOrigin:f,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:g,...x}=t,p=n!==void 0||a!==void 0,$=c!=null||d||!p,b=EE({...t,crossOrigin:f,ignoreFallback:$}),y=rQ(b,m),P={ref:r,objectFit:u,objectPosition:l,...$?x:nQ(x,["onError","onLoad"])};return y?a||w.jsx(fe.img,{as:Pb,className:"chakra-image__placeholder",src:n,...P}):w.jsx(fe.img,{as:Pb,src:o,srcSet:s,crossOrigin:f,loading:c,referrerPolicy:g,className:"chakra-image",...P})});Pv.displayName="Image";function DE(e){const{src:t,srcSet:r,onError:n,onLoad:a,getInitials:o,name:s,borderRadius:l,loading:u,iconLabel:c,icon:d=w.jsx(TE,{}),ignoreFallback:f,referrerPolicy:m,crossOrigin:g}=e,p=EE({src:t,onError:n,crossOrigin:g,ignoreFallback:f})==="loaded";return!t||!p?s?w.jsx(ME,{className:"chakra-avatar__initials",getInitials:o,name:s}):S.cloneElement(d,{role:"img","aria-label":c}):w.jsx(fe.img,{src:t,srcSet:r,alt:s,onLoad:a,referrerPolicy:m,crossOrigin:g??void 0,className:"chakra-avatar__img",loading:u,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:l}})}DE.displayName="AvatarImage";var aQ={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},E_=he((e,t)=>{const r=Mo("Avatar",e),[n,a]=S.useState(!1),{src:o,srcSet:s,name:l,showBorder:u,borderRadius:c="full",onError:d,onLoad:f,getInitials:m=tQ,icon:g=w.jsx(TE,{}),iconLabel:x=" avatar",loading:p,children:$,borderColor:b,ignoreFallback:y,crossOrigin:P,referrerPolicy:M,...A}=mr(e),F={borderRadius:c,borderWidth:u?"2px":void 0,...aQ,...r.container};return b&&(F.borderColor=b),w.jsx(fe.span,{ref:t,...A,className:ke("chakra-avatar",e.className),"data-loaded":en(n),__css:F,children:w.jsxs(Jq,{value:r,children:[w.jsx(DE,{src:o,srcSet:s,loading:p,onLoad:oo(f,()=>{a(!0)}),onError:d,getInitials:m,name:l,borderRadius:c,icon:g,iconLabel:x,ignoreFallback:y,crossOrigin:P,referrerPolicy:M}),$]})})});E_.displayName="Avatar";function D_(e){return S.Children.toArray(e).filter(t=>S.isValidElement(t))}var[zme,iQ]=Yr({strict:!1,name:"ButtonGroupContext"});function oQ(e){const[t,r]=S.useState(!e);return{ref:S.useCallback(o=>{o&&r(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}function $b(e){const{children:t,className:r,...n}=e,a=S.isValidElement(t)?S.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=ke("chakra-button__icon",r);return w.jsx(fe.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:o,children:a})}$b.displayName="ButtonIcon";function Ob(e){const{label:t,placement:r,spacing:n="0.5rem",children:a=w.jsx(fl,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:s,...l}=e,u=ke("chakra-button__spinner",o),c=r==="start"?"marginEnd":"marginStart",d=S.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,c,n]);return w.jsx(fe.div,{className:u,...l,__css:d,children:a})}Ob.displayName="ButtonSpinner";var Ju=he((e,t)=>{const r=iQ(),n=ri("Button",{...r,...e}),{isDisabled:a=r==null?void 0:r.isDisabled,isLoading:o,isActive:s,children:l,leftIcon:u,rightIcon:c,loadingText:d,iconSpacing:f="0.5rem",type:m,spinner:g,spinnerPlacement:x="start",className:p,as:$,...b}=mr(e),y=S.useMemo(()=>{const F={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:F}}},[n,r]),{ref:P,type:M}=oQ($),A={rightIcon:c,leftIcon:u,iconSpacing:f,children:l};return w.jsxs(fe.button,{ref:Uq(t,P),as:$,type:m??M,"data-active":en(s),"data-loading":en(o),__css:y,className:ke("chakra-button",p),...b,disabled:a||o,children:[o&&x==="start"&&w.jsx(Ob,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:g}),o?d||w.jsx(fe.span,{opacity:0,children:w.jsx(N$,{...A})}):w.jsx(N$,{...A}),o&&x==="end"&&w.jsx(Ob,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:g})]})});Ju.displayName="Button";function N$(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:a}=e;return w.jsxs(w.Fragment,{children:[t&&w.jsx($b,{marginEnd:a,children:t}),n,r&&w.jsx($b,{marginStart:a,children:r})]})}var[sQ,lQ]=Yr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[uQ,jE]=Yr({strict:!1,name:"FormControlContext"});function cQ(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:a,isReadOnly:o,...s}=e,l=S.useId(),u=t||`field-${l}`,c=`${u}-label`,d=`${u}-feedback`,f=`${u}-helptext`,[m,g]=S.useState(!1),[x,p]=S.useState(!1),[$,b]=S.useState(!1),y=S.useCallback((L={},z=null)=>({id:f,...L,ref:Lf(z,q=>{q&&p(!0)})}),[f]),P=S.useCallback((L={},z=null)=>({...L,ref:z,"data-focus":en($),"data-disabled":en(a),"data-invalid":en(n),"data-readonly":en(o),id:L.id!==void 0?L.id:c,htmlFor:L.htmlFor!==void 0?L.htmlFor:u}),[u,a,$,n,o,c]),M=S.useCallback((L={},z=null)=>({id:d,...L,ref:Lf(z,q=>{q&&g(!0)}),"aria-live":"polite"}),[d]),A=S.useCallback((L={},z=null)=>({...L,...s,ref:z,role:"group","data-focus":en($),"data-disabled":en(a),"data-invalid":en(n),"data-readonly":en(o)}),[s,a,$,n,o]),F=S.useCallback((L={},z=null)=>({...L,ref:z,role:"presentation","aria-hidden":!0,children:L.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!o,isDisabled:!!a,isFocused:!!$,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:x,setHasHelpText:p,id:u,labelId:c,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:y,getErrorMessageProps:M,getRootProps:A,getLabelProps:P,getRequiredIndicatorProps:F}}var dQ=he(function(t,r){const n=Mo("Form",t),a=mr(t),{getRootProps:o,htmlProps:s,...l}=cQ(a),u=ke("chakra-form-control",t.className);return w.jsx(uQ,{value:l,children:w.jsx(sQ,{value:n,children:w.jsx(fe.div,{...o({},r),className:u,__css:n.container})})})});dQ.displayName="FormControl";var fQ=he(function(t,r){const n=jE(),a=lQ(),o=ke("chakra-form__helper-text",t.className);return w.jsx(fe.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:a.helperText,className:o})});fQ.displayName="FormHelperText";function IE(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:a,...o}=hQ(e);return{...o,disabled:t,readOnly:n,required:a,"aria-invalid":Yp(r),"aria-required":Yp(a),"aria-readonly":Yp(n)}}function hQ(e){var t,r,n;const a=jE(),{id:o,disabled:s,readOnly:l,required:u,isRequired:c,isInvalid:d,isReadOnly:f,isDisabled:m,onFocus:g,onBlur:x,...p}=e,$=e["aria-describedby"]?[e["aria-describedby"]]:[];return a!=null&&a.hasFeedbackText&&(a!=null&&a.isInvalid)&&$.push(a.feedbackId),a!=null&&a.hasHelpText&&$.push(a.helpTextId),{...p,"aria-describedby":$.join(" ")||void 0,id:o??(a==null?void 0:a.id),isDisabled:(t=s??m)!=null?t:a==null?void 0:a.isDisabled,isReadOnly:(r=l??f)!=null?r:a==null?void 0:a.isReadOnly,isRequired:(n=u??c)!=null?n:a==null?void 0:a.isRequired,isInvalid:d??(a==null?void 0:a.isInvalid),onFocus:oo(a==null?void 0:a.onFocus,g),onBlur:oo(a==null?void 0:a.onBlur,x)}}function mQ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var Cb="data-focus-lock",AE="data-focus-lock-disabled",vQ="data-no-focus-lock",pQ="data-autofocus-inside",gQ="data-no-autofocus";function Pg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bQ(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var yQ=typeof window<"u"?S.useLayoutEffect:S.useEffect,L$=new WeakMap;function FE(e,t){var r=bQ(null,function(n){return e.forEach(function(a){return Pg(a,n)})});return yQ(function(){var n=L$.get(r);if(n){var a=new Set(n),o=new Set(e),s=r.current;a.forEach(function(l){o.has(l)||Pg(l,null)}),o.forEach(function(l){a.has(l)||Pg(l,s)})}L$.set(r,e)},[e]),r}var $g={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},ea=function(){return ea=Object.assign||function(t){for(var r,n=1,a=arguments.length;n=0}).sort(LQ)},WQ=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],R_=WQ.join(","),BQ="".concat(R_,", [data-focus-guard]"),KE=function(e,t){return sa((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?BQ:R_)?[n]:[],KE(n))},[])},VQ=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?Uu([e.contentDocument.body],t):[e]},Uu=function(e,t){return e.reduce(function(r,n){var a,o=KE(n,t),s=(a=[]).concat.apply(a,o.map(function(l){return VQ(l,t)}));return r.concat(s,n.parentNode?sa(n.parentNode.querySelectorAll(R_)).filter(function(l){return l===n}):[])},[])},HQ=function(e){var t=e.querySelectorAll("[".concat(pQ,"]"));return sa(t).map(function(r){return Uu([r])}).reduce(function(r,n){return r.concat(n)},[])},k_=function(e,t){return sa(e).filter(function(r){return UE(t,r)}).filter(function(r){return RQ(r)})},z$=function(e,t){return t===void 0&&(t=new Map),sa(e).filter(function(r){return GE(t,r)})},N_=function(e,t,r){return F_(k_(Uu(e,r),t),!0,r)},$0=function(e,t){return F_(k_(Uu(e),t),!1)},YQ=function(e,t){return k_(HQ(e),t)},el=function(e,t){return e.shadowRoot?el(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:sa(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var a=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return a?el(a,t):!1}return el(r,t)})},UQ=function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(a),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(s,l){return!t.has(l)})},ZE=function(e){return e.parentNode?ZE(e.parentNode):e},L_=function(e){var t=sl(e);return t.filter(Boolean).reduce(function(r,n){var a=n.getAttribute(Cb);return r.push.apply(r,a?UQ(sa(ZE(n).querySelectorAll("[".concat(Cb,'="').concat(a,'"]:not([').concat(AE,'="disabled"])')))):[n]),r},[])},GQ=function(e){try{return e()}catch{return}},Wf=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Wf(t.shadowRoot):t instanceof HTMLIFrameElement&&GQ(function(){return t.contentWindow.document})?Wf(t.contentWindow.document):t}},qQ=function(e,t){return e===t},QQ=function(e,t){return!!sa(e.querySelectorAll("iframe")).some(function(r){return qQ(r,t)})},JE=function(e,t){return t===void 0&&(t=Wf(VE(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:L_(e).some(function(r){return el(r,t)||QQ(r,t)})},XQ=function(e){e===void 0&&(e=document);var t=Wf(e);return t?sa(e.querySelectorAll("[".concat(vQ,"]"))).some(function(r){return el(r,t)}):!1},KQ=function(e,t){return t.filter(XE).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},z_=function(e,t){return XE(e)&&e.name?KQ(e,t):e},ZQ=function(e){var t=new Set;return e.forEach(function(r){return t.add(z_(r,e))}),e.filter(function(r){return t.has(r)})},W$=function(e){return e[0]&&e.length>1?z_(e[0],e):e[0]},B$=function(e,t){return e.indexOf(z_(t,e))},Eb="NEW_FOCUS",JQ=function(e,t,r,n,a){var o=e.length,s=e[0],l=e[o-1],u=A_(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?r.indexOf(n):-1,d=a?r.indexOf(a):c,f=a?e.indexOf(a):-1;if(c===-1)return f!==-1?f:Eb;if(f===-1)return Eb;var m=c-d,g=r.indexOf(s),x=r.indexOf(l),p=ZQ(r),$=n!==void 0?p.indexOf(n):-1,b=$-(a?p.indexOf(a):c);if(!m&&f>=0||t.length===0)return f;var y=B$(e,t[0]),P=B$(e,t[t.length-1]);if(c<=g&&u&&Math.abs(m)>1)return P;if(c>=x&&u&&Math.abs(m)>1)return y;if(m&&Math.abs(b)>1)return f;if(c<=g)return P;if(c>x)return y;if(m)return Math.abs(m)>1?f:(o+f+m)%o}},eX=function(e){return function(t){var r,n=(r=qE(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},V$=function(e,t,r){var n=e.map(function(o){var s=o.node;return s}),a=z$(n.filter(eX(r)));return a&&a.length?W$(a):W$(z$(t))},Db=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Db(e.parentNode.host||e.parentNode,t),t},Og=function(e,t){for(var r=Db(e),n=Db(t),a=0;a=0)return o}return!1},e4=function(e,t,r){var n=sl(e),a=sl(t),o=n[0],s=!1;return a.filter(Boolean).forEach(function(l){s=Og(s||l,l)||s,r.filter(Boolean).forEach(function(u){var c=Og(o,u);c&&(!s||el(c,s)?s=c:s=Og(c,s))})}),s},H$=function(e,t){return e.reduce(function(r,n){return r.concat(YQ(n,t))},[])},tX=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(NQ)},rX=function(e,t){var r=Wf(sl(e).length>0?document:VE(e).ownerDocument),n=L_(e).filter(Tb),a=e4(r||e,e,n),o=new Map,s=$0(n,o),l=s.filter(function(x){var p=x.node;return Tb(p)});if(l[0]){var u=$0([a],o).map(function(x){var p=x.node;return p}),c=tX(u,l),d=c.map(function(x){var p=x.node;return p}),f=c.filter(function(x){var p=x.tabIndex;return p>=0}).map(function(x){var p=x.node;return p}),m=JQ(d,f,u,r,t);if(m===Eb){var g=V$(s,f,H$(n,o))||V$(s,d,H$(n,o));if(g)return{node:g};console.warn("focus-lock: cannot find any node to move focus into");return}return m===void 0?m:c[m]}},nX=function(e){var t=L_(e).filter(Tb),r=e4(e,e,t),n=F_(Uu([r],!0),!0,!0),a=Uu(t,!1);return n.map(function(o){var s=o.node,l=o.index;return{node:s,index:l,lockItem:a.indexOf(s)>=0,guard:A_(s)}})},W_=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Cg=0,Mg=!1,t4=function(e,t,r){r===void 0&&(r={});var n=rX(e,t);if(!Mg&&n){if(Cg>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Mg=!0,setTimeout(function(){Mg=!1},1);return}Cg++,W_(n.node,r.focusOptions),Cg--}};function hd(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var aX=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:hd(r),parent:hd(r.parentElement),left:hd(r.previousElementSibling),right:hd(r.nextElementSibling)}),r=r.parentElement;return{element:hd(e),stack:t,ownerDocument:e.ownerDocument}},iX=function(e){var t,r,n,a,o;if(e)for(var s=e.stack,l=e.ownerDocument,u=new Map,c=0,d=s;c-1&&(g.filter(function(p){var $=p.guard,b=p.node;return $&&b.dataset.focusAutoGuard}).forEach(function(p){var $=p.node;return $.removeAttribute("tabIndex")}),Y$(x,g.length,1,g),Y$(x,-1,-1,g))}}}return t},a4=function(t){O0()&&t&&(t.stopPropagation(),t.preventDefault())},V_=function(){return B_(O0)},PX=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||yX(n,r)},$X=function(){return null},i4=function(){Bf="just",B_(function(){Bf="meanwhile"})},OX=function(){document.addEventListener("focusin",a4),document.addEventListener("focusout",V_),window.addEventListener("blur",i4)},CX=function(){document.removeEventListener("focusin",a4),document.removeEventListener("focusout",V_),window.removeEventListener("blur",i4)};function MX(e){return e.filter(function(t){var r=t.disabled;return!r})}var o4={moveFocusInside:t4,focusInside:JE,focusNextElement:cX,focusPrevElement:dX,focusFirstElement:fX,focusLastElement:hX,captureFocusRestore:oX};function TX(e){var t=e.slice(-1)[0];t&&!Du&&OX();var r=Du,n=r&&t&&t.id===r.id;Du=t,r&&!n&&(r.onDeactivation(),e.filter(function(a){var o=a.id;return o===r.id}).length||r.returnFocus(!t)),t?(yu=null,(!n||r.observed!==t.observed)&&t.onActivation(o4),O0(),B_(O0)):(CX(),yu=null)}WE.assignSyncMedium(PX);BE.assignMedium(V_);wQ.assignMedium(function(e){return e(o4)});const EX=EQ(MX,TX)($X);var jb=S.forwardRef(function(t,r){return S.createElement(I_,ol({sideCar:EX,ref:r},t))}),s4=I_.propTypes||{};s4.sideCar;mQ(s4,["sideCar"]);jb.propTypes={};function DX(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function jX(e){var t;if(!DX(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}var IX=e=>e.hasAttribute("tabindex");function AX(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function l4(e){return e.parentElement&&l4(e.parentElement)?!0:e.hidden}function FX(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function RX(e){if(!jX(e)||l4(e)||AX(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():FX(e)?!0:IX(e)}var kX=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],NX=kX.join(),LX=e=>e.offsetWidth>0&&e.offsetHeight>0;function zX(e){const t=Array.from(e.querySelectorAll(NX));return t.unshift(e),t.filter(r=>RX(r)&&LX(r))}var U$,WX=(U$=jb.default)!=null?U$:jb,u4=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:a,children:o,isDisabled:s,autoFocus:l,persistentFocus:u,lockFocusAcrossFrames:c}=e,d=S.useCallback(()=>{t!=null&&t.current?t.current.focus():n!=null&&n.current&&zX(n.current).length===0&&requestAnimationFrame(()=>{var x;(x=n.current)==null||x.focus()})},[t,n]),f=S.useCallback(()=>{var g;(g=r==null?void 0:r.current)==null||g.focus()},[r]),m=a&&!r;return w.jsx(WX,{crossFrame:c,persistentFocus:u,autoFocus:l,disabled:s,onActivation:d,onDeactivation:f,returnFocus:m,children:o})};u4.displayName="FocusLock";var BX=gV?S.useLayoutEffect:S.useEffect;function G$(e,t=[]){const r=S.useRef(e);return BX(()=>{r.current=e}),S.useCallback((...n)=>{var a;return(a=r.current)==null?void 0:a.call(r,...n)},t)}function VX(e,t){const r=S.useId();return S.useMemo(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function HX(e,t){const r=e!==void 0;return[r,r&&typeof e<"u"?e:t]}function YX(e={}){const{onClose:t,onOpen:r,isOpen:n,id:a}=e,o=G$(r),s=G$(t),[l,u]=S.useState(e.defaultIsOpen||!1),[c,d]=HX(n,l),f=VX(a,"disclosure"),m=S.useCallback(()=>{c||u(!1),s==null||s()},[c,s]),g=S.useCallback(()=>{c||u(!0),o==null||o()},[c,o]),x=S.useCallback(()=>{(d?m:g)()},[d,g,m]);return{isOpen:!!d,onOpen:g,onClose:m,onToggle:x,isControlled:c,getButtonProps:(p={})=>({...p,"aria-expanded":d,"aria-controls":f,onClick:wV(p.onClick,x)}),getDisclosureProps:(p={})=>({...p,hidden:!d,id:f})}}var[UX,GX]=Yr({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),$v=he(function(t,r){const n=Mo("Input",t),{children:a,className:o,...s}=mr(t),l=ke("chakra-input__group",o),u={},c=D_(a),d=n.field;c.forEach(m=>{var g,x;n&&(d&&m.type.id==="InputLeftElement"&&(u.paddingStart=(g=d.height)!=null?g:d.h),d&&m.type.id==="InputRightElement"&&(u.paddingEnd=(x=d.height)!=null?x:d.h),m.type.id==="InputRightAddon"&&(u.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(u.borderStartRadius=0))});const f=c.map(m=>{var g,x;const p=Jy({size:((g=m.props)==null?void 0:g.size)||t.size,variant:((x=m.props)==null?void 0:x.variant)||t.variant});return m.type.id!=="Input"?S.cloneElement(m,p):S.cloneElement(m,Object.assign(p,u,m.props))});return w.jsx(fe.div,{className:l,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...s,children:w.jsx(UX,{value:n,children:f})})});$v.displayName="InputGroup";var qX=fe("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Ov=he(function(t,r){var n,a;const{placement:o="left",...s}=t,l=GX(),u=l.field,d={[o==="left"?"insetStart":"insetEnd"]:"0",width:(n=u==null?void 0:u.height)!=null?n:u==null?void 0:u.h,height:(a=u==null?void 0:u.height)!=null?a:u==null?void 0:u.h,fontSize:u==null?void 0:u.fontSize,...l.element};return w.jsx(qX,{ref:r,__css:d,...s})});Ov.id="InputElement";Ov.displayName="InputElement";var ah=he(function(t,r){const{className:n,...a}=t,o=ke("chakra-input__left-element",n);return w.jsx(Ov,{ref:r,placement:"left",className:o,...a})});ah.id="InputLeftElement";ah.displayName="InputLeftElement";var c4=he(function(t,r){const{className:n,...a}=t,o=ke("chakra-input__right-element",n);return w.jsx(Ov,{ref:r,placement:"right",className:o,...a})});c4.id="InputRightElement";c4.displayName="InputRightElement";var ih=he(function(t,r){const{htmlSize:n,...a}=t,o=Mo("Input",a),s=mr(a),l=IE(s),u=ke("chakra-input",t.className);return w.jsx(fe.input,{size:n,...l,__css:o.field,ref:r,className:u})});ih.displayName="Input";ih.id="Input";var Ga=he(function(t,r){const n=ri("Link",t),{className:a,isExternal:o,...s}=mr(t);return w.jsx(fe.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:r,className:ke("chakra-link",a),...s,__css:n})});Ga.displayName="Link";var[QX,d4]=Yr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Cv=he(function(t,r){const n=Mo("List",t),{children:a,styleType:o="none",stylePosition:s,spacing:l,...u}=mr(t),c=D_(a),f=l?{["& > *:not(style) ~ *:not(style)"]:{mt:l}}:{};return w.jsx(QX,{value:n,children:w.jsx(fe.ul,{ref:r,listStyleType:o,listStylePosition:s,role:"list",__css:{...n.container,...f},...u,children:c})})});Cv.displayName="List";var XX=he((e,t)=>{const{as:r,...n}=e;return w.jsx(Cv,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});XX.displayName="OrderedList";var KX=he(function(t,r){const{as:n,...a}=t;return w.jsx(Cv,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...a})});KX.displayName="UnorderedList";var f4=he(function(t,r){const n=d4();return w.jsx(fe.li,{ref:r,...t,__css:n.item})});f4.displayName="ListItem";var ZX=he(function(t,r){const n=d4();return w.jsx(Lr,{ref:r,role:"presentation",...t,__css:n.icon})});ZX.displayName="ListIcon";var H_=he(function(t,r){const{templateAreas:n,gap:a,rowGap:o,columnGap:s,column:l,row:u,autoFlow:c,autoRows:d,templateRows:f,autoColumns:m,templateColumns:g,...x}=t,p={display:"grid",gridTemplateAreas:n,gridGap:a,gridRowGap:o,gridColumnGap:s,gridAutoColumns:m,gridColumn:l,gridRow:u,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:g};return w.jsx(fe.div,{ref:r,__css:p,...x})});H_.displayName="Grid";function Mv(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):jn(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}var Tv=he(function(t,r){const{columns:n,spacingX:a,spacingY:o,spacing:s,minChildWidth:l,...u}=t,c=mM(),d=l?eK(l,c):tK(n);return w.jsx(H_,{ref:r,gap:s,columnGap:a,rowGap:o,templateColumns:d,...u})});Tv.displayName="SimpleGrid";function JX(e){return typeof e=="number"?`${e}px`:e}function eK(e,t){return Mv(e,r=>{const n=DR("sizes",r,JX(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function tK(e){return Mv(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Qe=he(function(t,r){const n=ri("Text",t),{className:a,align:o,decoration:s,casing:l,...u}=mr(t),c=Jy({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return w.jsx(fe.p,{ref:r,className:ke("chakra-text",t.className),...c,...u,__css:n})});Qe.displayName="Text";var h4=e=>w.jsx(fe.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});h4.displayName="StackItem";function rK(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Mv(r,a=>n[a])}}var Y_=he((e,t)=>{const{isInline:r,direction:n,align:a,justify:o,spacing:s="0.5rem",wrap:l,children:u,divider:c,className:d,shouldWrapChildren:f,...m}=e,g=r?"row":n??"column",x=S.useMemo(()=>rK({spacing:s,direction:g}),[s,g]),p=!!c,$=!f&&!p,b=S.useMemo(()=>{const P=D_(u);return $?P:P.map((M,A)=>{const F=typeof M.key<"u"?M.key:A,L=A+1===P.length,q=f?w.jsx(h4,{children:M},F):M;if(!p)return q;const Q=S.cloneElement(c,{__css:x}),ve=L?null:Q;return w.jsxs(S.Fragment,{children:[q,ve]},F)})},[c,x,p,$,f,u]),y=ke("chakra-stack",d);return w.jsx(fe.div,{ref:t,display:"flex",alignItems:a,justifyContent:o,flexDirection:g,flexWrap:l,gap:p?void 0:s,className:y,...m,children:b})});Y_.displayName="Stack";var cn=he((e,t)=>w.jsx(Y_,{align:"center",...e,direction:"column",ref:t}));cn.displayName="VStack";var qa=he((e,t)=>w.jsx(Y_,{align:"center",...e,direction:"row",ref:t}));qa.displayName="HStack";function q$(e){return Mv(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Ib=he(function(t,r){const{area:n,colSpan:a,colStart:o,colEnd:s,rowEnd:l,rowSpan:u,rowStart:c,...d}=t,f=Jy({gridArea:n,gridColumn:q$(a),gridRow:q$(u),gridColumnStart:o,gridColumnEnd:s,gridRowStart:c,gridRowEnd:l});return w.jsx(fe.div,{ref:r,__css:f,...d})});Ib.displayName="GridItem";var Do=he(function(t,r){const n=ri("Heading",t),{className:a,...o}=mr(t);return w.jsx(fe.h2,{ref:r,className:ke("chakra-heading",t.className),...o,__css:n})});Do.displayName="Heading";var Mt=fe("div");Mt.displayName="Box";var m4=he(function(t,r){const{size:n,centerContent:a=!0,...o}=t,s=a?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return w.jsx(Mt,{ref:r,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...o})});m4.displayName="Square";var nK=he(function(t,r){const{size:n,...a}=t;return w.jsx(m4,{size:n,ref:r,borderRadius:"9999px",...a})});nK.displayName="Circle";var v4=he(function(t,r){const n=ri("Badge",t),{className:a,...o}=mr(t);return w.jsx(fe.span,{ref:r,className:ke("chakra-badge",t.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});v4.displayName="Badge";var Lm=he(function(t,r){const{className:n,centerContent:a,...o}=mr(t),s=ri("Container",t);return w.jsx(fe.div,{ref:r,className:ke("chakra-container",n),...o,__css:{...s,...a&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Lm.displayName="Container";var Ys=he(function(t,r){const{direction:n,align:a,justify:o,wrap:s,basis:l,grow:u,shrink:c,...d}=t,f={display:"flex",flexDirection:n,alignItems:a,justifyContent:o,flexWrap:s,flexBasis:l,flexGrow:u,flexShrink:c};return w.jsx(fe.div,{ref:r,__css:f,...d})});Ys.displayName="Flex";var aK={slideInBottom:{...Ld,custom:{offsetY:16,reverse:!0}},slideInRight:{...Ld,custom:{offsetX:16,reverse:!0}},slideInTop:{...Ld,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Ld,custom:{offsetX:-16,reverse:!0}},scale:{...CE,custom:{initialScale:.95,reverse:!0}},none:{}},iK=fe(ni.section),oK=e=>aK[e||"none"],p4=S.forwardRef((e,t)=>{const{preset:r,motionProps:n=oK(r),...a}=e;return w.jsx(iK,{ref:t,...n,...a})});p4.displayName="ModalTransition";var sK=Object.defineProperty,lK=(e,t,r)=>t in e?sK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uK=(e,t,r)=>(lK(e,t+"",r),r),cK=class{constructor(){uK(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},Ab=new cK;function g4(e,t){const[r,n]=S.useState(0);return S.useEffect(()=>{const a=e.current;if(a){if(t){const o=Ab.add(a);n(o)}return()=>{Ab.remove(a),n(0)}}},[t,e]),r}var dK=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wl=new WeakMap,Kh=new WeakMap,Zh={},Tg=0,b4=function(e){return e&&(e.host||b4(e.parentNode))},fK=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=b4(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},hK=function(e,t,r,n){var a=fK(t,Array.isArray(e)?e:[e]);Zh[r]||(Zh[r]=new WeakMap);var o=Zh[r],s=[],l=new Set,u=new Set(a),c=function(f){!f||l.has(f)||(l.add(f),c(f.parentNode))};a.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(m){if(l.has(m))d(m);else try{var g=m.getAttribute(n),x=g!==null&&g!=="false",p=(Wl.get(m)||0)+1,$=(o.get(m)||0)+1;Wl.set(m,p),o.set(m,$),s.push(m),p===1&&x&&Kh.set(m,!0),$===1&&m.setAttribute(r,"true"),x||m.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",m,b)}})};return d(t),l.clear(),Tg++,function(){s.forEach(function(f){var m=Wl.get(f)-1,g=o.get(f)-1;Wl.set(f,m),o.set(f,g),m||(Kh.has(f)||f.removeAttribute(n),Kh.delete(f)),g||f.removeAttribute(r)}),Tg--,Tg||(Wl=new WeakMap,Wl=new WeakMap,Kh=new WeakMap,Zh={})}},mK=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=dK(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),hK(n,a,r,"aria-hidden")):function(){return null}};function vK(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:a=!0,closeOnEsc:o=!0,useInert:s=!0,onOverlayClick:l,onEsc:u}=e,c=S.useRef(null),d=S.useRef(null),[f,m,g]=gK(n,"chakra-modal","chakra-modal--header","chakra-modal--body");pK(c,t&&s);const x=g4(c,t),p=S.useRef(null),$=S.useCallback(q=>{p.current=q.target},[]),b=S.useCallback(q=>{q.key==="Escape"&&(q.stopPropagation(),o&&(r==null||r()),u==null||u())},[o,r,u]),[y,P]=S.useState(!1),[M,A]=S.useState(!1),F=S.useCallback((q={},Q=null)=>({role:"dialog",...q,ref:Lf(Q,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?m:void 0,"aria-describedby":M?g:void 0,onClick:oo(q.onClick,ve=>ve.stopPropagation())}),[g,M,f,m,y]),L=S.useCallback(q=>{q.stopPropagation(),p.current===q.target&&Ab.isTopModal(c.current)&&(a&&(r==null||r()),l==null||l())},[r,a,l]),z=S.useCallback((q={},Q=null)=>({...q,ref:Lf(Q,d),onClick:oo(q.onClick,L),onKeyDown:oo(q.onKeyDown,b),onMouseDown:oo(q.onMouseDown,$)}),[b,$,L]);return{isOpen:t,onClose:r,headerId:m,bodyId:g,setBodyMounted:A,setHeaderMounted:P,dialogRef:c,overlayRef:d,getDialogProps:F,getDialogContainerProps:z,index:x}}function pK(e,t){const r=e.current;S.useEffect(()=>{if(!(!e.current||!t))return mK(e.current)},[t,e,r])}function gK(e,...t){const r=S.useId(),n=e||r;return S.useMemo(()=>t.map(a=>`${a}-${n}`),[n,t])}var[bK,ec]=Yr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[yK,ll]=Yr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),y4=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:a,trapFocus:o,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:m,lockFocusAcrossFrames:g,onCloseComplete:x}=t,p=Mo("Modal",t),b={...vK(t),autoFocus:a,trapFocus:o,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:m,lockFocusAcrossFrames:g};return w.jsx(yK,{value:b,children:w.jsx(bK,{value:p,children:w.jsx(Zu,{onExitComplete:x,children:b.isOpen&&w.jsx(Kf,{...r,children:n})})})})};y4.displayName="Modal";var zm="right-scroll-bar-position",Wm="width-before-scroll-bar",_K="with-scroll-bars-hidden",xK="--removed-body-scroll-bar-size",_4=LE(),Eg=function(){},Ev=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:Eg,onWheelCapture:Eg,onTouchMoveCapture:Eg}),a=n[0],o=n[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,g=e.noIsolation,x=e.inert,p=e.allowPinchZoom,$=e.as,b=$===void 0?"div":$,y=e.gapMode,P=RE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=m,A=FE([r,t]),F=ea(ea({},P),a);return S.createElement(S.Fragment,null,d&&S.createElement(M,{sideCar:_4,removeScrollBar:c,shards:f,noIsolation:g,inert:x,setCallbacks:o,allowPinchZoom:!!p,lockRef:r,gapMode:y}),s?S.cloneElement(S.Children.only(l),ea(ea({},F),{ref:A})):S.createElement(b,ea({},F,{className:u,ref:A}),l))});Ev.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ev.classNames={fullWidth:Wm,zeroRight:zm};var wK=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SK(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wK();return t&&e.setAttribute("nonce",t),e}function PK(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $K(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var OK=function(){var e=0,t=null;return{add:function(r){e==0&&(t=SK())&&(PK(t,r),$K(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},CK=function(){var e=OK();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},x4=function(){var e=CK(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},MK={left:0,top:0,right:0,gap:0},Dg=function(e){return parseInt(e||"",10)||0},TK=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Dg(r),Dg(n),Dg(a)]},EK=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return MK;var t=TK(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},DK=x4(),Iu="data-scroll-locked",jK=function(e,t,r,n){var a=e.left,o=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),` .`.concat(_K,` { overflow: hidden `).concat(n,`; padding-right: `).concat(l,"px ").concat(n,`; @@ -532,4 +532,4 @@ $ `),n(r+1),o(0)):n(0)},100);return()=>clearTimeout(u)}},[r,a]),w.jsx(Mt,{bg:s,p 0% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(88, 101, 242, 0); } 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); } -`,cm=ni(Mt),Ame=()=>{const e=tr("grey.100","gray.800"),t=tr("gray.800","gray.100");return w.jsx(Mr,{children:w.jsx(Mt,{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",bg:e,color:t,children:w.jsxs(cn,{spacing:8,align:"center",maxWidth:"600px",textAlign:"center",children:[w.jsx(cm,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},transition:{duration:.8},children:w.jsx(Do,{as:"h1",size:"2xl",mb:4,children:"Join Our Community"})}),w.jsx(cm,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:w.jsx(Qe,{fontSize:"xl",mb:6,children:"Connect with like-minded developers, share your projects, and grow your skills. Our Discord community is the perfect place to collaborate and learn!"})}),w.jsx(cm,{as:Ju,leftIcon:w.jsx(X_,{}),size:"lg",colorScheme:"purple",_hover:{transform:"translateY(-5px)"},transition:"all 0.2s",onClick:()=>window.open("https://discord.gg/your-invite-link","_blank"),animation:`${Ime} 2s infinite`,whileHover:{scale:1.05},whileTap:{scale:.95},children:"Join our Discord"}),w.jsx(cm,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1,delay:.5},children:w.jsx(Qe,{fontSize:"sm",mt:8,children:"By joining, you agree to our community guidelines and code of conduct."})})]})})})};function Fme(){return w.jsx(Hq,{theme:RM,children:w.jsx(QZ,{children:w.jsxs(BZ,{children:[w.jsx(Xi,{path:"/members",element:w.jsx(vJ,{})}),w.jsx(Xi,{path:"/members/:id",element:w.jsx(Dme,{})}),w.jsx(Xi,{path:"/teams",element:w.jsx(bJ,{})}),w.jsx(Xi,{path:"/events",element:w.jsx(xJ,{})}),w.jsx(Xi,{path:"/about",element:w.jsx(jO,{})}),w.jsx(Xi,{path:"/join",element:w.jsx(Ame,{})}),w.jsx(Xi,{path:"/",element:w.jsx(jO,{})})]})})})}var Rme={};console.log("Hello, world!");console.log(Rme.PUBLIC_URL);a1.createRoot(document.getElementById("root")).render(w.jsx(on.StrictMode,{children:w.jsx(Fme,{})})); +`,cm=ni(Mt),Ame=()=>{const e=tr("grey.100","gray.800"),t=tr("gray.800","gray.100");return w.jsx(Mr,{children:w.jsx(Mt,{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",bg:e,color:t,children:w.jsxs(cn,{spacing:8,align:"center",maxWidth:"600px",textAlign:"center",children:[w.jsx(cm,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},transition:{duration:.8},children:w.jsx(Do,{as:"h1",size:"2xl",mb:4,children:"Join Our Community"})}),w.jsx(cm,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:w.jsx(Qe,{fontSize:"xl",mb:6,children:"Connect with like-minded developers, share your projects, and grow your skills. Our Discord community is the perfect place to collaborate and learn!"})}),w.jsx(cm,{as:Ju,leftIcon:w.jsx(X_,{}),size:"lg",colorScheme:"purple",_hover:{transform:"translateY(-5px)"},transition:"all 0.2s",onClick:()=>window.open("https://discord.gg/your-invite-link","_blank"),animation:`${Ime} 2s infinite`,whileHover:{scale:1.05},whileTap:{scale:.95},children:"Join our Discord"}),w.jsx(cm,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1,delay:.5},children:w.jsx(Qe,{fontSize:"sm",mt:8,children:"By joining, you agree to our community guidelines and code of conduct."})})]})})})};function Fme(){return w.jsx(Hq,{theme:RM,children:w.jsx(QZ,{children:w.jsxs(BZ,{children:[w.jsx(Xi,{path:"/members",element:w.jsx(vJ,{})}),w.jsx(Xi,{path:"/members/:id",element:w.jsx(Dme,{})}),w.jsx(Xi,{path:"/teams",element:w.jsx(bJ,{})}),w.jsx(Xi,{path:"/events",element:w.jsx(xJ,{})}),w.jsx(Xi,{path:"/about",element:w.jsx(jO,{})}),w.jsx(Xi,{path:"/join",element:w.jsx(Ame,{})}),w.jsx(Xi,{path:"/",element:w.jsx(jO,{})})]})})})}a1.createRoot(document.getElementById("root")).render(w.jsx(on.StrictMode,{children:w.jsx(Fme,{})})); diff --git a/index.html b/index.html index 44a49fe..8f38f80 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React + TS - +