diff --git a/assets/index-DPrjB9AC.css b/assets/index-DPrjB9AC.css new file mode 100644 index 0000000..2fc4dc3 --- /dev/null +++ b/assets/index-DPrjB9AC.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css?family=Open+Sans:300,700";#root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em}.read-the-docs{color:#888}#about{margin:0;padding:0}.close-btn{position:absolute;top:20;left:90%;color:#fff;cursor:pointer;transition:all .5s cubic-bezier(.23,1,.32,1)}.close-btn:hover{color:wheat;padding-left:3px}.svg-edu{display:flex}.achievements-list{display:flex;flex-wrap:wrap;justify-content:center}.achievement-card{margin:5px;border-radius:0;width:100%;overflow:hidden;position:relative;cursor:pointer;transform-style:preserve-3d;perspective:1000px;transition:all .5s cubic-bezier(.23,1,.32,1)}.achievement-card:hover{transform:rotateY(10deg) rotateX(10deg) scale(1.05);box-shadow:0 10px 20px #0003}.achievement-card:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;transition:transform .5s cubic-bezier(.23,1,.32,1);z-index:1}.achievement-card:hover:before{transform:translate(-100%)}.achievement-card:after{content:"";position:absolute;top:0;right:0;width:100%;height:100%;transition:transform .5s cubic-bezier(.23,1,.32,1);z-index:1}.achievement-card:hover:after{transform:translate(100%)}.certification-card{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;font-family:Times New Roman,Times,serif;font-weight:700}.card{overflow:hidden;position:relative;height:160px;width:210px;text-align:center;margin:5px;padding:3px}.card-content{padding:5px 5px 0;margin:0;overflow:visible}.card__side{height:auto;-webkit-transition:all .8s ease;transition:all .8s ease;position:absolute;top:0;left:0;width:100%;height:100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;border-radius:3px;overflow:hidden;-webkit-box-shadow:0 1.5rem 4rem rgba(0,0,0,.15);box-shadow:0 1.5rem 4rem #00000026}.card__side--front-1{background-image:url(/assets/certificate_bg-d5f2R32O.png);background-size:cover;display:flex;flex-wrap:wrap;justify-content:center;align-items:center}.card__side--back{margin:0;padding:0;-webkit-transform:rotateY(180deg);transform:rotateY(180deg);display:flex;flex-wrap:wrap;justify-content:center;align-items:center}.card__side--back-1{background:#fff}.card:hover .card__side--front-1{-webkit-transform:rotateY(-180deg);transform:rotateY(-180deg)}.card:hover .card__side--back{-webkit-transform:rotateY(0);transform:rotateY(0)}@media (max-width: 798px){.card{height:180px;width:250px;margin:2px 2px 2px 20px;padding:3px;font-size:12px}.close-btn{position:absolute;top:20;left:80%;color:#fff;cursor:pointer}.svg-edu{display:block}}.about-card-container{font-size:15px;padding:15px;margin-left:0;margin-top:0;text-align:left;display:block;background-color:#000;max-width:100%;height:auto;aspect-ratio:attr(width) / attr(height);background:linear-gradient(0deg,#141414,#00000080);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);border:.1px solid rgb(100,100,100);border-radius:10px;transition:.5s all}.about-card-active{font-size:15px;padding:15px;margin-left:0;margin-top:0;text-align:left;display:block;background-color:#000;max-width:100%;height:auto;aspect-ratio:attr(width) / attr(height);background:linear-gradient(0deg,#141414,#00000080);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);transition:.5s all;border:1px solid wheat;border-radius:10px;box-shadow:0 7px 50px 10px #000a;filter:brightness(1.2)}.about-card-container:before{position:fixed;content:"";box-shadow:0 0 100px 40px #ffffff08;top:-10%;left:-100%;transform:rotate(-45deg);height:60rem;transition:.7s all}.about-card-container:hover{border:1px solid wheat;box-shadow:0 7px 50px 10px #000a;filter:brightness(1.3)}.about-card-container:hover:before{filter:brightness(.5);top:-100%;left:200%}.card-item{display:inline;font:monospace;color:#fff;font-size:15px;margin:5px 2px 2px;opacity:.8}.points{color:#fff;font-size:15px;margin-top:5px;opacity:.8}@media screen and (max-width: 798){.about-card-container{font-size:15px;margin-left:0;text-align:left;display:block;background-color:#000;max-width:100%;height:auto;aspect-ratio:attr(width) / attr(height);background:#000;border:.1px solid rgb(100,100,100);border-radius:10px;padding:10px;margin-top:0;margin-bottom:5px}}.skill-container{display:block;font:monospace;position:relative;width:100%;min-height:70vh;margin:10px;padding:10px}.pie-div{flex:7;width:100%;max-width:400px}.pie-div svg{overflow:visible}.pie-info{flex:5;display:flex;width:100%;color:#fff;font-size:15px;margin:15px 35px 0 0;opacity:.8;text-align:left;padding:1rem;max-height:330px;border-radius:10px}@media screen and (max-width: 798px){.pie-div{display:flex;justify-content:center;align-items:center;width:95vw}}.myheader{color:#fff;padding:4px 0;position:sticky;top:0;width:100%;z-index:2}.myheader:hover{opacity:1}.head-container{display:flex;justify-content:space-between;align-items:center;padding:0 2px 0 0}.mynavbar{display:flex;justify-content:space-between;align-items:center;opacity:1;background-color:#0000004d;border-radius:20px;height:40px;width:100%;padding:0 2px 0 0}.navigation-links{list-style:none;display:flex;gap:20px;z-index:100}.navigation-links li{margin:0 10px;cursor:pointer}.navigation-links li .help{display:inline-flex;font-size:14px;margin:5px}.navigation-links a{color:#fff;text-decoration:none;font-size:18px}.navigation-links a:hover{color:wheat}.hamburger-icon{display:none}.scrolled.myheader{position:fixed;top:0;right:0;height:100%;width:auto;display:flex;align-items:center;justify-content:right;z-index:2}.scrolled .head-container{display:flex;flex-direction:column;align-items:center}.scrolled .mynavbar{display:flex;flex-direction:column;align-items:center;margin:0 10px 0 0;height:auto;background-color:transparent}.scrolled .navigation-links{list-style:none;padding:0;display:flex;flex-direction:column;width:50px;overflow:visible;z-index:3}.scrolled .navigation-links li{display:flex;flex-direction:column;margin:30px 0}.scrolled .experience-button{display:flex}.scrolled .navigation-links li .help{order:-1;opacity:0;color:wheat;vertical-align:top;font-size:12px;padding:4px;margin-right:10px}.scrolled .navigation-links a svg:hover+.help{opacity:1}.scrolled .navigation-links a{display:flex;align-items:right;justify-content:right;text-decoration:none;color:#000;font-size:1.2rem}.navigation-links a svg{background-color:transparent;transition:background-color .5s}.scrolled .navigation-links a svg{background-color:#fffc;border-radius:50%}.scrolled .navigation-links a:hover{color:tan}.light .navigation-links a{color:wheat}.light .navigation-links a svg{background-color:transparent}.light .navigation-links a:hover{color:tan;text-decoration:none}.mobile-navbar{display:none}@media screen and (max-width: 798px){.mynavbar{display:none}.hamburger-icon{display:block;z-index:3;position:fixed;top:0;right:0;margin-right:10px;margin-top:5px;padding:0}.mobile-navbar.open{display:flex;justify-content:center;align-items:center;position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;z-index:2;background-color:#000000e6}.mobile-navbar.open ul{list-style:none;padding-left:0;padding-right:0}.mobile-navbar.open ul li a{display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;margin:20px 0;width:250px;height:50px;border-radius:15px;background-color:wheat;color:#000}.mobile-navbar.open ul li .nav-resume-link{display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;margin:20px 0;width:250px;height:50px;border-radius:15px;background-color:#1a1a1a;color:wheat}.mobile-navbar.open ul li .nav-resume-link:hover{border:1px solid wheat}.mobile-navbar.open div{display:none;display:inline-flex;width:0;margin:10px;padding:0;overflow:hidden;white-space:nowrap;animation:revSlideIn 1s forwards}.mobile-navbar.open ul li .nav-resume-link div{width:auto;animation:revSlideIn 1s forwards}@keyframes revSlideIn{0%{width:0}to{width:70%}}.resume-link-li{justify-content:center;align-items:center;margin:20px 0;width:250px;height:50px;border-radius:15px;background-color:#1a1a1a;color:wheat}}#nav-icon2{width:35px;height:25px;position:relative;margin:15px auto;-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0);-webkit-transition:.5s ease-in-out;-moz-transition:.5s ease-in-out;-o-transition:.5s ease-in-out;transition:.5s ease-in-out;cursor:pointer}#nav-icon2 span{display:block;position:absolute;height:5px;width:50%;background:#fff;opacity:1;-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0);-webkit-transition:.25s ease-in-out;-moz-transition:.25s ease-in-out;-o-transition:.25s ease-in-out;transition:.25s ease-in-out}#nav-icon2 span:nth-child(2n){left:50%;border-radius:0 6px 6px 0}#nav-icon2 span:nth-child(odd){left:0;border-radius:6px 0 0 6px}#nav-icon2 span:nth-child(1),#nav-icon2 span:nth-child(2){top:0}#nav-icon2 span:nth-child(3),#nav-icon2 span:nth-child(4){top:12px}#nav-icon2 span:nth-child(5),#nav-icon2 span:nth-child(6){top:24px}#nav-icon2.open span:nth-child(1),#nav-icon2.open span:nth-child(6){-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}#nav-icon2.open span:nth-child(2),#nav-icon2.open span:nth-child(5){-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}#nav-icon2.open span:nth-child(1){left:3px;top:5px}#nav-icon2.open span:nth-child(2){left:calc(50% - 3px);top:5px}#nav-icon2.open span:nth-child(3){left:-50%;opacity:0}#nav-icon2.open span:nth-child(4){left:100%;opacity:0}#nav-icon2.open span:nth-child(5){left:3px;top:21px}#nav-icon2.open span:nth-child(6){left:calc(50% - 3px);top:21px}#home{margin:0;padding:0}.content{position:relative;z-index:1}.marquee{font-family:Times New Roman,Times,serif;margin:0 auto;white-space:nowrap;overflow:hidden;color:#fff;opacity:.9}.marquee span{display:inline-block;color:#fff;font-size:200px;height:60vh;animation:marquee 12s linear infinite;padding:40px;z-index:4;margin-top:55px}.m1{display:inline-block;padding:0 20px 0 0}.m2{animation-delay:14s;padding:0 400px 0 0}@keyframes marquee{0%{transform:translate(0)}to{transform:translate(-100%)}}.dg .cr>div{display:flex}.dg .cr>div>.c,.dg .cr>div>.property-name{float:none;clear:none}.dg .cr>div>.property-name{width:100px}.dg .cr>div>.c{display:flex;flex-direction:row-reverse;flex-grow:1;width:100%}.dg .cr>div>.c>.slider{float:none;width:100%;margin-left:0}.dg .cr>div>.c input[type=text]{width:40px;margin-left:6px}.name-intro.imgDiv{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;margin:0;padding:0;z-index:2;overflow:hidden;opacity:1}.main-img{height:90vh;position:fixed;bottom:0}@media screen and (max-width: 798px){#home{height:70vh}.name-container{width:99vw;display:flex;height:50vh}.marquee{text-align:top;flex-direction:column;margin:0;padding:0}.marquee span{display:inline-block;color:#fff;font-size:250px;height:60vh;width:auto;animation:marquee 12s linear infinite;padding:10px 40px 40px;z-index:4;margin-top:20px}.name-intro.imgDiv{position:fixed;display:flex;justify-content:center;align-items:baseline;width:100vw;margin:0;padding:0;z-index:2;overflow:hidden}.main-img{position:relative;width:100vw;margin-top:25vh;height:auto}}#contact{display:flex;flex-wrap:wrap;position:relative;z-index:1}.icon{display:inline-block}.contact-container{flex:1;color:#fff;text-align:right;margin-right:3vw;padding:20px;min-height:70vh;letter-spacing:.05em;font-size:1em;font-weight:300;line-height:1.5}.contact-title{font-size:2.5em;font-weight:500;line-height:1.1;margin:0}.contact-info{display:flex;justify-content:flex-end;align-items:center;margin:1em;text-align:right}.contact-info div{margin:0;width:60px}.contact-info a{color:wheat;text-decoration:none}.contact-info a:hover{color:tan;text-decoration:none}.contact-form{display:flex;justify-content:flex-end;align-items:center;padding:0;text-align:right}.contact-form-f{width:40vw;margin-top:20px}.contact-form-f div{margin:10px 0;color:#fff}.contact-form-f input,.contact-form-f textarea{width:90%;padding:10px;border:1px solid white;border-radius:5px;background-color:transparent;color:#fff}.contact-form-f input::placeholder,.contact-form-f textarea::placeholder{color:#fff;font-family:Arial,Helvetica,sans-serif}.contact-form-f input:focus::placeholder,.contact-form-f textarea:focus::placeholder{color:#000}.contact-form-f textarea{height:150px}.contact-form-f button{padding:10px 20px;border:1px solid transparent;background-color:wheat;color:#000;cursor:pointer}.contact-form-f button:hover{background-color:#000;border:1px solid wheat;color:wheat}.contact-form-f input:focus,.contact-form-f textarea:focus{color:#000;box-shadow:none;background-color:wheat}.contact-form-f button:disabled{background-color:gray;color:#000;border:1px solid transparent;cursor:not-allowed}#alert{height:10px;color:green}.icon img{width:50px;height:50px;margin:20px;border-radius:20%}.link-container{flex:1;width:auto;display:flex;justify-content:center;align-items:center}.mylinks{background-color:#ffffff0d;color:#fff;margin-top:2vh;margin-bottom:2vh;width:100%;height:50%;display:flex;justify-content:center;align-items:center}@media screen and (max-width: 798px){#contact{margin-top:50px}.contact-container{text-align:center;margin:0;padding:0}.contact-info,.contact-form{justify-content:center;text-align:center}.contact-form-f{width:90vw}.contact-form-f input,.contact-form-f textarea{width:90%}.contact-form-f button{width:95%}.icon img{width:30px;height:30px;margin:10px}.link-container,.mylinks{width:100%}}:root{--exp-color-1: white;--exp-color-2: white;--exp-color-3: wheat;--exp-color-4: black}#experience{position:relative;color:var(--exp-color-1);text-align:left;margin:30px;padding:20px;min-height:70vh;background-color:var(--exp-color-4);font-size:1em;font-weight:300;line-height:1.5;letter-spacing:.05em;z-index:1}.exp-title{margin:1em;font-size:2.5em;font-weight:500;text-align:left;line-height:1.1}.xtra{display:inline-block;font-size:small;font-weight:100;padding-left:10px}.exp-timeline{margin:4em auto;position:relative;max-width:46em;background-color:var(--exp-color-4);list-style:none}.exp-timeline:before{background-color:var(--exp-color-1);content:"";margin-left:40px;position:absolute;top:0;left:2em;width:2px;height:100%}.exp-timeline-event{position:relative}.exp-timeline-event:hover .exp-timeline-event-icon{transform:rotate(-45deg);background-color:var(--exp-color-3)}.exp-timeline-event:hover .exp-timeline-event-thumbnail{box-shadow:inset 40em 0 0 0 var(--exp-color-1)}.exp-timeline-event:hover .job-title{color:var(--exp-color-3)}.exp-timeline-event-copy{padding:25px 2em 2em;position:relative;top:-1.875em;left:4em;width:80%}.exp-timeline-event-copy h3{font-size:1.75em}.exp-timeline-event-copy h4{font-size:1.2em;margin-bottom:1.2em}.exp-timeline-event-copy strong{font-weight:700}.exp-timeline-event-copy p:not(.exp-timeline-event-thumbnail){padding-bottom:1.2em}.exp-timeline-event-icon{transition:transform .2s ease-in;transform:rotate(45deg);background-color:var(--exp-color-3);outline:10px solid var(--exp-color-4);display:block;margin:.5em .5em .5em -.5em;position:absolute;top:0;left:2em;width:1em;height:1em}.exp-timeline-event-thumbnail{transition:box-shadow .5s ease-in .1s;color:var(--exp-color-4);font-size:.75em;background-color:var(--exp-color-3);box-shadow:inset 0 0 #ef795a;display:inline-block;margin-bottom:1.2em;padding:.25em 1em .2em}@media screen and (max-width: 798px){#experience{color:var(--exp-color-1);text-align:left;margin:0;padding:5px 5px 5px 0;min-height:70vh;width:90%;overflow:hidden}.exp-title{margin:1em;font-size:2.5em;font-weight:500;text-align:left;line-height:1.1}.job-title{margin:0}.xtra{display:inline-block;font-size:small;font-weight:100;padding-left:10px}.exp-timeline{margin:0;padding:0;position:relative;background-color:var(--exp-color-4);list-style:none}.exp-timeline:before{background-color:var(--exp-color-1);content:"";margin-left:0;position:absolute;top:0;left:2em;width:2px;height:100%}.exp-timeline-event{position:relative}.exp-timeline-event h4{margin:0;padding:0}.exp-timeline-event:hover .exp-timeline-event-icon{transform:rotate(-45deg);background-color:var(--exp-color-3)}.exp-timeline-event:hover .exp-timeline-event-thumbnail{box-shadow:inset 40em 0 0 0 var(--exp-color-1)}.exp-timeline-event-copy{padding:25px 0 0;position:relative;top:-1.875em;left:4em}.exp-timeline-event-copy h3{font-size:1.75em}.exp-timeline-event-copy h4{font-size:1.2em;margin-bottom:1.2em}.exp-timeline-event-copy strong{font-weight:700;padding-right:5px}.exp-timeline-event-copy div ul li{display:flex;padding-right:5px;flex-wrap:wrap;list-style:square}.exp-timeline-event-copy p:not(.exp-timeline-event-thumbnail){padding-bottom:1.2em}.exp-timeline-event-icon{transition:transform .2s ease-in;transform:rotate(45deg);background-color:var(--exp-color-3);outline:10px solid var(--exp-color-4);display:block;margin:.5em .5em .5em -.5em;position:absolute;top:0;left:2em;width:1em;height:1em}.exp-timeline-event-thumbnail{transition:box-shadow .5s ease-in .1s;color:var(--exp-color-4);font-size:.75em;background-color:var(--exp-color-3);box-shadow:inset 0 0 #ef795a;display:inline-block;margin-bottom:1.2em;padding:.25em 1em .2em}}:root{font-family:Arial,Helvetica,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#000;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{color:#fff;background-color:#000;transition:background-color 1s;max-width:100%;overflow-x:hidden;margin:0!important;place-items:center;min-width:320px;min-height:100vh;scroll-behavior:smooth}a{font-weight:500;color:wheat;text-decoration:inherit}a:hover{color:#535bf2}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:wheat}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.background-animation{position:fixed;overflow:hidden;top:0;left:0;width:100vw;height:100vh;z-index:-1;margin:0;padding:0}@media screen and (max-width: 798px){#root{margin:0;padding:2px}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}#projects{background-color:"transparent"}#projects.focused{background-color:"transparent";color:#fff}.project-wrapper{margin:1em}.project-header{padding:30px 30px 0;text-align:center}.project-header__title{margin:1em;font-size:2.5em;text-align:left;font-weight:500;line-height:1.1}.project-cards{display:flex;flex-wrap:wrap;opacity:1}.project-card{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;margin:0 0 50px;z-index:1}.project-card-div{opacity:0;transition:opacity 1.2s}.project-card-div.fadeIn{opacity:1}.project-card.left{flex:1;float:left;display:block;text-align:right}.project-card.right{flex:1;width:100%;height:100%;float:right;display:block;text-align:left}.project-image{width:500px;pointer-events:none;height:auto}.wrapper,.project-card{position:relative;overflow:hidden}.card__year,.card__cometOuter,.card__circle,.card__smallCircle,.card__orangeShine,.card__greenShine,.card__thankyou,.card__outer-year{position:absolute;pointer-events:none}.card__greenShine{background-image:none;background-repeat:no-repeat;background-size:cover;left:20%;top:0;bottom:0;width:400px;z-index:1}.card__thankyou{font-family:Oswald,sans-serif;position:absolute;text-transform:uppercase;font-weight:100;left:33%;bottom:20%;z-index:2;font-size:30px;color:#000;text-align:center}.project-stack{display:flex;flex-wrap:wrap;justify-content:center;align-items:center}.project-stack img{padding:10px}.project-title{font-size:1.5em;font-weight:500;line-height:1.1;margin:20px}.project-desc{margin:20px}.project-btns{margin:10px}.project-button{background-color:wheat;color:#000;margin:10px;border:1px solid black}.project-button:hover{background-color:#000;color:wheat}.project-button:after{background-color:#000;color:wheat;border:1px solid wheat}.focused .navigation-links{color:#fff!important}@media screen and (max-width: 798px){.project-cards{display:block;max-width:100%;overflow:hidden}.wrapper img{width:100%}.card__thankyou{left:0;position:inherit}.project-header__title{margin:1em 0 .5em;font-size:2.5em;text-align:left;font-weight:500;line-height:1.1}} diff --git a/assets/index-BCQxg1yA.js b/assets/index-Dw4uCuIV.js similarity index 76% rename from assets/index-BCQxg1yA.js rename to assets/index-Dw4uCuIV.js index c106781..e27ac80 100644 --- a/assets/index-BCQxg1yA.js +++ b/assets/index-Dw4uCuIV.js @@ -52,21 +52,21 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ye=typeof Symbol=="function"&&Symbol.for,Yg=Ye?Symbol.for("react.element"):60103,qg=Ye?Symbol.for("react.portal"):60106,Dd=Ye?Symbol.for("react.fragment"):60107,Fd=Ye?Symbol.for("react.strict_mode"):60108,zd=Ye?Symbol.for("react.profiler"):60114,Vd=Ye?Symbol.for("react.provider"):60109,Hd=Ye?Symbol.for("react.context"):60110,Xg=Ye?Symbol.for("react.async_mode"):60111,Wd=Ye?Symbol.for("react.concurrent_mode"):60111,Ud=Ye?Symbol.for("react.forward_ref"):60112,Bd=Ye?Symbol.for("react.suspense"):60113,WM=Ye?Symbol.for("react.suspense_list"):60120,Gd=Ye?Symbol.for("react.memo"):60115,Kd=Ye?Symbol.for("react.lazy"):60116,UM=Ye?Symbol.for("react.block"):60121,BM=Ye?Symbol.for("react.fundamental"):60117,GM=Ye?Symbol.for("react.responder"):60118,KM=Ye?Symbol.for("react.scope"):60119;function Ft(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yg:switch(e=e.type,e){case Xg:case Wd:case Dd:case zd:case Fd:case Bd:return e;default:switch(e=e&&e.$$typeof,e){case Hd:case Ud:case Kd:case Gd:case Vd:return e;default:return t}}case qg:return t}}}function Ck(e){return Ft(e)===Wd}he.AsyncMode=Xg;he.ConcurrentMode=Wd;he.ContextConsumer=Hd;he.ContextProvider=Vd;he.Element=Yg;he.ForwardRef=Ud;he.Fragment=Dd;he.Lazy=Kd;he.Memo=Gd;he.Portal=qg;he.Profiler=zd;he.StrictMode=Fd;he.Suspense=Bd;he.isAsyncMode=function(e){return Ck(e)||Ft(e)===Xg};he.isConcurrentMode=Ck;he.isContextConsumer=function(e){return Ft(e)===Hd};he.isContextProvider=function(e){return Ft(e)===Vd};he.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yg};he.isForwardRef=function(e){return Ft(e)===Ud};he.isFragment=function(e){return Ft(e)===Dd};he.isLazy=function(e){return Ft(e)===Kd};he.isMemo=function(e){return Ft(e)===Gd};he.isPortal=function(e){return Ft(e)===qg};he.isProfiler=function(e){return Ft(e)===zd};he.isStrictMode=function(e){return Ft(e)===Fd};he.isSuspense=function(e){return Ft(e)===Bd};he.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Dd||e===Wd||e===zd||e===Fd||e===Bd||e===WM||typeof e=="object"&&e!==null&&(e.$$typeof===Kd||e.$$typeof===Gd||e.$$typeof===Vd||e.$$typeof===Hd||e.$$typeof===Ud||e.$$typeof===BM||e.$$typeof===GM||e.$$typeof===KM||e.$$typeof===UM)};he.typeOf=Ft;kk.exports=he;var YM=kk.exports,$k=YM,qM={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},XM={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pk={};Pk[$k.ForwardRef]=qM;Pk[$k.Memo]=XM;var QM=!0;function ZM(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var Tk=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||QM===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Ek=function(t,n,r){Tk(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function JM(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var e4={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},t4=!1,n4=/[A-Z]|^ms/g,r4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mk=function(t){return t.charCodeAt(1)===45},g1=function(t){return t!=null&&typeof t!="boolean"},up=hk(function(e){return Mk(e)?e:e.replace(n4,"-$&").toLowerCase()}),v1=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(r4,function(r,o,i){return Pn={name:o,styles:i,next:Pn},o})}return e4[t]!==1&&!Mk(t)&&typeof n=="number"&&n!==0?n+"px":n},o4="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ea(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Pn={name:o.name,styles:o.styles,next:Pn},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Pn={name:s.name,styles:s.styles,next:Pn},s=s.next;var a=i.styles+";";return a}return i4(e,t,n)}case"function":{if(e!==void 0){var l=Pn,u=n(e);return Pn=l,Ea(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function i4(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?d4:f4},w1=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},p4=!1,h4=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Tk(n,r,o),a4(function(){return Ek(n,r,o)}),null},m4=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=w1(t,n,r),l=a||b1(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt(y4(o)?n:o):t;return v.jsx(u4,{styles:r})}function b4(e,t){return Uh(e,t)}const w4=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},S4=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:x4,StyledEngineProvider:v4,ThemeContext:Yd,css:Rk,default:b4,internal_processStyles:w4,keyframes:c4},Symbol.toStringTag,{value:"Module"})),jk=cr(S4),k4=cr(CE),C4=cr(IE),$4=cr(jE),P4=["values","unit","step"],T4=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>A({},n,{[r.key]:r.val}),{})};function Ik(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,P4),i=T4(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,p){const h=s.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(h!==-1&&typeof t[s[h]]=="number"?t[s[h]]:p)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${Zg[e]}px)`};function ir(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||S1;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||S1;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Zg).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function M4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function _4(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function qd(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function $c(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=qd(e,n)||r,t&&(o=t(o,r,e)),o}function Le(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=qd(l,r)||{};return ir(s,a,d=>{let f=$c(u,o,d);return d===f&&typeof d=="string"&&(f=$c(u,o,`${t}${d==="default"?"":Nn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function A4(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const O4={m:"margin",p:"padding"},R4={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},k1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},j4=A4(e=>{if(e.length>2)if(k1[e])e=k1[e];else return[e];const[t,n]=e.split(""),r=O4[t],o=R4[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Jg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],e0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Jg,...e0];function sl(e,t,n,r){var o;const i=(o=qd(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Lk(e){return sl(e,"spacing",8)}function al(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function I4(e,t){return n=>e.reduce((r,o)=>(r[o]=al(t,n),r),{})}function L4(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=j4(n),i=I4(o,r),s=e[n];return ir(e,s,i)}function Nk(e,t){const n=Lk(e.theme);return Object.keys(e).map(r=>L4(e,t,r,n)).reduce(Qs,{})}function Me(e){return Nk(e,Jg)}Me.propTypes={};Me.filterProps=Jg;function _e(e){return Nk(e,e0)}_e.propTypes={};_e.filterProps=e0;function N4(e=8){if(e.mui)return e;const t=Lk({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Xd(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Qs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Wt(e){return typeof e!="number"?e:`${e}px solid`}function an(e,t){return Le({prop:e,themeKey:"borders",transform:t})}const D4=an("border",Wt),F4=an("borderTop",Wt),z4=an("borderRight",Wt),V4=an("borderBottom",Wt),H4=an("borderLeft",Wt),W4=an("borderColor"),U4=an("borderTopColor"),B4=an("borderRightColor"),G4=an("borderBottomColor"),K4=an("borderLeftColor"),Y4=an("outline",Wt),q4=an("outlineColor"),Qd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:al(t,r)});return ir(e,e.borderRadius,n)}return null};Qd.propTypes={};Qd.filterProps=["borderRadius"];Xd(D4,F4,z4,V4,H4,W4,U4,B4,G4,K4,Qd,Y4,q4);const Zd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sl(e.theme,"spacing",8),n=r=>({gap:al(t,r)});return ir(e,e.gap,n)}return null};Zd.propTypes={};Zd.filterProps=["gap"];const Jd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({columnGap:al(t,r)});return ir(e,e.columnGap,n)}return null};Jd.propTypes={};Jd.filterProps=["columnGap"];const ef=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({rowGap:al(t,r)});return ir(e,e.rowGap,n)}return null};ef.propTypes={};ef.filterProps=["rowGap"];const X4=Le({prop:"gridColumn"}),Q4=Le({prop:"gridRow"}),Z4=Le({prop:"gridAutoFlow"}),J4=Le({prop:"gridAutoColumns"}),e_=Le({prop:"gridAutoRows"}),t_=Le({prop:"gridTemplateColumns"}),n_=Le({prop:"gridTemplateRows"}),r_=Le({prop:"gridTemplateAreas"}),o_=Le({prop:"gridArea"});Xd(Zd,Jd,ef,X4,Q4,Z4,J4,e_,t_,n_,r_,o_);function Si(e,t){return t==="grey"?t:e}const i_=Le({prop:"color",themeKey:"palette",transform:Si}),s_=Le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Si}),a_=Le({prop:"backgroundColor",themeKey:"palette",transform:Si});Xd(i_,s_,a_);function _t(e){return e<=1&&e!==0?`${e*100}%`:e}const l_=Le({prop:"width",transform:_t}),t0=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Zg[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:_t(n)}};return ir(e,e.maxWidth,t)}return null};t0.filterProps=["maxWidth"];const u_=Le({prop:"minWidth",transform:_t}),c_=Le({prop:"height",transform:_t}),d_=Le({prop:"maxHeight",transform:_t}),f_=Le({prop:"minHeight",transform:_t});Le({prop:"size",cssProperty:"width",transform:_t});Le({prop:"size",cssProperty:"height",transform:_t});const p_=Le({prop:"boxSizing"});Xd(l_,t0,u_,c_,d_,f_,p_);const h_={border:{themeKey:"borders",transform:Wt},borderTop:{themeKey:"borders",transform:Wt},borderRight:{themeKey:"borders",transform:Wt},borderBottom:{themeKey:"borders",transform:Wt},borderLeft:{themeKey:"borders",transform:Wt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Wt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qd},color:{themeKey:"palette",transform:Si},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Si},backgroundColor:{themeKey:"palette",transform:Si},p:{style:_e},pt:{style:_e},pr:{style:_e},pb:{style:_e},pl:{style:_e},px:{style:_e},py:{style:_e},padding:{style:_e},paddingTop:{style:_e},paddingRight:{style:_e},paddingBottom:{style:_e},paddingLeft:{style:_e},paddingX:{style:_e},paddingY:{style:_e},paddingInline:{style:_e},paddingInlineStart:{style:_e},paddingInlineEnd:{style:_e},paddingBlock:{style:_e},paddingBlockStart:{style:_e},paddingBlockEnd:{style:_e},m:{style:Me},mt:{style:Me},mr:{style:Me},mb:{style:Me},ml:{style:Me},mx:{style:Me},my:{style:Me},margin:{style:Me},marginTop:{style:Me},marginRight:{style:Me},marginBottom:{style:Me},marginLeft:{style:Me},marginX:{style:Me},marginY:{style:Me},marginInline:{style:Me},marginInlineStart:{style:Me},marginInlineEnd:{style:Me},marginBlock:{style:Me},marginBlockStart:{style:Me},marginBlockEnd:{style:Me},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Zd},rowGap:{style:ef},columnGap:{style:Jd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_t},maxWidth:{style:t0},minWidth:{transform:_t},height:{transform:_t},maxHeight:{transform:_t},minHeight:{transform:_t},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ll=h_;function m_(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function g_(e,t){return typeof e=="function"?e(t):e}function Dk(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=qd(o,u)||{};return d?d(s):ir(s,r,h=>{let g=$c(f,c,h);return h===g&&typeof h=="string"&&(g=$c(f,c,`${n}${h==="default"?"":Nn(h)}`,h)),l===!1?g:{[l]:g}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:ll;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=M4(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(p=>{const h=g_(u[p],i);if(h!=null)if(typeof h=="object")if(s[p])f=Qs(f,e(p,h,i,s));else{const g=ir({theme:i},h,b=>({[p]:b}));m_(g,h)?f[p]=t({sx:h,theme:i}):f=Qs(f,g)}else f=Qs(f,e(p,h,i,s))}),_4(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Fk=Dk();Fk.filterProps=["sx"];const n0=Fk;function zk(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const v_=["breakpoints","palette","spacing","shape"];function tf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=se(e,v_),a=Ik(n),l=N4(o);let u=An({breakpoints:a,direction:"ltr",components:{},palette:A({mode:"light"},r),spacing:l,shape:A({},E4,i)},s);return u.applyStyles=zk,u=t.reduce((c,d)=>An(c,d),u),u.unstable_sxConfig=A({},ll,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return n0({sx:d,theme:this})},u}const y_=Object.freeze(Object.defineProperty({__proto__:null,default:tf,private_createBreakpoints:Ik,unstable_applyStyles:zk},Symbol.toStringTag,{value:"Module"})),x_=cr(y_),b_=["sx"],w_=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ll;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Vk(e){const{sx:t}=e,n=se(e,b_),{systemProps:r,otherProps:o}=w_(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Cr(a)?A({},r,a):r}:i=A({},r,t),A({},o,{sx:i})}const S_=Object.freeze(Object.defineProperty({__proto__:null,default:n0,extendSxProp:Vk,unstable_createStyleFunctionSx:Dk,unstable_defaultSxConfig:ll},Symbol.toStringTag,{value:"Module"})),k_=cr(S_);var ns=zn;Object.defineProperty(ol,"__esModule",{value:!0});var C_=ol.default=N_;ol.shouldForwardProp=zu;ol.systemDefaultTheme=void 0;var zt=ns(pk()),Gh=ns(dM()),C1=A_(jk),$_=k4;ns(C4);ns($4);var P_=ns(x_),T_=ns(k_);const E_=["ownerState"],M_=["variants"],__=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Hk(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Hk=function(r){return r?n:t})(e)}function A_(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Hk(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function O_(e){return Object.keys(e).length===0}function R_(e){return typeof e=="string"&&e.charCodeAt(0)>96}function zu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const j_=ol.systemDefaultTheme=(0,P_.default)(),I_=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Zl({defaultTheme:e,theme:t,themeId:n}){return O_(t)?e:t[n]||t}function L_(e){return e?(t,n)=>n[e]:null}function Vu(e,t){let{ownerState:n}=t,r=(0,Gh.default)(t,E_);const o=typeof e=="function"?e((0,zt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Vu(i,(0,zt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Gh.default)(o,M_);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,zt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,zt.default)({ownerState:n},r,n)):l.style))}),a}return o}function N_(e={}){const{themeId:t,defaultTheme:n=j_,rootShouldForwardProp:r=zu,slotShouldForwardProp:o=zu}=e,i=s=>(0,T_.default)((0,zt.default)({},s,{theme:Zl((0,zt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,C1.internal_processStyles)(s,C=>C.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=L_(I_(u))}=a,p=(0,Gh.default)(a,__),h=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=d||!1;let b,m=zu;u==="Root"||u==="root"?m=r:u?m=o:R_(s)&&(m=void 0);const y=(0,C1.default)(s,(0,zt.default)({shouldForwardProp:m,label:b},p)),x=C=>typeof C=="function"&&C.__emotion_real!==C||(0,$_.isPlainObject)(C)?k=>Vu(C,(0,zt.default)({},k,{theme:Zl({theme:k.theme,defaultTheme:n,themeId:t})})):C,w=(C,...k)=>{let $=x(C);const P=k?k.map(x):[];l&&f&&P.push(O=>{const E=Zl((0,zt.default)({},O,{defaultTheme:n,themeId:t}));if(!E.components||!E.components[l]||!E.components[l].styleOverrides)return null;const _=E.components[l].styleOverrides,T={};return Object.entries(_).forEach(([I,L])=>{T[I]=Vu(L,(0,zt.default)({},O,{theme:E}))}),f(O,T)}),l&&!h&&P.push(O=>{var E;const _=Zl((0,zt.default)({},O,{defaultTheme:n,themeId:t})),T=_==null||(E=_.components)==null||(E=E[l])==null?void 0:E.variants;return Vu({variants:T},(0,zt.default)({},O,{theme:_}))}),g||P.push(i);const R=P.length-k.length;if(Array.isArray(C)&&R>0){const O=new Array(R).fill("");$=[...C,...O],$.raw=[...C.raw,...O]}const M=y($,...P);return s.muiName&&(M.muiName=s.muiName),M};return y.withConfig&&(w.withConfig=y.withConfig),w}}function D_(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ne={};const F_=cr(ME),z_=cr(tM);var Wk=zn;Object.defineProperty(Ne,"__esModule",{value:!0});Ne.alpha=Kk;Ne.blend=J_;Ne.colorChannel=void 0;var V_=Ne.darken=o0;Ne.decomposeColor=nn;Ne.emphasize=Yk;var H_=Ne.getContrastRatio=Y_;Ne.getLuminance=Pc;Ne.hexToRgb=Uk;Ne.hslToRgb=Gk;var W_=Ne.lighten=i0;Ne.private_safeAlpha=q_;Ne.private_safeColorChannel=void 0;Ne.private_safeDarken=X_;Ne.private_safeEmphasize=Z_;Ne.private_safeLighten=Q_;Ne.recomposeColor=rs;Ne.rgbToHex=K_;var $1=Wk(F_),U_=Wk(z_);function r0(e,t=0,n=1){return(0,U_.default)(e,t,n)}function Uk(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function B_(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function nn(e){if(e.type)return e;if(e.charAt(0)==="#")return nn(Uk(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,$1.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,$1.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Bk=e=>{const t=nn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ne.colorChannel=Bk;const G_=(e,t)=>{try{return Bk(e)}catch{return e}};Ne.private_safeColorChannel=G_;function rs(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function K_(e){if(e.indexOf("#")===0)return e;const{values:t}=nn(e);return`#${t.map((n,r)=>B_(r===3?Math.round(255*n):n)).join("")}`}function Gk(e){e=nn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),rs({type:a,values:l})}function Pc(e){e=nn(e);let t=e.type==="hsl"||e.type==="hsla"?nn(Gk(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Y_(e,t){const n=Pc(e),r=Pc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Kk(e,t){return e=nn(e),t=r0(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,rs(e)}function q_(e,t,n){try{return Kk(e,t)}catch{return e}}function o0(e,t){if(e=nn(e),t=r0(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return rs(e)}function X_(e,t,n){try{return o0(e,t)}catch{return e}}function i0(e,t){if(e=nn(e),t=r0(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return rs(e)}function Q_(e,t,n){try{return i0(e,t)}catch{return e}}function Yk(e,t=.15){return Pc(e)>.5?o0(e,t):i0(e,t)}function Z_(e,t,n){try{return Yk(e,t)}catch{return e}}function J_(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=nn(e),s=nn(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return rs({type:"rgb",values:a})}const Ma={black:"#000",white:"#fff"},eA={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ho={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Wo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ss={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Uo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Bo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Go={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},tA=["mode","contrastThreshold","tonalOffset"],P1={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ma.white,default:Ma.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},cp={text:{primary:Ma.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ma.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function T1(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=W_(e.main,o):t==="dark"&&(e.dark=V_(e.main,i)))}function nA(e="light"){return e==="dark"?{main:Uo[200],light:Uo[50],dark:Uo[400]}:{main:Uo[700],light:Uo[400],dark:Uo[800]}}function rA(e="light"){return e==="dark"?{main:Ho[200],light:Ho[50],dark:Ho[400]}:{main:Ho[500],light:Ho[300],dark:Ho[700]}}function oA(e="light"){return e==="dark"?{main:Wo[500],light:Wo[300],dark:Wo[700]}:{main:Wo[700],light:Wo[400],dark:Wo[800]}}function iA(e="light"){return e==="dark"?{main:Bo[400],light:Bo[300],dark:Bo[700]}:{main:Bo[700],light:Bo[500],dark:Bo[900]}}function sA(e="light"){return e==="dark"?{main:Go[400],light:Go[300],dark:Go[700]}:{main:Go[800],light:Go[500],dark:Go[900]}}function aA(e="light"){return e==="dark"?{main:Ss[400],light:Ss[300],dark:Ss[700]}:{main:"#ed6c02",light:Ss[500],dark:Ss[900]}}function lA(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,tA),i=e.primary||nA(t),s=e.secondary||rA(t),a=e.error||oA(t),l=e.info||iA(t),u=e.success||sA(t),c=e.warning||aA(t);function d(g){return H_(g,cp.text.primary)>=n?cp.text.primary:P1.text.primary}const f=({color:g,name:b,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(g=A({},g),!g.main&&g[m]&&(g.main=g[m]),!g.hasOwnProperty("main"))throw new Error($a(11,b?` (${b})`:"",m));if(typeof g.main!="string")throw new Error($a(12,b?` (${b})`:"",JSON.stringify(g.main)));return T1(g,"light",y,r),T1(g,"dark",x,r),g.contrastText||(g.contrastText=d(g.main)),g},p={dark:cp,light:P1};return An(A({common:A({},Ma),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:eA,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const uA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function cA(e){return Math.round(e*1e5)/1e5}const E1={textTransform:"uppercase"},M1='"Roboto", "Helvetica", "Arial", sans-serif';function dA(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=M1,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=se(n,uA),p=o/14,h=d||(m=>`${m/u*p}rem`),g=(m,y,x,w,C)=>A({fontFamily:r,fontWeight:m,fontSize:h(y),lineHeight:x},r===M1?{letterSpacing:`${cA(w/y)}em`}:{},C,c),b={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,E1),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,E1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return An(A({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},b),f,{clone:!1})}const fA=.2,pA=.14,hA=.12;function we(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${fA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${pA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hA})`].join(",")}const mA=["none",we(0,2,1,-1,0,1,1,0,0,1,3,0),we(0,3,1,-2,0,2,2,0,0,1,5,0),we(0,3,3,-2,0,3,4,0,0,1,8,0),we(0,2,4,-1,0,4,5,0,0,1,10,0),we(0,3,5,-1,0,5,8,0,0,1,14,0),we(0,3,5,-1,0,6,10,0,0,1,18,0),we(0,4,5,-2,0,7,10,1,0,2,16,1),we(0,5,5,-3,0,8,10,1,0,3,14,2),we(0,5,6,-3,0,9,12,1,0,3,16,2),we(0,6,6,-3,0,10,14,1,0,4,18,3),we(0,6,7,-4,0,11,15,1,0,4,20,3),we(0,7,8,-4,0,12,17,2,0,5,22,4),we(0,7,8,-4,0,13,19,2,0,5,24,4),we(0,7,9,-4,0,14,21,2,0,5,26,4),we(0,8,9,-5,0,15,22,2,0,6,28,5),we(0,8,10,-5,0,16,24,2,0,6,30,5),we(0,8,11,-5,0,17,26,2,0,6,32,5),we(0,9,11,-5,0,18,28,2,0,7,34,6),we(0,9,12,-6,0,19,29,2,0,7,36,6),we(0,10,13,-6,0,20,31,3,0,8,38,7),we(0,10,13,-6,0,21,33,3,0,8,40,7),we(0,10,14,-6,0,22,35,3,0,8,42,7),we(0,11,14,-7,0,23,36,3,0,9,44,8),we(0,11,15,-7,0,24,38,3,0,9,46,8)],gA=["duration","easing","delay"],vA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},yA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _1(e){return`${Math.round(e)}ms`}function xA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function bA(e){const t=A({},vA,e.easing),n=A({},yA,e.duration);return A({getAutoHeightDuration:xA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return se(i,gA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:_1(s)} ${a} ${typeof l=="string"?l:_1(l)}`).join(",")}},e,{easing:t,duration:n})}const wA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},SA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function kA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=se(e,SA);if(e.vars)throw new Error($a(18));const a=lA(r),l=tf(e);let u=An(l,{mixins:D_(l.breakpoints,n),palette:a,shadows:mA.slice(),typography:dA(a,i),transitions:bA(o),zIndex:A({},wA)});return u=An(u,s),u=t.reduce((c,d)=>An(c,d),u),u.unstable_sxConfig=A({},ll,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return n0({sx:d,theme:this})},u}const s0=kA(),a0="$$material";function CA(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const $A=e=>CA(e)&&e!=="classes",qe=C_({themeId:a0,defaultTheme:s0,rootShouldForwardProp:$A});function PA(e){return Hn("MuiSvgIcon",e)}fr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const TA=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],EA=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Nn(t)}`,`fontSize${Nn(n)}`]};return Vn(o,PA,r)},MA=qe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Nn(n.color)}`],t[`fontSize${Nn(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,l,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),Kh=S.forwardRef(function(t,n){const r=Ug({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=se(r,TA),h=S.isValidElement(o)&&o.type==="svg",g=A({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h}),b={};c||(b.viewBox=f);const m=EA(g);return v.jsxs(MA,A({as:a,className:Zt(m.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},b,p,h&&o.props,{ownerState:g,children:[h?o.props.children:o,d?v.jsx("title",{children:d}):null]}))});Kh.muiName="SvgIcon";function os(e,t){function n(r,o){return v.jsx(Kh,A({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Kh.muiName,S.memo(S.forwardRef(n))}const _A={configure:e=>{dk.configure(e)}},AA=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Nn,createChainedFunction:LE,createSvgIcon:os,debounce:NE,deprecatedPropType:DE,isMuiElement:FE,ownerDocument:wc,ownerWindow:lk,requirePropFactory:zE,setRef:Sc,unstable_ClassNameGenerator:_A,unstable_useEnhancedEffect:or,unstable_useId:uk,unsupportedProp:HE,useControlled:ck,useEventCallback:WE,useForkRef:Li,useIsFocusVisible:QE},Symbol.toStringTag,{value:"Module"})),OA=cr(AA);var A1;function Gr(){return A1||(A1=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=OA}(ip)),ip}var RA=zn;Object.defineProperty(zg,"__esModule",{value:!0});var qk=zg.default=void 0,jA=RA(Gr()),IA=v;qk=zg.default=(0,jA.default)((0,IA.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"}),"Circle");function Jl(e){const t={font:"monospace",fontSize:"15px",padding:"15px",paddingTop:"15px",marginLeft:"0",marginTop:"0",textAlign:"left",display:"block",backgroundColor:"black",maxWidth:"100%",height:"auto",aspectRatio:"attr(width) / attr(height)",background:"#000",border:"0.1px solid rgb(100, 100, 100)",borderRadius:"10px"},n={font:"monospace",color:"wheat",fontSize:"15px",fontWeight:"bold"},r={font:"monospace",color:"white",fontSize:"15px",marginTop:"5px",opacity:"0.8"},o={font:"monospace",color:"white",fontSize:"15px",marginTop:"5px",opacity:"0.8"},i={display:"inline",font:"monospace",color:"white",fontSize:"15px",margin:"2px",marginTop:"5px",opacity:"0.8"},s={font:"monospace",fontSize:"15px",marginLeft:"0",textAlign:"left",display:"block",backgroundColor:"black",maxWidth:"100%",height:"auto",aspectRatio:"attr(width) / attr(height)",background:"#000",border:"0.1px solid rgb(100, 100, 100)",borderRadius:"10px",padding:"10px",marginTop:"0",marginBottom:"5px"},a=()=>{const u="0123456789ABCDEF";let c="#";for(let d=0;d<6;d++)c+=u[Math.floor(Math.random()*16)];return c},l=()=>{const u=document.getElementById("about");u&&u.scrollIntoView({behavior:"smooth"})};return v.jsx(v.Fragment,{children:v.jsxs("div",{style:e.isExpanded?{display:"none"}:window.innerWidth<798?s:t,onMouseEnter:()=>{e.setExpanded(!0),e.setHovering(e.title)},onClick:l,children:[v.jsx("div",{style:n,children:e.title}),v.jsx("div",{style:r,children:e.description}),v.jsx("div",{style:o,children:e.points.map((u,c)=>v.jsxs("li",{style:i,children:[v.jsx(qk,{style:{display:"inline-flex",width:"16px",verticalAlign:"middle",boxSizing:"inherit",alignItems:"center",color:a(),opacity:"0.6"}}),u]},c))})]})})}var l0={},LA=zn;Object.defineProperty(l0,"__esModule",{value:!0});var ul=l0.default=void 0,NA=LA(Gr()),DA=v;ul=l0.default=(0,NA.default)((0,DA.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const FA="/assets/github-loading-B47elS3D.gif",zA="/assets/green-checkmark-CQzSn8BM.png";function dp({content:e,setCurrentEdu:t,index:n}){const r=window.innerWidth<798?{display:"flex",width:"auto",height:"auto",textAlign:"left",border:"0.1px solid rgb(100, 100, 100)",borderRadius:"10px",backgroundColor:"black",padding:"1rem",margin:"0"}:{display:"flex",flexWrap:"wrap",width:"300px",minHeight:"100px",textAlign:"left",border:"0.1px solid rgb(100, 100, 100)",borderRadius:"10px",backgroundColor:"black",padding:"1rem",margin:"0"},o={width:"15px",height:"15px",margin:"10px",marginLeft:"0"},i={fontWeight:"bold",fontSize:"15px"},s={color:"wheat",fontSize:"13px"},a=()=>t(n.index),l=()=>t(-1);return v.jsx(v.Fragment,{children:v.jsxs("div",{style:r,onMouseEnter:a,onMouseLeave:l,children:[e.ongoing?v.jsx("img",{style:o,src:FA,alt:"Loading"}):v.jsx("img",{style:o,src:zA,alt:"Loading"}),v.jsxs("div",{children:[v.jsx("div",{style:i,children:e.degree}),v.jsx("div",{children:e.school}),v.jsxs("div",{style:{fontSize:"14px"},children:["(",e.year,")"]}),v.jsxs("div",{style:s,children:[e.marks," ",v.jsx("br",{})]})]})]})})}function VA(e){let t={stroke:e.currentEdu==0||e.currentEdu==1?"#4493f8":"grey",strokeWidth:"10px",fill:"transparent"};if(window.innerWidth<798)return t={...t,strokeWidth:"4px"},v.jsx(v.Fragment,{children:v.jsx("svg",{height:"100",width:"300",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("line",{x1:"150",y1:"0",x2:"150",y2:"200",style:t})})});const n={width:"100%",height:"120px"};return v.jsx(v.Fragment,{children:v.jsx("svg",{style:n,viewBox:"0 0 500 300",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M240,0 C250,250,400,100 1000,250",style:t})})})}function O1(e){const t={stroke:e.currentEdu==1||e.currentEdu==2?"#4493f8":"grey",strokeWidth:"4px",fill:"transparent"};return window.innerWidth<798?v.jsx(v.Fragment,{children:v.jsx("svg",{height:"100",width:"300",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("line",{x1:"150",y1:"0",x2:"150",y2:"200",style:t})})}):v.jsx(v.Fragment,{children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M0,50 C100,50 100,162 150,0",style:t})})})}function HA(e){const t={display:"block",font:"monospace",position:"relative",width:"100%",margin:"10px",padding:"10px"},n={display:"flex",font:"monospace",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},r={font:"monospace",color:"white",fontSize:"15px",margin:"15px 35px 0 0",opacity:"0.8",textAlign:"left",padding:"1rem",border:"0.1px solid rgb(100, 100, 100)",height:"auto",borderRadius:"10px",backgroundColor:"#242424"},o={textAlign:"right",float:"right",marginRight:"0"},[i,s]=S.useState(-1);return v.jsx(v.Fragment,{children:v.jsxs("div",{style:t,children:[v.jsxs("div",{style:n,onMouseEnter:()=>e.setExpanded(!1),children:[v.jsx("div",{children:"Education"}),v.jsx("div",{className:"close-btn",children:v.jsx(ul,{})})]}),v.jsxs("div",{style:r,children:[v.jsx("div",{className:"svg-edu",children:v.jsx(dp,{content:e.content[0],setCurrentEdu:s,index:{index:0}})}),v.jsxs("div",{className:"svg-edu",children:[v.jsx(VA,{currentEdu:i}),v.jsx("div",{style:o,children:v.jsx(dp,{content:e.content[1],setCurrentEdu:s,index:{index:1}})})]}),v.jsxs("div",{className:"svg-edu",children:[window.innerWidth<798&&v.jsx(O1,{currentEdu:i}),v.jsx("div",{children:v.jsx(dp,{content:e.content[2],setCurrentEdu:s,index:{index:2}})}),window.innerWidth>=798&&v.jsx(O1,{currentEdu:i})]})]})]})})}const Xk="DEFAULT_X_AXIS_KEY",WA="DEFAULT_Y_AXIS_KEY",UA={top:50,bottom:50,left:50,right:50},Qk=S.createContext({isInitialized:!1,data:{highlightedItem:null,setHighlighted:()=>{},clearHighlighted:()=>{},isHighlighted:()=>!1,isFaded:()=>!1}}),BA=(e,t)=>n=>e?e.fade==="series"?n.seriesId===(t==null?void 0:t.seriesId)&&n.dataIndex!==(t==null?void 0:t.dataIndex):e.fade==="global"?n.seriesId!==(t==null?void 0:t.seriesId)||n.dataIndex!==(t==null?void 0:t.dataIndex):!1:!1,GA=(e,t)=>n=>e?e.highlight==="series"?n.seriesId===(t==null?void 0:t.seriesId):e.highlight==="item"?n.dataIndex===(t==null?void 0:t.dataIndex)&&n.seriesId===(t==null?void 0:t.seriesId):!1:!1,KA=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function YA(e,t,n=KA){return e.type==="pie"?A({},e,{data:e.data.map((r,o)=>A({color:n[o%n.length]},r))}):A({color:n[t%n.length]},e)}const qA=({series:e,colors:t,seriesFormatters:n,dataset:r})=>{const o={};e.forEach((s,a)=>{var c;const{id:l=`auto-generated-id-${a}`,type:u}=s;if(o[u]===void 0&&(o[u]={series:{},seriesOrder:[]}),((c=o[u])==null?void 0:c.series[l])!==void 0)throw new Error(`MUI X: series' id "${l}" is not unique.`);o[u].series[l]=A({id:l},YA(s,a,t)),o[u].seriesOrder.push(l)});const i={};return Object.keys(n).forEach(s=>{var l;const a=o[s];a!==void 0&&(i[s]=((l=n[s])==null?void 0:l.call(n,a,r))??o[s])}),i};function XA(e){return Object.keys(e).length===0}function QA(e=null){const t=S.useContext(Yd);return!t||XA(t)?e:t}const ZA=tf();function Zk(e=ZA){return QA(e)}function JA(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}tf();function e6(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:kc(t.components[n].defaultProps,r)}function t6({props:e,name:t,defaultTheme:n,themeId:r}){let o=Zk(n);return r&&(o=o[r]||o),e6({theme:o,name:t,props:e})}function is(){const e=Zk(s0);return e[a0]||e}function nf({props:e,name:t}){return t6({props:e,name:t,defaultTheme:s0,themeId:a0})}const n6=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],r6=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],o6=e=>e==="dark"?r6:n6,Jk=S.createContext({isInitialized:!1,data:{}}),cl=S.createContext({isInitialized:!1,data:{colorProcessors:{},seriesFormatters:{},xExtremumGetters:{},yExtremumGetters:{}}}),eC=e=>{const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]},tC=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>{const i=t[o].yAxisId??t[o].yAxisKey;return i===n.id||r&&i===void 0}).reduce((o,i)=>{var l;const[s,a]=((l=t[i].stackedData)==null?void 0:l.reduce((u,c)=>[Math.min(...c,...u[0]===null?[]:[u[0]]),Math.max(...c,...u[1]===null?[]:[u[1]])],t[i].stackedData[0]))??[null,null];return[o[0]===null?s:Math.min(s,o[0]),o[1]===null?a:Math.max(a,o[1])]},[null,null])},i6=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?tC(e):eC(e),s6=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?eC(e):tC(e);function He(e){return function(){return e}}const R1=Math.abs,ot=Math.atan2,Jr=Math.cos,a6=Math.max,fp=Math.min,Sn=Math.sin,fi=Math.sqrt,gt=1e-12,_a=Math.PI,Tc=_a/2,Hu=2*_a;function l6(e){return e>1?0:e<-1?_a:Math.acos(e)}function j1(e){return e>=1?Tc:e<=-1?-Tc:Math.asin(e)}const Yh=Math.PI,qh=2*Yh,ao=1e-6,u6=qh-ao;function nC(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return nC;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;oao)if(!(Math.abs(d*l-u*c)>ao)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-s,h=o-a,g=l*l+u*u,b=p*p+h*h,m=Math.sqrt(g),y=Math.sqrt(f),x=i*Math.tan((Yh-Math.acos((g+f-b)/(2*m*y)))/2),w=x/y,C=x/m;Math.abs(w-1)>ao&&this._append`L${t+w*c},${n+w*d}`,this._append`A${i},${i},0,0,${+(d*p>c*h)},${this._x1=t+C*l},${this._y1=n+C*u}`}}arc(t,n,r,o,i,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(o),l=r*Math.sin(o),u=t+a,c=n+l,d=1^s,f=s?o-i:i-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>ao||Math.abs(this._y1-c)>ao)&&this._append`L${u},${c}`,r&&(f<0&&(f=f%qh+qh),f>u6?this._append`A${r},${r},0,1,${d},${t-a},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=c}`:f>ao&&this._append`A${r},${r},0,${+(f>=Yh)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function f6(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new d6(t)}function p6(e){return e.innerRadius}function h6(e){return e.outerRadius}function m6(e){return e.startAngle}function g6(e){return e.endAngle}function v6(e){return e&&e.padAngle}function y6(e,t,n,r,o,i,s,a){var l=n-e,u=r-t,c=s-o,d=a-i,f=d*l-c*u;if(!(f*fT*T+I*I&&(P=M,R=O),{cx:P,cy:R,x01:-c,y01:-d,x11:P*(o/C-1),y11:R*(o/C-1)}}function rC(){var e=p6,t=h6,n=He(0),r=null,o=m6,i=g6,s=v6,a=null,l=f6(u);function u(){var c,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),h=o.apply(this,arguments)-Tc,g=i.apply(this,arguments)-Tc,b=R1(g-h),m=g>h;if(a||(a=c=l()),pgt))a.moveTo(0,0);else if(b>Hu-gt)a.moveTo(p*Jr(h),p*Sn(h)),a.arc(0,0,p,h,g,!m),f>gt&&(a.moveTo(f*Jr(g),f*Sn(g)),a.arc(0,0,f,g,h,m));else{var y=h,x=g,w=h,C=g,k=b,$=b,P=s.apply(this,arguments)/2,R=P>gt&&(r?+r.apply(this,arguments):fi(f*f+p*p)),M=fp(R1(p-f)/2,+n.apply(this,arguments)),O=M,E=M,_,T;if(R>gt){var I=j1(R/f*Sn(P)),L=j1(R/p*Sn(P));(k-=I*2)>gt?(I*=m?1:-1,w+=I,C-=I):(k=0,w=C=(h+g)/2),($-=L*2)>gt?(L*=m?1:-1,y+=L,x-=L):($=0,y=x=(h+g)/2)}var F=p*Jr(y),j=p*Sn(y),N=f*Jr(C),V=f*Sn(C);if(M>gt){var G=p*Jr(x),B=p*Sn(x),q=f*Jr(w),J=f*Sn(w),X;if(b<_a)if(X=y6(F,j,q,J,G,B,N,V)){var oe=F-X[0],le=j-X[1],de=G-X[0],W=B-X[1],K=1/Sn(l6((oe*de+le*W)/(fi(oe*oe+le*le)*fi(de*de+W*W)))/2),Q=fi(X[0]*X[0]+X[1]*X[1]);O=fp(M,(f-Q)/(K-1)),E=fp(M,(p-Q)/(K+1))}else O=E=0}$>gt?E>gt?(_=eu(q,J,F,j,p,E,m),T=eu(G,B,N,V,p,E,m),a.moveTo(_.cx+_.x01,_.cy+_.y01),Egt)||!(k>gt)?a.lineTo(N,V):O>gt?(_=eu(N,V,G,B,f,-O,m),T=eu(F,j,q,J,f,-O,m),a.lineTo(_.cx+_.x01,_.cy+_.y01),Oe?1:t>=e?0:NaN}function b6(e){return e}function w6(){var e=b6,t=x6,n=null,r=He(0),o=He(Hu),i=He(0);function s(a){var l,u=(a=oC(a)).length,c,d,f=0,p=new Array(u),h=new Array(u),g=+r.apply(this,arguments),b=Math.min(Hu,Math.max(-Hu,o.apply(this,arguments)-g)),m,y=Math.min(Math.abs(b)/u,i.apply(this,arguments)),x=y*(b<0?-1:1),w;for(l=0;l0&&(f+=w);for(t!=null?p.sort(function(C,k){return t(h[C],h[k])}):n!=null&&p.sort(function(C,k){return n(a[C],a[k])}),l=0,d=f?(b-u*x)/f:0;l0?w*d:0)+x,h[c]={data:a[c],index:l,value:w,startAngle:g,endAngle:m,padAngle:y};return h}return s.value=function(a){return arguments.length?(e=typeof a=="function"?a:He(+a),s):e},s.sortValues=function(a){return arguments.length?(t=a,n=null,s):t},s.sort=function(a){return arguments.length?(n=a,t=null,s):n},s.startAngle=function(a){return arguments.length?(r=typeof a=="function"?a:He(+a),s):r},s.endAngle=function(a){return arguments.length?(o=typeof a=="function"?a:He(+a),s):o},s.padAngle=function(a){return arguments.length?(i=typeof a=="function"?a:He(+a),s):i},s}function Di(e,t){if((s=e.length)>1)for(var n=1,r,o,i=e[t[0]],s,a=i.length;n=0;)n[t]=t;return n}function S6(e,t){return e[t]}function k6(e){const t=[];return t.key=e,t}function iC(){var e=He([]),t=Fi,n=Di,r=S6;function o(i){var s=Array.from(e.apply(this,arguments),k6),a,l=s.length,u=-1,c;for(const d of i)for(a=0,++u;a0){for(var n,r,o=0,i=e[0].length,s;o0)for(var n,r=0,o,i,s,a,l,u=e[t[0]].length;r0?(o[0]=s,o[1]=s+=i):i<0?(o[1]=a,o[0]=a+=i):(o[0]=0,o[1]=i)}function P6(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,s;ri&&(i=o,n=t);return n}function aC(e){var t=e.map(lC);return Fi(e).sort(function(n,r){return t[n]-t[r]})}function lC(e){for(var t=0,n=-1,r=e.length,o;++n{const{series:t,seriesOrder:n,defaultStrategy:r}=e,o=[],i={};return n.forEach(s=>{const{stack:a,stackOrder:l,stackOffset:u}=t[s];a===void 0?o.push({ids:[s],stackingOrder:pp.none,stackingOffset:hp.none}):i[a]===void 0?(i[a]=o.length,o.push({ids:[s],stackingOrder:pp[l??(r==null?void 0:r.stackOrder)??"none"],stackingOffset:hp[u??(r==null?void 0:r.stackOffset)??"diverging"]})):(o[i[a]].ids.push(s),l!==void 0&&(o[i[a]].stackingOrder=pp[l]),u!==void 0&&(o[i[a]].stackingOffset=hp[u]))}),o};function u0(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=A({},e[r],{valueFormatter:e[r].valueFormatter??t})}),n}const O6=(e,t)=>{const{seriesOrder:n,series:r}=e,o=uC(e),i=t??[];n.forEach(a=>{const l=r[a].data;if(l!==void 0)l.forEach((u,c)=>{i.length<=c?i.push({[a]:u}):i[c][a]=u});else if(t===void 0)throw new Error([`MUI X: bar series with id='${a}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` + */var Ye=typeof Symbol=="function"&&Symbol.for,Yg=Ye?Symbol.for("react.element"):60103,qg=Ye?Symbol.for("react.portal"):60106,Dd=Ye?Symbol.for("react.fragment"):60107,Fd=Ye?Symbol.for("react.strict_mode"):60108,zd=Ye?Symbol.for("react.profiler"):60114,Vd=Ye?Symbol.for("react.provider"):60109,Hd=Ye?Symbol.for("react.context"):60110,Xg=Ye?Symbol.for("react.async_mode"):60111,Wd=Ye?Symbol.for("react.concurrent_mode"):60111,Ud=Ye?Symbol.for("react.forward_ref"):60112,Bd=Ye?Symbol.for("react.suspense"):60113,WM=Ye?Symbol.for("react.suspense_list"):60120,Gd=Ye?Symbol.for("react.memo"):60115,Kd=Ye?Symbol.for("react.lazy"):60116,UM=Ye?Symbol.for("react.block"):60121,BM=Ye?Symbol.for("react.fundamental"):60117,GM=Ye?Symbol.for("react.responder"):60118,KM=Ye?Symbol.for("react.scope"):60119;function Ft(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yg:switch(e=e.type,e){case Xg:case Wd:case Dd:case zd:case Fd:case Bd:return e;default:switch(e=e&&e.$$typeof,e){case Hd:case Ud:case Kd:case Gd:case Vd:return e;default:return t}}case qg:return t}}}function Ck(e){return Ft(e)===Wd}he.AsyncMode=Xg;he.ConcurrentMode=Wd;he.ContextConsumer=Hd;he.ContextProvider=Vd;he.Element=Yg;he.ForwardRef=Ud;he.Fragment=Dd;he.Lazy=Kd;he.Memo=Gd;he.Portal=qg;he.Profiler=zd;he.StrictMode=Fd;he.Suspense=Bd;he.isAsyncMode=function(e){return Ck(e)||Ft(e)===Xg};he.isConcurrentMode=Ck;he.isContextConsumer=function(e){return Ft(e)===Hd};he.isContextProvider=function(e){return Ft(e)===Vd};he.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yg};he.isForwardRef=function(e){return Ft(e)===Ud};he.isFragment=function(e){return Ft(e)===Dd};he.isLazy=function(e){return Ft(e)===Kd};he.isMemo=function(e){return Ft(e)===Gd};he.isPortal=function(e){return Ft(e)===qg};he.isProfiler=function(e){return Ft(e)===zd};he.isStrictMode=function(e){return Ft(e)===Fd};he.isSuspense=function(e){return Ft(e)===Bd};he.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Dd||e===Wd||e===zd||e===Fd||e===Bd||e===WM||typeof e=="object"&&e!==null&&(e.$$typeof===Kd||e.$$typeof===Gd||e.$$typeof===Vd||e.$$typeof===Hd||e.$$typeof===Ud||e.$$typeof===BM||e.$$typeof===GM||e.$$typeof===KM||e.$$typeof===UM)};he.typeOf=Ft;kk.exports=he;var YM=kk.exports,$k=YM,qM={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},XM={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pk={};Pk[$k.ForwardRef]=qM;Pk[$k.Memo]=XM;var QM=!0;function ZM(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var Tk=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||QM===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Ek=function(t,n,r){Tk(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function JM(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var e4={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},t4=!1,n4=/[A-Z]|^ms/g,r4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mk=function(t){return t.charCodeAt(1)===45},g1=function(t){return t!=null&&typeof t!="boolean"},up=hk(function(e){return Mk(e)?e:e.replace(n4,"-$&").toLowerCase()}),v1=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(r4,function(r,o,i){return Pn={name:o,styles:i,next:Pn},o})}return e4[t]!==1&&!Mk(t)&&typeof n=="number"&&n!==0?n+"px":n},o4="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ea(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Pn={name:o.name,styles:o.styles,next:Pn},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Pn={name:s.name,styles:s.styles,next:Pn},s=s.next;var a=i.styles+";";return a}return i4(e,t,n)}case"function":{if(e!==void 0){var l=Pn,u=n(e);return Pn=l,Ea(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function i4(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?d4:f4},w1=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},p4=!1,h4=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Tk(n,r,o),a4(function(){return Ek(n,r,o)}),null},m4=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=w1(t,n,r),l=a||b1(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt(y4(o)?n:o):t;return v.jsx(u4,{styles:r})}function b4(e,t){return Uh(e,t)}const w4=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},S4=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:x4,StyledEngineProvider:v4,ThemeContext:Yd,css:Rk,default:b4,internal_processStyles:w4,keyframes:c4},Symbol.toStringTag,{value:"Module"})),jk=cr(S4),k4=cr(CE),C4=cr(IE),$4=cr(jE),P4=["values","unit","step"],T4=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>A({},n,{[r.key]:r.val}),{})};function Ik(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,P4),i=T4(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,p){const h=s.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(h!==-1&&typeof t[s[h]]=="number"?t[s[h]]:p)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${Zg[e]}px)`};function ir(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||S1;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||S1;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Zg).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function M4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function _4(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function qd(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function $c(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=qd(e,n)||r,t&&(o=t(o,r,e)),o}function Le(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=qd(l,r)||{};return ir(s,a,d=>{let f=$c(u,o,d);return d===f&&typeof d=="string"&&(f=$c(u,o,`${t}${d==="default"?"":Nn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function A4(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const O4={m:"margin",p:"padding"},R4={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},k1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},j4=A4(e=>{if(e.length>2)if(k1[e])e=k1[e];else return[e];const[t,n]=e.split(""),r=O4[t],o=R4[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Jg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],e0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Jg,...e0];function sl(e,t,n,r){var o;const i=(o=qd(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Lk(e){return sl(e,"spacing",8)}function al(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function I4(e,t){return n=>e.reduce((r,o)=>(r[o]=al(t,n),r),{})}function L4(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=j4(n),i=I4(o,r),s=e[n];return ir(e,s,i)}function Nk(e,t){const n=Lk(e.theme);return Object.keys(e).map(r=>L4(e,t,r,n)).reduce(Qs,{})}function Me(e){return Nk(e,Jg)}Me.propTypes={};Me.filterProps=Jg;function _e(e){return Nk(e,e0)}_e.propTypes={};_e.filterProps=e0;function N4(e=8){if(e.mui)return e;const t=Lk({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Xd(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Qs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Wt(e){return typeof e!="number"?e:`${e}px solid`}function an(e,t){return Le({prop:e,themeKey:"borders",transform:t})}const D4=an("border",Wt),F4=an("borderTop",Wt),z4=an("borderRight",Wt),V4=an("borderBottom",Wt),H4=an("borderLeft",Wt),W4=an("borderColor"),U4=an("borderTopColor"),B4=an("borderRightColor"),G4=an("borderBottomColor"),K4=an("borderLeftColor"),Y4=an("outline",Wt),q4=an("outlineColor"),Qd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:al(t,r)});return ir(e,e.borderRadius,n)}return null};Qd.propTypes={};Qd.filterProps=["borderRadius"];Xd(D4,F4,z4,V4,H4,W4,U4,B4,G4,K4,Qd,Y4,q4);const Zd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sl(e.theme,"spacing",8),n=r=>({gap:al(t,r)});return ir(e,e.gap,n)}return null};Zd.propTypes={};Zd.filterProps=["gap"];const Jd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({columnGap:al(t,r)});return ir(e,e.columnGap,n)}return null};Jd.propTypes={};Jd.filterProps=["columnGap"];const ef=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({rowGap:al(t,r)});return ir(e,e.rowGap,n)}return null};ef.propTypes={};ef.filterProps=["rowGap"];const X4=Le({prop:"gridColumn"}),Q4=Le({prop:"gridRow"}),Z4=Le({prop:"gridAutoFlow"}),J4=Le({prop:"gridAutoColumns"}),e_=Le({prop:"gridAutoRows"}),t_=Le({prop:"gridTemplateColumns"}),n_=Le({prop:"gridTemplateRows"}),r_=Le({prop:"gridTemplateAreas"}),o_=Le({prop:"gridArea"});Xd(Zd,Jd,ef,X4,Q4,Z4,J4,e_,t_,n_,r_,o_);function Si(e,t){return t==="grey"?t:e}const i_=Le({prop:"color",themeKey:"palette",transform:Si}),s_=Le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Si}),a_=Le({prop:"backgroundColor",themeKey:"palette",transform:Si});Xd(i_,s_,a_);function _t(e){return e<=1&&e!==0?`${e*100}%`:e}const l_=Le({prop:"width",transform:_t}),t0=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Zg[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:_t(n)}};return ir(e,e.maxWidth,t)}return null};t0.filterProps=["maxWidth"];const u_=Le({prop:"minWidth",transform:_t}),c_=Le({prop:"height",transform:_t}),d_=Le({prop:"maxHeight",transform:_t}),f_=Le({prop:"minHeight",transform:_t});Le({prop:"size",cssProperty:"width",transform:_t});Le({prop:"size",cssProperty:"height",transform:_t});const p_=Le({prop:"boxSizing"});Xd(l_,t0,u_,c_,d_,f_,p_);const h_={border:{themeKey:"borders",transform:Wt},borderTop:{themeKey:"borders",transform:Wt},borderRight:{themeKey:"borders",transform:Wt},borderBottom:{themeKey:"borders",transform:Wt},borderLeft:{themeKey:"borders",transform:Wt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Wt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qd},color:{themeKey:"palette",transform:Si},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Si},backgroundColor:{themeKey:"palette",transform:Si},p:{style:_e},pt:{style:_e},pr:{style:_e},pb:{style:_e},pl:{style:_e},px:{style:_e},py:{style:_e},padding:{style:_e},paddingTop:{style:_e},paddingRight:{style:_e},paddingBottom:{style:_e},paddingLeft:{style:_e},paddingX:{style:_e},paddingY:{style:_e},paddingInline:{style:_e},paddingInlineStart:{style:_e},paddingInlineEnd:{style:_e},paddingBlock:{style:_e},paddingBlockStart:{style:_e},paddingBlockEnd:{style:_e},m:{style:Me},mt:{style:Me},mr:{style:Me},mb:{style:Me},ml:{style:Me},mx:{style:Me},my:{style:Me},margin:{style:Me},marginTop:{style:Me},marginRight:{style:Me},marginBottom:{style:Me},marginLeft:{style:Me},marginX:{style:Me},marginY:{style:Me},marginInline:{style:Me},marginInlineStart:{style:Me},marginInlineEnd:{style:Me},marginBlock:{style:Me},marginBlockStart:{style:Me},marginBlockEnd:{style:Me},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Zd},rowGap:{style:ef},columnGap:{style:Jd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_t},maxWidth:{style:t0},minWidth:{transform:_t},height:{transform:_t},maxHeight:{transform:_t},minHeight:{transform:_t},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ll=h_;function m_(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function g_(e,t){return typeof e=="function"?e(t):e}function Dk(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=qd(o,u)||{};return d?d(s):ir(s,r,h=>{let g=$c(f,c,h);return h===g&&typeof h=="string"&&(g=$c(f,c,`${n}${h==="default"?"":Nn(h)}`,h)),l===!1?g:{[l]:g}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:ll;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=M4(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(p=>{const h=g_(u[p],i);if(h!=null)if(typeof h=="object")if(s[p])f=Qs(f,e(p,h,i,s));else{const g=ir({theme:i},h,b=>({[p]:b}));m_(g,h)?f[p]=t({sx:h,theme:i}):f=Qs(f,g)}else f=Qs(f,e(p,h,i,s))}),_4(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Fk=Dk();Fk.filterProps=["sx"];const n0=Fk;function zk(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const v_=["breakpoints","palette","spacing","shape"];function tf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=se(e,v_),a=Ik(n),l=N4(o);let u=An({breakpoints:a,direction:"ltr",components:{},palette:A({mode:"light"},r),spacing:l,shape:A({},E4,i)},s);return u.applyStyles=zk,u=t.reduce((c,d)=>An(c,d),u),u.unstable_sxConfig=A({},ll,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return n0({sx:d,theme:this})},u}const y_=Object.freeze(Object.defineProperty({__proto__:null,default:tf,private_createBreakpoints:Ik,unstable_applyStyles:zk},Symbol.toStringTag,{value:"Module"})),x_=cr(y_),b_=["sx"],w_=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ll;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Vk(e){const{sx:t}=e,n=se(e,b_),{systemProps:r,otherProps:o}=w_(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Cr(a)?A({},r,a):r}:i=A({},r,t),A({},o,{sx:i})}const S_=Object.freeze(Object.defineProperty({__proto__:null,default:n0,extendSxProp:Vk,unstable_createStyleFunctionSx:Dk,unstable_defaultSxConfig:ll},Symbol.toStringTag,{value:"Module"})),k_=cr(S_);var ns=zn;Object.defineProperty(ol,"__esModule",{value:!0});var C_=ol.default=N_;ol.shouldForwardProp=zu;ol.systemDefaultTheme=void 0;var zt=ns(pk()),Gh=ns(dM()),C1=A_(jk),$_=k4;ns(C4);ns($4);var P_=ns(x_),T_=ns(k_);const E_=["ownerState"],M_=["variants"],__=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Hk(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Hk=function(r){return r?n:t})(e)}function A_(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Hk(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function O_(e){return Object.keys(e).length===0}function R_(e){return typeof e=="string"&&e.charCodeAt(0)>96}function zu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const j_=ol.systemDefaultTheme=(0,P_.default)(),I_=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Zl({defaultTheme:e,theme:t,themeId:n}){return O_(t)?e:t[n]||t}function L_(e){return e?(t,n)=>n[e]:null}function Vu(e,t){let{ownerState:n}=t,r=(0,Gh.default)(t,E_);const o=typeof e=="function"?e((0,zt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Vu(i,(0,zt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Gh.default)(o,M_);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,zt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,zt.default)({ownerState:n},r,n)):l.style))}),a}return o}function N_(e={}){const{themeId:t,defaultTheme:n=j_,rootShouldForwardProp:r=zu,slotShouldForwardProp:o=zu}=e,i=s=>(0,T_.default)((0,zt.default)({},s,{theme:Zl((0,zt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,C1.internal_processStyles)(s,C=>C.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=L_(I_(u))}=a,p=(0,Gh.default)(a,__),h=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=d||!1;let b,m=zu;u==="Root"||u==="root"?m=r:u?m=o:R_(s)&&(m=void 0);const y=(0,C1.default)(s,(0,zt.default)({shouldForwardProp:m,label:b},p)),x=C=>typeof C=="function"&&C.__emotion_real!==C||(0,$_.isPlainObject)(C)?k=>Vu(C,(0,zt.default)({},k,{theme:Zl({theme:k.theme,defaultTheme:n,themeId:t})})):C,w=(C,...k)=>{let $=x(C);const P=k?k.map(x):[];l&&f&&P.push(O=>{const E=Zl((0,zt.default)({},O,{defaultTheme:n,themeId:t}));if(!E.components||!E.components[l]||!E.components[l].styleOverrides)return null;const _=E.components[l].styleOverrides,T={};return Object.entries(_).forEach(([I,L])=>{T[I]=Vu(L,(0,zt.default)({},O,{theme:E}))}),f(O,T)}),l&&!h&&P.push(O=>{var E;const _=Zl((0,zt.default)({},O,{defaultTheme:n,themeId:t})),T=_==null||(E=_.components)==null||(E=E[l])==null?void 0:E.variants;return Vu({variants:T},(0,zt.default)({},O,{theme:_}))}),g||P.push(i);const R=P.length-k.length;if(Array.isArray(C)&&R>0){const O=new Array(R).fill("");$=[...C,...O],$.raw=[...C.raw,...O]}const M=y($,...P);return s.muiName&&(M.muiName=s.muiName),M};return y.withConfig&&(w.withConfig=y.withConfig),w}}function D_(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ne={};const F_=cr(ME),z_=cr(tM);var Wk=zn;Object.defineProperty(Ne,"__esModule",{value:!0});Ne.alpha=Kk;Ne.blend=J_;Ne.colorChannel=void 0;var V_=Ne.darken=o0;Ne.decomposeColor=nn;Ne.emphasize=Yk;var H_=Ne.getContrastRatio=Y_;Ne.getLuminance=Pc;Ne.hexToRgb=Uk;Ne.hslToRgb=Gk;var W_=Ne.lighten=i0;Ne.private_safeAlpha=q_;Ne.private_safeColorChannel=void 0;Ne.private_safeDarken=X_;Ne.private_safeEmphasize=Z_;Ne.private_safeLighten=Q_;Ne.recomposeColor=rs;Ne.rgbToHex=K_;var $1=Wk(F_),U_=Wk(z_);function r0(e,t=0,n=1){return(0,U_.default)(e,t,n)}function Uk(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function B_(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function nn(e){if(e.type)return e;if(e.charAt(0)==="#")return nn(Uk(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,$1.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,$1.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Bk=e=>{const t=nn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ne.colorChannel=Bk;const G_=(e,t)=>{try{return Bk(e)}catch{return e}};Ne.private_safeColorChannel=G_;function rs(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function K_(e){if(e.indexOf("#")===0)return e;const{values:t}=nn(e);return`#${t.map((n,r)=>B_(r===3?Math.round(255*n):n)).join("")}`}function Gk(e){e=nn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),rs({type:a,values:l})}function Pc(e){e=nn(e);let t=e.type==="hsl"||e.type==="hsla"?nn(Gk(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Y_(e,t){const n=Pc(e),r=Pc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Kk(e,t){return e=nn(e),t=r0(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,rs(e)}function q_(e,t,n){try{return Kk(e,t)}catch{return e}}function o0(e,t){if(e=nn(e),t=r0(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return rs(e)}function X_(e,t,n){try{return o0(e,t)}catch{return e}}function i0(e,t){if(e=nn(e),t=r0(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return rs(e)}function Q_(e,t,n){try{return i0(e,t)}catch{return e}}function Yk(e,t=.15){return Pc(e)>.5?o0(e,t):i0(e,t)}function Z_(e,t,n){try{return Yk(e,t)}catch{return e}}function J_(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=nn(e),s=nn(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return rs({type:"rgb",values:a})}const Ma={black:"#000",white:"#fff"},eA={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ho={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Wo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ss={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Uo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Bo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Go={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},tA=["mode","contrastThreshold","tonalOffset"],P1={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ma.white,default:Ma.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},cp={text:{primary:Ma.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ma.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function T1(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=W_(e.main,o):t==="dark"&&(e.dark=V_(e.main,i)))}function nA(e="light"){return e==="dark"?{main:Uo[200],light:Uo[50],dark:Uo[400]}:{main:Uo[700],light:Uo[400],dark:Uo[800]}}function rA(e="light"){return e==="dark"?{main:Ho[200],light:Ho[50],dark:Ho[400]}:{main:Ho[500],light:Ho[300],dark:Ho[700]}}function oA(e="light"){return e==="dark"?{main:Wo[500],light:Wo[300],dark:Wo[700]}:{main:Wo[700],light:Wo[400],dark:Wo[800]}}function iA(e="light"){return e==="dark"?{main:Bo[400],light:Bo[300],dark:Bo[700]}:{main:Bo[700],light:Bo[500],dark:Bo[900]}}function sA(e="light"){return e==="dark"?{main:Go[400],light:Go[300],dark:Go[700]}:{main:Go[800],light:Go[500],dark:Go[900]}}function aA(e="light"){return e==="dark"?{main:Ss[400],light:Ss[300],dark:Ss[700]}:{main:"#ed6c02",light:Ss[500],dark:Ss[900]}}function lA(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,tA),i=e.primary||nA(t),s=e.secondary||rA(t),a=e.error||oA(t),l=e.info||iA(t),u=e.success||sA(t),c=e.warning||aA(t);function d(g){return H_(g,cp.text.primary)>=n?cp.text.primary:P1.text.primary}const f=({color:g,name:b,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(g=A({},g),!g.main&&g[m]&&(g.main=g[m]),!g.hasOwnProperty("main"))throw new Error($a(11,b?` (${b})`:"",m));if(typeof g.main!="string")throw new Error($a(12,b?` (${b})`:"",JSON.stringify(g.main)));return T1(g,"light",y,r),T1(g,"dark",x,r),g.contrastText||(g.contrastText=d(g.main)),g},p={dark:cp,light:P1};return An(A({common:A({},Ma),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:eA,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const uA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function cA(e){return Math.round(e*1e5)/1e5}const E1={textTransform:"uppercase"},M1='"Roboto", "Helvetica", "Arial", sans-serif';function dA(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=M1,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=se(n,uA),p=o/14,h=d||(m=>`${m/u*p}rem`),g=(m,y,x,w,C)=>A({fontFamily:r,fontWeight:m,fontSize:h(y),lineHeight:x},r===M1?{letterSpacing:`${cA(w/y)}em`}:{},C,c),b={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,E1),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,E1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return An(A({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},b),f,{clone:!1})}const fA=.2,pA=.14,hA=.12;function we(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${fA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${pA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hA})`].join(",")}const mA=["none",we(0,2,1,-1,0,1,1,0,0,1,3,0),we(0,3,1,-2,0,2,2,0,0,1,5,0),we(0,3,3,-2,0,3,4,0,0,1,8,0),we(0,2,4,-1,0,4,5,0,0,1,10,0),we(0,3,5,-1,0,5,8,0,0,1,14,0),we(0,3,5,-1,0,6,10,0,0,1,18,0),we(0,4,5,-2,0,7,10,1,0,2,16,1),we(0,5,5,-3,0,8,10,1,0,3,14,2),we(0,5,6,-3,0,9,12,1,0,3,16,2),we(0,6,6,-3,0,10,14,1,0,4,18,3),we(0,6,7,-4,0,11,15,1,0,4,20,3),we(0,7,8,-4,0,12,17,2,0,5,22,4),we(0,7,8,-4,0,13,19,2,0,5,24,4),we(0,7,9,-4,0,14,21,2,0,5,26,4),we(0,8,9,-5,0,15,22,2,0,6,28,5),we(0,8,10,-5,0,16,24,2,0,6,30,5),we(0,8,11,-5,0,17,26,2,0,6,32,5),we(0,9,11,-5,0,18,28,2,0,7,34,6),we(0,9,12,-6,0,19,29,2,0,7,36,6),we(0,10,13,-6,0,20,31,3,0,8,38,7),we(0,10,13,-6,0,21,33,3,0,8,40,7),we(0,10,14,-6,0,22,35,3,0,8,42,7),we(0,11,14,-7,0,23,36,3,0,9,44,8),we(0,11,15,-7,0,24,38,3,0,9,46,8)],gA=["duration","easing","delay"],vA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},yA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _1(e){return`${Math.round(e)}ms`}function xA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function bA(e){const t=A({},vA,e.easing),n=A({},yA,e.duration);return A({getAutoHeightDuration:xA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return se(i,gA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:_1(s)} ${a} ${typeof l=="string"?l:_1(l)}`).join(",")}},e,{easing:t,duration:n})}const wA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},SA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function kA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=se(e,SA);if(e.vars)throw new Error($a(18));const a=lA(r),l=tf(e);let u=An(l,{mixins:D_(l.breakpoints,n),palette:a,shadows:mA.slice(),typography:dA(a,i),transitions:bA(o),zIndex:A({},wA)});return u=An(u,s),u=t.reduce((c,d)=>An(c,d),u),u.unstable_sxConfig=A({},ll,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return n0({sx:d,theme:this})},u}const s0=kA(),a0="$$material";function CA(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const $A=e=>CA(e)&&e!=="classes",qe=C_({themeId:a0,defaultTheme:s0,rootShouldForwardProp:$A});function PA(e){return Hn("MuiSvgIcon",e)}fr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const TA=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],EA=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Nn(t)}`,`fontSize${Nn(n)}`]};return Vn(o,PA,r)},MA=qe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Nn(n.color)}`],t[`fontSize${Nn(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,l,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),Kh=S.forwardRef(function(t,n){const r=Ug({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=se(r,TA),h=S.isValidElement(o)&&o.type==="svg",g=A({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h}),b={};c||(b.viewBox=f);const m=EA(g);return v.jsxs(MA,A({as:a,className:Zt(m.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},b,p,h&&o.props,{ownerState:g,children:[h?o.props.children:o,d?v.jsx("title",{children:d}):null]}))});Kh.muiName="SvgIcon";function os(e,t){function n(r,o){return v.jsx(Kh,A({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Kh.muiName,S.memo(S.forwardRef(n))}const _A={configure:e=>{dk.configure(e)}},AA=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Nn,createChainedFunction:LE,createSvgIcon:os,debounce:NE,deprecatedPropType:DE,isMuiElement:FE,ownerDocument:wc,ownerWindow:lk,requirePropFactory:zE,setRef:Sc,unstable_ClassNameGenerator:_A,unstable_useEnhancedEffect:or,unstable_useId:uk,unsupportedProp:HE,useControlled:ck,useEventCallback:WE,useForkRef:Li,useIsFocusVisible:QE},Symbol.toStringTag,{value:"Module"})),OA=cr(AA);var A1;function Gr(){return A1||(A1=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=OA}(ip)),ip}var RA=zn;Object.defineProperty(zg,"__esModule",{value:!0});var qk=zg.default=void 0,jA=RA(Gr()),IA=v;qk=zg.default=(0,jA.default)((0,IA.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"}),"Circle");function Jl(e){const t={color:"wheat",fontSize:"15px",fontWeight:"bold"},n={color:"white",fontSize:"15px",marginTop:"5px",opacity:"0.8"},r=()=>{const i="0123456789ABCDEF";let s="#";for(let a=0;a<6;a++)s+=i[Math.floor(Math.random()*16)];return s},o=()=>{if(window.innerWidth>798)return;const i=document.getElementById("about");i&&i.scrollIntoView({behavior:"smooth"})};return v.jsx(v.Fragment,{children:v.jsxs("div",{style:e.isExpanded?{display:"none"}:{display:"block"},className:e.isActive?"about-card-active":"about-card-container",onClick:()=>{e.setExpanded(!0),e.setHovering(e.title),o()},children:[v.jsx("div",{style:t,children:e.title}),v.jsx("div",{style:n,children:e.description}),v.jsx("div",{className:"points",children:e.points.map((i,s)=>v.jsxs("li",{className:"card-item",children:[v.jsx(qk,{style:{display:"inline-flex",width:"16px",verticalAlign:"middle",boxSizing:"inherit",alignItems:"center",color:r(),opacity:"0.6"}}),i]},s))})]})})}var l0={},LA=zn;Object.defineProperty(l0,"__esModule",{value:!0});var ul=l0.default=void 0,NA=LA(Gr()),DA=v;ul=l0.default=(0,NA.default)((0,DA.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const FA="/assets/github-loading-B47elS3D.gif",zA="/assets/green-checkmark-CQzSn8BM.png";function dp({content:e,setCurrentEdu:t,index:n}){const r=window.innerWidth<798?{display:"flex",width:"auto",height:"auto",textAlign:"left",border:"0.1px solid rgb(100, 100, 100)",borderRadius:"10px",backgroundColor:"black",padding:"1rem",margin:"0"}:{display:"flex",flexWrap:"wrap",width:"300px",minHeight:"100px",textAlign:"left",border:"0.1px solid rgb(100, 100, 100)",borderRadius:"10px",backgroundColor:"black",padding:"1rem",margin:"0"},o={width:"15px",height:"15px",margin:"10px",marginLeft:"0"},i={fontWeight:"bold",fontSize:"15px"},s={color:"wheat",fontSize:"13px"},a=()=>t(n.index),l=()=>t(-1);return v.jsx(v.Fragment,{children:v.jsxs("div",{style:r,onMouseEnter:a,onMouseLeave:l,children:[e.ongoing?v.jsx("img",{style:o,src:FA,alt:"Loading"}):v.jsx("img",{style:o,src:zA,alt:"Loading"}),v.jsxs("div",{children:[v.jsx("div",{style:i,children:e.degree}),v.jsx("div",{children:e.school}),v.jsxs("div",{style:{fontSize:"14px"},children:["(",e.year,")"]}),v.jsxs("div",{style:s,children:[e.marks," ",v.jsx("br",{})]})]})]})})}function VA(e){let t={stroke:e.currentEdu==0||e.currentEdu==1?"#4493f8":"grey",strokeWidth:"10px",fill:"transparent"};if(window.innerWidth<798)return t={...t,strokeWidth:"4px"},v.jsx(v.Fragment,{children:v.jsx("svg",{height:"100",width:"300",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("line",{x1:"150",y1:"0",x2:"150",y2:"200",style:t})})});const n={width:"100%",height:"120px"};return v.jsx(v.Fragment,{children:v.jsx("svg",{style:n,viewBox:"0 0 500 300",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M240,0 C250,250,400,100 1000,250",style:t})})})}function O1(e){const t={stroke:e.currentEdu==1||e.currentEdu==2?"#4493f8":"grey",strokeWidth:"4px",fill:"transparent"};return window.innerWidth<798?v.jsx(v.Fragment,{children:v.jsx("svg",{height:"100",width:"300",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("line",{x1:"150",y1:"0",x2:"150",y2:"200",style:t})})}):v.jsx(v.Fragment,{children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M0,50 C100,50 100,162 150,0",style:t})})})}function HA(e){const t={display:"block",font:"monospace",position:"relative",width:"100%",margin:"10px",padding:"10px"},n={display:"flex",font:"monospace",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},r={font:"monospace",color:"white",fontSize:"15px",margin:"15px 35px 0 0",opacity:"0.8",textAlign:"left",padding:"1rem",border:"0.1px solid rgb(100, 100, 100)",height:"auto",borderRadius:"10px",backgroundColor:"#242424"},o={textAlign:"right",float:"right",marginRight:"0"},[i,s]=S.useState(-1);return v.jsx(v.Fragment,{children:v.jsxs("div",{style:t,children:[v.jsxs("div",{style:n,children:[v.jsx("div",{children:"Education"}),v.jsx("div",{className:"close-btn",onClick:()=>e.setExpanded(!1),children:v.jsx(ul,{})})]}),v.jsxs("div",{style:r,children:[v.jsx("div",{className:"svg-edu",children:v.jsx(dp,{content:e.content[0],setCurrentEdu:s,index:{index:0}})}),v.jsxs("div",{className:"svg-edu",children:[v.jsx(VA,{currentEdu:i}),v.jsx("div",{style:o,children:v.jsx(dp,{content:e.content[1],setCurrentEdu:s,index:{index:1}})})]}),v.jsxs("div",{className:"svg-edu",children:[window.innerWidth<798&&v.jsx(O1,{currentEdu:i}),v.jsx("div",{children:v.jsx(dp,{content:e.content[2],setCurrentEdu:s,index:{index:2}})}),window.innerWidth>=798&&v.jsx(O1,{currentEdu:i})]})]})]})})}const Xk="DEFAULT_X_AXIS_KEY",WA="DEFAULT_Y_AXIS_KEY",UA={top:50,bottom:50,left:50,right:50},Qk=S.createContext({isInitialized:!1,data:{highlightedItem:null,setHighlighted:()=>{},clearHighlighted:()=>{},isHighlighted:()=>!1,isFaded:()=>!1}}),BA=(e,t)=>n=>e?e.fade==="series"?n.seriesId===(t==null?void 0:t.seriesId)&&n.dataIndex!==(t==null?void 0:t.dataIndex):e.fade==="global"?n.seriesId!==(t==null?void 0:t.seriesId)||n.dataIndex!==(t==null?void 0:t.dataIndex):!1:!1,GA=(e,t)=>n=>e?e.highlight==="series"?n.seriesId===(t==null?void 0:t.seriesId):e.highlight==="item"?n.dataIndex===(t==null?void 0:t.dataIndex)&&n.seriesId===(t==null?void 0:t.seriesId):!1:!1,KA=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function YA(e,t,n=KA){return e.type==="pie"?A({},e,{data:e.data.map((r,o)=>A({color:n[o%n.length]},r))}):A({color:n[t%n.length]},e)}const qA=({series:e,colors:t,seriesFormatters:n,dataset:r})=>{const o={};e.forEach((s,a)=>{var c;const{id:l=`auto-generated-id-${a}`,type:u}=s;if(o[u]===void 0&&(o[u]={series:{},seriesOrder:[]}),((c=o[u])==null?void 0:c.series[l])!==void 0)throw new Error(`MUI X: series' id "${l}" is not unique.`);o[u].series[l]=A({id:l},YA(s,a,t)),o[u].seriesOrder.push(l)});const i={};return Object.keys(n).forEach(s=>{var l;const a=o[s];a!==void 0&&(i[s]=((l=n[s])==null?void 0:l.call(n,a,r))??o[s])}),i};function XA(e){return Object.keys(e).length===0}function QA(e=null){const t=S.useContext(Yd);return!t||XA(t)?e:t}const ZA=tf();function Zk(e=ZA){return QA(e)}function JA(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}tf();function e6(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:kc(t.components[n].defaultProps,r)}function t6({props:e,name:t,defaultTheme:n,themeId:r}){let o=Zk(n);return r&&(o=o[r]||o),e6({theme:o,name:t,props:e})}function is(){const e=Zk(s0);return e[a0]||e}function nf({props:e,name:t}){return t6({props:e,name:t,defaultTheme:s0,themeId:a0})}const n6=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],r6=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],o6=e=>e==="dark"?r6:n6,Jk=S.createContext({isInitialized:!1,data:{}}),cl=S.createContext({isInitialized:!1,data:{colorProcessors:{},seriesFormatters:{},xExtremumGetters:{},yExtremumGetters:{}}}),eC=e=>{const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]},tC=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>{const i=t[o].yAxisId??t[o].yAxisKey;return i===n.id||r&&i===void 0}).reduce((o,i)=>{var l;const[s,a]=((l=t[i].stackedData)==null?void 0:l.reduce((u,c)=>[Math.min(...c,...u[0]===null?[]:[u[0]]),Math.max(...c,...u[1]===null?[]:[u[1]])],t[i].stackedData[0]))??[null,null];return[o[0]===null?s:Math.min(s,o[0]),o[1]===null?a:Math.max(a,o[1])]},[null,null])},i6=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?tC(e):eC(e),s6=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?eC(e):tC(e);function He(e){return function(){return e}}const R1=Math.abs,ot=Math.atan2,Jr=Math.cos,a6=Math.max,fp=Math.min,Sn=Math.sin,fi=Math.sqrt,gt=1e-12,_a=Math.PI,Tc=_a/2,Hu=2*_a;function l6(e){return e>1?0:e<-1?_a:Math.acos(e)}function j1(e){return e>=1?Tc:e<=-1?-Tc:Math.asin(e)}const Yh=Math.PI,qh=2*Yh,ao=1e-6,u6=qh-ao;function nC(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return nC;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;oao)if(!(Math.abs(d*l-u*c)>ao)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-s,h=o-a,g=l*l+u*u,b=p*p+h*h,m=Math.sqrt(g),y=Math.sqrt(f),x=i*Math.tan((Yh-Math.acos((g+f-b)/(2*m*y)))/2),w=x/y,C=x/m;Math.abs(w-1)>ao&&this._append`L${t+w*c},${n+w*d}`,this._append`A${i},${i},0,0,${+(d*p>c*h)},${this._x1=t+C*l},${this._y1=n+C*u}`}}arc(t,n,r,o,i,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(o),l=r*Math.sin(o),u=t+a,c=n+l,d=1^s,f=s?o-i:i-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>ao||Math.abs(this._y1-c)>ao)&&this._append`L${u},${c}`,r&&(f<0&&(f=f%qh+qh),f>u6?this._append`A${r},${r},0,1,${d},${t-a},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=c}`:f>ao&&this._append`A${r},${r},0,${+(f>=Yh)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function f6(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new d6(t)}function p6(e){return e.innerRadius}function h6(e){return e.outerRadius}function m6(e){return e.startAngle}function g6(e){return e.endAngle}function v6(e){return e&&e.padAngle}function y6(e,t,n,r,o,i,s,a){var l=n-e,u=r-t,c=s-o,d=a-i,f=d*l-c*u;if(!(f*fT*T+I*I&&(P=M,R=O),{cx:P,cy:R,x01:-c,y01:-d,x11:P*(o/C-1),y11:R*(o/C-1)}}function rC(){var e=p6,t=h6,n=He(0),r=null,o=m6,i=g6,s=v6,a=null,l=f6(u);function u(){var c,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),h=o.apply(this,arguments)-Tc,g=i.apply(this,arguments)-Tc,b=R1(g-h),m=g>h;if(a||(a=c=l()),pgt))a.moveTo(0,0);else if(b>Hu-gt)a.moveTo(p*Jr(h),p*Sn(h)),a.arc(0,0,p,h,g,!m),f>gt&&(a.moveTo(f*Jr(g),f*Sn(g)),a.arc(0,0,f,g,h,m));else{var y=h,x=g,w=h,C=g,k=b,$=b,P=s.apply(this,arguments)/2,R=P>gt&&(r?+r.apply(this,arguments):fi(f*f+p*p)),M=fp(R1(p-f)/2,+n.apply(this,arguments)),O=M,E=M,_,T;if(R>gt){var I=j1(R/f*Sn(P)),L=j1(R/p*Sn(P));(k-=I*2)>gt?(I*=m?1:-1,w+=I,C-=I):(k=0,w=C=(h+g)/2),($-=L*2)>gt?(L*=m?1:-1,y+=L,x-=L):($=0,y=x=(h+g)/2)}var F=p*Jr(y),j=p*Sn(y),N=f*Jr(C),V=f*Sn(C);if(M>gt){var G=p*Jr(x),B=p*Sn(x),q=f*Jr(w),J=f*Sn(w),X;if(b<_a)if(X=y6(F,j,q,J,G,B,N,V)){var oe=F-X[0],le=j-X[1],de=G-X[0],W=B-X[1],K=1/Sn(l6((oe*de+le*W)/(fi(oe*oe+le*le)*fi(de*de+W*W)))/2),Q=fi(X[0]*X[0]+X[1]*X[1]);O=fp(M,(f-Q)/(K-1)),E=fp(M,(p-Q)/(K+1))}else O=E=0}$>gt?E>gt?(_=eu(q,J,F,j,p,E,m),T=eu(G,B,N,V,p,E,m),a.moveTo(_.cx+_.x01,_.cy+_.y01),Egt)||!(k>gt)?a.lineTo(N,V):O>gt?(_=eu(N,V,G,B,f,-O,m),T=eu(F,j,q,J,f,-O,m),a.lineTo(_.cx+_.x01,_.cy+_.y01),Oe?1:t>=e?0:NaN}function b6(e){return e}function w6(){var e=b6,t=x6,n=null,r=He(0),o=He(Hu),i=He(0);function s(a){var l,u=(a=oC(a)).length,c,d,f=0,p=new Array(u),h=new Array(u),g=+r.apply(this,arguments),b=Math.min(Hu,Math.max(-Hu,o.apply(this,arguments)-g)),m,y=Math.min(Math.abs(b)/u,i.apply(this,arguments)),x=y*(b<0?-1:1),w;for(l=0;l0&&(f+=w);for(t!=null?p.sort(function(C,k){return t(h[C],h[k])}):n!=null&&p.sort(function(C,k){return n(a[C],a[k])}),l=0,d=f?(b-u*x)/f:0;l0?w*d:0)+x,h[c]={data:a[c],index:l,value:w,startAngle:g,endAngle:m,padAngle:y};return h}return s.value=function(a){return arguments.length?(e=typeof a=="function"?a:He(+a),s):e},s.sortValues=function(a){return arguments.length?(t=a,n=null,s):t},s.sort=function(a){return arguments.length?(n=a,t=null,s):n},s.startAngle=function(a){return arguments.length?(r=typeof a=="function"?a:He(+a),s):r},s.endAngle=function(a){return arguments.length?(o=typeof a=="function"?a:He(+a),s):o},s.padAngle=function(a){return arguments.length?(i=typeof a=="function"?a:He(+a),s):i},s}function Di(e,t){if((s=e.length)>1)for(var n=1,r,o,i=e[t[0]],s,a=i.length;n=0;)n[t]=t;return n}function S6(e,t){return e[t]}function k6(e){const t=[];return t.key=e,t}function iC(){var e=He([]),t=Fi,n=Di,r=S6;function o(i){var s=Array.from(e.apply(this,arguments),k6),a,l=s.length,u=-1,c;for(const d of i)for(a=0,++u;a0){for(var n,r,o=0,i=e[0].length,s;o0)for(var n,r=0,o,i,s,a,l,u=e[t[0]].length;r0?(o[0]=s,o[1]=s+=i):i<0?(o[1]=a,o[0]=a+=i):(o[0]=0,o[1]=i)}function P6(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,s;ri&&(i=o,n=t);return n}function aC(e){var t=e.map(lC);return Fi(e).sort(function(n,r){return t[n]-t[r]})}function lC(e){for(var t=0,n=-1,r=e.length,o;++n{const{series:t,seriesOrder:n,defaultStrategy:r}=e,o=[],i={};return n.forEach(s=>{const{stack:a,stackOrder:l,stackOffset:u}=t[s];a===void 0?o.push({ids:[s],stackingOrder:pp.none,stackingOffset:hp.none}):i[a]===void 0?(i[a]=o.length,o.push({ids:[s],stackingOrder:pp[l??(r==null?void 0:r.stackOrder)??"none"],stackingOffset:hp[u??(r==null?void 0:r.stackOffset)??"diverging"]})):(o[i[a]].ids.push(s),l!==void 0&&(o[i[a]].stackingOrder=pp[l]),u!==void 0&&(o[i[a]].stackingOffset=hp[u]))}),o};function u0(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=A({},e[r],{valueFormatter:e[r].valueFormatter??t})}),n}const O6=(e,t)=>{const{seriesOrder:n,series:r}=e,o=uC(e),i=t??[];n.forEach(a=>{const l=r[a].data;if(l!==void 0)l.forEach((u,c)=>{i.length<=c?i.push({[a]:u}):i[c][a]=u});else if(t===void 0)throw new Error([`MUI X: bar series with id='${a}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` `))});const s={};return o.forEach(a=>{const{ids:l,stackingOffset:u,stackingOrder:c}=a,d=iC().keys(l.map(f=>{const p=r[f].dataKey;return r[f].data===void 0&&p!==void 0?p:f})).value((f,p)=>f[p]??0).order(c).offset(u)(i);l.forEach((f,p)=>{const h=r[f].dataKey;s[f]=A({layout:"vertical"},r[f],{data:h?t.map(g=>{const b=g[h];return typeof b!="number"?0:b}):r[f].data,stackedData:d[p].map(([g,b])=>[g,b])})})}),{seriesOrder:n,stackingGroups:o,series:u0(s,a=>a==null?"":a.toLocaleString())}},R6=(e,t,n)=>{const r=e.layout==="vertical",o=r?t==null?void 0:t.colorScale:n==null?void 0:n.colorScale,i=r?n==null?void 0:n.colorScale:t==null?void 0:t.colorScale,s=r?t==null?void 0:t.data:n==null?void 0:n.data;return i?a=>{const l=e.data[a],u=l===null?e.color:i(l);return u===null?e.color:u}:o&&s?a=>{const l=s[a],u=l===null?e.color:o(l);return u===null?e.color:u}:()=>e.color},j6={seriesType:"bar",seriesFormatter:O6,colorProcessor:R6,xExtremumGetter:i6,yExtremumGetter:s6},Ec=(e,t)=>e[0]===null||e[1]===null?t:t[0]===null||t[1]===null?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])],I6=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>{const i=t[o].xAxisId??t[o].xAxisKey;return i===n.id||i===void 0&&r}).reduce((o,i)=>{const s=t[i].data.reduce((a,{x:l})=>Ec(a,[l,l]),[null,null]);return Ec(o,s)},[null,null])},L6=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>{const i=t[o].yAxisId??t[o].yAxisKey;return i===n.id||i===void 0&&r}).reduce((o,i)=>{const s=t[i].data.reduce((a,{y:l})=>Ec(a,[l,l]),[null,null]);return Ec(o,s)},[null,null])},N6=({series:e,seriesOrder:t})=>({series:u0(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),D6=(e,t,n,r)=>{const o=r==null?void 0:r.colorScale,i=n==null?void 0:n.colorScale,s=t==null?void 0:t.colorScale;return o?a=>{var c,d;if(((c=r==null?void 0:r.data)==null?void 0:c[a])!==void 0){const f=o((d=r==null?void 0:r.data)==null?void 0:d[a]);if(f!==null)return f}const l=e.data[a],u=l===null?e.color:o(l.z);return u===null?e.color:u}:i?a=>{const l=e.data[a],u=l===null?e.color:i(l.y);return u===null?e.color:u}:s?a=>{const l=e.data[a],u=l===null?e.color:s(l.x);return u===null?e.color:u}:()=>e.color},F6={seriesType:"scatter",seriesFormatter:N6,colorProcessor:D6,xExtremumGetter:I6,yExtremumGetter:L6},z6=e=>{const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]};function V6(e,t){return t.length===0?[null,null]:t.reduce((n,r)=>{const[o,i]=e(r);return n[0]===null?[Math.min(o,i),Math.max(o,i)]:[Math.min(o,i,n[0]),Math.max(o,i,n[1])]},e(t[0]))}const H6=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>{const i=t[o].yAxisId??t[o].yAxisKey;return i===n.id||r&&i===void 0}).reduce((o,i)=>{const{area:s,stackedData:a}=t[i],u=s!==void 0&&n.scaleType!=="log"?p=>p:p=>[p[1],p[1]],c=V6(u,a);if(o[0]===null)return c;if(c[0]===null)return o;const[d,f]=c;return[Math.min(d,o[0]),Math.max(f,o[1])]},[null,null])},W6=(e,t)=>{const{seriesOrder:n,series:r}=e,o=uC(A({},e,{defaultStrategy:{stackOffset:"none"}})),i=t??[];n.forEach(a=>{const l=r[a].data;l!==void 0&&l.forEach((u,c)=>{i.length<=c?i.push({[a]:u}):i[c][a]=u})});const s={};return o.forEach(a=>{const{ids:l,stackingOrder:u,stackingOffset:c}=a,d=iC().keys(l.map(f=>{const p=r[f].dataKey;return r[f].data===void 0&&p!==void 0?p:f})).value((f,p)=>f[p]??0).order(u).offset(c)(i);l.forEach((f,p)=>{const h=r[f].dataKey;s[f]=A({},r[f],{data:h?t.map(g=>{const b=g[h];return typeof b!="number"?null:b}):r[f].data,stackedData:d[p].map(([g,b])=>[g,b])})})}),{seriesOrder:n,stackingGroups:o,series:u0(s,a=>a==null?"":a.toLocaleString())}},U6=(e,t,n)=>{const r=n==null?void 0:n.colorScale,o=t==null?void 0:t.colorScale;return r?i=>{const s=e.data[i],a=s===null?e.color:r(s);return a===null?e.color:a}:o?i=>{var l;const s=(l=t.data)==null?void 0:l[i],a=s===null?e.color:o(s);return a===null?e.color:a}:()=>e.color},B6={seriesType:"line",colorProcessor:U6,seriesFormatter:W6,xExtremumGetter:z6,yExtremumGetter:H6};function xn(e,t){return typeof e=="function"?e(t):e}const G6=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},K6=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{const i=w6().startAngle(2*Math.PI*(n[o].startAngle??0)/360).endAngle(2*Math.PI*(n[o].endAngle??360)/360).padAngle(2*Math.PI*(n[o].paddingAngle??0)/360).sortValues(G6(n[o].sortingValues??"none"))(n[o].data.map(s=>s.value));r[o]=A({valueFormatter:s=>s.value.toLocaleString()},n[o],{data:n[o].data.map((s,a)=>A({},s,{id:s.id??`auto-generated-pie-id-${o}-${a}`},i[a])).map((s,a)=>{var l,u;return A({},s,{formattedValue:((u=(l=n[o]).valueFormatter)==null?void 0:u.call(l,A({},s,{label:xn(s.label,"arc")}),{dataIndex:a}))??s.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},Y6=e=>t=>e.data[t].color,q6={seriesType:"pie",colorProcessor:Y6,seriesFormatter:K6},X6=[j6,F6,B6,q6];function Q6(e){const t=e??X6,n={},r={},o={},i={};for(let s=0;s({isInitialized:!0,data:Q6(n)}),[n]);return v.jsx(cl.Provider,{value:r,children:t})}function cC(e){const{isInitialized:t,data:n}=S.useContext(cl);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` `));return n.colorProcessors}function J6(e){const{isInitialized:t,data:n}=S.useContext(cl);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` `));return n.seriesFormatters}function eO(e){const{isInitialized:t,data:n}=S.useContext(cl);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` `));return n.xExtremumGetters}function tO(e){const{isInitialized:t,data:n}=S.useContext(cl);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` `));return n.yExtremumGetters}function nO(e){const{series:t,dataset:n,colors:r=o6,children:o}=e,i=J6(),s=is(),a=S.useMemo(()=>({isInitialized:!0,data:qA({series:t,colors:typeof r=="function"?r(s.palette.mode):r,seriesFormatters:i,dataset:n})}),[t,r,s.palette.mode,i,n]);return v.jsx(Jk.Provider,{value:a,children:o})}function No(){const{isInitialized:e,data:t}=S.useContext(Jk);if(!e)throw new Error(["MUI X: Could not find the series ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` `));return t}function rO(){const e=No();return S.useMemo(()=>e.pie,[e.pie])}const oO=["highlighted","faded"],iO=e=>{const t=e??{},{highlighted:n,faded:r}=t,o=se(t,oO);return A({highlight:n,fade:r},o)};function sO({children:e,highlightedItem:t,onHighlightChange:n}){const[r,o]=ck({controlled:t,default:null,name:"HighlightedProvider",state:"highlightedItem"}),i=No(),s=S.useMemo(()=>{const u=new Map;return Object.keys(i).forEach(c=>{const d=i[c];Object.keys((d==null?void 0:d.series)??{}).forEach(f=>{const p=d==null?void 0:d.series[f];u.set(f,iO(p==null?void 0:p.highlightScope))})}),u},[i]),a=r&&r.seriesId?s.get(r.seriesId)??void 0:void 0,l=S.useMemo(()=>({isInitialized:!0,data:{highlightScope:a,highlightedItem:r,setHighlighted:u=>{o(u),n==null||n(u)},clearHighlighted:()=>{o(null),n==null||n(null)},isHighlighted:GA(a,r),isFaded:BA(a,r)}}),[r,a,o,n]);return v.jsx(Qk.Provider,{value:l,children:e})}function c0(){const{isInitialized:e,data:t}=S.useContext(Qk);if(!e)throw new Error(["MUI X: Could not find the highlighted ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` -`));return t}function Wu(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function aO(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function d0(e){let t,n,r;e.length!==2?(t=Wu,n=(a,l)=>Wu(e(a),l),r=(a,l)=>e(a)-l):(t=e===Wu||e===aO?e:lO,n=e,r=e);function o(a,l,u=0,c=a.length){if(u>>1;n(a[d],l)<0?u=d+1:c=d}while(u>>1;n(a[d],l)<=0?u=d+1:c=d}while(uu&&r(a[d-1],l)>-r(a[d],l)?d-1:d}return{left:o,center:s,right:i}}function lO(){return 0}function uO(e){return e===null?NaN:+e}const cO=d0(Wu),dC=cO.right;d0(uO).center;class I1 extends Map{constructor(t,n=pO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(L1(this,t))}has(t){return super.has(L1(this,t))}set(t,n){return super.set(dO(this,t),n)}delete(t){return super.delete(fO(this,t))}}function L1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function dO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function fO({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function pO(e){return e!==null&&typeof e=="object"?e.valueOf():e}const hO=Math.sqrt(50),mO=Math.sqrt(10),gO=Math.sqrt(2);function Mc(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),s=i>=hO?10:i>=mO?5:i>=gO?2:1;let a,l,u;return o<0?(u=Math.pow(10,-o)/s,a=Math.round(e*u),l=Math.round(t*u),a/ut&&--l,u=-u):(u=Math.pow(10,o)*s,a=Math.round(e/u),l=Math.round(t/u),a*ut&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const a=i-o+1,l=new Array(a);if(r)if(s<0)for(let u=0;u>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?tu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?tu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=wO.exec(e))?new wt(t[1],t[2],t[3],1):(t=SO.exec(e))?new wt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=kO.exec(e))?tu(t[1],t[2],t[3],t[4]):(t=CO.exec(e))?tu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$O.exec(e))?U1(t[1],t[2]/100,t[3]/100,1):(t=PO.exec(e))?U1(t[1],t[2]/100,t[3]/100,t[4]):D1.hasOwnProperty(e)?V1(D1[e]):e==="transparent"?new wt(NaN,NaN,NaN,0):null}function V1(e){return new wt(e>>16&255,e>>8&255,e&255,1)}function tu(e,t,n,r){return r<=0&&(e=t=n=NaN),new wt(e,t,n,r)}function MO(e){return e instanceof dl||(e=Ra(e)),e?(e=e.rgb(),new wt(e.r,e.g,e.b,e.opacity)):new wt}function Jh(e,t,n,r){return arguments.length===1?MO(e):new wt(e,t,n,r??1)}function wt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}p0(wt,Jh,pC(dl,{brighter(e){return e=e==null?Ac:Math.pow(Ac,e),new wt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Aa:Math.pow(Aa,e),new wt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wt(ko(this.r),ko(this.g),ko(this.b),Oc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:H1,formatHex:H1,formatHex8:_O,formatRgb:W1,toString:W1}));function H1(){return`#${po(this.r)}${po(this.g)}${po(this.b)}`}function _O(){return`#${po(this.r)}${po(this.g)}${po(this.b)}${po((isNaN(this.opacity)?1:this.opacity)*255)}`}function W1(){const e=Oc(this.opacity);return`${e===1?"rgb(":"rgba("}${ko(this.r)}, ${ko(this.g)}, ${ko(this.b)}${e===1?")":`, ${e})`}`}function Oc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ko(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function po(e){return e=ko(e),(e<16?"0":"")+e.toString(16)}function U1(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new mn(e,t,n,r)}function hC(e){if(e instanceof mn)return new mn(e.h,e.s,e.l,e.opacity);if(e instanceof dl||(e=Ra(e)),!e)return new mn;if(e instanceof mn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,l=(i+o)/2;return a?(t===i?s=(n-r)/a+(n0&&l<1?0:s,new mn(s,a,l,e.opacity)}function AO(e,t,n,r){return arguments.length===1?hC(e):new mn(e,t,n,r??1)}function mn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}p0(mn,AO,pC(dl,{brighter(e){return e=e==null?Ac:Math.pow(Ac,e),new mn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Aa:Math.pow(Aa,e),new mn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new wt(mp(e>=240?e-240:e+120,o,r),mp(e,o,r),mp(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new mn(B1(this.h),nu(this.s),nu(this.l),Oc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Oc(this.opacity);return`${e===1?"hsl(":"hsla("}${B1(this.h)}, ${nu(this.s)*100}%, ${nu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function B1(e){return e=(e||0)%360,e<0?e+360:e}function nu(e){return Math.max(0,Math.min(1,e||0))}function mp(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const h0=e=>()=>e;function OO(e,t){return function(n){return e+n*t}}function RO(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function jO(e){return(e=+e)==1?mC:function(t,n){return n-t?RO(t,n,e):h0(isNaN(t)?n:t)}}function mC(e,t){var n=t-e;return n?OO(e,n):h0(isNaN(e)?t:e)}const G1=function e(t){var n=jO(t);function r(o,i){var s=n((o=Jh(o)).r,(i=Jh(i)).r),a=n(o.g,i.g),l=n(o.b,i.b),u=mC(o.opacity,i.opacity);return function(c){return o.r=s(c),o.g=a(c),o.b=l(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function IO(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;on&&(i=t.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,l.push({i:s,x:ja(r,o)})),n=gp.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function BO(e,t,n){var r=e[0],o=e[1],i=t[0],s=t[1];return o2?GO:BO,l=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(l||(l=a(e.map(r),t,n)))(r(s(f)))}return d.invert=function(f){return s(o((u||(u=a(t,e.map(r),ja)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,WO),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=vC,c()},d.clamp=function(f){return arguments.length?(s=f?!0:qt,c()):s!==qt},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,o=p,c()}}function yC(){return m0()(qt,qt)}function KO(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Rc(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function zi(e){return e=Rc(Math.abs(e)),e?e[1]:NaN}function YO(e,t){return function(n,r){for(var o=n.length,i=[],s=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),i.push(n.substring(o-=a,o+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return i.reverse().join(t)}}function qO(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var XO=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ia(e){if(!(t=XO.exec(e)))throw new Error("invalid format: "+e);var t;return new g0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ia.prototype=g0.prototype;function g0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}g0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function QO(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var xC;function ZO(e,t){var n=Rc(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(xC=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Rc(e,Math.max(0,t+i-1))[0]}function Y1(e,t){var n=Rc(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const q1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:KO,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Y1(e*100,t),r:Y1,s:ZO,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function X1(e){return e}var Q1=Array.prototype.map,Z1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function JO(e){var t=e.grouping===void 0||e.thousands===void 0?X1:YO(Q1.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?X1:qO(Q1.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Ia(d);var f=d.fill,p=d.align,h=d.sign,g=d.symbol,b=d.zero,m=d.width,y=d.comma,x=d.precision,w=d.trim,C=d.type;C==="n"?(y=!0,C="g"):q1[C]||(x===void 0&&(x=12),w=!0,C="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var k=g==="$"?n:g==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",$=g==="$"?r:/[%p]/.test(C)?s:"",P=q1[C],R=/[defgprs%]/.test(C);x=x===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function M(O){var E=k,_=$,T,I,L;if(C==="c")_=P(O)+_,O="";else{O=+O;var F=O<0||1/O<0;if(O=isNaN(O)?l:P(Math.abs(O),x),w&&(O=QO(O)),F&&+O==0&&h!=="+"&&(F=!1),E=(F?h==="("?h:a:h==="-"||h==="("?"":h)+E,_=(C==="s"?Z1[8+xC/3]:"")+_+(F&&h==="("?")":""),R){for(T=-1,I=O.length;++TL||L>57){_=(L===46?o+O.slice(T+1):O.slice(T))+_,O=O.slice(0,T);break}}}y&&!b&&(O=t(O,1/0));var j=E.length+O.length+_.length,N=j>1)+E+O+_+N.slice(j);break;default:O=N+E+O+_;break}return i(O)}return M.toString=function(){return d+""},M}function c(d,f){var p=u((d=Ia(d),d.type="f",d)),h=Math.max(-8,Math.min(8,Math.floor(zi(f)/3)))*3,g=Math.pow(10,-h),b=Z1[8+h/3];return function(m){return p(g*m)+b}}return{format:u,formatPrefix:c}}var ru,v0,bC;eR({thousands:",",grouping:[3],currency:["$",""]});function eR(e){return ru=JO(e),v0=ru.format,bC=ru.formatPrefix,ru}function tR(e){return Math.max(0,-zi(Math.abs(e)))}function nR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zi(t)/3)))*3-zi(Math.abs(e)))}function rR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zi(t)-zi(e))+1}function oR(e,t,n,r){var o=Zh(e,t,n),i;switch(r=Ia(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=nR(o,s))&&(r.precision=i),bC(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=rR(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=tR(o))&&(r.precision=i-(r.type==="%")*2);break}}return v0(r)}function y0(e){var t=e.domain;return e.ticks=function(n){var r=t();return Xh(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return oR(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,s=r[o],a=r[i],l,u,c=10;for(a0;){if(u=Qh(s,a,n),u===l)return r[o]=s,r[i]=a,t(r);if(u>0)s=Math.floor(s/u)*u,a=Math.ceil(a/u)*u;else if(u<0)s=Math.ceil(s*u)/u,a=Math.floor(a*u)/u;else break;l=u}return e},e}function wC(){var e=yC();return e.copy=function(){return of(e,wC())},Kr.apply(e,arguments),y0(e)}function SC(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],s;return iMath.pow(e,t)}function uR(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function tx(e){return(t,n)=>-e(-t,n)}function cR(e){const t=e(J1,ex),n=t.domain;let r=10,o,i;function s(){return o=uR(r),i=lR(r),n()[0]<0?(o=tx(o),i=tx(i),e(iR,sR)):e(J1,ex),t}return t.base=function(a){return arguments.length?(r=+a,s()):r},t.domain=function(a){return arguments.length?(n(a),s()):n()},t.ticks=a=>{const l=n();let u=l[0],c=l[l.length-1];const d=c0){for(;f<=p;++f)for(h=1;hc)break;m.push(g)}}else for(;f<=p;++f)for(h=r-1;h>=1;--h)if(g=f>0?h/i(-f):h*i(f),!(gc)break;m.push(g)}m.length*2{if(a==null&&(a=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Ia(l)).precision==null&&(l.trim=!0),l=v0(l)),a===1/0)return l;const u=Math.max(1,r*a/t.ticks().length);return c=>{let d=c/i(Math.round(o(c)));return d*rn(SC(n(),{floor:a=>i(Math.floor(o(a))),ceil:a=>i(Math.ceil(o(a)))})),t}function kC(){const e=cR(m0()).domain([1,10]);return e.copy=()=>of(e,kC()).base(e.base()),Kr.apply(e,arguments),e}function nx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function dR(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function fR(e){return e<0?-e*e:e*e}function pR(e){var t=e(qt,qt),n=1;function r(){return n===1?e(qt,qt):n===.5?e(dR,fR):e(nx(n),nx(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},y0(t)}function x0(){var e=pR(m0());return e.copy=function(){return of(e,x0()).exponent(e.exponent())},Kr.apply(e,arguments),e}function hR(){return x0.apply(null,arguments).exponent(.5)}function CC(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[dC(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var s=t.indexOf(i);return[e[s-1],e[s]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return CC().domain(e).range(t).unknown(n)},Kr.apply(o,arguments)}const vp=new Date,yp=new Date;function Ue(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const s=o(i),a=o.ceil(i);return i-s(t(i=new Date(+i),s==null?1:Math.floor(s)),i),o.range=(i,s,a)=>{const l=[];if(i=o.ceil(i),a=a==null?1:Math.floor(a),!(i0))return l;let u;do l.push(u=new Date(+i)),t(i,a),e(i);while(uUe(s=>{if(s>=s)for(;e(s),!i(s);)s.setTime(s-1)},(s,a)=>{if(s>=s)if(a<0)for(;++a<=0;)for(;t(s,-1),!i(s););else for(;--a>=0;)for(;t(s,1),!i(s););}),n&&(o.count=(i,s)=>(vp.setTime(+i),yp.setTime(+s),e(vp),e(yp),Math.floor(n(vp,yp))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?s=>r(s)%i===0:s=>o.count(0,s)%i===0):o)),o}const jc=Ue(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);jc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ue(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):jc);jc.range;const Qn=1e3,Xt=Qn*60,Zn=Xt*60,sr=Zn*24,b0=sr*7,rx=sr*30,xp=sr*365,ho=Ue(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Qn)},(e,t)=>(t-e)/Qn,e=>e.getUTCSeconds());ho.range;const w0=Ue(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qn)},(e,t)=>{e.setTime(+e+t*Xt)},(e,t)=>(t-e)/Xt,e=>e.getMinutes());w0.range;const S0=Ue(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Xt)},(e,t)=>(t-e)/Xt,e=>e.getUTCMinutes());S0.range;const k0=Ue(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qn-e.getMinutes()*Xt)},(e,t)=>{e.setTime(+e+t*Zn)},(e,t)=>(t-e)/Zn,e=>e.getHours());k0.range;const C0=Ue(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zn)},(e,t)=>(t-e)/Zn,e=>e.getUTCHours());C0.range;const fl=Ue(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Xt)/sr,e=>e.getDate()-1);fl.range;const sf=Ue(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/sr,e=>e.getUTCDate()-1);sf.range;const $C=Ue(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/sr,e=>Math.floor(e/sr));$C.range;function Do(e){return Ue(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Xt)/b0)}const af=Do(0),Ic=Do(1),mR=Do(2),gR=Do(3),Vi=Do(4),vR=Do(5),yR=Do(6);af.range;Ic.range;mR.range;gR.range;Vi.range;vR.range;yR.range;function Fo(e){return Ue(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/b0)}const lf=Fo(0),Lc=Fo(1),xR=Fo(2),bR=Fo(3),Hi=Fo(4),wR=Fo(5),SR=Fo(6);lf.range;Lc.range;xR.range;bR.range;Hi.range;wR.range;SR.range;const $0=Ue(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());$0.range;const P0=Ue(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());P0.range;const ar=Ue(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ar.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ue(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ar.range;const lr=Ue(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());lr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ue(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});lr.range;function PC(e,t,n,r,o,i){const s=[[ho,1,Qn],[ho,5,5*Qn],[ho,15,15*Qn],[ho,30,30*Qn],[i,1,Xt],[i,5,5*Xt],[i,15,15*Xt],[i,30,30*Xt],[o,1,Zn],[o,3,3*Zn],[o,6,6*Zn],[o,12,12*Zn],[r,1,sr],[r,2,2*sr],[n,1,b0],[t,1,rx],[t,3,3*rx],[e,1,xp]];function a(u,c,d){const f=cb).right(s,f);if(p===s.length)return e.every(Zh(u/xp,c/xp,d));if(p===0)return jc.every(Math.max(Zh(u,c,d),1));const[h,g]=s[f/s[p-1][2]53)return null;"w"in D||(D.w=1),"Z"in D?(ne=wp(ks(D.y,0,1)),Re=ne.getUTCDay(),ne=Re>4||Re===0?Lc.ceil(ne):Lc(ne),ne=sf.offset(ne,(D.V-1)*7),D.y=ne.getUTCFullYear(),D.m=ne.getUTCMonth(),D.d=ne.getUTCDate()+(D.w+6)%7):(ne=bp(ks(D.y,0,1)),Re=ne.getDay(),ne=Re>4||Re===0?Ic.ceil(ne):Ic(ne),ne=fl.offset(ne,(D.V-1)*7),D.y=ne.getFullYear(),D.m=ne.getMonth(),D.d=ne.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),Re="Z"in D?wp(ks(D.y,0,1)).getUTCDay():bp(ks(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(Re+5)%7:D.w+D.U*7-(Re+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,wp(D)):bp(D)}}function P(W,K,Q,D){for(var be=0,ne=K.length,Re=Q.length,me,Be;be=Re)return-1;if(me=K.charCodeAt(be++),me===37){if(me=K.charAt(be++),Be=C[me in ox?K.charAt(be++):me],!Be||(D=Be(W,Q,D))<0)return-1}else if(me!=Q.charCodeAt(D++))return-1}return D}function R(W,K,Q){var D=u.exec(K.slice(Q));return D?(W.p=c.get(D[0].toLowerCase()),Q+D[0].length):-1}function M(W,K,Q){var D=p.exec(K.slice(Q));return D?(W.w=h.get(D[0].toLowerCase()),Q+D[0].length):-1}function O(W,K,Q){var D=d.exec(K.slice(Q));return D?(W.w=f.get(D[0].toLowerCase()),Q+D[0].length):-1}function E(W,K,Q){var D=m.exec(K.slice(Q));return D?(W.m=y.get(D[0].toLowerCase()),Q+D[0].length):-1}function _(W,K,Q){var D=g.exec(K.slice(Q));return D?(W.m=b.get(D[0].toLowerCase()),Q+D[0].length):-1}function T(W,K,Q){return P(W,t,K,Q)}function I(W,K,Q){return P(W,n,K,Q)}function L(W,K,Q){return P(W,r,K,Q)}function F(W){return s[W.getDay()]}function j(W){return i[W.getDay()]}function N(W){return l[W.getMonth()]}function V(W){return a[W.getMonth()]}function G(W){return o[+(W.getHours()>=12)]}function B(W){return 1+~~(W.getMonth()/3)}function q(W){return s[W.getUTCDay()]}function J(W){return i[W.getUTCDay()]}function X(W){return l[W.getUTCMonth()]}function oe(W){return a[W.getUTCMonth()]}function le(W){return o[+(W.getUTCHours()>=12)]}function de(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var K=k(W+="",x);return K.toString=function(){return W},K},parse:function(W){var K=$(W+="",!1);return K.toString=function(){return W},K},utcFormat:function(W){var K=k(W+="",w);return K.toString=function(){return W},K},utcParse:function(W){var K=$(W+="",!0);return K.toString=function(){return W},K}}}var ox={"-":"",_:" ",0:"0"},Xe=/^\s*\d+/,ER=/^%/,MR=/[\\^$*+?|[\]().{}]/g;function ae(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[t.toLowerCase(),n]))}function AR(e,t,n){var r=Xe.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function OR(e,t,n){var r=Xe.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function RR(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function jR(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function IR(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ix(e,t,n){var r=Xe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function sx(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function LR(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function NR(e,t,n){var r=Xe.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function DR(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ax(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function FR(e,t,n){var r=Xe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lx(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function zR(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function VR(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function HR(e,t,n){var r=Xe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function WR(e,t,n){var r=Xe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function UR(e,t,n){var r=ER.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function BR(e,t,n){var r=Xe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function GR(e,t,n){var r=Xe.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ux(e,t){return ae(e.getDate(),t,2)}function KR(e,t){return ae(e.getHours(),t,2)}function YR(e,t){return ae(e.getHours()%12||12,t,2)}function qR(e,t){return ae(1+fl.count(ar(e),e),t,3)}function TC(e,t){return ae(e.getMilliseconds(),t,3)}function XR(e,t){return TC(e,t)+"000"}function QR(e,t){return ae(e.getMonth()+1,t,2)}function ZR(e,t){return ae(e.getMinutes(),t,2)}function JR(e,t){return ae(e.getSeconds(),t,2)}function e8(e){var t=e.getDay();return t===0?7:t}function t8(e,t){return ae(af.count(ar(e)-1,e),t,2)}function EC(e){var t=e.getDay();return t>=4||t===0?Vi(e):Vi.ceil(e)}function n8(e,t){return e=EC(e),ae(Vi.count(ar(e),e)+(ar(e).getDay()===4),t,2)}function r8(e){return e.getDay()}function o8(e,t){return ae(Ic.count(ar(e)-1,e),t,2)}function i8(e,t){return ae(e.getFullYear()%100,t,2)}function s8(e,t){return e=EC(e),ae(e.getFullYear()%100,t,2)}function a8(e,t){return ae(e.getFullYear()%1e4,t,4)}function l8(e,t){var n=e.getDay();return e=n>=4||n===0?Vi(e):Vi.ceil(e),ae(e.getFullYear()%1e4,t,4)}function u8(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ae(t/60|0,"0",2)+ae(t%60,"0",2)}function cx(e,t){return ae(e.getUTCDate(),t,2)}function c8(e,t){return ae(e.getUTCHours(),t,2)}function d8(e,t){return ae(e.getUTCHours()%12||12,t,2)}function f8(e,t){return ae(1+sf.count(lr(e),e),t,3)}function MC(e,t){return ae(e.getUTCMilliseconds(),t,3)}function p8(e,t){return MC(e,t)+"000"}function h8(e,t){return ae(e.getUTCMonth()+1,t,2)}function m8(e,t){return ae(e.getUTCMinutes(),t,2)}function g8(e,t){return ae(e.getUTCSeconds(),t,2)}function v8(e){var t=e.getUTCDay();return t===0?7:t}function y8(e,t){return ae(lf.count(lr(e)-1,e),t,2)}function _C(e){var t=e.getUTCDay();return t>=4||t===0?Hi(e):Hi.ceil(e)}function x8(e,t){return e=_C(e),ae(Hi.count(lr(e),e)+(lr(e).getUTCDay()===4),t,2)}function b8(e){return e.getUTCDay()}function w8(e,t){return ae(Lc.count(lr(e)-1,e),t,2)}function S8(e,t){return ae(e.getUTCFullYear()%100,t,2)}function k8(e,t){return e=_C(e),ae(e.getUTCFullYear()%100,t,2)}function C8(e,t){return ae(e.getUTCFullYear()%1e4,t,4)}function $8(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Hi(e):Hi.ceil(e),ae(e.getUTCFullYear()%1e4,t,4)}function P8(){return"+0000"}function dx(){return"%"}function fx(e){return+e}function px(e){return Math.floor(+e/1e3)}var Ko,AC,OC;T8({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function T8(e){return Ko=TR(e),AC=Ko.format,Ko.parse,OC=Ko.utcFormat,Ko.utcParse,Ko}function E8(e){return new Date(e)}function M8(e){return e instanceof Date?+e:+new Date(+e)}function T0(e,t,n,r,o,i,s,a,l,u){var c=yC(),d=c.invert,f=c.domain,p=u(".%L"),h=u(":%S"),g=u("%I:%M"),b=u("%I %p"),m=u("%a %d"),y=u("%b %d"),x=u("%B"),w=u("%Y");function C(k){return(l(k)n),e.colors).unknown(e.unknownColor??null)}function Uu(e){return e.type==="ordinal"?Nc(e):R8(e)}const E0=S.createContext({zAxis:{},zAxisIds:[]});function j8(e){const{zAxis:t,dataset:n,children:r}=e,o=S.useMemo(()=>t==null?void 0:t.map(s=>{const a=s.dataKey;if(a===void 0||s.data!==void 0)return s;if(n===void 0)throw Error("MUI X: z-axis uses `dataKey` but no `dataset` is provided.");return A({},s,{data:n.map(l=>l[a])})}),[t,n]),i=S.useMemo(()=>{const s=(o==null?void 0:o.map((l,u)=>A({id:`defaultized-z-axis-${u}`},l)))??[],a={};return s.forEach(l=>{a[l.id]=A({},l,{colorScale:l.colorMap&&(l.colorMap.type==="ordinal"&&l.data?Nc(A({values:l.data},l.colorMap)):Uu(l.colorMap.type==="continuous"?A({min:l.min,max:l.max},l.colorMap):l.colorMap))})}),{zAxis:a,zAxisIds:s.map(({id:l})=>l)}},[o]);return v.jsx(E0.Provider,{value:i,children:r})}const I8=(e,t,n)=>{const r=A({},UA,n);return S.useMemo(()=>({left:r.left,top:r.top,right:r.right,bottom:r.bottom,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},uf=S.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:"",isPointInside:()=>!1}),IC=S.createContext({isInitialized:!1,data:{current:null}});function L8(e){const{width:t,height:n,margin:r,svgRef:o,children:i}=e,s=I8(t,n,r),a=uk(),l=S.useCallback(({x:d,y:f},p)=>p&&p.closest("[data-drawing-container]")?!0:d>=s.left&&d<=s.left+s.width&&f>=s.top&&f<=s.top+s.height,[s]),u=S.useMemo(()=>A({chartId:a??""},s,{isPointInside:l}),[a,s,l]),c=S.useMemo(()=>({isInitialized:!0,data:o}),[o]);return v.jsx(IC.Provider,{value:c,children:v.jsx(uf.Provider,{value:u,children:i})})}function pr(){const{left:e,top:t,width:n,height:r,bottom:o,right:i,isPointInside:s}=S.useContext(uf);return S.useMemo(()=>({left:e,top:t,width:n,height:r,bottom:o,right:i,isPointInside:s}),[r,e,t,n,o,i,s])}function La(e){return e.bandwidth!==void 0}function N8(e){return e.scaleType==="band"}function D8(e){return e.scaleType==="point"}function F8(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:i}=e,s=n===void 0?999:Math.floor(Math.abs(i[1]-i[0])/n),a=t===void 0?2:Math.ceil(Math.abs(i[1]-i[0])/t),l=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(s,Math.max(a,l))}const Sp={start:0,extremities:0,end:1,middle:.5};function LC(e){const{scale:t,tickNumber:n,valueFormatter:r,tickInterval:o,tickPlacement:i="extremities",tickLabelPlacement:s="middle"}=e;return S.useMemo(()=>{if(La(t)){const l=t.domain();return t.bandwidth()>0?[...(typeof o=="function"&&l.filter(o)||typeof o=="object"&&o||l).map(d=>({value:d,formattedValue:(r==null?void 0:r(d,{location:"tick"}))??`${d}`,offset:t(d)-(t.step()-t.bandwidth())/2+Sp[i]*t.step(),labelOffset:s==="tick"?0:t.step()*(Sp[s]-Sp[i])})),...i==="extremities"?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&l.filter(o)||typeof o=="object"&&o||l).map(c=>({value:c,formattedValue:(r==null?void 0:r(c,{location:"tick"}))??`${c}`,offset:t(c),labelOffset:0}))}return t.domain().length===0||t.domain()[0]===t.domain()[1]?[]:(typeof o=="object"?o:t.ticks(n)).map(l=>({value:l,formattedValue:(r==null?void 0:r(l,{location:"tick"}))??t.tickFormat(n)(l),offset:t(l),labelOffset:0}))},[t,o,n,r,i,s])}function z8(e,t,n){switch(e){case"log":return kC(t,n);case"pow":return x0(t,n);case"sqrt":return hR(t,n);case"time":return RC(t,n);case"utc":return _8(t,n);default:return wC(t,n)}}const V8=(e,t,n,r,o,i)=>{var f;const s=r[t],a=((f=i[t])==null?void 0:f.series)??{},[l,u]=(s==null?void 0:s({series:a,axis:n,isDefaultAxis:o}))??[null,null],[c,d]=e;return c===null||d===null?[l,u]:l===null||u===null?[c,d]:[Math.min(l,c),Math.max(u,d)]},H8=(e,t,n,r)=>Object.keys(t).reduce((i,s)=>V8(i,s,e,t,n,r),[null,null]),W8=(e,t,n)=>(e==null?void 0:e.map(r=>{const o=r.dataKey;if(o===void 0||r.data!==void 0)return r;if(t===void 0)throw Error(`MUI X: ${n}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return A({},r,{data:t.map(i=>i[o])})}))??[],U8=(e,t,n)=>{const r=t==="x"?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n?r.reverse():r},kp=(e,t)=>{const n=e[1]-e[0],r=t[1]-t[0],o=e[0]-t[0]*n/r,i=e[1]+(100-t[1])*n/r;return[o,i]},hx=e=>(e==null?void 0:e[0])instanceof Date;function mx(e,t){const n=RC(e.data,t);return(r,{location:o})=>o==="tick"?n.tickFormat(e.tickNumber)(r):`${r.toLocaleString()}`}const B8=.2,G8=.1;function gx({drawingArea:e,formattedSeries:t,axis:n,extremumGetters:r,dataset:o,axisDirection:i,zoomData:s}){const a=W8(n,o,i),l={};return a.forEach((u,c)=>{const d=c===0,[f,p]=H8(u,r,d,t),h=s==null?void 0:s.find(({axisId:M})=>M===u.id),g=h?[h.start,h.end]:[0,100],b=U8(e,i,u.reverse);if(N8(u)){const M=u.categoryGapRatio??B8,O=u.barGapRatio??G8,E=i==="x"?b:[b[1],b[0]],_=kp(E,g);if(l[u.id]=A({categoryGapRatio:M,barGapRatio:O},u,{scale:f0(u.data,_).paddingInner(M).paddingOuter(M/2),tickNumber:u.data.length,colorScale:u.colorMap&&(u.colorMap.type==="ordinal"?Nc(A({values:u.data},u.colorMap)):Uu(u.colorMap))}),hx(u.data)){const T=mx(u,E);l[u.id].valueFormatter=u.valueFormatter??T}}if(D8(u)){const M=i==="x"?b:[...b].reverse(),O=kp(M,g);if(l[u.id]=A({},u,{scale:xO(u.data,O),tickNumber:u.data.length,colorScale:u.colorMap&&(u.colorMap.type==="ordinal"?Nc(A({values:u.data},u.colorMap)):Uu(u.colorMap))}),hx(u.data)){const E=mx(u,M);l[u.id].valueFormatter=u.valueFormatter??E}}if(u.scaleType==="band"||u.scaleType==="point")return;const m=u.scaleType??"linear",y=[u.min??f,u.max??p],x=F8(A({},u,{range:b,domain:y})),w=x/((g[1]-g[0])/100),C=kp(b,g),k=z8(m,y,C).nice(x),[$,P]=k.domain(),R=[u.min??$,u.max??P];l[u.id]=A({},u,{scaleType:m,scale:k.domain(R),tickNumber:w,colorScale:u.colorMap&&Uu(u.colorMap)})}),{axis:l,axisIds:a.map(({id:u})=>u)}}const NC=S.createContext({isInitialized:!1,data:{xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]}});function K8(e){const{xAxis:t,yAxis:n,dataset:r,children:o}=e,i=No(),s=pr(),a=eO(),l=tO(),u=S.useMemo(()=>gx({drawingArea:s,formattedSeries:i,axis:t,extremumGetters:a,dataset:r,axisDirection:"x"}),[s,i,t,a,r]),c=S.useMemo(()=>gx({drawingArea:s,formattedSeries:i,axis:n,extremumGetters:l,dataset:r,axisDirection:"y"}),[s,i,n,l,r]),d=S.useMemo(()=>({isInitialized:!0,data:{xAxis:u.axis,yAxis:c.axis,xAxisIds:u.axisIds,yAxisIds:c.axisIds}}),[u,c]);return v.jsx(NC.Provider,{value:d,children:o})}const Yr=()=>{const{data:e}=S.useContext(NC);return e};function vx(e){return La(e)?t=>(e(t)??0)+e.bandwidth()/2:t=>e(t)}function DC(){const{isInitialized:e,data:t}=S.useContext(IC);if(!e)throw new Error(["MUI X: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` -`));return t}function Y8(){return typeof window>"u"}const eo={widthCache:{},cacheCount:0},q8=2e3,X8={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Q8=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],yx="mui_measurement_span";function FC(e,t){return Q8.indexOf(e)>=0&&t===+t?`${t}px`:t}function zC(e){return e.split("").reduce((r,o)=>o===o.toUpperCase()?[...r,"-",o.toLowerCase()]:[...r,o],[]).join("")}const Z8=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${zC(n)}:${FC(n,e[n])};`,""),J8=(e,t={})=>{if(e==null||Y8())return{width:0,height:0};const n=`${e}`,r=Z8(t),o=`${n}-${r}`;if(eo.widthCache[o])return eo.widthCache[o];try{let i=document.getElementById(yx);i===null&&(i=document.createElement("span"),i.setAttribute("id",yx),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));const s=A({},X8,t);Object.keys(s).map(u=>(i.style[zC(u)]=FC(u,s[u]),u)),i.textContent=n;const a=i.getBoundingClientRect(),l={width:a.width,height:a.height};return eo.widthCache[o]=l,eo.cacheCount+1>q8?(eo.cacheCount=0,eo.widthCache={}):eo.cacheCount+=1,l}catch{return{width:0,height:0}}};function M0({style:e,needsComputation:t,text:n}){return n.split(` -`).map(r=>A({text:r},t?J8(r,e):{width:0,height:0}))}const ej=["x","y","style","text","ownerState"],tj=["angle","textAnchor","dominantBaseline"];function Na(e){const{x:t,y:n,style:r,text:o}=e,i=se(e,ej),s=r??{},{angle:a,textAnchor:l,dominantBaseline:u}=s,c=se(s,tj),d=S.useMemo(()=>M0({style:c,needsComputation:o.includes(` +`));return t}function Wu(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function aO(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function d0(e){let t,n,r;e.length!==2?(t=Wu,n=(a,l)=>Wu(e(a),l),r=(a,l)=>e(a)-l):(t=e===Wu||e===aO?e:lO,n=e,r=e);function o(a,l,u=0,c=a.length){if(u>>1;n(a[d],l)<0?u=d+1:c=d}while(u>>1;n(a[d],l)<=0?u=d+1:c=d}while(uu&&r(a[d-1],l)>-r(a[d],l)?d-1:d}return{left:o,center:s,right:i}}function lO(){return 0}function uO(e){return e===null?NaN:+e}const cO=d0(Wu),dC=cO.right;d0(uO).center;class I1 extends Map{constructor(t,n=pO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(L1(this,t))}has(t){return super.has(L1(this,t))}set(t,n){return super.set(dO(this,t),n)}delete(t){return super.delete(fO(this,t))}}function L1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function dO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function fO({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function pO(e){return e!==null&&typeof e=="object"?e.valueOf():e}const hO=Math.sqrt(50),mO=Math.sqrt(10),gO=Math.sqrt(2);function Mc(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),s=i>=hO?10:i>=mO?5:i>=gO?2:1;let a,l,u;return o<0?(u=Math.pow(10,-o)/s,a=Math.round(e*u),l=Math.round(t*u),a/ut&&--l,u=-u):(u=Math.pow(10,o)*s,a=Math.round(e/u),l=Math.round(t/u),a*ut&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const a=i-o+1,l=new Array(a);if(r)if(s<0)for(let u=0;u>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?tu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?tu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=wO.exec(e))?new wt(t[1],t[2],t[3],1):(t=SO.exec(e))?new wt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=kO.exec(e))?tu(t[1],t[2],t[3],t[4]):(t=CO.exec(e))?tu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$O.exec(e))?U1(t[1],t[2]/100,t[3]/100,1):(t=PO.exec(e))?U1(t[1],t[2]/100,t[3]/100,t[4]):D1.hasOwnProperty(e)?V1(D1[e]):e==="transparent"?new wt(NaN,NaN,NaN,0):null}function V1(e){return new wt(e>>16&255,e>>8&255,e&255,1)}function tu(e,t,n,r){return r<=0&&(e=t=n=NaN),new wt(e,t,n,r)}function MO(e){return e instanceof dl||(e=Ra(e)),e?(e=e.rgb(),new wt(e.r,e.g,e.b,e.opacity)):new wt}function Jh(e,t,n,r){return arguments.length===1?MO(e):new wt(e,t,n,r??1)}function wt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}p0(wt,Jh,pC(dl,{brighter(e){return e=e==null?Ac:Math.pow(Ac,e),new wt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Aa:Math.pow(Aa,e),new wt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wt(ko(this.r),ko(this.g),ko(this.b),Oc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:H1,formatHex:H1,formatHex8:_O,formatRgb:W1,toString:W1}));function H1(){return`#${po(this.r)}${po(this.g)}${po(this.b)}`}function _O(){return`#${po(this.r)}${po(this.g)}${po(this.b)}${po((isNaN(this.opacity)?1:this.opacity)*255)}`}function W1(){const e=Oc(this.opacity);return`${e===1?"rgb(":"rgba("}${ko(this.r)}, ${ko(this.g)}, ${ko(this.b)}${e===1?")":`, ${e})`}`}function Oc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ko(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function po(e){return e=ko(e),(e<16?"0":"")+e.toString(16)}function U1(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new mn(e,t,n,r)}function hC(e){if(e instanceof mn)return new mn(e.h,e.s,e.l,e.opacity);if(e instanceof dl||(e=Ra(e)),!e)return new mn;if(e instanceof mn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,l=(i+o)/2;return a?(t===i?s=(n-r)/a+(n0&&l<1?0:s,new mn(s,a,l,e.opacity)}function AO(e,t,n,r){return arguments.length===1?hC(e):new mn(e,t,n,r??1)}function mn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}p0(mn,AO,pC(dl,{brighter(e){return e=e==null?Ac:Math.pow(Ac,e),new mn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Aa:Math.pow(Aa,e),new mn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new wt(mp(e>=240?e-240:e+120,o,r),mp(e,o,r),mp(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new mn(B1(this.h),nu(this.s),nu(this.l),Oc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Oc(this.opacity);return`${e===1?"hsl(":"hsla("}${B1(this.h)}, ${nu(this.s)*100}%, ${nu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function B1(e){return e=(e||0)%360,e<0?e+360:e}function nu(e){return Math.max(0,Math.min(1,e||0))}function mp(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const h0=e=>()=>e;function OO(e,t){return function(n){return e+n*t}}function RO(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function jO(e){return(e=+e)==1?mC:function(t,n){return n-t?RO(t,n,e):h0(isNaN(t)?n:t)}}function mC(e,t){var n=t-e;return n?OO(e,n):h0(isNaN(e)?t:e)}const G1=function e(t){var n=jO(t);function r(o,i){var s=n((o=Jh(o)).r,(i=Jh(i)).r),a=n(o.g,i.g),l=n(o.b,i.b),u=mC(o.opacity,i.opacity);return function(c){return o.r=s(c),o.g=a(c),o.b=l(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function IO(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;on&&(i=t.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,l.push({i:s,x:ja(r,o)})),n=gp.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function BO(e,t,n){var r=e[0],o=e[1],i=t[0],s=t[1];return o2?GO:BO,l=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(l||(l=a(e.map(r),t,n)))(r(s(f)))}return d.invert=function(f){return s(o((u||(u=a(t,e.map(r),ja)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,WO),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=vC,c()},d.clamp=function(f){return arguments.length?(s=f?!0:qt,c()):s!==qt},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,o=p,c()}}function yC(){return m0()(qt,qt)}function KO(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Rc(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function zi(e){return e=Rc(Math.abs(e)),e?e[1]:NaN}function YO(e,t){return function(n,r){for(var o=n.length,i=[],s=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),i.push(n.substring(o-=a,o+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return i.reverse().join(t)}}function qO(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var XO=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ia(e){if(!(t=XO.exec(e)))throw new Error("invalid format: "+e);var t;return new g0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ia.prototype=g0.prototype;function g0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}g0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function QO(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var xC;function ZO(e,t){var n=Rc(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(xC=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Rc(e,Math.max(0,t+i-1))[0]}function Y1(e,t){var n=Rc(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const q1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:KO,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Y1(e*100,t),r:Y1,s:ZO,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function X1(e){return e}var Q1=Array.prototype.map,Z1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function JO(e){var t=e.grouping===void 0||e.thousands===void 0?X1:YO(Q1.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?X1:qO(Q1.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Ia(d);var f=d.fill,p=d.align,h=d.sign,g=d.symbol,b=d.zero,m=d.width,y=d.comma,x=d.precision,w=d.trim,C=d.type;C==="n"?(y=!0,C="g"):q1[C]||(x===void 0&&(x=12),w=!0,C="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var k=g==="$"?n:g==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",$=g==="$"?r:/[%p]/.test(C)?s:"",P=q1[C],R=/[defgprs%]/.test(C);x=x===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function M(O){var E=k,_=$,T,I,L;if(C==="c")_=P(O)+_,O="";else{O=+O;var F=O<0||1/O<0;if(O=isNaN(O)?l:P(Math.abs(O),x),w&&(O=QO(O)),F&&+O==0&&h!=="+"&&(F=!1),E=(F?h==="("?h:a:h==="-"||h==="("?"":h)+E,_=(C==="s"?Z1[8+xC/3]:"")+_+(F&&h==="("?")":""),R){for(T=-1,I=O.length;++TL||L>57){_=(L===46?o+O.slice(T+1):O.slice(T))+_,O=O.slice(0,T);break}}}y&&!b&&(O=t(O,1/0));var j=E.length+O.length+_.length,N=j>1)+E+O+_+N.slice(j);break;default:O=N+E+O+_;break}return i(O)}return M.toString=function(){return d+""},M}function c(d,f){var p=u((d=Ia(d),d.type="f",d)),h=Math.max(-8,Math.min(8,Math.floor(zi(f)/3)))*3,g=Math.pow(10,-h),b=Z1[8+h/3];return function(m){return p(g*m)+b}}return{format:u,formatPrefix:c}}var ru,v0,bC;e8({thousands:",",grouping:[3],currency:["$",""]});function e8(e){return ru=JO(e),v0=ru.format,bC=ru.formatPrefix,ru}function t8(e){return Math.max(0,-zi(Math.abs(e)))}function n8(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zi(t)/3)))*3-zi(Math.abs(e)))}function r8(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zi(t)-zi(e))+1}function o8(e,t,n,r){var o=Zh(e,t,n),i;switch(r=Ia(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=n8(o,s))&&(r.precision=i),bC(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=r8(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=t8(o))&&(r.precision=i-(r.type==="%")*2);break}}return v0(r)}function y0(e){var t=e.domain;return e.ticks=function(n){var r=t();return Xh(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return o8(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,s=r[o],a=r[i],l,u,c=10;for(a0;){if(u=Qh(s,a,n),u===l)return r[o]=s,r[i]=a,t(r);if(u>0)s=Math.floor(s/u)*u,a=Math.ceil(a/u)*u;else if(u<0)s=Math.ceil(s*u)/u,a=Math.floor(a*u)/u;else break;l=u}return e},e}function wC(){var e=yC();return e.copy=function(){return of(e,wC())},Kr.apply(e,arguments),y0(e)}function SC(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],s;return iMath.pow(e,t)}function u8(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function tx(e){return(t,n)=>-e(-t,n)}function c8(e){const t=e(J1,ex),n=t.domain;let r=10,o,i;function s(){return o=u8(r),i=l8(r),n()[0]<0?(o=tx(o),i=tx(i),e(i8,s8)):e(J1,ex),t}return t.base=function(a){return arguments.length?(r=+a,s()):r},t.domain=function(a){return arguments.length?(n(a),s()):n()},t.ticks=a=>{const l=n();let u=l[0],c=l[l.length-1];const d=c0){for(;f<=p;++f)for(h=1;hc)break;m.push(g)}}else for(;f<=p;++f)for(h=r-1;h>=1;--h)if(g=f>0?h/i(-f):h*i(f),!(gc)break;m.push(g)}m.length*2{if(a==null&&(a=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Ia(l)).precision==null&&(l.trim=!0),l=v0(l)),a===1/0)return l;const u=Math.max(1,r*a/t.ticks().length);return c=>{let d=c/i(Math.round(o(c)));return d*rn(SC(n(),{floor:a=>i(Math.floor(o(a))),ceil:a=>i(Math.ceil(o(a)))})),t}function kC(){const e=c8(m0()).domain([1,10]);return e.copy=()=>of(e,kC()).base(e.base()),Kr.apply(e,arguments),e}function nx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function d8(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function f8(e){return e<0?-e*e:e*e}function p8(e){var t=e(qt,qt),n=1;function r(){return n===1?e(qt,qt):n===.5?e(d8,f8):e(nx(n),nx(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},y0(t)}function x0(){var e=p8(m0());return e.copy=function(){return of(e,x0()).exponent(e.exponent())},Kr.apply(e,arguments),e}function h8(){return x0.apply(null,arguments).exponent(.5)}function CC(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[dC(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var s=t.indexOf(i);return[e[s-1],e[s]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return CC().domain(e).range(t).unknown(n)},Kr.apply(o,arguments)}const vp=new Date,yp=new Date;function Ue(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const s=o(i),a=o.ceil(i);return i-s(t(i=new Date(+i),s==null?1:Math.floor(s)),i),o.range=(i,s,a)=>{const l=[];if(i=o.ceil(i),a=a==null?1:Math.floor(a),!(i0))return l;let u;do l.push(u=new Date(+i)),t(i,a),e(i);while(uUe(s=>{if(s>=s)for(;e(s),!i(s);)s.setTime(s-1)},(s,a)=>{if(s>=s)if(a<0)for(;++a<=0;)for(;t(s,-1),!i(s););else for(;--a>=0;)for(;t(s,1),!i(s););}),n&&(o.count=(i,s)=>(vp.setTime(+i),yp.setTime(+s),e(vp),e(yp),Math.floor(n(vp,yp))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?s=>r(s)%i===0:s=>o.count(0,s)%i===0):o)),o}const jc=Ue(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);jc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ue(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):jc);jc.range;const Qn=1e3,Xt=Qn*60,Zn=Xt*60,sr=Zn*24,b0=sr*7,rx=sr*30,xp=sr*365,ho=Ue(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Qn)},(e,t)=>(t-e)/Qn,e=>e.getUTCSeconds());ho.range;const w0=Ue(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qn)},(e,t)=>{e.setTime(+e+t*Xt)},(e,t)=>(t-e)/Xt,e=>e.getMinutes());w0.range;const S0=Ue(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Xt)},(e,t)=>(t-e)/Xt,e=>e.getUTCMinutes());S0.range;const k0=Ue(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qn-e.getMinutes()*Xt)},(e,t)=>{e.setTime(+e+t*Zn)},(e,t)=>(t-e)/Zn,e=>e.getHours());k0.range;const C0=Ue(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zn)},(e,t)=>(t-e)/Zn,e=>e.getUTCHours());C0.range;const fl=Ue(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Xt)/sr,e=>e.getDate()-1);fl.range;const sf=Ue(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/sr,e=>e.getUTCDate()-1);sf.range;const $C=Ue(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/sr,e=>Math.floor(e/sr));$C.range;function Do(e){return Ue(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Xt)/b0)}const af=Do(0),Ic=Do(1),m8=Do(2),g8=Do(3),Vi=Do(4),v8=Do(5),y8=Do(6);af.range;Ic.range;m8.range;g8.range;Vi.range;v8.range;y8.range;function Fo(e){return Ue(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/b0)}const lf=Fo(0),Lc=Fo(1),x8=Fo(2),b8=Fo(3),Hi=Fo(4),w8=Fo(5),S8=Fo(6);lf.range;Lc.range;x8.range;b8.range;Hi.range;w8.range;S8.range;const $0=Ue(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());$0.range;const P0=Ue(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());P0.range;const ar=Ue(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ar.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ue(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ar.range;const lr=Ue(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());lr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ue(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});lr.range;function PC(e,t,n,r,o,i){const s=[[ho,1,Qn],[ho,5,5*Qn],[ho,15,15*Qn],[ho,30,30*Qn],[i,1,Xt],[i,5,5*Xt],[i,15,15*Xt],[i,30,30*Xt],[o,1,Zn],[o,3,3*Zn],[o,6,6*Zn],[o,12,12*Zn],[r,1,sr],[r,2,2*sr],[n,1,b0],[t,1,rx],[t,3,3*rx],[e,1,xp]];function a(u,c,d){const f=cb).right(s,f);if(p===s.length)return e.every(Zh(u/xp,c/xp,d));if(p===0)return jc.every(Math.max(Zh(u,c,d),1));const[h,g]=s[f/s[p-1][2]53)return null;"w"in D||(D.w=1),"Z"in D?(ne=wp(ks(D.y,0,1)),Re=ne.getUTCDay(),ne=Re>4||Re===0?Lc.ceil(ne):Lc(ne),ne=sf.offset(ne,(D.V-1)*7),D.y=ne.getUTCFullYear(),D.m=ne.getUTCMonth(),D.d=ne.getUTCDate()+(D.w+6)%7):(ne=bp(ks(D.y,0,1)),Re=ne.getDay(),ne=Re>4||Re===0?Ic.ceil(ne):Ic(ne),ne=fl.offset(ne,(D.V-1)*7),D.y=ne.getFullYear(),D.m=ne.getMonth(),D.d=ne.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),Re="Z"in D?wp(ks(D.y,0,1)).getUTCDay():bp(ks(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(Re+5)%7:D.w+D.U*7-(Re+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,wp(D)):bp(D)}}function P(W,K,Q,D){for(var be=0,ne=K.length,Re=Q.length,me,Be;be=Re)return-1;if(me=K.charCodeAt(be++),me===37){if(me=K.charAt(be++),Be=C[me in ox?K.charAt(be++):me],!Be||(D=Be(W,Q,D))<0)return-1}else if(me!=Q.charCodeAt(D++))return-1}return D}function R(W,K,Q){var D=u.exec(K.slice(Q));return D?(W.p=c.get(D[0].toLowerCase()),Q+D[0].length):-1}function M(W,K,Q){var D=p.exec(K.slice(Q));return D?(W.w=h.get(D[0].toLowerCase()),Q+D[0].length):-1}function O(W,K,Q){var D=d.exec(K.slice(Q));return D?(W.w=f.get(D[0].toLowerCase()),Q+D[0].length):-1}function E(W,K,Q){var D=m.exec(K.slice(Q));return D?(W.m=y.get(D[0].toLowerCase()),Q+D[0].length):-1}function _(W,K,Q){var D=g.exec(K.slice(Q));return D?(W.m=b.get(D[0].toLowerCase()),Q+D[0].length):-1}function T(W,K,Q){return P(W,t,K,Q)}function I(W,K,Q){return P(W,n,K,Q)}function L(W,K,Q){return P(W,r,K,Q)}function F(W){return s[W.getDay()]}function j(W){return i[W.getDay()]}function N(W){return l[W.getMonth()]}function V(W){return a[W.getMonth()]}function G(W){return o[+(W.getHours()>=12)]}function B(W){return 1+~~(W.getMonth()/3)}function q(W){return s[W.getUTCDay()]}function J(W){return i[W.getUTCDay()]}function X(W){return l[W.getUTCMonth()]}function oe(W){return a[W.getUTCMonth()]}function le(W){return o[+(W.getUTCHours()>=12)]}function de(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var K=k(W+="",x);return K.toString=function(){return W},K},parse:function(W){var K=$(W+="",!1);return K.toString=function(){return W},K},utcFormat:function(W){var K=k(W+="",w);return K.toString=function(){return W},K},utcParse:function(W){var K=$(W+="",!0);return K.toString=function(){return W},K}}}var ox={"-":"",_:" ",0:"0"},Xe=/^\s*\d+/,E8=/^%/,M8=/[\\^$*+?|[\]().{}]/g;function ae(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[t.toLowerCase(),n]))}function A8(e,t,n){var r=Xe.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function O8(e,t,n){var r=Xe.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function R8(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function j8(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function I8(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ix(e,t,n){var r=Xe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function sx(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function L8(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function N8(e,t,n){var r=Xe.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function D8(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ax(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function F8(e,t,n){var r=Xe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lx(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function z8(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function V8(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function H8(e,t,n){var r=Xe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function W8(e,t,n){var r=Xe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function U8(e,t,n){var r=E8.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function B8(e,t,n){var r=Xe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function G8(e,t,n){var r=Xe.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ux(e,t){return ae(e.getDate(),t,2)}function K8(e,t){return ae(e.getHours(),t,2)}function Y8(e,t){return ae(e.getHours()%12||12,t,2)}function q8(e,t){return ae(1+fl.count(ar(e),e),t,3)}function TC(e,t){return ae(e.getMilliseconds(),t,3)}function X8(e,t){return TC(e,t)+"000"}function Q8(e,t){return ae(e.getMonth()+1,t,2)}function Z8(e,t){return ae(e.getMinutes(),t,2)}function J8(e,t){return ae(e.getSeconds(),t,2)}function eR(e){var t=e.getDay();return t===0?7:t}function tR(e,t){return ae(af.count(ar(e)-1,e),t,2)}function EC(e){var t=e.getDay();return t>=4||t===0?Vi(e):Vi.ceil(e)}function nR(e,t){return e=EC(e),ae(Vi.count(ar(e),e)+(ar(e).getDay()===4),t,2)}function rR(e){return e.getDay()}function oR(e,t){return ae(Ic.count(ar(e)-1,e),t,2)}function iR(e,t){return ae(e.getFullYear()%100,t,2)}function sR(e,t){return e=EC(e),ae(e.getFullYear()%100,t,2)}function aR(e,t){return ae(e.getFullYear()%1e4,t,4)}function lR(e,t){var n=e.getDay();return e=n>=4||n===0?Vi(e):Vi.ceil(e),ae(e.getFullYear()%1e4,t,4)}function uR(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ae(t/60|0,"0",2)+ae(t%60,"0",2)}function cx(e,t){return ae(e.getUTCDate(),t,2)}function cR(e,t){return ae(e.getUTCHours(),t,2)}function dR(e,t){return ae(e.getUTCHours()%12||12,t,2)}function fR(e,t){return ae(1+sf.count(lr(e),e),t,3)}function MC(e,t){return ae(e.getUTCMilliseconds(),t,3)}function pR(e,t){return MC(e,t)+"000"}function hR(e,t){return ae(e.getUTCMonth()+1,t,2)}function mR(e,t){return ae(e.getUTCMinutes(),t,2)}function gR(e,t){return ae(e.getUTCSeconds(),t,2)}function vR(e){var t=e.getUTCDay();return t===0?7:t}function yR(e,t){return ae(lf.count(lr(e)-1,e),t,2)}function _C(e){var t=e.getUTCDay();return t>=4||t===0?Hi(e):Hi.ceil(e)}function xR(e,t){return e=_C(e),ae(Hi.count(lr(e),e)+(lr(e).getUTCDay()===4),t,2)}function bR(e){return e.getUTCDay()}function wR(e,t){return ae(Lc.count(lr(e)-1,e),t,2)}function SR(e,t){return ae(e.getUTCFullYear()%100,t,2)}function kR(e,t){return e=_C(e),ae(e.getUTCFullYear()%100,t,2)}function CR(e,t){return ae(e.getUTCFullYear()%1e4,t,4)}function $R(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Hi(e):Hi.ceil(e),ae(e.getUTCFullYear()%1e4,t,4)}function PR(){return"+0000"}function dx(){return"%"}function fx(e){return+e}function px(e){return Math.floor(+e/1e3)}var Ko,AC,OC;TR({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function TR(e){return Ko=T8(e),AC=Ko.format,Ko.parse,OC=Ko.utcFormat,Ko.utcParse,Ko}function ER(e){return new Date(e)}function MR(e){return e instanceof Date?+e:+new Date(+e)}function T0(e,t,n,r,o,i,s,a,l,u){var c=yC(),d=c.invert,f=c.domain,p=u(".%L"),h=u(":%S"),g=u("%I:%M"),b=u("%I %p"),m=u("%a %d"),y=u("%b %d"),x=u("%B"),w=u("%Y");function C(k){return(l(k)n),e.colors).unknown(e.unknownColor??null)}function Uu(e){return e.type==="ordinal"?Nc(e):RR(e)}const E0=S.createContext({zAxis:{},zAxisIds:[]});function jR(e){const{zAxis:t,dataset:n,children:r}=e,o=S.useMemo(()=>t==null?void 0:t.map(s=>{const a=s.dataKey;if(a===void 0||s.data!==void 0)return s;if(n===void 0)throw Error("MUI X: z-axis uses `dataKey` but no `dataset` is provided.");return A({},s,{data:n.map(l=>l[a])})}),[t,n]),i=S.useMemo(()=>{const s=(o==null?void 0:o.map((l,u)=>A({id:`defaultized-z-axis-${u}`},l)))??[],a={};return s.forEach(l=>{a[l.id]=A({},l,{colorScale:l.colorMap&&(l.colorMap.type==="ordinal"&&l.data?Nc(A({values:l.data},l.colorMap)):Uu(l.colorMap.type==="continuous"?A({min:l.min,max:l.max},l.colorMap):l.colorMap))})}),{zAxis:a,zAxisIds:s.map(({id:l})=>l)}},[o]);return v.jsx(E0.Provider,{value:i,children:r})}const IR=(e,t,n)=>{const r=A({},UA,n);return S.useMemo(()=>({left:r.left,top:r.top,right:r.right,bottom:r.bottom,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},uf=S.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:"",isPointInside:()=>!1}),IC=S.createContext({isInitialized:!1,data:{current:null}});function LR(e){const{width:t,height:n,margin:r,svgRef:o,children:i}=e,s=IR(t,n,r),a=uk(),l=S.useCallback(({x:d,y:f},p)=>p&&p.closest("[data-drawing-container]")?!0:d>=s.left&&d<=s.left+s.width&&f>=s.top&&f<=s.top+s.height,[s]),u=S.useMemo(()=>A({chartId:a??""},s,{isPointInside:l}),[a,s,l]),c=S.useMemo(()=>({isInitialized:!0,data:o}),[o]);return v.jsx(IC.Provider,{value:c,children:v.jsx(uf.Provider,{value:u,children:i})})}function pr(){const{left:e,top:t,width:n,height:r,bottom:o,right:i,isPointInside:s}=S.useContext(uf);return S.useMemo(()=>({left:e,top:t,width:n,height:r,bottom:o,right:i,isPointInside:s}),[r,e,t,n,o,i,s])}function La(e){return e.bandwidth!==void 0}function NR(e){return e.scaleType==="band"}function DR(e){return e.scaleType==="point"}function FR(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:i}=e,s=n===void 0?999:Math.floor(Math.abs(i[1]-i[0])/n),a=t===void 0?2:Math.ceil(Math.abs(i[1]-i[0])/t),l=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(s,Math.max(a,l))}const Sp={start:0,extremities:0,end:1,middle:.5};function LC(e){const{scale:t,tickNumber:n,valueFormatter:r,tickInterval:o,tickPlacement:i="extremities",tickLabelPlacement:s="middle"}=e;return S.useMemo(()=>{if(La(t)){const l=t.domain();return t.bandwidth()>0?[...(typeof o=="function"&&l.filter(o)||typeof o=="object"&&o||l).map(d=>({value:d,formattedValue:(r==null?void 0:r(d,{location:"tick"}))??`${d}`,offset:t(d)-(t.step()-t.bandwidth())/2+Sp[i]*t.step(),labelOffset:s==="tick"?0:t.step()*(Sp[s]-Sp[i])})),...i==="extremities"?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&l.filter(o)||typeof o=="object"&&o||l).map(c=>({value:c,formattedValue:(r==null?void 0:r(c,{location:"tick"}))??`${c}`,offset:t(c),labelOffset:0}))}return t.domain().length===0||t.domain()[0]===t.domain()[1]?[]:(typeof o=="object"?o:t.ticks(n)).map(l=>({value:l,formattedValue:(r==null?void 0:r(l,{location:"tick"}))??t.tickFormat(n)(l),offset:t(l),labelOffset:0}))},[t,o,n,r,i,s])}function zR(e,t,n){switch(e){case"log":return kC(t,n);case"pow":return x0(t,n);case"sqrt":return h8(t,n);case"time":return RC(t,n);case"utc":return _R(t,n);default:return wC(t,n)}}const VR=(e,t,n,r,o,i)=>{var f;const s=r[t],a=((f=i[t])==null?void 0:f.series)??{},[l,u]=(s==null?void 0:s({series:a,axis:n,isDefaultAxis:o}))??[null,null],[c,d]=e;return c===null||d===null?[l,u]:l===null||u===null?[c,d]:[Math.min(l,c),Math.max(u,d)]},HR=(e,t,n,r)=>Object.keys(t).reduce((i,s)=>VR(i,s,e,t,n,r),[null,null]),WR=(e,t,n)=>(e==null?void 0:e.map(r=>{const o=r.dataKey;if(o===void 0||r.data!==void 0)return r;if(t===void 0)throw Error(`MUI X: ${n}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return A({},r,{data:t.map(i=>i[o])})}))??[],UR=(e,t,n)=>{const r=t==="x"?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n?r.reverse():r},kp=(e,t)=>{const n=e[1]-e[0],r=t[1]-t[0],o=e[0]-t[0]*n/r,i=e[1]+(100-t[1])*n/r;return[o,i]},hx=e=>(e==null?void 0:e[0])instanceof Date;function mx(e,t){const n=RC(e.data,t);return(r,{location:o})=>o==="tick"?n.tickFormat(e.tickNumber)(r):`${r.toLocaleString()}`}const BR=.2,GR=.1;function gx({drawingArea:e,formattedSeries:t,axis:n,extremumGetters:r,dataset:o,axisDirection:i,zoomData:s}){const a=WR(n,o,i),l={};return a.forEach((u,c)=>{const d=c===0,[f,p]=HR(u,r,d,t),h=s==null?void 0:s.find(({axisId:M})=>M===u.id),g=h?[h.start,h.end]:[0,100],b=UR(e,i,u.reverse);if(NR(u)){const M=u.categoryGapRatio??BR,O=u.barGapRatio??GR,E=i==="x"?b:[b[1],b[0]],_=kp(E,g);if(l[u.id]=A({categoryGapRatio:M,barGapRatio:O},u,{scale:f0(u.data,_).paddingInner(M).paddingOuter(M/2),tickNumber:u.data.length,colorScale:u.colorMap&&(u.colorMap.type==="ordinal"?Nc(A({values:u.data},u.colorMap)):Uu(u.colorMap))}),hx(u.data)){const T=mx(u,E);l[u.id].valueFormatter=u.valueFormatter??T}}if(DR(u)){const M=i==="x"?b:[...b].reverse(),O=kp(M,g);if(l[u.id]=A({},u,{scale:xO(u.data,O),tickNumber:u.data.length,colorScale:u.colorMap&&(u.colorMap.type==="ordinal"?Nc(A({values:u.data},u.colorMap)):Uu(u.colorMap))}),hx(u.data)){const E=mx(u,M);l[u.id].valueFormatter=u.valueFormatter??E}}if(u.scaleType==="band"||u.scaleType==="point")return;const m=u.scaleType??"linear",y=[u.min??f,u.max??p],x=FR(A({},u,{range:b,domain:y})),w=x/((g[1]-g[0])/100),C=kp(b,g),k=zR(m,y,C).nice(x),[$,P]=k.domain(),R=[u.min??$,u.max??P];l[u.id]=A({},u,{scaleType:m,scale:k.domain(R),tickNumber:w,colorScale:u.colorMap&&Uu(u.colorMap)})}),{axis:l,axisIds:a.map(({id:u})=>u)}}const NC=S.createContext({isInitialized:!1,data:{xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]}});function KR(e){const{xAxis:t,yAxis:n,dataset:r,children:o}=e,i=No(),s=pr(),a=eO(),l=tO(),u=S.useMemo(()=>gx({drawingArea:s,formattedSeries:i,axis:t,extremumGetters:a,dataset:r,axisDirection:"x"}),[s,i,t,a,r]),c=S.useMemo(()=>gx({drawingArea:s,formattedSeries:i,axis:n,extremumGetters:l,dataset:r,axisDirection:"y"}),[s,i,n,l,r]),d=S.useMemo(()=>({isInitialized:!0,data:{xAxis:u.axis,yAxis:c.axis,xAxisIds:u.axisIds,yAxisIds:c.axisIds}}),[u,c]);return v.jsx(NC.Provider,{value:d,children:o})}const Yr=()=>{const{data:e}=S.useContext(NC);return e};function vx(e){return La(e)?t=>(e(t)??0)+e.bandwidth()/2:t=>e(t)}function DC(){const{isInitialized:e,data:t}=S.useContext(IC);if(!e)throw new Error(["MUI X: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return t}function YR(){return typeof window>"u"}const eo={widthCache:{},cacheCount:0},qR=2e3,XR={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},QR=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],yx="mui_measurement_span";function FC(e,t){return QR.indexOf(e)>=0&&t===+t?`${t}px`:t}function zC(e){return e.split("").reduce((r,o)=>o===o.toUpperCase()?[...r,"-",o.toLowerCase()]:[...r,o],[]).join("")}const ZR=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${zC(n)}:${FC(n,e[n])};`,""),JR=(e,t={})=>{if(e==null||YR())return{width:0,height:0};const n=`${e}`,r=ZR(t),o=`${n}-${r}`;if(eo.widthCache[o])return eo.widthCache[o];try{let i=document.getElementById(yx);i===null&&(i=document.createElement("span"),i.setAttribute("id",yx),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));const s=A({},XR,t);Object.keys(s).map(u=>(i.style[zC(u)]=FC(u,s[u]),u)),i.textContent=n;const a=i.getBoundingClientRect(),l={width:a.width,height:a.height};return eo.widthCache[o]=l,eo.cacheCount+1>qR?(eo.cacheCount=0,eo.widthCache={}):eo.cacheCount+=1,l}catch{return{width:0,height:0}}};function M0({style:e,needsComputation:t,text:n}){return n.split(` +`).map(r=>A({text:r},t?JR(r,e):{width:0,height:0}))}const ej=["x","y","style","text","ownerState"],tj=["angle","textAnchor","dominantBaseline"];function Na(e){const{x:t,y:n,style:r,text:o}=e,i=se(e,ej),s=r??{},{angle:a,textAnchor:l,dominantBaseline:u}=s,c=se(s,tj),d=S.useMemo(()=>M0({style:c,needsComputation:o.includes(` `),text:o}),[c,o]);let f;switch(u){case"hanging":f=0;break;case"central":f=(d.length-1)/2*-d[0].height;break;default:f=(d.length-1)*-d[0].height;break}const p=[];return a&&p.push(`rotate(${a}, ${t}, ${n})`),v.jsx("text",A({},i,{transform:p.length>0?p.join(" "):void 0,x:t,y:n,textAnchor:l,dominantBaseline:u,style:c,children:d.map((h,g)=>v.jsx("tspan",{x:t,dy:`${g===0?f:d[0].height}px`,dominantBaseline:u,children:h.text},g))}))}function VC(e){return Hn("MuiChartsAxis",e)}const ou=fr("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),HC=qe("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${ou.tickLabel}`]:A({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${ou.label}`]:A({},e.typography.body1,{fill:(e.vars||e).palette.text.primary}),[`& .${ou.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${ou.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}})),xx=5;function nj(e,t,n=0){const r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r90-xx)return t;const o=r*Math.PI/180,i=Math.atan2(t,e);return o{e||n(!0)},[e]),S.useEffect(()=>{e&&n(!0)},[e]),t}const oj=["scale","tickNumber","reverse"],ij=e=>{const{classes:t,position:n}=e;return Vn({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},VC,t)};function sj(e,{tickLabelStyle:t,tickLabelInterval:n,reverse:r,isMounted:o}){const i=e.map(u=>{if(!o||u.formattedValue===void 0)return A({},u,{width:0,height:0});const c=M0({style:t,needsComputation:!0,text:u.formattedValue});return A({},u,{width:Math.max(...c.map(d=>d.width)),height:Math.max(c.length*c[0].height)})});if(typeof n=="function")return i.map((u,c)=>A({},u,{skipLabel:!n(u.value,c)}));let s=0,a=0;const l=r?-1:1;return i.map((u,c)=>{const{width:d,offset:f,labelOffset:p,height:h}=u,g=nj(d,h,t==null?void 0:t.angle),b=f+p,m=1.2;return s=b-l*(m*g)/2,c>0&&l*s{const ne=Q??0,Re=j*(F+3),me=K>=_-1&&K<=_+I+1,Be=K+ne>=_-1&&K+ne<=_+I+1;return v.jsxs("g",{transform:`translate(${K}, 0)`,className:E.tickContainer,children:[!p&&me&&v.jsx(V,A({y2:j*F,className:E.tick},k==null?void 0:k.axisTick)),W!==void 0&&!D&&Be&&v.jsx(G,A({x:ne,y:Re},q,{text:W.toString()}))]},be)}),g&&v.jsx("g",{className:E.label,children:v.jsx(B,A({},oe,le,{text:g}))})]})}const lj=["scale","tickNumber"],uj=e=>{const{classes:t,position:n}=e;return Vn({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},VC,t)},cj={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function wx(e){const{yAxisIds:t,yAxis:n}=Yr(),r=n[e.axisId??t[0]],{scale:o,tickNumber:i}=r,s=se(r,lj),a=nf({props:A({},s,e),name:"MuiChartsYAxis"}),l=A({},cj,a),{position:u,disableLine:c,disableTicks:d,tickFontSize:f,label:p,labelFontSize:h,labelStyle:g,tickLabelStyle:b,tickSize:m,valueFormatter:y,slots:x,slotProps:w,tickPlacement:C,tickLabelPlacement:k,tickInterval:$,tickLabelInterval:P}=l,R=is(),M=R.direction==="rtl",O=uj(A({},l,{theme:R})),{left:E,top:_,width:T,height:I}=pr(),L=d?4:m,F=LC({scale:o,tickNumber:i,valueFormatter:y,tickPlacement:C,tickLabelPlacement:k,tickInterval:$}),j=u==="right"?1:-1,N={x:j*(f+L+10),y:_+I/2},V=(x==null?void 0:x.axisLine)??"line",G=(x==null?void 0:x.axisTick)??"line",B=(x==null?void 0:x.axisTickLabel)??Na,q=(x==null?void 0:x.axisLabel)??Na,J=!M&&u==="right"||M&&u!=="right",X=On({elementType:B,externalSlotProps:w==null?void 0:w.axisTickLabel,additionalProps:{style:A({fontSize:f,textAnchor:J?"start":"end",dominantBaseline:"central"},b)},className:O.tickLabel,ownerState:{}}),oe=On({elementType:q,externalSlotProps:w==null?void 0:w.axisLabel,additionalProps:{style:A({fontSize:h,angle:j*90,textAnchor:"middle",dominantBaseline:"auto"},g)},ownerState:{}}),le=On({elementType:V,externalSlotProps:w==null?void 0:w.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),de=o.domain();return de.length===0||de[0]===de[1]?null:v.jsxs(HC,{transform:`translate(${u==="right"?E+T:E}, 0)`,className:O.root,children:[!c&&v.jsx(V,A({y1:_,y2:_+I,className:O.line},le)),F.map(({formattedValue:W,offset:K,labelOffset:Q,value:D},be)=>{const ne=j*(L+2),Re=Q,me=typeof P=="function"&&!(P!=null&&P(D,be));return K>=_-1&&K<=I+_+1?v.jsxs("g",{transform:`translate(0, ${K})`,className:O.tickContainer,children:[!d&&v.jsx(G,A({x2:j*L,className:O.tick},w==null?void 0:w.axisTick)),W!==void 0&&!me&&v.jsx(B,A({x:ne,y:Re,text:W.toString()},X))]},be):null}),p&&v.jsx("g",{className:O.label,children:v.jsx(q,A({},N,oe,{text:p}))})]})}const iu=(e,t)=>e==null?null:typeof e=="object"?e.axisId??t??null:e,su=(e,t,n)=>typeof e=="object"?A({},e,{slots:A({},t,e==null?void 0:e.slots),slotProps:A({},n,e==null?void 0:e.slotProps)}):{slots:t,slotProps:n};function dj(e){const{topAxis:t,leftAxis:n,rightAxis:r,bottomAxis:o,slots:i,slotProps:s}=e,{xAxis:a,xAxisIds:l,yAxis:u,yAxisIds:c}=Yr(),d=iu(n===void 0?c[0]:n,c[0]),f=iu(o===void 0?l[0]:o,l[0]),p=iu(t,l[0]),h=iu(r,c[0]);if(p!==null&&!a[p])throw Error([`MUI X: id used for top axis "${p}" is not defined.`,`Available ids are: ${l.join(", ")}.`].join(` `));if(d!==null&&!u[d])throw Error([`MUI X: id used for left axis "${d}" is not defined.`,`Available ids are: ${c.join(", ")}.`].join(` `));if(h!==null&&!u[h])throw Error([`MUI X: id used for right axis "${h}" is not defined.`,`Available ids are: ${c.join(", ")}.`].join(` `));if(f!==null&&!a[f])throw Error([`MUI X: id used for bottom axis "${f}" is not defined.`,`Available ids are: ${l.join(", ")}.`].join(` -`));const g=su(t,i,s),b=su(o,i,s),m=su(n,i,s),y=su(r,i,s);return v.jsxs(S.Fragment,{children:[p&&v.jsx(bx,A({},g,{position:"top",axisId:p})),f&&v.jsx(bx,A({},b,{position:"bottom",axisId:f})),d&&v.jsx(wx,A({},m,{position:"left",axisId:d})),h&&v.jsx(wx,A({},y,{position:"right",axisId:h}))]})}var _0={};Object.defineProperty(_0,"__esModule",{value:!0});var WC=_0.default=void 0,fj=hj(S),pj=jk;function UC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(UC=function(r){return r?n:t})(e)}function hj(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=UC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function mj(e){return Object.keys(e).length===0}function gj(e=null){const t=fj.useContext(pj.ThemeContext);return!t||mj(t)?e:t}WC=_0.default=gj;var $t="top",rn="bottom",on="right",Pt="left",A0="auto",pl=[$t,rn,on,Pt],Wi="start",Da="end",vj="clippingParents",BC="viewport",Ps="popper",yj="reference",Sx=pl.reduce(function(e,t){return e.concat([t+"-"+Wi,t+"-"+Da])},[]),GC=[].concat(pl,[A0]).reduce(function(e,t){return e.concat([t,t+"-"+Wi,t+"-"+Da])},[]),xj="beforeRead",bj="read",wj="afterRead",Sj="beforeMain",kj="main",Cj="afterMain",$j="beforeWrite",Pj="write",Tj="afterWrite",Ej=[xj,bj,wj,Sj,kj,Cj,$j,Pj,Tj];function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function It(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ao(e){var t=It(e).Element;return e instanceof t||e instanceof Element}function Jt(e){var t=It(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function O0(e){if(typeof ShadowRoot>"u")return!1;var t=It(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Jt(i)||!Dn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function _j(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!Jt(o)||!Dn(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Aj={name:"applyStyles",enabled:!0,phase:"write",fn:Mj,effect:_j,requires:["computeStyles"]};function In(e){return e.split("-")[0]}var Co=Math.max,Dc=Math.min,Ui=Math.round;function nm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function KC(){return!/^((?!chrome|android).)*safari/i.test(nm())}function Bi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Jt(e)&&(o=e.offsetWidth>0&&Ui(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ui(r.height)/e.offsetHeight||1);var s=Ao(e)?It(e):window,a=s.visualViewport,l=!KC()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function R0(e){var t=Bi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function YC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&O0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ur(e){return It(e).getComputedStyle(e)}function Oj(e){return["table","td","th"].indexOf(Dn(e))>=0}function qr(e){return((Ao(e)?e.ownerDocument:e.document)||window.document).documentElement}function cf(e){return Dn(e)==="html"?e:e.assignedSlot||e.parentNode||(O0(e)?e.host:null)||qr(e)}function kx(e){return!Jt(e)||ur(e).position==="fixed"?null:e.offsetParent}function Rj(e){var t=/firefox/i.test(nm()),n=/Trident/i.test(nm());if(n&&Jt(e)){var r=ur(e);if(r.position==="fixed")return null}var o=cf(e);for(O0(o)&&(o=o.host);Jt(o)&&["html","body"].indexOf(Dn(o))<0;){var i=ur(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function hl(e){for(var t=It(e),n=kx(e);n&&Oj(n)&&ur(n).position==="static";)n=kx(n);return n&&(Dn(n)==="html"||Dn(n)==="body"&&ur(n).position==="static")?t:n||Rj(e)||t}function j0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zs(e,t,n){return Co(e,Dc(t,n))}function jj(e,t,n){var r=Zs(e,t,n);return r>n?n:r}function qC(){return{top:0,right:0,bottom:0,left:0}}function XC(e){return Object.assign({},qC(),e)}function QC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ij=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,XC(typeof t!="number"?t:QC(t,pl))};function Lj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=In(n.placement),l=j0(a),u=[Pt,on].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=Ij(o.padding,n),f=R0(i),p=l==="y"?$t:Pt,h=l==="y"?rn:on,g=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],b=s[l]-n.rects.reference[l],m=hl(i),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,x=g/2-b/2,w=d[p],C=y-f[c]-d[h],k=y/2-f[c]/2+x,$=Zs(w,k,C),P=l;n.modifiersData[r]=(t={},t[P]=$,t.centerOffset=$-k,t)}}function Nj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||YC(t.elements.popper,o)&&(t.elements.arrow=o))}const Dj={name:"arrow",enabled:!0,phase:"main",fn:Lj,effect:Nj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gi(e){return e.split("-")[1]}var Fj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ui(n*o)/o||0,y:Ui(r*o)/o||0}}function Cx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,h=s.y,g=h===void 0?0:h,b=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=b.x,g=b.y;var m=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),x=Pt,w=$t,C=window;if(u){var k=hl(n),$="clientHeight",P="clientWidth";if(k===It(n)&&(k=qr(n),ur(k).position!=="static"&&a==="absolute"&&($="scrollHeight",P="scrollWidth")),k=k,o===$t||(o===Pt||o===on)&&i===Da){w=rn;var R=d&&k===C&&C.visualViewport?C.visualViewport.height:k[$];g-=R-r.height,g*=l?1:-1}if(o===Pt||(o===$t||o===rn)&&i===Da){x=on;var M=d&&k===C&&C.visualViewport?C.visualViewport.width:k[P];p-=M-r.width,p*=l?1:-1}}var O=Object.assign({position:a},u&&Fj),E=c===!0?zj({x:p,y:g},It(n)):{x:p,y:g};if(p=E.x,g=E.y,l){var _;return Object.assign({},O,(_={},_[w]=y?"0":"",_[x]=m?"0":"",_.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",_))}return Object.assign({},O,(t={},t[w]=y?g+"px":"",t[x]=m?p+"px":"",t.transform="",t))}function Vj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:In(t.placement),variation:Gi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Cx(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cx(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Hj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vj,data:{}};var au={passive:!0};function Wj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=It(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,au)}),a&&l.addEventListener("resize",n.update,au),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,au)}),a&&l.removeEventListener("resize",n.update,au)}}const Uj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wj,data:{}};var Bj={left:"right",right:"left",bottom:"top",top:"bottom"};function Bu(e){return e.replace(/left|right|bottom|top/g,function(t){return Bj[t]})}var Gj={start:"end",end:"start"};function $x(e){return e.replace(/start|end/g,function(t){return Gj[t]})}function I0(e){var t=It(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function L0(e){return Bi(qr(e)).left+I0(e).scrollLeft}function Kj(e,t){var n=It(e),r=qr(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=KC();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+L0(e),y:l}}function Yj(e){var t,n=qr(e),r=I0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Co(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Co(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+L0(e),l=-r.scrollTop;return ur(o||n).direction==="rtl"&&(a+=Co(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function N0(e){var t=ur(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ZC(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:Jt(e)&&N0(e)?e:ZC(cf(e))}function Js(e,t){var n;t===void 0&&(t=[]);var r=ZC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=It(r),s=o?[i].concat(i.visualViewport||[],N0(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Js(cf(s)))}function rm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qj(e,t){var n=Bi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Px(e,t,n){return t===BC?rm(Kj(e,n)):Ao(t)?qj(t,n):rm(Yj(qr(e)))}function Xj(e){var t=Js(cf(e)),n=["absolute","fixed"].indexOf(ur(e).position)>=0,r=n&&Jt(e)?hl(e):e;return Ao(r)?t.filter(function(o){return Ao(o)&&YC(o,r)&&Dn(o)!=="body"}):[]}function Qj(e,t,n,r){var o=t==="clippingParents"?Xj(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Px(e,u,r);return l.top=Co(c.top,l.top),l.right=Dc(c.right,l.right),l.bottom=Dc(c.bottom,l.bottom),l.left=Co(c.left,l.left),l},Px(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function JC(e){var t=e.reference,n=e.element,r=e.placement,o=r?In(r):null,i=r?Gi(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case $t:l={x:s,y:t.y-n.height};break;case rn:l={x:s,y:t.y+t.height};break;case on:l={x:t.x+t.width,y:a};break;case Pt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?j0(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Wi:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Da:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Fa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?vj:a,u=n.rootBoundary,c=u===void 0?BC:u,d=n.elementContext,f=d===void 0?Ps:d,p=n.altBoundary,h=p===void 0?!1:p,g=n.padding,b=g===void 0?0:g,m=XC(typeof b!="number"?b:QC(b,pl)),y=f===Ps?yj:Ps,x=e.rects.popper,w=e.elements[h?y:f],C=Qj(Ao(w)?w:w.contextElement||qr(e.elements.popper),l,c,s),k=Bi(e.elements.reference),$=JC({reference:k,element:x,strategy:"absolute",placement:o}),P=rm(Object.assign({},x,$)),R=f===Ps?P:k,M={top:C.top-R.top+m.top,bottom:R.bottom-C.bottom+m.bottom,left:C.left-R.left+m.left,right:R.right-C.right+m.right},O=e.modifiersData.offset;if(f===Ps&&O){var E=O[o];Object.keys(M).forEach(function(_){var T=[on,rn].indexOf(_)>=0?1:-1,I=[$t,rn].indexOf(_)>=0?"y":"x";M[_]+=E[I]*T})}return M}function Zj(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?GC:l,c=Gi(r),d=c?a?Sx:Sx.filter(function(h){return Gi(h)===c}):pl,f=d.filter(function(h){return u.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,g){return h[g]=Fa(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[In(g)],h},{});return Object.keys(p).sort(function(h,g){return p[h]-p[g]})}function Jj(e){if(In(e)===A0)return[];var t=Bu(e);return[$x(e),t,$x(t)]}function e7(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,g=n.allowedAutoPlacements,b=t.options.placement,m=In(b),y=m===b,x=l||(y||!h?[Bu(b)]:Jj(b)),w=[b].concat(x).reduce(function(J,X){return J.concat(In(X)===A0?Zj(t,{placement:X,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):X)},[]),C=t.rects.reference,k=t.rects.popper,$=new Map,P=!0,R=w[0],M=0;M=0,I=T?"width":"height",L=Fa(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),F=T?_?on:Pt:_?rn:$t;C[I]>k[I]&&(F=Bu(F));var j=Bu(F),N=[];if(i&&N.push(L[E]<=0),a&&N.push(L[F]<=0,L[j]<=0),N.every(function(J){return J})){R=O,P=!1;break}$.set(O,N)}if(P)for(var V=h?3:1,G=function(X){var oe=w.find(function(le){var de=$.get(le);if(de)return de.slice(0,X).every(function(W){return W})});if(oe)return R=oe,"break"},B=V;B>0;B--){var q=G(B);if(q==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const t7={name:"flip",enabled:!0,phase:"main",fn:e7,requiresIfExists:["offset"],data:{_skip:!1}};function Tx(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ex(e){return[$t,on,rn,Pt].some(function(t){return e[t]>=0})}function n7(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Fa(t,{elementContext:"reference"}),a=Fa(t,{altBoundary:!0}),l=Tx(s,r),u=Tx(a,o,i),c=Ex(l),d=Ex(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const r7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:n7};function o7(e,t,n){var r=In(e),o=[Pt,$t].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Pt,on].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function i7(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=GC.reduce(function(c,d){return c[d]=o7(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const s7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:i7};function a7(e){var t=e.state,n=e.name;t.modifiersData[n]=JC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const l7={name:"popperOffsets",enabled:!0,phase:"read",fn:a7,data:{}};function u7(e){return e==="x"?"y":"x"}function c7(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,g=h===void 0?0:h,b=Fa(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=In(t.placement),y=Gi(t.placement),x=!y,w=j0(m),C=u7(w),k=t.modifiersData.popperOffsets,$=t.rects.reference,P=t.rects.popper,R=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,M=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(k){if(i){var _,T=w==="y"?$t:Pt,I=w==="y"?rn:on,L=w==="y"?"height":"width",F=k[w],j=F+b[T],N=F-b[I],V=p?-P[L]/2:0,G=y===Wi?$[L]:P[L],B=y===Wi?-P[L]:-$[L],q=t.elements.arrow,J=p&&q?R0(q):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qC(),oe=X[T],le=X[I],de=Zs(0,$[L],J[L]),W=x?$[L]/2-V-de-oe-M.mainAxis:G-de-oe-M.mainAxis,K=x?-$[L]/2+V+de+le+M.mainAxis:B+de+le+M.mainAxis,Q=t.elements.arrow&&hl(t.elements.arrow),D=Q?w==="y"?Q.clientTop||0:Q.clientLeft||0:0,be=(_=O==null?void 0:O[w])!=null?_:0,ne=F+W-be-D,Re=F+K-be,me=Zs(p?Dc(j,ne):j,F,p?Co(N,Re):N);k[w]=me,E[w]=me-F}if(a){var Be,Qr=w==="x"?$t:Pt,qP=w==="x"?rn:on,Zr=k[C],Ol=C==="y"?"height":"width",Uv=Zr+b[Qr],Bv=Zr-b[qP],Of=[$t,Pt].indexOf(m)!==-1,Gv=(Be=O==null?void 0:O[C])!=null?Be:0,Kv=Of?Uv:Zr-$[Ol]-P[Ol]-Gv+M.altAxis,Yv=Of?Zr+$[Ol]+P[Ol]-Gv-M.altAxis:Bv,qv=p&&Of?jj(Kv,Zr,Yv):Zs(p?Kv:Uv,Zr,p?Yv:Bv);k[C]=qv,E[C]=qv-Zr}t.modifiersData[r]=E}}const d7={name:"preventOverflow",enabled:!0,phase:"main",fn:c7,requiresIfExists:["offset"]};function f7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function p7(e){return e===It(e)||!Jt(e)?I0(e):f7(e)}function h7(e){var t=e.getBoundingClientRect(),n=Ui(t.width)/e.offsetWidth||1,r=Ui(t.height)/e.offsetHeight||1;return n!==1||r!==1}function m7(e,t,n){n===void 0&&(n=!1);var r=Jt(t),o=Jt(t)&&h7(t),i=qr(t),s=Bi(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Dn(t)!=="body"||N0(i))&&(a=p7(t)),Jt(t)?(l=Bi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=L0(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function g7(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function v7(e){var t=g7(e);return Ej.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function y7(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function x7(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Mx={placement:"bottom",modifiers:[],strategy:"absolute"};function _x(){for(var e=arguments.length,t=new Array(e),n=0;n{i||a(k7(o)||document.body)},[o,i]),or(()=>{if(s&&!i)return Sc(n,s),()=>{Sc(n,null)}},[n,s,i]),i){if(S.isValidElement(r)){const u={ref:l};return S.cloneElement(r,u)}return v.jsx(S.Fragment,{children:r})}return v.jsx(S.Fragment,{children:s&&rl.createPortal(r,s)})});function $7(e){return Hn("MuiPopper",e)}fr("MuiPopper",["root"]);const P7=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],T7=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function E7(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function om(e){return typeof e=="function"?e():e}function M7(e){return e.nodeType!==void 0}const _7=e=>{const{classes:t}=e;return Vn({root:["root"]},$7,t)},A7={},O7=S.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:g}=t,b=se(t,P7),m=S.useRef(null),y=Li(m,n),x=S.useRef(null),w=Li(x,f),C=S.useRef(w);or(()=>{C.current=w},[w]),S.useImperativeHandle(f,()=>x.current,[]);const k=E7(c,s),[$,P]=S.useState(k),[R,M]=S.useState(om(o));S.useEffect(()=>{x.current&&x.current.forceUpdate()}),S.useEffect(()=>{o&&M(om(o))},[o]),or(()=>{if(!R||!u)return;const I=j=>{P(j.placement)};let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{I(j)}}];l!=null&&(L=L.concat(l)),d&&d.modifiers!=null&&(L=L.concat(d.modifiers));const F=S7(R,m.current,A({placement:k},d,{modifiers:L}));return C.current(F),()=>{F.destroy(),C.current(null)}},[R,a,l,u,d,k]);const O={placement:$};g!==null&&(O.TransitionProps=g);const E=_7(t),_=(r=h.root)!=null?r:"div",T=On({elementType:_,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:E.root});return v.jsx(_,A({},T,{children:typeof i=="function"?i(O):i}))}),R7=S.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=A7,popperRef:p,style:h,transition:g=!1,slotProps:b={},slots:m={}}=t,y=se(t,T7),[x,w]=S.useState(!0),C=()=>{w(!1)},k=()=>{w(!0)};if(!l&&!c&&(!g||x))return null;let $;if(i)$=i;else if(r){const M=om(r);$=M&&M7(M)?wc(M).body:wc(null).body}const P=!c&&l&&(!g||x)?"none":void 0,R=g?{in:c,onEnter:C,onExited:k}:void 0;return v.jsx(C7,{disablePortal:a,container:$,children:v.jsx(O7,A({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:g?!x:c,placement:d,popperOptions:f,popperRef:p,slotProps:b,slots:m},y,{style:A({position:"fixed",top:0,left:0,display:P},h),TransitionProps:R,children:o}))})}),j7=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],I7=qe(R7,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),L7=S.forwardRef(function(t,n){var r;const o=WC(),i=Ug({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:g,popperOptions:b,popperRef:m,transition:y,slots:x,slotProps:w}=i,C=se(i,j7),k=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,$=A({anchorEl:s,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:g,popperOptions:b,popperRef:m,transition:y},C);return v.jsx(I7,A({as:a,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:w??u},$,{ref:n}))});function e5(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=S.useState(!1);return or(()=>{n||i(!0)},[n]),S.useEffect(()=>{n&&i(!0)},[n]),v.jsx(S.Fragment,{children:o?t:r})}const ml=S.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null}),N7=(e,t)=>{switch(t.type){case"enterItem":return A({},e,{item:t.data});case"exitChart":return e.item===null&&e.axis.x===null&&e.axis.y===null?e:A({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return A({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:A({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:A({},e,{axis:t.data});default:return e}};function D7(e){const{children:t}=e,[n,r]=S.useReducer(N7,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),o=S.useMemo(()=>A({},n,{dispatch:r}),[n]);return v.jsx(ml.Provider,{value:o,children:t})}function F7(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e,r={width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t};return{getBoundingClientRect:()=>A({},r,{toJSON:()=>JSON.stringify(r)})}}function z7(){const e=DC(),[t,n]=S.useState(null);return S.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},i=s=>{n({x:s.clientX,y:s.clientY,height:s.height,pointerType:s.pointerType})};return r.addEventListener("pointerdown",i),r.addEventListener("pointermove",i),r.addEventListener("pointerup",o),()=>{r.removeEventListener("pointerdown",i),r.removeEventListener("pointermove",i),r.removeEventListener("pointerup",o)}},[e]),t}function V7(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function H7(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}function W7(e){return Hn("MuiChartsTooltip",e)}const Ax=fr("MuiChartsTooltip",["root","table","row","cell","mark","markCell","labelCell","valueCell"]),t5=qe("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),borderRadius:e.shape.borderRadius})),n5=qe("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),im=qe("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),mo=qe("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${Ax.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${Ax.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),r5=qe("div",{name:"MuiChartsTooltip",slot:"Mark",shouldForwardProp:e=>JA(e)&&e!=="color"})(({theme:e,color:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",boxShadow:e.shadows[1],backgroundColor:t,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function U7(e){var c;const{series:t,itemData:n,sx:r,classes:o,getColor:i}=e;if(n.dataIndex===void 0||!t.data[n.dataIndex])return null;const{displayedLabel:s,color:a}=t.type==="pie"?{color:i(n.dataIndex),displayedLabel:xn(t.data[n.dataIndex].label,"tooltip")}:{color:i(n.dataIndex),displayedLabel:xn(t.label,"tooltip")},l=t.type==="pie"?A({},t.data[n.dataIndex],{label:xn(t.data[n.dataIndex].label,"tooltip")}):t.data[n.dataIndex],u=(c=t.valueFormatter)==null?void 0:c.call(t,l,{dataIndex:n.dataIndex});return v.jsx(t5,{sx:r,className:o.root,children:v.jsx(n5,{className:o.table,children:v.jsx("tbody",{children:v.jsxs(im,{className:o.row,children:[v.jsx(mo,{className:Zt(o.markCell,o.cell),children:v.jsx(r5,{color:a,className:o.mark})}),v.jsx(mo,{className:Zt(o.labelCell,o.cell),children:s}),v.jsx(mo,{className:Zt(o.valueCell,o.cell),children:u})]})})})})}function B7(e){var w;const{content:t,itemData:n,sx:r,classes:o,contentProps:i}=e,s=No()[n.type].series[n.seriesId],{xAxis:a,yAxis:l,xAxisIds:u,yAxisIds:c}=Yr(),{zAxis:d,zAxisIds:f}=S.useContext(E0),p=cC(),h=s.xAxisId??s.xAxisKey??u[0],g=s.yAxisId??s.yAxisKey??c[0],b=s.zAxisId??s.zAxisKey??f[0],m=((w=p[s.type])==null?void 0:w.call(p,s,h&&a[h],g&&l[g],b&&d[b]))??(()=>""),y=t??U7,x=On({elementType:y,externalSlotProps:i,additionalProps:{itemData:n,series:s,sx:r,classes:o,getColor:m},ownerState:{}});return v.jsx(y,A({},x))}function G7(e){return Hn("MuiTypography",e)}fr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const K7=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Y7=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${Nn(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Vn(a,G7,s)},q7=qe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Nn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>A({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Ox={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},X7={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Q7=e=>X7[e]||e,Cp=S.forwardRef(function(t,n){const r=Ug({props:t,name:"MuiTypography"}),o=Q7(r.color),i=Vk(A({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=Ox}=i,h=se(i,K7),g=A({},i,{align:s,color:o,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:p}),b=l||(d?"p":p[f]||Ox[f])||"span",m=Y7(g);return v.jsx(q7,A({as:b,ref:n,ownerState:g,className:Zt(m.root,a)},h))});let Rx;class Z7{constructor(){if(this.types=new Set,Rx)throw new Error("You can only create one instance!");Rx=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const df=new Z7;df.addType("bar");df.addType("line");df.addType("scatter");function o5(e){return df.getTypes().has(e)}function J7(e){return o5(e.type)}function eI(e){const{series:t,axis:n,dataIndex:r,axisValue:o,sx:i,classes:s}=e;if(r==null)return null;const a=n.valueFormatter??(l=>n.scaleType==="utc"?H7(l):l.toLocaleString());return v.jsx(t5,{sx:i,className:s.root,children:v.jsxs(n5,{className:s.table,children:[o!=null&&!n.hideTooltip&&v.jsx("thead",{children:v.jsx(im,{children:v.jsx(mo,{colSpan:3,children:v.jsx(Cp,{children:a(o,{location:"tooltip"})})})})}),v.jsx("tbody",{children:t.filter(J7).map(({id:l,label:u,valueFormatter:c,data:d,getColor:f})=>{const p=c(d[r]??null,{dataIndex:r});if(p==null)return null;const h=xn(u,"tooltip"),g=f(r);return v.jsxs(im,{className:s.row,children:[v.jsx(mo,{className:Zt(s.markCell,s.cell),children:g&&v.jsx(r5,{color:g,className:s.mark})}),v.jsx(mo,{className:Zt(s.labelCell,s.cell),children:h?v.jsx(Cp,{children:h}):null}),v.jsx(mo,{className:Zt(s.valueCell,s.cell),children:v.jsx(Cp,{children:p})})]},l)})})]})})}function tI(e){const{content:t,contentProps:n,axisData:r,sx:o,classes:i}=e,s=(r.x&&r.x.index)!==void 0,a=s?r.x&&r.x.index:r.y&&r.y.index,l=s?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:u,xAxis:c,yAxisIds:d,yAxis:f}=Yr(),{zAxisIds:p,zAxis:h}=S.useContext(E0),g=No(),b=cC(),m=s?u[0]:d[0],y=S.useMemo(()=>{const k=[];return Object.keys(g).filter(o5).forEach($=>{g[$].seriesOrder.forEach(P=>{var _;const R=g[$].series[P],M=R.xAxisId??R.xAxisKey,O=R.yAxisId??R.yAxisKey,E=s?M:O;if(E===void 0||E===m){const T=g[$].series[P],I=M??u[0],L=O??d[0],F=T.zAxisId??T.zAxisKey??p[0],j=((_=b[$])==null?void 0:_.call(b,T,c[I],f[L],F&&h[F]))??(()=>"");k.push(A({},T,{getColor:j}))}})}),k},[m,b,s,g,c,u,f,d,h,p]),x=S.useMemo(()=>s?c[m]:f[m],[m,s,c,f]),w=t??eI,C=On({elementType:w,externalSlotProps:n,additionalProps:{axisData:r,series:y,axis:x,dataIndex:a,axisValue:l,sx:o,classes:i},ownerState:{}});return v.jsx(w,A({},C))}const nI=e=>{const{classes:t}=e;return Vn({root:["root"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},W7,t)},rI=qe(L7,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function oI(e){const t=nf({props:e,name:"MuiChartsTooltip"}),{trigger:n="axis",itemContent:r,axisContent:o,slots:i,slotProps:s}=t,a=z7(),{item:l,axis:u}=S.useContext(ml),c=n==="item"?l:u,d=V7(n,c),f=a!==null&&d,p=nI({classes:t.classes}),h=(i==null?void 0:i.popper)??rI,g=On({elementType:h,externalSlotProps:s==null?void 0:s.popper,additionalProps:{open:f,placement:(a==null?void 0:a.pointerType)==="mouse"?"right-start":"top",anchorEl:F7(a),modifiers:[{name:"offset",options:{offset:[0,(a==null?void 0:a.pointerType)==="touch"?40-a.height:0]}}]},ownerState:{}});return n==="none"?null:v.jsx(e5,{children:f&&v.jsx(h,A({},g,{children:n==="item"?v.jsx(B7,{itemData:c,content:(i==null?void 0:i.itemContent)??r,contentProps:s==null?void 0:s.itemContent,sx:{mx:2},classes:p}):v.jsx(tI,{axisData:c,content:(i==null?void 0:i.axisContent)??o,contentProps:s==null?void 0:s.axisContent,sx:{mx:2},classes:p})}))})}const iI=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=xn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},sI=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=xn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},aI=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=xn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},lI=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>(n[o].data.forEach(i=>{const s=xn(i.label,"legend");s!==void 0&&r.push({color:i.color,label:s,id:i.id})}),r),[])},uI={bar:iI,scatter:sI,line:aI,pie:lI};function cI(e){return Object.keys(e).flatMap(t=>{const n=uI[t];return n===void 0?[]:n(e[t])})}function dI(e){return Hn("MuiChartsLegend",e)}fr("MuiChartsLegend",["root","series","mark","label","column","row"]);const fI=["label"];function pI(e,t,n,r,o,i,s){let a=0,l=0,u=0,c=0,d=0;const f=[0];return[e.map(h=>{let{label:g}=h,b=se(h,fI);const m=t(g,n),y=A({},b,{label:g,positionX:a,positionY:l,innerHeight:m.innerHeight,innerWidth:m.innerWidth,outerHeight:m.outerHeight,outerWidth:m.outerWidth,rowIndex:d});return r==="row"&&(a+m.innerWidth>o&&(a=0,l+=f[d],d+=1,f.length<=d&&f.push(0),y.positionX=a,y.positionY=l,y.rowIndex=d),u=Math.max(u,a+m.outerWidth),c=Math.max(c,l+m.outerHeight),f[d]=Math.max(f[d],m.outerHeight),a+=m.outerWidth),r==="column"&&(l+m.innerHeight>i&&(a=u+s,l=0,d=0,y.positionX=a,y.positionY=l,y.rowIndex=d),f.length<=d&&f.push(0),u=Math.max(u,a+m.outerWidth),c=Math.max(c,l+m.outerHeight),d+=1,l+=m.outerHeight),y}).map(h=>A({},h,{positionY:h.positionY+(r==="row"?f[h.rowIndex]/2:h.outerHeight/2)})),u,c]}const hI=["rotate","dominantBaseline"],mI=qe("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gI=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:A({left:0,right:0,top:0,bottom:0},e);function vI(e){const{hidden:t,position:n,direction:r,itemsToDisplay:o,classes:i,itemMarkWidth:s=20,itemMarkHeight:a=20,markGap:l=5,itemGap:u=10,padding:c=10,labelStyle:d}=e,f=is(),p=f.direction==="rtl",h=pr(),g=S.useMemo(()=>A({},f.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(f.vars||f).palette.text.primary,lineHeight:1},d),[d,f]),b=S.useMemo(()=>gI(c),[c]),m=S.useCallback((O,E={})=>{const _=se(E,hI),T=M0({style:_,needsComputation:!0,text:O}),I={innerWidth:s+l+Math.max(...T.map(L=>L.width)),innerHeight:Math.max(a,T.length*T[0].height)};return A({},I,{outerWidth:I.innerWidth+u,outerHeight:I.innerHeight+u})},[u,a,s,l]),y=h.left+h.width+h.right,x=h.top+h.height+h.bottom,w=y-b.left-b.right,C=x-b.top-b.bottom,[k,$,P]=S.useMemo(()=>pI(o,m,g,r,w,C,u),[o,m,g,r,w,C,u]),R=S.useMemo(()=>{switch(n.horizontal){case"left":return b.left;case"right":return y-b.right-$;default:return(y-$)/2}},[n.horizontal,b.left,b.right,y,$]),M=S.useMemo(()=>{switch(n.vertical){case"top":return b.top;case"bottom":return x-b.bottom-P;default:return(x-P)/2}},[n.vertical,b.top,b.bottom,x,P]);return t?null:v.jsx(e5,{children:v.jsx(mI,{className:i==null?void 0:i.root,children:k.map(({id:O,label:E,color:_,positionX:T,positionY:I})=>v.jsxs("g",{className:i==null?void 0:i.series,transform:`translate(${R+(p?$-T:T)} ${M+I})`,children:[v.jsx("rect",{className:i==null?void 0:i.mark,x:p?-s:0,y:-a/2,width:s,height:a,fill:_}),v.jsx(Na,{style:g,text:E,x:(p?-1:1)*(s+l),y:0})]},O))})})}const yI=["drawingArea","seriesToDisplay"];function xI(e){const{seriesToDisplay:t}=e,n=se(e,yI);return v.jsx(vI,A({},n,{itemsToDisplay:t}))}const bI=e=>{const{classes:t,direction:n}=e;return Vn({root:["root",n],mark:["mark"],label:["label"],series:["series"]},dI,t)},wI={position:{horizontal:"middle",vertical:"top"},direction:"row"};function SI(e){const t=nf({props:A({},wI,e),name:"MuiChartsLegend"}),{position:n,direction:r,hidden:o,slots:i,slotProps:s}=t,a=is(),l=bI(A({},t,{theme:a})),u=pr(),c=No(),d=cI(c),f=(i==null?void 0:i.legend)??xI,p=On({elementType:f,externalSlotProps:s==null?void 0:s.legend,additionalProps:{position:n,direction:r,classes:l,drawingArea:u,series:c,hidden:o,seriesToDisplay:d},ownerState:{}});return v.jsx(f,A({},p))}const kI=10;function jx(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:o,direction:i,scale:s,colorScale:a,colorMap:l}=e,u=[l.min??0,l.max??100],c=u.map(s).filter(h=>h!==void 0);if(c.length!==2)return null;const d=typeof u[0]=="number"?ja(u[0],u[1]):gC(u[0],u[1]),f=Math.round((Math.max(...c)-Math.min(...c))/kI),p=`${u[0]}-${u[1]}-`;return v.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${i}${n?1:2}`]:t==="objectBoundingBox"?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:f+1},(h,g)=>{const b=d(g/f);if(b===void 0)return null;const m=s(b);if(m===void 0)return null;const y=n?1-m/o:m/o,x=a(b);return x===null?null:v.jsx("stop",{offset:y,stopColor:x,stopOpacity:1},p+g)})})}function lo(e,t){if(typeof e=="number")return e;if(e==="100%")return t;if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith("px")){const n=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(n))return n}throw Error(`MUI X: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function CI(e){return Hn("MuiChartsAxisHighlight",e)}fr("MuiChartsAxisHighlight",["root"]);const $I=()=>Vn({root:["root"]},CI),lu=qe("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>A({pointerEvents:"none"},e.axisHighlight==="band"&&{fill:t.palette.mode==="light"?"gray":"white",fillOpacity:.1},e.axisHighlight==="line"&&{strokeDasharray:"5 2",stroke:t.palette.mode==="light"?"#000000":"#ffffff"}));function PI(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:i,yAxis:s}=Yr(),a=$I(),l=r[0],u=i[0],c=o[l].scale,d=s[u].scale,{axis:f}=S.useContext(ml),p=vx(c),h=vx(d),g=f.x,b=f.y,m=t==="band"&&g!==null&&La(c),y=n==="band"&&b!==null&&La(d);return v.jsxs(S.Fragment,{children:[m&&c(g.value)!==void 0&&v.jsx(lu,{d:`M ${c(g.value)-(c.step()-c.bandwidth())/2} ${d.range()[0]} l ${c.step()} 0 l 0 ${d.range()[1]-d.range()[0]} l ${-c.step()} 0 Z`,className:a.root,ownerState:{axisHighlight:"band"}}),y&&d(b.value)!==void 0&&v.jsx(lu,{d:`M ${c.range()[0]} ${d(b.value)-(d.step()-d.bandwidth())/2} l 0 ${d.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-d.step()} Z`,className:a.root,ownerState:{axisHighlight:"band"}}),t==="line"&&f.x!==null&&v.jsx(lu,{d:`M ${p(f.x.value)} ${d.range()[0]} L ${p(f.x.value)} ${d.range()[1]}`,className:a.root,ownerState:{axisHighlight:"line"}}),n==="line"&&f.y!==null&&v.jsx(lu,{d:`M ${c.range()[0]} ${h(f.y.value)} L ${c.range()[1]} ${h(f.y.value)}`,className:a.root,ownerState:{axisHighlight:"line"}})]})}function TI(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}var D0=vl(),Z=e=>gl(e,D0),F0=vl();Z.write=e=>gl(e,F0);var ff=vl();Z.onStart=e=>gl(e,ff);var z0=vl();Z.onFrame=e=>gl(e,z0);var V0=vl();Z.onFinish=e=>gl(e,V0);var Ci=[];Z.setTimeout=(e,t)=>{const n=Z.now()+t,r=()=>{const i=Ci.findIndex(s=>s.cancel==r);~i&&Ci.splice(i,1),Er-=~i?1:0},o={time:n,handler:e,cancel:r};return Ci.splice(i5(n),0,o),Er+=1,s5(),o};var i5=e=>~(~Ci.findIndex(t=>t.time>e)||~Ci.length);Z.cancel=e=>{ff.delete(e),z0.delete(e),V0.delete(e),D0.delete(e),F0.delete(e)};Z.sync=e=>{sm=!0,Z.batchedUpdates(e),sm=!1};Z.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Z.onStart(n)}return r.handler=e,r.cancel=()=>{ff.delete(n),t=null},r};var H0=typeof window<"u"?window.requestAnimationFrame:()=>{};Z.use=e=>H0=e;Z.now=typeof performance<"u"?()=>performance.now():Date.now;Z.batchedUpdates=e=>e();Z.catch=console.error;Z.frameLoop="always";Z.advance=()=>{Z.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):l5()};var Tr=-1,Er=0,sm=!1;function gl(e,t){sm?(t.delete(e),e(0)):(t.add(e),s5())}function s5(){Tr<0&&(Tr=0,Z.frameLoop!=="demand"&&H0(a5))}function EI(){Tr=-1}function a5(){~Tr&&(H0(a5),Z.batchedUpdates(l5))}function l5(){const e=Tr;Tr=Z.now();const t=i5(Tr);if(t&&(u5(Ci.splice(0,t),n=>n.handler()),Er-=t),!Er){EI();return}ff.flush(),D0.flush(e?Math.min(64,Tr-e):16.667),z0.flush(),F0.flush(),V0.flush()}function vl(){let e=new Set,t=e;return{add(n){Er+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Er-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Er-=t.size,u5(t,r=>r(n)&&e.add(r)),Er+=e.size,t=e)}}}function u5(e,t){e.forEach(n=>{try{t(n)}catch(r){Z.catch(r)}})}var MI=Object.defineProperty,_I=(e,t)=>{for(var n in t)MI(e,n,{get:t[n],enumerable:!0})},Lt={};_I(Lt,{assign:()=>OI,colors:()=>Nr,createStringInterpolator:()=>U0,skipAnimation:()=>d5,to:()=>c5,willAdvance:()=>B0});function am(){}var AI=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),H={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Kn(e,t){if(H.arr(e)){if(!H.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function Fn(e,t,n){if(H.arr(e)){for(let r=0;rH.und(e)?[]:H.arr(e)?e:[e];function ea(e,t){if(e.size){const n=Array.from(e);e.clear(),ee(n,t)}}var Ds=(e,...t)=>ea(e,n=>n(...t)),W0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),U0,c5,Nr=null,d5=!1,B0=am,OI=e=>{e.to&&(c5=e.to),e.now&&(Z.now=e.now),e.colors!==void 0&&(Nr=e.colors),e.skipAnimation!=null&&(d5=e.skipAnimation),e.createStringInterpolator&&(U0=e.createStringInterpolator),e.requestAnimationFrame&&Z.use(e.requestAnimationFrame),e.batchedUpdates&&(Z.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B0=e.willAdvance),e.frameLoop&&(Z.frameLoop=e.frameLoop)},ta=new Set,Kt=[],$p=[],Fc=0,pf={get idle(){return!ta.size&&!Kt.length},start(e){Fc>e.priority?(ta.add(e),Z.onStart(RI)):(f5(e),Z(lm))},advance:lm,sort(e){if(Fc)Z.onFrame(()=>pf.sort(e));else{const t=Kt.indexOf(e);~t&&(Kt.splice(t,1),p5(e))}},clear(){Kt=[],ta.clear()}};function RI(){ta.forEach(f5),ta.clear(),Z(lm)}function f5(e){Kt.includes(e)||p5(e)}function p5(e){Kt.splice(jI(Kt,t=>t.priority>e.priority),0,e)}function lm(e){const t=$p;for(let n=0;n0}function jI(e,t){const n=e.findIndex(t);return n<0?e.length:n}var II=(e,t,n)=>Math.min(Math.max(n,e),t),LI={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},gn="[-+]?\\d*\\.?\\d+",zc=gn+"%";function hf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var NI=new RegExp("rgb"+hf(gn,gn,gn)),DI=new RegExp("rgba"+hf(gn,gn,gn,gn)),FI=new RegExp("hsl"+hf(gn,zc,zc)),zI=new RegExp("hsla"+hf(gn,zc,zc,gn)),VI=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,HI=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,WI=/^#([0-9a-fA-F]{6})$/,UI=/^#([0-9a-fA-F]{8})$/;function BI(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=WI.exec(e))?parseInt(t[1]+"ff",16)>>>0:Nr&&Nr[e]!==void 0?Nr[e]:(t=NI.exec(e))?(Yo(t[1])<<24|Yo(t[2])<<16|Yo(t[3])<<8|255)>>>0:(t=DI.exec(e))?(Yo(t[1])<<24|Yo(t[2])<<16|Yo(t[3])<<8|Nx(t[4]))>>>0:(t=VI.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=UI.exec(e))?parseInt(t[1],16)>>>0:(t=HI.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=FI.exec(e))?(Ix(Lx(t[1]),uu(t[2]),uu(t[3]))|255)>>>0:(t=zI.exec(e))?(Ix(Lx(t[1]),uu(t[2]),uu(t[3]))|Nx(t[4]))>>>0:null}function Pp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ix(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Pp(o,r,e+1/3),s=Pp(o,r,e),a=Pp(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function Yo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Lx(e){return(parseFloat(e)%360+360)%360/360}function Nx(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function uu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dx(e){let t=BI(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}var za=(e,t,n)=>{if(H.fun(e))return e;if(H.arr(e))return za({range:e,output:t,extrapolate:n});if(H.str(e.output[0]))return U0(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=KI(u,i);return GI(u,i[c],i[c+1],o[c],o[c+1],l,s,a,r.map)}};function GI(e,t,n,r,o,i,s,a,l){let u=l?l(e):e;if(un){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:o===1/0?u=u+r:u=u*(o-r)+r,u)}function KI(e,t){for(var n=1;n=e);++n);return n-1}var YI=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,o=t==="end"?Math.floor(r):Math.ceil(r);return II(0,1,o/e)},Vc=1.70158,cu=Vc*1.525,Fx=Vc+1,zx=2*Math.PI/3,Vx=2*Math.PI/4.5,du=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,qI={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Fx*e*e*e-Vc*e*e,easeOutBack:e=>1+Fx*Math.pow(e-1,3)+Vc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((cu+1)*2*e-cu)/2:(Math.pow(2*e-2,2)*((cu+1)*(e*2-2)+cu)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*zx),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*zx)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Vx))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Vx)/2+1,easeInBounce:e=>1-du(1-e),easeOutBounce:du,easeInOutBounce:e=>e<.5?(1-du(1-2*e))/2:(1+du(2*e-1))/2,steps:YI},Va=Symbol.for("FluidValue.get"),Ki=Symbol.for("FluidValue.observers"),Ut=e=>!!(e&&e[Va]),vt=e=>e&&e[Va]?e[Va]():e,Hx=e=>e[Ki]||null;function XI(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ha(e,t){const n=e[Ki];n&&n.forEach(r=>{XI(r,t)})}var h5=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");QI(this,e)}},QI=(e,t)=>m5(e,Va,t);function ss(e,t){if(e[Va]){let n=e[Ki];n||m5(e,Ki,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Wa(e,t){const n=e[Ki];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ki]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var m5=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Gu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ZI=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Wx=new RegExp(`(${Gu.source})(%|[a-z]+)`,"i"),JI=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,mf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,g5=e=>{const[t,n]=eL(e);if(!t||W0())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&mf.test(n))return g5(n);if(n)return n}return e},eL=e=>{const t=mf.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Tp,tL=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,v5=e=>{Tp||(Tp=Nr?new RegExp(`(${Object.keys(Nr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>vt(i).replace(mf,g5).replace(ZI,Dx).replace(Tp,Dx)),n=t.map(i=>i.match(Gu).map(Number)),o=n[0].map((i,s)=>n.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(i=>za({...e,output:i}));return i=>{var l;const s=!Wx.test(t[0])&&((l=t.find(u=>Wx.test(u)))==null?void 0:l.replace(Gu,""));let a=0;return t[0].replace(Gu,()=>`${o[a++](i)}${s||""}`).replace(JI,tL)}},G0="react-spring: ",y5=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${G0}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},nL=y5(console.warn);function rL(){nL(`${G0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var oL=y5(console.warn);function iL(){oL(`${G0}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function gf(e){return H.str(e)&&(e[0]=="#"||/\d/.test(e)||!W0()&&mf.test(e)||e in(Nr||{}))}var go=W0()?S.useEffect:S.useLayoutEffect,sL=()=>{const e=S.useRef(!1);return go(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function x5(){const e=S.useState()[1],t=sL();return()=>{t.current&&e(Math.random())}}function aL(e,t){const[n]=S.useState(()=>({inputs:t,result:e()})),r=S.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&lL(t,i.inputs)||(i={inputs:t,result:e()}):i=n,S.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function lL(e,t){if(e.length!==t.length)return!1;for(let n=0;nS.useEffect(e,uL),uL=[];function cL(e){const t=S.useRef();return S.useEffect(()=>{t.current=e}),t.current}var Ua=Symbol.for("Animated:node"),dL=e=>!!e&&e[Ua]===e,Cn=e=>e&&e[Ua],K0=(e,t)=>AI(e,Ua,t),vf=e=>e&&e[Ua]&&e[Ua].getPayload(),w5=class{constructor(){K0(this,this)}getPayload(){return this.payload||[]}},yl=class extends w5{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,H.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yl(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return H.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,H.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ba=class extends yl{constructor(e){super(0),this._string=null,this._toString=za({output:[e,e]})}static create(e){return new Ba(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(H.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=za({output:[this.getValue(),e]})),this._value=0,super.reset()}},Hc={dependencies:null},yf=class extends w5{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Fn(this.source,(n,r)=>{dL(n)?t[r]=n.getValue(e):Ut(n)?t[r]=vt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ee(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Fn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Hc.dependencies&&Ut(e)&&Hc.dependencies.add(e);const t=vf(e);t&&ee(t,n=>this.add(n))}},S5=class extends yf{constructor(e){super(e)}static create(e){return new S5(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(fL)),!0)}};function fL(e){return(gf(e)?Ba:yl).create(e)}function um(e){const t=Cn(e);return t?t.constructor:H.arr(e)?S5:gf(e)?Ba:yl}var Ux=(e,t)=>{const n=!H.fun(e)||e.prototype&&e.prototype.isReactComponent;return S.forwardRef((r,o)=>{const i=S.useRef(null),s=n&&S.useCallback(h=>{i.current=mL(o,h)},[o]),[a,l]=hL(r,t),u=x5(),c=()=>{const h=i.current;if(n&&!h)return;(h?t.applyAnimatedValues(h,a.getValue(!0)):!1)===!1&&u()},d=new pL(c,l),f=S.useRef();go(()=>(f.current=d,ee(l,h=>ss(h,d)),()=>{f.current&&(ee(f.current.deps,h=>Wa(h,f.current)),Z.cancel(f.current.update))})),S.useEffect(c,[]),b5(()=>()=>{const h=f.current;ee(h.deps,g=>Wa(g,h))});const p=t.getComponentProps(a.getValue());return S.createElement(e,{...p,ref:s})})},pL=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Z.write(this.update)}};function hL(e,t){const n=new Set;return Hc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yf(e),Hc.dependencies=null,[e,n]}function mL(e,t){return e&&(H.fun(e)?e(t):e.current=t),t}var Bx=Symbol.for("AnimatedComponent"),gL=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new yf(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=s=>{const a=Gx(s)||"Anonymous";return H.str(s)?s=i[s]||(i[s]=Ux(s,o)):s=s[Bx]||(s[Bx]=Ux(s,o)),s.displayName=`Animated(${a})`,s};return Fn(e,(s,a)=>{H.arr(e)&&(a=Gx(s)),i[a]=i(s)}),{animated:i}},Gx=e=>H.str(e)?e:e&&H.str(e.displayName)?e.displayName:H.fun(e)&&e.name||null;function yt(e,...t){return H.fun(e)?e(...t):e}var na=(e,t)=>e===!0||!!(t&&e&&(H.fun(e)?e(t):ct(e).includes(t))),k5=(e,t)=>H.obj(e)?t&&e[t]:e,C5=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,vL=e=>e,Y0=(e,t=vL)=>{let n=yL;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const i=t(e[o],o);H.und(i)||(r[o]=i)}return r},yL=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xL={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function bL(e){const t={};let n=0;if(Fn(e,(r,o)=>{xL[o]||(t[o]=r,n++)}),n)return t}function q0(e){const t=bL(e);if(t){const n={to:t};return Fn(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Ga(e){return e=vt(e),H.arr(e)?e.map(Ga):gf(e)?Lt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function wL(e){for(const t in e)return!0;return!1}function cm(e){return H.fun(e)||H.arr(e)&&H.obj(e[0])}function Kx(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function SL(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var kL={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},dm={...kL.default,mass:1,damping:1,easing:qI.linear,clamp:!1},CL=class{constructor(){this.velocity=0,Object.assign(this,dm)}};function $L(e,t,n){n&&(n={...n},Yx(n,t),t={...n,...t}),Yx(e,t),Object.assign(e,t);for(const s in dm)e[s]==null&&(e[s]=dm[s]);let{frequency:r,damping:o}=e;const{mass:i}=e;return H.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r),e}function Yx(e,t){if(!H.und(t.decay))e.duration=void 0;else{const n=!H.und(t.tension)||!H.und(t.friction);(n||!H.und(t.frequency)||!H.und(t.damping)||!H.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var qx=[],PL=class{constructor(){this.changed=!1,this.values=qx,this.toValues=null,this.fromValues=qx,this.config=new CL,this.immediate=!1}};function $5(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((s,a)=>{let l,u,c=na(n.cancel??(r==null?void 0:r.cancel),t);if(c)p();else{H.und(n.pause)||(o.paused=na(n.pause,t));let h=r==null?void 0:r.pause;h!==!0&&(h=o.paused||na(h,t)),l=yt(n.delay||0,t),h?(o.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){o.resumeQueue.add(f),o.timeouts.delete(u),u.cancel(),l=u.time-Z.now()}function f(){l>0&&!Lt.skipAnimation?(o.delayed=!0,u=Z.setTimeout(p,l),o.pauseQueue.add(d),o.timeouts.add(u)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(u),e<=(o.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},s)}catch(h){a(h)}}})}var X0=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?$i(e.get()):t.every(n=>n.noop)?P5(e.get()):hn(e.get(),t.every(n=>n.finished)),P5=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),hn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),$i=e=>({value:e,cancelled:!0,finished:!1});function T5(e,t,n,r){const{callId:o,parentId:i,onRest:s}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=Y0(t,(b,m)=>m==="onRest"?void 0:b);let c,d;const f=new Promise((b,m)=>(c=b,d=m)),p=b=>{const m=o<=(n.cancelId||0)&&$i(r)||o!==n.asyncId&&hn(r,!1);if(m)throw b.result=m,d(b),b},h=(b,m)=>{const y=new Xx,x=new Qx;return(async()=>{if(Lt.skipAnimation)throw Ka(n),x.result=hn(r,!1),d(x),x;p(y);const w=H.obj(b)?{...b}:{...m,to:b};w.parentId=o,Fn(u,(k,$)=>{H.und(w[$])&&(w[$]=k)});const C=await r.start(w);return p(y),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let g;if(Lt.skipAnimation)return Ka(n),hn(r,!1);try{let b;H.arr(e)?b=(async m=>{for(const y of m)await h(y)})(e):b=Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([b.then(c),f]),g=hn(r.get(),!0,!1)}catch(b){if(b instanceof Xx)g=b.result;else if(b instanceof Qx)g=b.result;else throw b}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return H.fun(s)&&Z.batchedUpdates(()=>{s(g,r,r.item)}),g})()}function Ka(e,t){ea(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Xx=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Qx=class extends Error{constructor(){super("SkipAnimationSignal")}},fm=e=>e instanceof Q0,TL=1,Q0=class extends h5{constructor(){super(...arguments),this.id=TL++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Cn(this);return e&&e.getValue()}to(...e){return Lt.to(this,e)}interpolate(...e){return rL(),Lt.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ha(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||pf.sort(this),Ha(this,{type:"priority",parent:this,priority:e})}},Oo=Symbol.for("SpringPhase"),E5=1,pm=2,hm=4,Ep=e=>(e[Oo]&E5)>0,mr=e=>(e[Oo]&pm)>0,Ts=e=>(e[Oo]&hm)>0,Zx=(e,t)=>t?e[Oo]|=pm|E5:e[Oo]&=~pm,Jx=(e,t)=>t?e[Oo]|=hm:e[Oo]&=~hm,EL=class extends Q0{constructor(e,t){if(super(),this.animation=new PL,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!H.und(e)||!H.und(t)){const n=H.obj(e)?{...e}:{...t,from:e};H.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(mr(this)||this._state.asyncTo)||Ts(this)}get goal(){return vt(this.animation.to)}get velocity(){const e=Cn(this);return e instanceof yl?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Ep(this)}get isAnimating(){return mr(this)}get isPaused(){return Ts(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,s=vf(r.to);!s&&Ut(r.to)&&(o=ct(vt(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==Ba?1:s?s[c].lastPosition:o[c];let f=r.immediate,p=d;if(!f){if(p=u.lastPosition,i.tension<=0){u.done=!0;return}let h=u.elapsedTime+=e;const g=r.fromValues[c],b=u.v0!=null?u.v0:u.v0=H.arr(i.velocity)?i.velocity[c]:i.velocity;let m;const y=i.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(H.und(i.duration))if(i.decay){const x=i.decay===!0?.998:i.decay,w=Math.exp(-(1-x)*h);p=g+b/(1-x)*(1-w),f=Math.abs(u.lastPosition-p)<=y,m=b*w}else{m=u.lastVelocity==null?b:u.lastVelocity;const x=i.restVelocity||y/10,w=i.clamp?0:i.bounce,C=!H.und(w),k=g==d?u.v0>0:gx,!(!$&&(f=Math.abs(d-p)<=y,f)));++O){C&&(P=p==d||p>d==k,P&&(m=-m*w,p=d));const E=-i.tension*1e-6*(p-d),_=-i.friction*.001*m,T=(E+_)/i.mass;m=m+T*R,p=p+m*R}}else{let x=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,h=u.elapsedTime+=e)),x=(i.progress||0)+h/this._memoizedDuration,x=x>1?1:x<0?0:x,u.durationProgress=x),p=g+i.easing(x)*(d-g),m=(p-u.lastPosition)/e,f=x==1}u.lastVelocity=m,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}s&&!s[c].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,i.round)&&(n=!0)});const a=Cn(this),l=a.getValue();if(t){const u=vt(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Z.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(mr(this)){const{to:e,config:t}=this.animation;Z.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return H.und(e)?(n=this.queue||[],this.queue=[]):n=[H.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>X0(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ka(this._state,e&&this._lastCallId),Z.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=H.obj(n)?n[t]:n,(n==null||cm(n))&&(n=void 0),r=H.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return Ep(this)||(e.reverse&&([n,r]=[r,n]),r=vt(r),H.und(r)?Cn(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Y0(e,(s,a)=>/^on/.test(a)?k5(s,n):s)),tb(this,e,"onProps"),Ms(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return $5(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ts(this)||(Jx(this,!0),Ds(i.pauseQueue),Ms(this,"onPause",hn(this,Es(this,this.animation.to)),this))},resume:()=>{Ts(this)&&(Jx(this,!1),mr(this)&&this._resume(),Ds(i.resumeQueue),Ms(this,"onResume",hn(this,Es(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=M5(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n($i(this));const r=!H.und(e.to),o=!H.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n($i(this));const{key:i,defaultProps:s,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;o&&!r&&(!t.default||H.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const f=!Kn(d,u);f&&(a.from=d),d=vt(d);const p=!Kn(c,l);p&&this._focus(c);const h=cm(t.to),{config:g}=a,{decay:b,velocity:m}=g;(r||o)&&(g.velocity=0),t.config&&!h&&$L(g,yt(t.config,i),t.config!==s.config?yt(s.config,i):void 0);let y=Cn(this);if(!y||H.und(c))return n(hn(this,!0));const x=H.und(t.reset)?o&&!t.default:!H.und(d)&&na(t.reset,i),w=x?d:this.get(),C=Ga(c),k=H.num(C)||H.arr(C)||gf(C),$=!h&&(!k||na(s.immediate||t.immediate,i));if(p){const O=um(c);if(O!==y.constructor)if($)y=this._set(C);else throw Error(`Cannot animate between ${y.constructor.name} and ${O.name}, as the "to" prop suggests`)}const P=y.constructor;let R=Ut(c),M=!1;if(!R){const O=x||!Ep(this)&&f;(p||O)&&(M=Kn(Ga(w),C),R=!M),(!Kn(a.immediate,$)&&!$||!Kn(g.decay,b)||!Kn(g.velocity,m))&&(R=!0)}if(M&&mr(this)&&(a.changed&&!x?R=!0:R||this._stop(l)),!h&&((R||Ut(l))&&(a.values=y.getPayload(),a.toValues=Ut(c)?null:P==Ba?[1]:ct(C)),a.immediate!=$&&(a.immediate=$,!$&&!x&&this._set(l)),R)){const{onRest:O}=a;ee(ML,_=>tb(this,t,_));const E=hn(this,Es(this,l));Ds(this._pendingCalls,E),this._pendingCalls.add(n),a.changed&&Z.batchedUpdates(()=>{var _;a.changed=!x,O==null||O(E,this),x?yt(s.onRest,E):(_=a.onStart)==null||_.call(a,E,this)})}x&&this._set(w),h?n(T5(t.to,t,this._state,this)):R?this._start():mr(this)&&!p?this._pendingCalls.add(n):n(P5(w))}_focus(e){const t=this.animation;e!==t.to&&(Hx(this)&&this._detach(),t.to=e,Hx(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ut(t)&&(ss(t,this),fm(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ut(e)&&Wa(e,this)}_set(e,t=!0){const n=vt(e);if(!H.und(n)){const r=Cn(this);if(!r||!Kn(n,r.getValue())){const o=um(n);!r||r.constructor!=o?K0(this,o.create(n)):r.setValue(n),r&&Z.batchedUpdates(()=>{this._onChange(n,t)})}}return Cn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ms(this,"onStart",hn(this,Es(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yt(this.animation.onChange,e,this)),yt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Cn(this).reset(vt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),mr(this)||(Zx(this,!0),Ts(this)||this._resume())}_resume(){Lt.skipAnimation?this.finish():pf.start(this)}_stop(e,t){if(mr(this)){Zx(this,!1);const n=this.animation;ee(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ha(this,{type:"idle",parent:this});const r=t?$i(this.get()):hn(this.get(),Es(this,e??n.to));Ds(this._pendingCalls,r),n.changed&&(n.changed=!1,Ms(this,"onRest",r,this))}}};function Es(e,t){const n=Ga(t),r=Ga(e.get());return Kn(r,n)}function M5(e,t=e.loop,n=e.to){const r=yt(t);if(r){const o=r!==!0&&q0(r),i=(o||e).reverse,s=!o||o.reset;return Wc({...e,loop:t,default:!1,pause:void 0,to:!i||cm(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function Wc(e){const{to:t,from:n}=e=q0(e),r=new Set;return H.obj(t)&&eb(t,r),H.obj(n)&&eb(n,r),e.keys=r.size?Array.from(r):null,e}function eb(e,t){Fn(e,(n,r)=>n!=null&&t.add(r))}var ML=["onStart","onRest","onChange","onPause","onResume"];function tb(e,t,n){e.animation[n]=t[n]!==C5(t,n)?k5(t[n],e.key):void 0}function Ms(e,t,...n){var r,o,i,s;(o=(r=e.animation)[t])==null||o.call(r,...n),(s=(i=e.defaultProps)[t])==null||s.call(i,...n)}var _L=["onStart","onChange","onRest"],AL=1,OL=class{constructor(e,t){this.id=AL++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];H.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Wc(e)),this}start(e){let{queue:t}=this;return e?t=ct(e).map(Wc):this.queue=[],this._flush?this._flush(this,t):(R5(this,t),RL(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ee(ct(t),r=>n[r].stop(!!e))}else Ka(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(H.und(e))this.start({pause:!0});else{const t=this.springs;ee(ct(e),n=>t[n].pause())}return this}resume(e){if(H.und(e))this.start({pause:!1});else{const t=this.springs;ee(ct(e),n=>t[n].resume())}return this}each(e){Fn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,ea(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,s=o||i&&n.size?this.get():null;o&&t.size&&ea(t,([a,l])=>{l.value=s,a(l,this,this._item)}),i&&(this._started=!1,ea(n,([a,l])=>{l.value=s,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Z.onFrame(this._onFrame)}};function RL(e,t){return Promise.all(t.map(n=>_5(e,n))).then(n=>X0(e,n))}async function _5(e,t,n){const{keys:r,to:o,from:i,loop:s,onRest:a,onResolve:l}=t,u=H.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const c=H.arr(o)||H.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):ee(_L,g=>{const b=t[g];if(H.fun(b)){const m=e._events[g];t[g]=({finished:y,cancelled:x})=>{const w=m.get(b);w?(y||(w.finished=!1),x&&(w.cancelled=!0)):m.set(b,{value:null,finished:y||!1,cancelled:x||!1})},u&&(u[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ds(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),p=t.cancel===!0||C5(t,"cancel")===!0;(c||p&&d.asyncId)&&f.push($5(++e._lastAsyncId,{props:t,state:d,actions:{pause:am,resume:am,start(g,b){p?(Ka(d,e._lastAsyncId),b($i(e))):(g.onRest=a,b(T5(c,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const h=X0(e,await Promise.all(f));if(s&&h.finished&&!(n&&h.noop)){const g=M5(t,s,o);if(g)return R5(e,[g]),_5(e,g,!0)}return l&&Z.batchedUpdates(()=>l(h,e,e.item)),h}function jL(e,t){const n={...e.springs};return t&&ee(ct(t),r=>{H.und(r.keys)&&(r=Wc(r)),H.obj(r.to)||(r={...r,to:void 0}),O5(n,r,o=>A5(o))}),IL(e,n),n}function IL(e,t){Fn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ss(n,e))})}function A5(e,t){const n=new EL;return n.key=e,t&&ss(n,t),n}function O5(e,t,n){t.keys&&ee(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function R5(e,t){ee(t,n=>{O5(e.springs,n,r=>A5(r,e))})}var xf=({children:e,...t})=>{const n=S.useContext(Uc),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=aL(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=Uc;return S.createElement(i,{value:t},e)},Uc=LL(xf,{});xf.Provider=Uc.Provider;xf.Consumer=Uc.Consumer;function LL(e,t){return Object.assign(e,S.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var NL=()=>{const e=[],t=function(r){iL();const o=[];return ee(e,(i,s)=>{if(H.und(r))o.push(i.start());else{const a=n(r,i,s);a&&o.push(i.start(a))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return ee(e,r=>r.pause(...arguments)),this},t.resume=function(){return ee(e,r=>r.resume(...arguments)),this},t.set=function(r){ee(e,(o,i)=>{const s=H.fun(r)?r(i,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return ee(e,(i,s)=>{if(H.und(r))o.push(i.start());else{const a=this._getProps(r,i,s);a&&o.push(i.start(a))}}),o},t.stop=function(){return ee(e,r=>r.stop(...arguments)),this},t.update=function(r){return ee(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return H.fun(r)?r(i,o):r};return t._getProps=n,t};function j5(e,t,n){const r=H.fun(t)&&t,{reset:o,sort:i,trail:s=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=S.useMemo(()=>r||arguments.length==3?NL():void 0,[]),p=ct(e),h=[],g=S.useRef(null),b=o?null:g.current;go(()=>{g.current=h}),b5(()=>(ee(h,T=>{f==null||f.add(T.ctrl),T.ctrl.ref=f}),()=>{ee(g.current,T=>{T.expired&&clearTimeout(T.expirationId),Kx(T.ctrl,f),T.ctrl.stop(!0)})}));const m=FL(p,r?r():t,b),y=o&&g.current||[];go(()=>ee(y,({ctrl:T,item:I,key:L})=>{Kx(T,f),yt(u,I,L)}));const x=[];if(b&&ee(b,(T,I)=>{T.expired?(clearTimeout(T.expirationId),y.push(T)):(I=x[I]=m.indexOf(T.key),~I&&(h[I]=T))}),ee(p,(T,I)=>{h[I]||(h[I]={key:m[I],item:T,phase:"mount",ctrl:new OL},h[I].ctrl.item=T)}),x.length){let T=-1;const{leave:I}=r?r():t;ee(x,(L,F)=>{const j=b[F];~L?(T=h.indexOf(j),h[T]={...j,item:p[L]}):I&&h.splice(++T,0,j)})}H.fun(i)&&h.sort((T,I)=>i(T.item,I.item));let w=-s;const C=x5(),k=Y0(t),$=new Map,P=S.useRef(new Map),R=S.useRef(!1);ee(h,(T,I)=>{const L=T.key,F=T.phase,j=r?r():t;let N,V;const G=yt(j.delay||0,L);if(F=="mount")N=j.enter,V="enter";else{const X=m.indexOf(L)<0;if(F!="leave")if(X)N=j.leave,V="leave";else if(N=j.update)V="update";else return;else if(!X)N=j.enter,V="enter";else return}if(N=yt(N,T.item,I),N=H.obj(N)?q0(N):{to:N},!N.config){const X=d||k.config;N.config=yt(X,T.item,I,V)}w+=s;const B={...k,delay:G+w,ref:c,immediate:j.immediate,reset:!1,...N};if(V=="enter"&&H.und(B.from)){const X=r?r():t,oe=H.und(X.initial)||b?X.from:X.initial;B.from=yt(oe,T.item,I)}const{onResolve:q}=B;B.onResolve=X=>{yt(q,X);const oe=g.current,le=oe.find(de=>de.key===L);if(le&&!(X.cancelled&&le.phase!="update")&&le.ctrl.idle){const de=oe.every(W=>W.ctrl.idle);if(le.phase=="leave"){const W=yt(a,le.item);if(W!==!1){const K=W===!0?0:W;if(le.expired=!0,!de&&K>0){K<=2147483647&&(le.expirationId=setTimeout(C,K));return}}}de&&oe.some(W=>W.expired)&&(P.current.delete(le),l&&(R.current=!0),C())}};const J=jL(T.ctrl,B);V==="leave"&&l?P.current.set(T,{phase:V,springs:J,payload:B}):$.set(T,{phase:V,springs:J,payload:B})});const M=S.useContext(xf),O=cL(M),E=M!==O&&wL(M);go(()=>{E&&ee(h,T=>{T.ctrl.start({default:M})})},[M]),ee($,(T,I)=>{if(P.current.size){const L=h.findIndex(F=>F.key===I.key);h.splice(L,1)}}),go(()=>{ee(P.current.size?P.current:$,({phase:T,payload:I},L)=>{const{ctrl:F}=L;L.phase=T,f==null||f.add(F),E&&T=="enter"&&F.start({default:M}),I&&(SL(F,I.ref),(F.ref||f)&&!R.current?F.update(I):(F.start(I),R.current&&(R.current=!1)))})},o?void 0:n);const _=T=>S.createElement(S.Fragment,null,h.map((I,L)=>{const{springs:F}=$.get(I)||I.ctrl,j=T({...F},I.item,I,L);return j&&j.type?S.createElement(j.type,{...j.props,key:H.str(I.key)||H.num(I.key)?I.key:I.ctrl.id,ref:j.ref}):j}));return f?[_,f]:_}var DL=1;function FL(e,{key:t,keys:n=t},r){if(n===null){const o=new Set;return e.map(i=>{const s=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!o.has(a));return s?(o.add(s),s.key):DL++})}return H.und(n)?e:H.fun(n)?e.map(n):ct(n)}var I5=class extends Q0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=za(...t);const n=this._get(),r=um(n);K0(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Kn(t,n)||(Cn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&nb(this._active)&&Mp(this)}_get(){const e=H.arr(this.source)?this.source.map(vt):ct(vt(this.source));return this.calc(...e)}_start(){this.idle&&!nb(this._active)&&(this.idle=!1,ee(vf(this),e=>{e.done=!1}),Lt.skipAnimation?(Z.batchedUpdates(()=>this.advance()),Mp(this)):pf.start(this))}_attach(){let e=1;ee(ct(this.source),t=>{Ut(t)&&ss(t,this),fm(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ee(ct(this.source),e=>{Ut(e)&&Wa(e,this)}),this._active.clear(),Mp(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=ct(this.source).reduce((t,n)=>Math.max(t,(fm(n)?n.priority:0)+1),0))}};function zL(e){return e.idle!==!1}function nb(e){return!e.size||Array.from(e).every(zL)}function Mp(e){e.idle||(e.idle=!0,ee(vf(e),t=>{t.done=!0}),Ha(e,{type:"idle",parent:e}))}var Bc=(e,...t)=>new I5(e,t);Lt.assign({createStringInterpolator:v5,to:(e,t)=>new I5(e,t)});var L5=/^--/;function VL(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!L5.test(e)&&!(ra.hasOwnProperty(e)&&ra[e])?t+"px":(""+t).trim()}var rb={};function HL(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:o,scrollTop:i,scrollLeft:s,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:rb[d]||(rb[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));o!==void 0&&(e.textContent=o);for(const d in r)if(r.hasOwnProperty(d)){const f=VL(d,r[d]);L5.test(d)?e.style.setProperty(d,f):e.style[d]=f}c.forEach((d,f)=>{e.setAttribute(d,u[f])}),i!==void 0&&(e.scrollTop=i),s!==void 0&&(e.scrollLeft=s),a!==void 0&&e.setAttribute("viewBox",a)}var ra={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},WL=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),UL=["Webkit","Ms","Moz","O"];ra=Object.keys(ra).reduce((e,t)=>(UL.forEach(n=>e[WL(n,t)]=e[t]),e),ra);var BL=/^(matrix|translate|scale|rotate|skew)/,GL=/^(translate)/,KL=/^(rotate|skew)/,_p=(e,t)=>H.num(e)&&e!==0?e+t:e,Ku=(e,t)=>H.arr(e)?e.every(n=>Ku(n,t)):H.num(e)?e===t:parseFloat(e)===t,YL=class extends yf{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(s=>[`translate3d(${s.map(a=>_p(a,"px")).join(",")})`,Ku(s,0)])),Fn(r,(s,a)=>{if(a==="transform")o.push([s||""]),i.push(l=>[l,l===""]);else if(BL.test(a)){if(delete r[a],H.und(s))return;const l=GL.test(a)?"px":KL.test(a)?"deg":"";o.push(ct(s)),i.push(a==="rotate3d"?([u,c,d,f])=>[`rotate3d(${u},${c},${d},${_p(f,l)})`,Ku(f,0)]:u=>[`${a}(${u.map(c=>_p(c,l)).join(",")})`,Ku(u,a.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new qL(o,i)),super(r)}},qL=class extends h5{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return ee(this.inputs,(n,r)=>{const o=vt(n[0]),[i,s]=this.transforms[r](H.arr(o)?o:n.map(vt));e+=" "+i,t=t&&s}),t?"none":e}observerAdded(e){e==1&&ee(this.inputs,t=>ee(t,n=>Ut(n)&&ss(n,this)))}observerRemoved(e){e==0&&ee(this.inputs,t=>ee(t,n=>Ut(n)&&Wa(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ha(this,e)}},XL=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Lt.assign({batchedUpdates:rl.unstable_batchedUpdates,createStringInterpolator:v5,colors:LI});var QL=gL(XL,{applyAnimatedValues:HL,createAnimatedStyle:e=>new YL(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),N5=QL.animated;const ZL=e=>{const{dispatch:t}=S.useContext(ml),{setHighlighted:n,clearHighlighted:r}=c0();return i=>({onPointerEnter:()=>{t({type:"enterItem",data:i}),n({seriesId:i.seriesId,dataIndex:i.dataIndex})},onPointerLeave:u=>{u.currentTarget.releasePointerCapture(u.pointerId),t({type:"leaveItem",data:i}),r()},onPointerDown:u=>{u.currentTarget.hasPointerCapture(u.pointerId)&&u.currentTarget.releasePointerCapture(u.pointerId)}})};function qo(e){return e instanceof Date?e.getTime():e}const JL=e=>{const t=DC(),n=pr(),{xAxis:r,yAxis:o,xAxisIds:i,yAxisIds:s}=Yr(),{dispatch:a}=S.useContext(ml),l=i[0],u=s[0],c=S.useRef({isInChart:!1,x:-1,y:-1});S.useEffect(()=>{const d=t.current;if(d===null||e)return()=>{};function f(b,m){const{scale:y,data:x,reverse:w}=b;if(!La(y)){const k=y.invert(m);if(x===void 0)return{value:k};const $=qo(k),P=x==null?void 0:x.findIndex((R,M)=>{const O=qo(R);return O>$&&(M===0||Math.abs($-O)<=Math.abs($-qo(x[M-1])))||O<=$&&(M===x.length-1||Math.abs(qo(k)-O)=0?x[P]:k,index:P}}const C=y.bandwidth()===0?Math.floor((m-Math.min(...y.range())+y.step()/2)/y.step()):Math.floor((m-Math.min(...y.range()))/y.step());if(C<0||C>=x.length)return null;if(w){const k=x.length-1-C;return{index:k,value:x[k]}}return{index:C,value:x[C]}}const p=()=>{c.current={isInChart:!1,x:-1,y:-1},a({type:"exitChart"})},h=b=>{const m="targetTouches"in b?b.targetTouches[0]:b,y=TI(d,m);if(c.current.x=y.x,c.current.y=y.y,!n.isPointInside(y,b.target)){c.current.isInChart&&(a({type:"exitChart"}),c.current.isInChart=!1);return}c.current.isInChart=!0;const x=f(r[l],y.x),w=f(o[u],y.y);a({type:"updateAxis",data:{x,y:w}})},g=b=>{const m=b.currentTarget;m&&m.hasPointerCapture(b.pointerId)&&m.releasePointerCapture(b.pointerId)};return d.addEventListener("pointerdown",g),d.addEventListener("pointermove",h),d.addEventListener("pointerout",p),d.addEventListener("pointercancel",p),d.addEventListener("pointerleave",p),()=>{d.removeEventListener("pointerdown",g),d.removeEventListener("pointermove",h),d.removeEventListener("pointerout",p),d.removeEventListener("pointercancel",p),d.removeEventListener("pointerleave",p)}},[t,a,u,o,l,r,e,n])},e9=["children","width","height","viewBox","disableAxisListener","className","title","desc"],t9=qe("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({touchAction:"none"})),n9=S.forwardRef(function(t,n){const{children:r,width:o,height:i,viewBox:s,disableAxisListener:a=!1,className:l,title:u,desc:c}=t,d=se(t,e9),f=A({width:o,height:i,x:0,y:0},s);return JL(a),v.jsxs(t9,A({width:o,height:i,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:n,className:l},d,{children:[v.jsx("title",{children:u}),v.jsx("desc",{children:c}),r]}))});function ob(e){const{isReversed:t,gradientId:n,size:r,direction:o,scale:i,colorMap:s}=e;return v.jsx("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${t?1:2}`]:`${r}px`,gradientUnits:"userSpaceOnUse",children:s.thresholds.map((a,l)=>{const u=i(a);if(u===void 0)return null;const c=t?1-u/r:u/r;return v.jsxs(S.Fragment,{children:[v.jsx("stop",{offset:c,stopColor:s.colors[l],stopOpacity:1}),v.jsx("stop",{offset:c,stopColor:s.colors[l+1],stopOpacity:1})]},a.toString()+l)})})}function r9(){const{chartId:e}=S.useContext(uf);return S.useCallback((t,n)=>`${e}-gradient-${n}-${t}`,[e])}function o9(){const{top:e,height:t,bottom:n,left:r,width:o,right:i}=pr(),s=e+t+n,a=r+o+i,l=r9(),{xAxisIds:u,xAxis:c,yAxisIds:d,yAxis:f}=Yr();return v.jsxs("defs",{children:[d.filter(p=>f[p].colorMap!==void 0).map(p=>{const h=l(p,"y"),{colorMap:g,scale:b,colorScale:m,reverse:y}=f[p];return(g==null?void 0:g.type)==="piecewise"?v.jsx(ob,{isReversed:!y,scale:b,colorMap:g,size:s,gradientId:h,direction:"y"},h):(g==null?void 0:g.type)==="continuous"?v.jsx(jx,{isReversed:!y,scale:b,colorScale:m,colorMap:g,size:s,gradientId:h,direction:"y"},h):null}),u.filter(p=>c[p].colorMap!==void 0).map(p=>{const h=l(p,"x"),{colorMap:g,scale:b,reverse:m,colorScale:y}=c[p];return(g==null?void 0:g.type)==="piecewise"?v.jsx(ob,{isReversed:m,scale:b,colorMap:g,size:a,gradientId:h,direction:"x"},h):(g==null?void 0:g.type)==="continuous"?v.jsx(jx,{isReversed:m,scale:b,colorScale:y,colorMap:g,size:a,gradientId:h,direction:"x"},h):null})]})}const ib=(e,t)=>{const n=t==="x"?Xk:WA;return[...(e==null?void 0:e.map((r,o)=>A({id:`defaultized-${t}-axis-${o}`},r)))??[],...e===void 0||e.findIndex(({id:r})=>r===n)===-1?[{id:n,scaleType:"linear"}]:[]]},i9=(e,t)=>{const n=S.useMemo(()=>ib(e,"x"),[e]),r=S.useMemo(()=>ib(t,"y"),[t]);return[n,r]},s9=()=>{go(()=>{var n;if(!window.matchMedia)return Lt.assign({skipAnimation:!0}),()=>{};const e=window.matchMedia("(prefers-reduced-motion)"),t=r=>{Lt.assign({skipAnimation:r.matches||void 0})};return t(e),(n=e.addEventListener)==null||n.call(e,"change",t),()=>{var r;(r=e.removeEventListener)==null||r.call(e,"change",t)}},[])},a9=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children"],l9=(e,t)=>{const{width:n,height:r,series:o,margin:i,xAxis:s,yAxis:a,zAxis:l,colors:u,dataset:c,sx:d,title:f,desc:p,disableAxisListener:h,highlightedItem:g,onHighlightChange:b,plugins:m,children:y}=e,x=se(e,a9),w=S.useRef(null),C=Li(t,w);s9();const[k,$]=i9(s,a),P={width:n,height:r,margin:i,svgRef:w},R={plugins:m},M={series:o,colors:u,dataset:c},O={xAxis:k,yAxis:$,dataset:c},E={zAxis:l,dataset:c},_={highlightedItem:g,onHighlightChange:b},T=A({},x,{width:n,height:r,ref:C,sx:d,title:f,desc:p,disableAxisListener:h});return{children:y,drawingProviderProps:P,seriesProviderProps:M,cartesianContextProps:O,zAxisContextProps:E,highlightedProviderProps:_,chartsSurfaceProps:T,pluginProviderProps:R,xAxis:k,yAxis:$}},u9=S.forwardRef(function(t,n){const{children:r,drawingProviderProps:o,seriesProviderProps:i,cartesianContextProps:s,zAxisContextProps:a,highlightedProviderProps:l,chartsSurfaceProps:u,pluginProviderProps:c}=l9(t,n);return v.jsx(L8,A({},o,{children:v.jsx(Z6,A({},c,{children:v.jsx(nO,A({},i,{children:v.jsx(K8,A({},s,{children:v.jsx(j8,A({},a,{children:v.jsx(D7,{children:v.jsx(sO,A({},l,{children:v.jsxs(n9,A({},u,{children:[v.jsx(o9,{}),r]}))}))})}))}))}))}))}))}),c9=qe("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}})),d9=(e,t)=>{const n=S.useRef(!1),r=S.useRef(null),[o,i]=S.useState(0),[s,a]=S.useState(0),l=S.useCallback(()=>{const u=r==null?void 0:r.current;if(!u)return;const d=lk(u).getComputedStyle(u),f=Math.floor(parseFloat(d.height))||0,p=Math.floor(parseFloat(d.width))||0;i(p),a(f)},[]);return S.useEffect(()=>{n.current=!0},[]),or(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const u=r.current;if(typeof ResizeObserver>"u")return()=>{};let c;const d=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{l()})});return u&&d.observe(u),()=>{c&&window.cancelAnimationFrame(c),u&&d.unobserve(u)}},[l,t,e]),{containerRef:r,width:e??o,height:t??s}},f9=["width","height","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis"],p9=(e,t)=>{const{width:n,height:r,margin:o,children:i,series:s,colors:a,dataset:l,desc:u,disableAxisListener:c,highlightedItem:d,onHighlightChange:f,plugins:p,sx:h,title:g,viewBox:b,xAxis:m,yAxis:y,zAxis:x}=e,w=se(e,f9),{containerRef:C,width:k,height:$}=d9(n,r),P=A({},w,{ownerState:{width:n,height:r},ref:C});return{hasIntrinsicSize:k&&$,chartContainerProps:{margin:o,children:i,series:s,colors:a,dataset:l,desc:u,disableAxisListener:c,highlightedItem:d,onHighlightChange:f,plugins:p,sx:h,title:g,viewBox:b,xAxis:m,yAxis:y,zAxis:x,width:k,height:$,ref:t},resizableChartContainerProps:P}},h9=S.forwardRef(function(t,n){const{hasIntrinsicSize:r,chartContainerProps:o,resizableChartContainerProps:i}=p9(t,n);return v.jsx(c9,A({},i,{children:r?v.jsx(u9,A({},o)):null}))}),m9=["message"],g9=qe("text")(({theme:e})=>A({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function v9(e){const{message:t}=e,n=se(e,m9),{top:r,left:o,height:i,width:s}=pr();return v.jsx(g9,A({x:o+s/2,y:r+i/2},n,{children:t??"Loading data…"}))}const y9=["message"],x9=qe("text")(({theme:e})=>A({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function b9(e){const{message:t}=e,n=se(e,y9),{top:r,left:o,height:i,width:s}=pr();return v.jsx(x9,A({x:o+s/2,y:r+i/2},n,{children:t??"No data to display"}))}function w9(){const e=No();return Object.values(e).every(t=>{if(!t)return!0;const{series:n,seriesOrder:r}=t;return r.every(o=>n[o].data.length===0)})}function S9(e){var n,r,o,i;const t=w9();if(e.loading){const s=((n=e.slots)==null?void 0:n.loadingOverlay)??v9;return v.jsx(s,A({},(r=e.slotProps)==null?void 0:r.loadingOverlay))}if(t){const s=((o=e.slots)==null?void 0:o.noDataOverlay)??b9;return v.jsx(s,A({},(i=e.slotProps)==null?void 0:i.noDataOverlay))}return null}const k9=["classes","color","cornerRadius","dataIndex","endAngle","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle","highlightScope"];function C9(e){return Hn("MuiPieArc",e)}fr("MuiPieArc",["root","highlighted","faded"]);const $9=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return Vn(i,C9,t)},P9=qe(N5.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})(({theme:e})=>({stroke:(e.vars||e).palette.background.paper,strokeWidth:1,strokeLinejoin:"round"}));function T9(e){const{classes:t,color:n,cornerRadius:r,dataIndex:o,endAngle:i,id:s,innerRadius:a,isFaded:l,isHighlighted:u,onClick:c,outerRadius:d,paddingAngle:f,startAngle:p}=e,h=se(e,k9),g={id:s,dataIndex:o,classes:t,color:n,isFaded:l,isHighlighted:u},b=$9(g),m=ZL();return v.jsx(P9,A({d:Bc([p,i,f,a,d,r],(y,x,w,C,k,$)=>rC().cornerRadius($)({padAngle:w,startAngle:y,endAngle:x,innerRadius:C,outerRadius:k})),visibility:Bc([p,i],(y,x)=>y===x?"hidden":"visible"),onClick:c,cursor:c?"pointer":"unset",ownerState:g,className:b.root},h,m({type:"pie",seriesId:s,dataIndex:o})))}const E9={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,color:s,isFaded:a})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:n,startAngle:(r+o)/2,endAngle:(r+o)/2,paddingAngle:i,fill:s,opacity:a?.3:1}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,color:s,isFaded:a})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,fill:s,opacity:a?.3:1}),config:{tension:120,friction:14,clamp:!0}},M9={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,arcLabelRadius:n,cornerRadius:r,startAngle:o,endAngle:i,paddingAngle:s})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:r,arcLabelRadius:n,startAngle:(o+i)/2,endAngle:(o+i)/2,paddingAngle:s,opacity:0}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,arcLabelRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2,opacity:0}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r,arcLabelRadius:o})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r,arcLabelRadius:o,opacity:1}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,arcLabelRadius:s})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,arcLabelRadius:s,opacity:1}),config:{tension:120,friction:14,clamp:!0}};function D5(e){const{id:t,data:n,faded:r,highlighted:o,paddingAngle:i=0,innerRadius:s=0,arcLabelRadius:a,outerRadius:l,cornerRadius:u=0}=e,{isFaded:c,isHighlighted:d}=c0();return S.useMemo(()=>n.map((p,h)=>{const g={seriesId:t,dataIndex:h},b=d(g),m=!b&&c(g),y=A({additionalRadius:0},m&&r||b&&o||{}),x=Math.max(0,Math.PI*(y.paddingAngle??i)/180),w=Math.max(0,y.innerRadius??s),C=Math.max(0,y.outerRadius??l+y.additionalRadius),k=y.cornerRadius??u,$=y.arcLabelRadius??a??(w+C)/2;return A({},p,y,{isFaded:m,isHighlighted:b,paddingAngle:x,innerRadius:w,outerRadius:C,cornerRadius:k,arcLabelRadius:$})}),[u,s,l,i,a,n,r,o,c,d,t])}const _9=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"],A9=["startAngle","endAngle","paddingAngle","innerRadius","arcLabelRadius","outerRadius","cornerRadius"];function O9(e){const{slots:t,slotProps:n,innerRadius:r=0,outerRadius:o,cornerRadius:i=0,paddingAngle:s=0,id:a,highlighted:l,faded:u={additionalRadius:-5},data:c,onItemClick:d,skipAnimation:f}=e,p=se(e,_9),h=D5({innerRadius:r,outerRadius:o,cornerRadius:i,paddingAngle:s,id:a,highlighted:l,faded:u,data:c}),g=j5(h,A({},E9,{immediate:f})),{highlightScope:b}=c0();if(c.length===0)return null;const m=(t==null?void 0:t.pieArc)??T9;return v.jsx("g",A({},p,{children:g((y,x,w,C)=>{let{startAngle:k,endAngle:$,paddingAngle:P,innerRadius:R,outerRadius:M,cornerRadius:O}=y,E=se(y,A9);return v.jsx(m,A({startAngle:k,endAngle:$,paddingAngle:P,innerRadius:R,outerRadius:M,cornerRadius:O,style:E,id:a,color:x.color,dataIndex:C,highlightScope:b,isFaded:x.isFaded,isHighlighted:x.isHighlighted,onClick:d&&(_=>{d(_,{type:"pie",seriesId:a,dataIndex:C},x)})},n==null?void 0:n.pieArc))})}))}const R9=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function j9(e){return Hn("MuiPieArcLabel",e)}const I9=fr("MuiPieArcLabel",["root","highlighted","faded"]),L9=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return Vn(i,j9,t)},N9=qe(N5.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none"})),sb=(e,t)=>(n,r,o,i,s)=>{if(!e)return 0;const[a,l]=rC().cornerRadius(s).centroid({padAngle:o,startAngle:n,endAngle:r,innerRadius:i,outerRadius:i});return t==="x"?a:l};function D9(e){const{id:t,classes:n,color:r,startAngle:o,endAngle:i,paddingAngle:s,arcLabelRadius:a,cornerRadius:l,formattedArcLabel:u,isHighlighted:c,isFaded:d,style:f}=e,p=se(e,R9),g=L9({id:t,classes:n,color:r,isFaded:d,isHighlighted:c});return v.jsx(N9,A({className:g.root},p,{style:A({x:Bc([o,i,s,a,l],sb(u,"x")),y:Bc([o,i,s,a,l],sb(u,"y"))},f),children:u}))}const F9=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],z9=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],V9=180/Math.PI;function H9(e,t,n){var o;if(!e||(n.endAngle-n.startAngle)*V9{let{startAngle:C,endAngle:k,paddingAngle:$,innerRadius:P,outerRadius:R,arcLabelRadius:M,cornerRadius:O}=x,E=se(x,z9);return v.jsx(y,A({startAngle:C,endAngle:k,paddingAngle:$,innerRadius:P,outerRadius:R,arcLabelRadius:M,cornerRadius:O,style:E,id:l,color:w.color,isFaded:w.isFaded,isHighlighted:w.isHighlighted,formattedArcLabel:H9(t,n,w)},p==null?void 0:p.pieArcLabel))})}))}function ab(e,t){const{height:n,width:r}=t,{cx:o,cy:i}=e,s=Math.min(r,n)/2,a=lo(o??"50%",r),l=lo(i??"50%",n);return{cx:a,cy:l,availableRadius:s}}function U9(e){const{skipAnimation:t,slots:n,slotProps:r,onItemClick:o}=e,i=rO(),{left:s,top:a,width:l,height:u}=S.useContext(uf);if(i===void 0)return null;const{series:c,seriesOrder:d}=i;return v.jsxs("g",{children:[d.map(f=>{const{innerRadius:p,outerRadius:h,cornerRadius:g,paddingAngle:b,data:m,cx:y,cy:x,highlighted:w,faded:C}=c[f],{cx:k,cy:$,availableRadius:P}=ab({cx:y,cy:x},{width:l,height:u}),R=lo(h??P,P),M=lo(p??0,P);return v.jsx("g",{transform:`translate(${s+k}, ${a+$})`,children:v.jsx(O9,{innerRadius:M,outerRadius:R,cornerRadius:g,paddingAngle:b,id:f,data:m,skipAnimation:t,highlighted:w,faded:C,onItemClick:o,slots:n,slotProps:r})},f)}),d.map(f=>{const{innerRadius:p,outerRadius:h,arcLabelRadius:g,cornerRadius:b,paddingAngle:m,arcLabel:y,arcLabelMinAngle:x,data:w,cx:C,cy:k}=c[f],{cx:$,cy:P,availableRadius:R}=ab({cx:C,cy:k},{width:l,height:u}),M=lo(h??R,R),O=lo(p??0,R),E=g===void 0?(M+O)/2:lo(g,R);return v.jsx("g",{transform:`translate(${s+$}, ${a+P})`,children:v.jsx(W9,{innerRadius:O,outerRadius:M??R,arcLabelRadius:E,cornerRadius:b,paddingAngle:m,id:f,data:w,skipAnimation:t,arcLabel:y,arcLabelMinAngle:x,slots:n,slotProps:r})},f)})]})}const B9=()=>is().direction==="rtl",G9=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],K9={top:5,bottom:5,left:5,right:100},Y9={top:5,bottom:5,left:100,right:5},q9=S.forwardRef(function(t,n){const{xAxis:r,yAxis:o,series:i,width:s,height:a,margin:l,colors:u,sx:c,tooltip:d={trigger:"item"},axisHighlight:f={x:"none",y:"none"},skipAnimation:p,legend:h,topAxis:g=null,leftAxis:b=null,rightAxis:m=null,bottomAxis:y=null,children:x,slots:w,slotProps:C,onItemClick:k,loading:$,highlightedItem:P,onHighlightChange:R,className:M}=t,O=se(t,G9),E=B9(),_=A({},E?Y9:K9,l),T=A({direction:"column",position:{vertical:"middle",horizontal:E?"left":"right"}},h);return v.jsxs(h9,A({},O,{ref:n,series:i.map(I=>A({type:"pie"},I)),width:s,height:a,margin:_,xAxis:r??[{id:Xk,scaleType:"point",data:[...new Array(Math.max(...i.map(I=>I.data.length)))].map((I,L)=>L)}],yAxis:o,colors:u,sx:c,disableAxisListener:(d==null?void 0:d.trigger)!=="axis"&&(f==null?void 0:f.x)==="none"&&(f==null?void 0:f.y)==="none",highlightedItem:P,onHighlightChange:R,className:M,children:[v.jsx(dj,{topAxis:g,leftAxis:b,rightAxis:m,bottomAxis:y,slots:w,slotProps:C}),v.jsx(U9,{slots:w,slotProps:C,onItemClick:k,skipAnimation:p}),v.jsx(S9,{loading:$,slots:w,slotProps:C}),v.jsx(SI,A({},T,{slots:w,slotProps:C})),v.jsx(PI,A({},f)),!$&&v.jsx(oI,A({},d,{slots:w,slotProps:C})),x]}))});function X9({setInfo:e}){const t=[{id:0,value:33,name:"Software",skills:[{name:"Django",logo:"https://www.svgrepo.com/show/353657/django-icon.svg"},{name:"React",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRQ-RS3Oeb0xs2q4aJmYZ4FGWnFuPnn4yFNHg&s"},{name:"Python",logo:"https://i.pinimg.com/originals/2f/9c/11/2f9c11f9e55efbf1791f12c06d60729b.jpg"},{name:"Java",logo:"https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/181_Java_logo_logos-512.png"},{name:"JavaScript",logo:"https://upload.wikimedia.org/wikipedia/commons/6/6a/JavaScript-logo.png"},{name:"C",logo:"https://cdn.iconscout.com/icon/free/png-256/free-c-58-1175247.png"},{name:"PHP",logo:"https://pngimg.com/uploads/php/small/php_PNG7.png"},{name:"Motoko",logo:"https://images.squarespace-cdn.com/content/v1/54437e21e4b048c830a0cff1/1582790973231-Y6Y49DRMFQTDOL5F9T32/motoko-master-01.png?format=2500w"},{name:"Rust",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/2/20/Rustacean-orig-noshadow.svg/1200px-Rustacean-orig-noshadow.svg.png"},{name:"Anchor",logo:"https://cryptologos.cc/logos/solana-sol-logo.png"},{name:"Sass",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/96/Sass_Logo_Color.svg/1280px-Sass_Logo_Color.svg.png"},{name:"TypeScript",logo:"https://cdn-icons-png.flaticon.com/256/919/919832.png"},{name:"Postman",logo:"https://uxwing.com/wp-content/themes/uxwing/download/brands-and-social-media/postman-icon.png"},{name:"SQL",logo:"https://icons.veryicon.com/png/o/application/designer-icon/sql-5.png"},{name:"MongoDB",logo:"https://seeklogo.com/images/M/mongodb-logo-D13D67C930-seeklogo.com.png"},{name:"MySQL",logo:"https://w7.pngwing.com/pngs/841/331/png-transparent-mysql-database-phpmyadmin-postgresql-innodb-mysql-orange-logo-area-thumbnail.png"},{name:"jQuery",logo:"https://cdn.worldvectorlogo.com/logos/jquery-4.svg"},{name:"XAMPP",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTeBr8B8nBG3QP5UIoWaS7xNXhXHrKAkmLsZA&s"},{name:"Bootstrap",logo:"https://cdn-icons-png.flaticon.com/512/5968/5968672.png"},{name:"Flask",logo:"https://cms-assets.tutsplus.com/uploads/users/30/posts/16037/preview_image/flask.png"},{name:"Haskell",logo:"https://i.pinimg.com/originals/06/53/a2/0653a2a7b86d7be59dd1738c4ce88096.png"}]},{id:1,value:33,name:"AI",skills:[{name:"Machine Learning",logo:"https://cdn-icons-png.freepik.com/512/8365/8365406.png"},{name:"Data Visualization",logo:"https://static.vecteezy.com/system/resources/thumbnails/001/187/079/small/chart.png"},{name:"Deep Learning",logo:"https://cdn-icons-png.flaticon.com/512/8637/8637101.png"},{name:"Algorithms",logo:"https://cdn-icons-png.flaticon.com/512/10061/10061724.png"},{name:"numpy",logo:"https://user-images.githubusercontent.com/50221806/86498208-af4bfe00-bd39-11ea-88fa-c747ae0ddd85.png"},{name:"pandas",logo:"https://pandas.pydata.org/static/img/favicon_white.ico"},{name:"matplotlib",logo:"https://pydata.org/wp-content/uploads/2016/07/matplotlib-logo-300.png"},{name:"seaborn",logo:"https://user-images.githubusercontent.com/315810/92159303-30d41100-edfb-11ea-8107-1c5352202571.png"},{name:"scikit-learn",logo:"https://avatars.githubusercontent.com/u/17349883?s=280&v=4"},{name:"Jupyter",logo:"https://raw.githubusercontent.com/jithurjacob/vscode-nbpreviewer/master/images/jupyter.png"}]},{id:2,value:33,name:"DevOps",skills:[{name:"Linux",logo:"https://seeklogo.com/images/L/Linux_Tux-logo-DA252F3C21-seeklogo.com.png"},{name:"Docker",logo:"https://cdn-icons-png.flaticon.com/512/5969/5969124.png"},{name:"Git",logo:"https://git-scm.com/images/logos/downloads/Git-Icon-1788C.png"},{name:"VirtualBox",logo:"https://styles.redditmedia.com/t5_7sqfde/styles/communityIcon_ix7q9wstcxna1.png"},{name:"Nginx",logo:"https://iconape.com/wp-content/png_logo_vector/nginx.png"},{name:"Ansible",logo:"https://docs.ansible.com/ansible/2.9/_static/images/logo_invert.png"},{name:"Wireshark",logo:"https://cdn.icon-icons.com/icons2/1495/PNG/512/wireshark_103123.png"},{name:"Networking",logo:"https://static.vecteezy.com/system/resources/thumbnails/018/923/768/small_2x/timeline-diagram-template-png.png"}]}];return v.jsx("div",{className:"pie-div",children:v.jsx(q9,{colors:["wheat","#ffccff","#ccffff"],series:[{data:t,paddingAngle:5,innerRadius:50,cornerRadius:5,startAngle:0,endAngle:360,arcLabel:n=>`${n.name}`,highlightScope:{faded:"global",highlighted:"item"},faded:{innerRadius:30,additionalRadius:-30,color:"grey"},highlighted:{innerRadius:50,additionalRadius:10}}],sx:{[`& .${I9.root}`]:{fill:"black",fontSize:12,fontWeight:"bold"}},tooltip:{enabled:!1},height:330,onHighlightChange:n=>{n&&e(t[n.dataIndex].skills)}})})}function lb(e){const t={display:"flex",font:"monospace",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},n={display:"flex",textAlign:"left",font:"monospace",color:"white",fontSize:"15px",opacity:"0.8",padding:"1rem",border:"0.1px solid rgb(100, 100, 100)",height:"auto",borderRadius:"10px",overflow:"visible",zIndex:"-1"},r={display:"flex",flexWrap:"wrap",columnGap:"0px",padding:"0",margin:"0"},o={display:"flex",alignItems:"center",justifyContent:"center",padding:"5px",margin:"5px",borderRadius:"5px",backgroundColor:"rgba(0, 0, 0, 0.5)",color:"white",fontSize:"12px",fontWeight:"bold",width:"auto"},i={skillData:{display:"block",textAlign:"center",font:"monospace",color:"white",fontSize:"15px",margin:"15px 35px 0 0",opacity:"0.8",padding:"1rem",border:"0.1px solid rgb(100, 100, 100)",height:"auto",borderRadius:"10px"}},[s,a]=S.useState([]);return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"skill-container",children:[v.jsxs("div",{style:t,onMouseEnter:()=>e.setExpanded(!1),children:[v.jsx("div",{children:"Skills"}),v.jsx("div",{className:"close-btn",children:v.jsx(ul,{})})]}),v.jsxs("div",{style:window.innerWidth<798?i.skillData:n,children:[v.jsx(X9,{setInfo:a}),v.jsx("div",{className:"pie-info",children:v.jsx("div",{style:r,children:s.map((l,u)=>v.jsxs("div",{style:o,children:[l.logo&&v.jsx("img",{src:l.logo,alt:"",style:{width:"20px",height:"20px",marginRight:"5px"}}),l.name]},u))})})]})]})})}function Q9(e){const t={display:"flex",font:"monospace",color:"white",fontSize:"15px",margin:"15px 35px 0 0",opacity:"0.8",textAlign:"left",padding:"1rem",border:"none",height:"auto",borderRadius:"10px"},n={width:"100px",height:"100px",margin:"0 10px 0 0"},r={display:"flex",font:"monospace",fontSize:"20px",textAlign:"left",fontWeight:"bold"},o={display:"flex",font:"monospace",color:"white",fontSize:"15px",textAlign:"left",fontWeight:"bold"};return v.jsxs("div",{className:"achievement-card",style:t,children:[v.jsx("img",{src:e.logo,alt:"badge",style:n}),v.jsxs("div",{children:[v.jsx("div",{style:r,children:e.content.achievement}),v.jsx("div",{style:o,children:e.content.additional}),v.jsx("div",{style:{color:"grey"},children:e.content.year})]})]})}const Z9="/assets/badge-BXfHEwqV.png",J9="/assets/badge2-CzfoDTcJ.png",eN="/assets/badge3-DyI0Y8Uf.png";function tN(e){const t={display:"block",font:"monospace",position:"relative",margin:"10px",padding:"10px"},n={display:"flex",font:"monospace",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},r=[Z9,J9,eN];return v.jsx(v.Fragment,{children:v.jsxs("div",{style:t,children:[v.jsxs("div",{style:n,onMouseEnter:()=>e.setExpanded(!1),children:[v.jsx("div",{children:"Achievements"}),v.jsx("div",{className:"close-btn",children:v.jsx(ul,{})})]}),v.jsx("div",{className:"achievements-list",children:e.content.map((o,i)=>v.jsx(Q9,{logo:r[i],content:o},i))})]})})}function nN({certification:e,index:t}){return v.jsxs("div",{className:"card",children:[v.jsx("div",{className:"card__side card__side--front-1",children:v.jsx("div",{className:"certification-card",children:v.jsxs("div",{children:[v.jsx("div",{style:window.innerWidth<798?{fontSize:"12px"}:{fontSize:"16px"},className:"card-content",children:e.certification}),v.jsx("div",{className:"card-content",style:{fontSize:"12px",color:"grey"},children:e.year}),v.jsx("div",{style:window.innerWidth<798?{fontSize:"10px",color:"grey"}:{fontSize:"12px",color:"grey"},children:e.institution})]})},t)}),v.jsx("div",{className:"card-content card__side card__side--back card__side--back-1",children:v.jsx("img",{src:e.image,alt:"certificate",style:{width:"100%",height:"100%"}})})]})}const rN="/assets/cs50x-B0So1Q_L.png",oN="/assets/acm_ml-DS6srYd9.png",iN="/assets/cs50w-ClLToWVo.png",sN="/assets/google_cyber-DZDomvYC.png",aN="/assets/nptel_python-ScttXPRu.png";function lN(e){const t={display:"block",font:"`Times New Roman`, `serif`",position:"relative",width:"100%",margin:"10px",padding:"10px"},n={display:"flex",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},r=window.innerWidth<798?{display:"flex",flexWrap:"wrap",margin:"4px",padding:"0",paddingTop:"10px"}:{display:"flex",flexWrap:"wrap",marginTop:"10px",padding:"0"},o={title:"Certifications",description:"Proofs of sacrifices and dedication",points:["Harvard","Google","IIT Madras","ACM..."],content:[{certification:"CS50W: Web Programming with Python and JavaScript",year:"2024",institution:"Harvard University",image:iN},{certification:"Google Cybersecurity Professional",year:"2024",institution:"Coursera",image:sN},{certification:"Machine Learning using Python",year:"2024",institution:"Association of Computing Machinery",image:oN},{certification:"CS50: Introduction to Computer Science",year:"2023",institution:"Harvard University",image:rN},{certification:"Programming, Data Structures and Algorithms using Python",year:"2024",institution:"IIT Madras (NPTEL)",image:aN}]};return v.jsx(v.Fragment,{children:v.jsxs("div",{style:t,children:[v.jsxs("div",{style:n,onMouseEnter:()=>e.setExpanded(!1),children:[v.jsx("div",{children:"Certifications"}),v.jsx("div",{className:"close-btn",children:v.jsx(ul,{})})]}),v.jsx("div",{style:r,classname:"certificates-div",children:o.content.map((i,s)=>v.jsx(nN,{index:s,certification:i},s))})]})})}function uN({isExpanded:e,setExpanded:t}){const n={title:"Education",description:"Colleges, Schools, and Degrees",points:["College of Engineering, Trivandrum","University College, TVM","St. Joseph's HSS..."],content:[{ongoing:!0,degree:"Masters in Computer Applications",school:"College of Engineering, Trivandrum",year:"2023 - Present",marks:"CGPA: 9.36"},{ongoing:!1,degree:"Bachelor of Science in Mathematics",school:"University College, Trivandrum",year:"2020 - 2023",marks:"CGPA: 9.63 (Core)"},{ongoing:!1,degree:"Higher Secondary",school:"St. Joseph's Higher Secondary School",year:"2018 - 2020",marks:"Percentage: 94%"}]},r={title:"Skills",description:"Products of consistent learning and practice",points:["Django","React","Python","Java","C..."],content:[]},o={title:"Certifications",description:"Proofs of sacrifices and dedication",points:["Harvard","Google","IIT Madras","ACM..."]},i={title:"Achievements",description:"Seeds of motivation and inspiration",points:["College Topper","IIT JAM","Kerala MCA Entrance..."],content:[{achievement:"College Topper",year:"2023",additional:"University College, Trivandrum"},{achievement:"AIR 1778",year:"2023",additional:"IIT JAM "},{achievement:"Rank 20",year:"2023",additional:"Kerala MCA Entrance"}]},s={overflow:"hidden"},a={display:"block",position:"relative",backgroundColor:"black",height:"100%",width:"100%",borderRadius:"20px",overflow:"hidden"},l={display:"grid",gridTemplateColumns:"1fr 1fr",gridGap:"20px"},u={cards:{...l,display:"block"},expanded:{...a}},[c,d]=S.useState("none"),f=S.useRef(null);return S.useEffect(()=>{f.current&&e&&f.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[]),v.jsxs("div",{ref:f,style:s,children:[v.jsxs("div",{className:"expandedDiv",style:e?window.innerWidth<798?u.expanded:a:{display:"none"},onMouseLeave:()=>t(!1),children:[c=="Education"&&v.jsx(HA,{...n,setExpanded:t}),c=="Skills"&&v.jsx(lb,{...lb,setExpanded:t}),c=="Achievements"&&v.jsx(tN,{...i,setExpanded:t}),c=="Certifications"&&v.jsx(lN,{setExpanded:t})]}),v.jsxs("div",{style:window.innerWidth<798?u.cards:l,className:"more-details",children:[v.jsx(Jl,{...n,isExpanded:e,setExpanded:t,setHovering:d}),v.jsx(Jl,{...r,isExpanded:e,setExpanded:t,setHovering:d}),v.jsx(Jl,{...o,isExpanded:e,setExpanded:t,setHovering:d}),v.jsx(Jl,{...i,isExpanded:e,setExpanded:t,setHovering:d})]})]})}function cN({isExpanded:e,setExpanded:t}){const n={flex:4,padding:"1rem",display:"block",backgroundColor:"black",maxWidth:"100%",height:"auto",background:"#000",borderRadius:"0 1.5rem 1.5rem 0",overflow:"hidden",zIndex:2},r={...n,borderRadius:"0 0 1.5rem 1.5rem"};return v.jsx(v.Fragment,{children:v.jsxs("div",{style:window.innerWidth<798?r:n,onMouseLeave:()=>t(!1),children:[v.jsx(kE,{isExpanded:e}),v.jsx(uN,{isExpanded:e,setExpanded:t})]})})}const dN="/assets/dp_cartoon-C0cUQ8Bq.jpeg";function fN(e,t,n){let[r,o]=S.useState(e||t),i=S.useRef(e!==void 0),s=e!==void 0;S.useEffect(()=>{let u=i.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:r,l=S.useCallback((u,...c)=>{let d=(f,...p)=>{n&&(Object.is(a,f)||n(f,...p)),s||(a=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...h)=>{let g=u(s?a:p,...h);return d(g,...c),s?p:g})):(s||o(u),d(u,...c))},[s,a,n]);return[a,l]}function mm(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function pN(e){let[t,n]=fN(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=S.useCallback(()=>{n(!0)},[n]),o=S.useCallback(()=>{n(!1)},[n]),i=S.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}const hN=1500,ub=500;let to={},mN=0,_s=!1,Un=null,no=null;function gN(e={}){let{delay:t=hN,closeDelay:n=ub}=e,{isOpen:r,open:o,close:i}=pN(e),s=S.useMemo(()=>`${++mN}`,[]),a=S.useRef(),l=()=>{to[s]=d},u=()=>{for(let p in to)p!==s&&(to[p](!0),delete to[p])},c=()=>{clearTimeout(a.current),a.current=null,u(),l(),_s=!0,o(),Un&&(clearTimeout(Un),Un=null),no&&(clearTimeout(no),no=null)},d=p=>{p||n<=0?(clearTimeout(a.current),a.current=null,i()):a.current||(a.current=setTimeout(()=>{a.current=null,i()},n)),Un&&(clearTimeout(Un),Un=null),_s&&(no&&clearTimeout(no),no=setTimeout(()=>{delete to[s],no=null,_s=!1},Math.max(ub,n)))},f=()=>{u(),l(),!r&&!Un&&!_s?Un=setTimeout(()=>{Un=null,_s=!0,c()},t):r||c()};return S.useEffect(()=>()=>{clearTimeout(a.current),to[s]&&delete to[s]},[s]),{isOpen:r,open:p=>{!p&&t>0&&!a.current?f():c()},close:d}}const Yi=typeof document<"u"?ze.useLayoutEffect:()=>{};function gm(e){const t=S.useRef(null);return Yi(()=>{t.current=e},[e]),S.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Gc={prefix:String(Math.round(Math.random()*1e10)),current:0},F5=ze.createContext(Gc),vN=ze.createContext(!1);let yN=!!(typeof window<"u"&&window.document&&window.document.createElement),Ap=new WeakMap;function xN(e=!1){let t=S.useContext(F5),n=S.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=Ap.get(i);s==null?Ap.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Ap.delete(i))}n.current=++t.current}return n.current}function bN(e){let t=S.useContext(F5);t===Gc&&!yN&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=xN(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function wN(e){let t=ze.useId(),[n]=S.useState(Z0()),r=n?"react-aria":`react-aria${Gc.prefix}`;return e||`${r}-${t}`}const SN=typeof ze.useId=="function"?wN:bN;function kN(){return!1}function CN(){return!0}function $N(e){return()=>{}}function Z0(){return typeof ze.useSyncExternalStore=="function"?ze.useSyncExternalStore($N,kN,CN):S.useContext(vN)}let PN=!!(typeof window<"u"&&window.document&&window.document.createElement),Kc=new Map;function TN(e){let[t,n]=S.useState(e),r=S.useRef(null),o=SN(t),i=S.useCallback(s=>{r.current=s},[]);return PN&&Kc.set(o,i),Yi(()=>{let s=o;return()=>{Kc.delete(s)}},[o]),S.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),o}function EN(e,t){if(e===t)return e;let n=Kc.get(e);if(n)return n(t),t;let r=Kc.get(t);return r?(r(e),e):t}function MN(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const xl=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},vm=e=>e&&"window"in e&&e.window===e?e:xl(e).defaultView||window;function vo(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=MN(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Zt(i,s):o==="id"&&i&&s?t.id=EN(i,s):t[o]=s!==void 0?s:i}}return t}const _N=new Set(["id"]),AN=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ON=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),RN=/^(data-.*)$/;function jN(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(_N.has(s)||n&&AN.has(s)||r&&ON.has(s)||o!=null&&o.has(s)||RN.test(s))&&(i[s]=e[s]);return i}function J0(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function IN(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function LN(){return IN(/^Mac/i)}function NN(){return J0(/AppleWebKit/i)&&!DN()}function DN(){return J0(/Chrome/i)}function FN(){return J0(/Android/i)}function zN(){return typeof window.ResizeObserver<"u"}function VN(e){const{ref:t,onResize:n}=e;S.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(zN()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function HN(e){return e.mozInputSource===0&&e.isTrusted?!0:FN()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}let WN=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}};function UN(e){let t=S.useRef({isFocused:!1,observer:null});Yi(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=gm(r=>{e==null||e(r)});return S.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new WN("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let as=null,BN=new Set,oa=new Map,Ro=!1,ym=!1;function ev(e,t){for(let n of BN)n(e,t)}function GN(e){return!(e.metaKey||!LN()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Yc(e){Ro=!0,GN(e)&&(as="keyboard",ev("keyboard",e))}function Bt(e){as="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ro=!0,ev("pointer",e))}function z5(e){HN(e)&&(Ro=!0,as="virtual")}function V5(e){e.target===window||e.target===document||(!Ro&&!ym&&(as="virtual",ev("virtual",e)),Ro=!1,ym=!1)}function H5(){Ro=!1,ym=!0}function cb(e){if(typeof window>"u"||oa.get(vm(e)))return;const t=vm(e),n=xl(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ro=!0,r.apply(this,arguments)},n.addEventListener("keydown",Yc,!0),n.addEventListener("keyup",Yc,!0),n.addEventListener("click",z5,!0),t.addEventListener("focus",V5,!0),t.addEventListener("blur",H5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Bt,!0),n.addEventListener("pointermove",Bt,!0),n.addEventListener("pointerup",Bt,!0)):(n.addEventListener("mousedown",Bt,!0),n.addEventListener("mousemove",Bt,!0),n.addEventListener("mouseup",Bt,!0)),t.addEventListener("beforeunload",()=>{W5(e)},{once:!0}),oa.set(t,{focus:r})}const W5=(e,t)=>{const n=vm(e),r=xl(e);t&&r.removeEventListener("DOMContentLoaded",t),oa.has(n)&&(n.HTMLElement.prototype.focus=oa.get(n).focus,r.removeEventListener("keydown",Yc,!0),r.removeEventListener("keyup",Yc,!0),r.removeEventListener("click",z5,!0),n.removeEventListener("focus",V5,!0),n.removeEventListener("blur",H5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Bt,!0),r.removeEventListener("pointermove",Bt,!0),r.removeEventListener("pointerup",Bt,!0)):(r.removeEventListener("mousedown",Bt,!0),r.removeEventListener("mousemove",Bt,!0),r.removeEventListener("mouseup",Bt,!0)),oa.delete(n))};function KN(e){const t=xl(e);let n;return t.readyState!=="loading"?cb(e):(n=()=>{cb(e)},t.addEventListener("DOMContentLoaded",n)),()=>W5(e,n)}typeof document<"u"&&KN();function YN(){return as!=="pointer"}function qN(){return as}function XN(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=S.useRef({isFocusWithin:!1}),s=S.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),a=UN(s),l=S.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,a(u))},[r,o,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let qc=!1,Op=0;function xm(){qc=!0,setTimeout(()=>{qc=!1},50)}function db(e){e.pointerType==="touch"&&xm()}function QN(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",db):document.addEventListener("touchend",xm),Op++,()=>{Op--,!(Op>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",db):document.removeEventListener("touchend",xm))}}function U5(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=S.useState(!1),a=S.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;S.useEffect(QN,[]);let{hoverProps:l,triggerHoverEnd:u}=S.useMemo(()=>{let c=(p,h)=>{if(a.pointerType=h,o||h==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let g=p.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:h}),n&&n(!0),s(!0)},d=(p,h)=>{if(a.pointerType="",a.target=null,h==="touch"||!a.isHovered)return;a.isHovered=!1;let g=p.currentTarget;r&&r({type:"hoverend",target:g,pointerType:h}),n&&n(!1),s(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=p=>{qc&&p.pointerType==="mouse"||c(p,p.pointerType)},f.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,p.pointerType)}):(f.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!qc&&c(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,o,a]);return S.useEffect(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:l,isHovered:i}}function ZN(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=S.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=gm(l=>{n&&fu(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=gm(l=>{n&&n(l)});S.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,c=xl(u);if(typeof PointerEvent<"u"){let d=f=>{l.isPointerDown&&fu(f,t)&&a(f),l.isPointerDown=!1};return c.addEventListener("pointerdown",s,!0),c.addEventListener("pointerup",d,!0),()=>{c.removeEventListener("pointerdown",s,!0),c.removeEventListener("pointerup",d,!0)}}else{let d=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&fu(p,t)&&a(p),l.isPointerDown=!1},f=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&fu(p,t)&&a(p),l.isPointerDown=!1};return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",f,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",f,!0)}}},[t,r,s,a])}function fu(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function JN(e,t){let n=jN(e,{labelable:!0}),{hoverProps:r}=U5({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:vo(n,r,{role:"tooltip"})}}const tv=typeof document<"u"?ze.useLayoutEffect:()=>{};function eD(e){const t=S.useRef(null);return tv(()=>{t.current=e},[e]),S.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}let fb=new Map;function tD(e,t){if(e===t)return e;let n=fb.get(e);if(n)return n(t),t;let r=fb.get(t);return r?(r(e),e):t}function nD(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ls=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},bm=e=>e&&"window"in e&&e.window===e?e:ls(e).defaultView||window;function pb(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=nD(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Zt(i,s):o==="id"&&i&&s?t.id=tD(i,s):t[o]=s!==void 0?s:i}}return t}function hb(e){if(rD())e.focus({preventScroll:!0});else{let t=oD(e);e.focus(),iD(t)}}let pu=null;function rD(){if(pu==null){pu=!1;try{document.createElement("div").focus({get preventScroll(){return pu=!0,!0}})}catch{}}return pu}function oD(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function aD(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function B5(e){let t=null;return()=>(t==null&&(t=e()),t)}const lD=B5(function(){return aD(/^Mac/i)}),uD=B5(function(){return sD(/Android/i)});let Jo=new Map,wm=new Set;function mb(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Jo.get(r.target);o||(o=new Set,Jo.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Jo.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Jo.delete(r.target)),Jo.size===0)){for(let i of wm)i();wm.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?mb():document.addEventListener("DOMContentLoaded",mb));function cD(e){requestAnimationFrame(()=>{Jo.size===0?e():wm.add(e)})}function dD(e,t){tv(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function fD(e){return e.mozInputSource===0&&e.isTrusted?!0:uD()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class pD{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function hD(e){let t=S.useRef({isFocused:!1,observer:null});tv(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=eD(r=>{e==null||e(r)});return S.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new pD("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function mD(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=S.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=hD(i),a=S.useCallback(l=>{const u=ls(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}let bl=null,gD=new Set,ia=new Map,jo=!1,Sm=!1;function nv(e,t){for(let n of gD)n(e,t)}function vD(e){return!(e.metaKey||!lD()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Xc(e){jo=!0,vD(e)&&(bl="keyboard",nv("keyboard",e))}function Gt(e){bl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(jo=!0,nv("pointer",e))}function G5(e){fD(e)&&(jo=!0,bl="virtual")}function K5(e){e.target===window||e.target===document||(!jo&&!Sm&&(bl="virtual",nv("virtual",e)),jo=!1,Sm=!1)}function Y5(){jo=!1,Sm=!0}function gb(e){if(typeof window>"u"||ia.get(bm(e)))return;const t=bm(e),n=ls(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){jo=!0,r.apply(this,arguments)},n.addEventListener("keydown",Xc,!0),n.addEventListener("keyup",Xc,!0),n.addEventListener("click",G5,!0),t.addEventListener("focus",K5,!0),t.addEventListener("blur",Y5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Gt,!0),n.addEventListener("pointermove",Gt,!0),n.addEventListener("pointerup",Gt,!0)):(n.addEventListener("mousedown",Gt,!0),n.addEventListener("mousemove",Gt,!0),n.addEventListener("mouseup",Gt,!0)),t.addEventListener("beforeunload",()=>{q5(e)},{once:!0}),ia.set(t,{focus:r})}const q5=(e,t)=>{const n=bm(e),r=ls(e);t&&r.removeEventListener("DOMContentLoaded",t),ia.has(n)&&(n.HTMLElement.prototype.focus=ia.get(n).focus,r.removeEventListener("keydown",Xc,!0),r.removeEventListener("keyup",Xc,!0),r.removeEventListener("click",G5,!0),n.removeEventListener("focus",K5,!0),n.removeEventListener("blur",Y5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Gt,!0),r.removeEventListener("pointermove",Gt,!0),r.removeEventListener("pointerup",Gt,!0)):(r.removeEventListener("mousedown",Gt,!0),r.removeEventListener("mousemove",Gt,!0),r.removeEventListener("mouseup",Gt,!0)),ia.delete(n))};function yD(e){const t=ls(e);let n;return t.readyState!=="loading"?gb(e):(n=()=>{gb(e)},t.addEventListener("DOMContentLoaded",n)),()=>q5(e,n)}typeof document<"u"&&yD();function xD(){return bl}function vb(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function bD(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:vb(e.onKeyDown),onKeyUp:vb(e.onKeyUp)}}}function wD(e){const t=ls(e);if(xD()==="virtual"){let n=t.activeElement;cD(()=>{t.activeElement===n&&e.isConnected&&hb(e)})}else hb(e)}let SD=null;function X5(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function kD(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of xb.traverse(xb.getTreeNode(t)))if(n&&X5(e,n.current))return!0;return!1}function CD(e){return kD(e,SD)}class rv{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new yb({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&X5(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new rv;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new yb({scopeRef:null}),this.fastMap.set(null,this.root)}}class yb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let xb=new rv,$D=ze.createContext(null);function PD(e){let t=S.useContext($D)||{};dD(t,e);let{ref:n,...r}=t;return r}function TD(e,t){let{focusProps:n}=mD(e),{keyboardProps:r}=bD(e),o=pb(n,r),i=PD(t),s=e.isDisabled?{}:i,a=S.useRef(e.autoFocus);return S.useEffect(()=>{a.current&&t.current&&wD(t.current),a.current=!1},[t]),{focusableProps:pb({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function ED(e,t,n){let{isDisabled:r,trigger:o}=e,i=TN(),s=S.useRef(!1),a=S.useRef(!1),l=()=>{(s.current||a.current)&&t.open(a.current)},u=m=>{!s.current&&!a.current&&t.close(m)};S.useEffect(()=>{let m=y=>{n&&n.current&&y.key==="Escape"&&(y.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",m,!0),()=>{document.removeEventListener("keydown",m,!0)}},[n,t]);let c=()=>{o!=="focus"&&(qN()==="pointer"?s.current=!0:s.current=!1,l())},d=()=>{o!=="focus"&&(a.current=!1,s.current=!1,u())},f=()=>{a.current=!1,s.current=!1,u(!0)},p=()=>{YN()&&(a.current=!0,l())},h=()=>{a.current=!1,s.current=!1,u(!0)},{hoverProps:g}=U5({isDisabled:r,onHoverStart:c,onHoverEnd:d}),{focusableProps:b}=TD({isDisabled:r,onFocus:p,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...vo(b,g,{onPointerDown:f,onKeyDown:f})},tooltipProps:{id:i}}}const pi={top:"top",bottom:"top",left:"left",right:"left"},Qc={top:"bottom",bottom:"top",left:"right",right:"left"},MD={top:"left",left:"top"},km={top:"height",left:"width"},Q5={width:"totalWidth",height:"totalHeight"},hu={};let mt=typeof document<"u"&&window.visualViewport;function bb(e){let t=0,n=0,r=0,o=0,i=0,s=0,a={},l=(mt==null?void 0:mt.scale)>1;if(e.tagName==="BODY"){let d=document.documentElement;r=d.clientWidth,o=d.clientHeight;var u;t=(u=mt==null?void 0:mt.width)!==null&&u!==void 0?u:r;var c;n=(c=mt==null?void 0:mt.height)!==null&&c!==void 0?c:o,a.top=d.scrollTop||e.scrollTop,a.left=d.scrollLeft||e.scrollLeft,mt&&(i=mt.offsetTop,s=mt.offsetLeft)}else({width:t,height:n,top:i,left:s}=Pi(e)),a.top=e.scrollTop,a.left=e.scrollLeft,r=t,o=n;return NN()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(a.top=0,a.left=0,i=mt.pageTop,s=mt.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:a,top:i,left:s}}function _D(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function wb(e,t,n,r,o,i,s){let a=o.scroll[e],l=r[km[e]],u=r.scroll[pi[e]]+i,c=l+r.scroll[pi[e]]-i,d=t-a+s[e]-r[pi[e]],f=t-a+n+s[e]-r[pi[e]];return dc?Math.max(c-f,u-d):0}function AD(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Sb(e){if(hu[e])return hu[e];let[t,n]=e.split(" "),r=pi[t]||"right",o=MD[r];pi[n]||(n="center");let i=km[r],s=km[o];return hu[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:s},hu[e]}function Rp(e,t,n,r,o,i,s,a,l,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:p,size:h,crossSize:g}=r,b={};b[p]=e[p],d==="center"?b[p]+=(e[g]-n[g])/2:d!==p&&(b[p]+=e[g]-n[g]),b[p]+=i;const m=e[p]-n[g]+l+u,y=e[p]+e[g]-l-u;if(b[p]=mm(b[p],m,y),c===f){const x=a?s[h]:t[Q5[h]];b[Qc[f]]=Math.floor(x-e[f]+o)}else b[f]=Math.floor(e[f]+e[h]+o);return b}function OD(e,t,n,r,o,i,s,a){const l=r?n.height:t[Q5.height];let u=e.top!=null?n.top+e.top:n.top+(l-e.bottom-s),c=a!=="top"?Math.max(0,t.height+t.top+t.scroll.top-u-(o.top+o.bottom+i)):Math.max(0,u+s-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,c)}function kb(e,t,n,r,o,i){let{placement:s,axis:a,size:l}=i;return s===a?Math.max(0,n[a]-e[a]-e.scroll[a]+t[a]-r[a]-r[Qc[a]]-o):Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-n[a]-n[l]-r[a]-r[Qc[a]]-o)}function RD(e,t,n,r,o,i,s,a,l,u,c,d,f,p,h,g){let b=Sb(e),{size:m,crossAxis:y,crossSize:x,placement:w,crossPlacement:C}=b,k=Rp(t,a,n,b,c,d,u,f,h,g),$=c,P=kb(a,u,t,o,i+c,b);if(s&&r[m]>P){let N=Sb(`${Qc[w]} ${C}`),V=Rp(t,a,n,N,c,d,u,f,h,g);kb(a,u,t,o,i+c,N)>P&&(b=N,k=V,$=c)}let R="bottom";b.axis==="top"?b.placement==="top"?R="top":b.placement==="bottom"&&(R="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?R="bottom":b.crossPlacement==="bottom"&&(R="top"));let M=wb(y,k[y],n[x],a,l,i,u);k[y]+=M;let O=OD(k,a,u,f,o,i,n.height,R);p&&p{if(!n||r===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let a=r||LD.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}const DD=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),FD=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function zD(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return DD.has(n.script)}let t=e.split("-")[0];return FD.has(t)}const VD=Symbol.for("react-aria.i18n.locale");function Z5(){let e=typeof window<"u"&&window[VD]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:zD(e)?"rtl":"ltr"}}let Cm=Z5(),Fs=new Set;function Pb(){Cm=Z5();for(let e of Fs)e(Cm)}function HD(){let e=Z0(),[t,n]=S.useState(Cm);return S.useEffect(()=>(Fs.size===0&&window.addEventListener("languagechange",Pb),Fs.add(n),()=>{Fs.delete(n),Fs.size===0&&window.removeEventListener("languagechange",Pb)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const WD=ze.createContext(null);function UD(){let e=HD();return S.useContext(WD)||e}let je=typeof document<"u"&&window.visualViewport;function BD(e){let{direction:t}=UD(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:s="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:f=!0,isOpen:p=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:b=0}=e,[m,y]=S.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[f,s,o.current,r.current,i.current,a,l,u,c,d,p,t,g,b,n],w=S.useRef(je==null?void 0:je.scale);S.useEffect(()=>{p&&(w.current=je==null?void 0:je.scale)},[p]);let C=S.useCallback(()=>{if(f===!1||!p||!o.current||!r.current||!i.current||!u||(je==null?void 0:je.scale)!==w.current)return;let P=o.current;if(!g&&o.current){var R;P.style.top="0px",P.style.bottom="";var M;P.style.maxHeight=((M=(R=window.visualViewport)===null||R===void 0?void 0:R.height)!==null&&M!==void 0?M:window.innerHeight)+"px"}let O=jD({placement:KD(s,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:a,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:g,arrowSize:n,arrowBoundaryOffset:b});P.style.top="",P.style.bottom="",Object.keys(O.position).forEach(E=>P.style[E]=O.position[E]+"px"),P.style.maxHeight=O.maxHeight!=null?O.maxHeight+"px":void 0,y(O)},x);Yi(C,x),GD(C),VN({ref:o,onResize:C});let k=S.useRef(!1);Yi(()=>{let P,R=()=>{k.current=!0,clearTimeout(P),P=setTimeout(()=>{k.current=!1},500),C()},M=()=>{k.current&&R()};return je==null||je.addEventListener("resize",R),je==null||je.addEventListener("scroll",M),()=>{je==null||je.removeEventListener("resize",R),je==null||je.removeEventListener("scroll",M)}},[C]);let $=S.useCallback(()=>{k.current||h()},[h,k]);return ND({triggerRef:r,isOpen:p,onClose:h&&$}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...m.position,maxHeight:m.maxHeight}},placement:m.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m.arrowOffsetLeft,top:m.arrowOffsetTop}},updatePosition:C}}function GD(e){Yi(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function KD(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Bn=[];function YD(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:a}=e;S.useEffect(()=>(o&&Bn.push(t),()=>{let h=Bn.indexOf(t);h>=0&&Bn.splice(h,1)}),[o,t]);let l=()=>{Bn[Bn.length-1]===t&&n&&n()},u=h=>{(!a||a(h.target))&&Bn[Bn.length-1]===t&&(h.stopPropagation(),h.preventDefault())},c=h=>{(!a||a(h.target))&&(Bn[Bn.length-1]===t&&(h.stopPropagation(),h.preventDefault()),l())},d=h=>{h.key==="Escape"&&!s&&!h.nativeEvent.isComposing&&(h.stopPropagation(),h.preventDefault(),l())};ZN({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:u});let{focusWithinProps:f}=XN({isDisabled:!r,onBlurWithin:h=>{!h.relatedTarget||CD(h.relatedTarget)||(!a||a(h.relatedTarget))&&n()}}),p=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:p}}}const $m=ze.createContext(null);function qD(e){let{children:t}=e,n=S.useContext($m),[r,o]=S.useState(0),i=S.useMemo(()=>({parent:n,modalCount:r,addModal(){o(s=>s+1),n&&n.addModal()},removeModal(){o(s=>s-1),n&&n.removeModal()}}),[n,r]);return ze.createElement($m.Provider,{value:i},t)}function XD(){let e=S.useContext($m);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function QD(e){let{modalProviderProps:t}=XD();return ze.createElement("div",{"data-overlay-container":!0,...e,...t})}function ZD(e){return ze.createElement(qD,null,ze.createElement(QD,e))}function Tb(e){let t=Z0(),{portalContainer:n=t?null:document.body,...r}=e;if(ze.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=ze.createElement(ZD,r);return SE.createPortal(o,n)}function JD(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=S.createContext(void 0);o.displayName=r;function i(){var s;const a=S.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function eF(e){return{UNSAFE_getDOMNode(){return e.current}}}function tF(e){return typeof e=="function"}var Xo=e=>e?"true":void 0;function J5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t"u")&&!Eb[i]&&(Eb[i]=!0,((r=process==null?void 0:rF)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}function iF(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function sF(e,t){if(e!=null){if(tF(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function aF(...e){return t=>{e.forEach(n=>sF(n,t))}}var[yG,lF]=JD({name:"ProviderContext",strict:!1});const ov=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),bf=S.createContext({}),iv=S.createContext(null),sv=typeof window<"u",e$=sv?S.useLayoutEffect:S.useEffect,av=S.createContext({strict:!1}),wf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),uF="framerAppearId",t$="data-"+wf(uF),cF={skipAnimations:!1,useManualTiming:!1};function dF(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const p=d&&r?t:n;return c&&i.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(u))}};return l}const mu=["read","resolveKeyframes","update","preRender","render","postRender"],fF=40;function n$(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=mu.reduce((m,y)=>(m[y]=dF(i),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,p=()=>{const m=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,fF),1),o.timestamp=m,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},h=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:mu.reduce((m,y)=>{const x=s[y];return m[y]=(w,C=!1,k=!1)=>(n||h(),x.schedule(w,C,k)),m},{}),cancel:m=>{for(let y=0;y{d&&d.update(n,l)});const p=n[t$],h=S.useRef(!!p&&!window.MotionHandoffIsComplete&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,p)));return e$(()=>{d&&(d.updateFeatures(),pF.render(d.render),h.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!h.current&&d.animationState&&d.animationState.animateChanges(),h.current=!1,Mb||(Mb=!0,queueMicrotask(gF)))}),d}function gF(){window.MotionHandoffIsComplete=!0}function vF(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:o$(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&r$(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function o$(e){if(e)return e.options.allowProjection!==!1?e.projection:o$(e.parent)}function yF(e,t,n){return S.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):r$(n)&&(n.current=r))},[t])}function Ya(e){return typeof e=="string"||Array.isArray(e)}function qa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const lv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uv=["initial",...lv];function Sf(e){return qa(e.animate)||uv.some(t=>Ya(e[t]))}function i$(e){return!!(Sf(e)||e.variants)}function xF(e,t){if(Sf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ya(n)?n:void 0,animate:Ya(r)?r:void 0}}return e.inherit!==!1?t:{}}function bF(e){const{initial:t,animate:n}=xF(e,S.useContext(bf));return S.useMemo(()=>({initial:t,animate:n}),[_b(t),_b(n)])}function _b(e){return Array.isArray(e)?e.join(" "):e}const Ab={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"]},qi={};for(const e in Ab)qi[e]={isEnabled:t=>Ab[e].some(n=>!!t[n])};function Pm(e){for(const t in e)qi[t]={...qi[t],...e[t]}}const s$=S.createContext({}),wF=Symbol.for("motionComponentSymbol"),Ln=e=>e;let Tm=Ln;function SF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&Pm(e);function i(a,l){let u;const c={...S.useContext(ov),...a,layoutId:kF(a)},{isStatic:d}=c,f=bF(a),p=r(a,d);if(!d&&sv){CF();const h=$F(c);u=h.MeasureLayout,f.visualElement=mF(o,p,c,t,h.ProjectionNode)}return v.jsxs(bf.Provider,{value:f,children:[u&&f.visualElement?v.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,yF(p,f.visualElement,l),p,d,f.visualElement)]})}const s=S.forwardRef(i);return s[wF]=o,s}function kF({layoutId:e}){const t=S.useContext(s$).id;return t&&e!==void 0?t+"-"+e:e}function CF(e,t){S.useContext(av).strict}function $F(e){const{drag:t,layout:n}=qi;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function PF(e){function t(r,o={}){return SF(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const TF=["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 cv(e){return typeof e!="string"||e.includes("-")?!1:!!(TF.indexOf(e)>-1||/[A-Z]/u.test(e))}const EF={},wl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xr=new Set(wl);function a$(e,{layout:t,layoutId:n}){return Xr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!EF[e]||e==="opacity")}const dt=e=>!!(e&&e.getVelocity),l$=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xi=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},sa={...us,transform:e=>Xi(0,1,e)},gu={...us,default:1},aa=e=>Math.round(e*1e5)/1e5,dv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,MF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,_F=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Sl(e){return typeof e=="string"}function AF(e){return e==null}const kl=e=>({test:t=>Sl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=kl("deg"),Ti=kl("%"),Y=kl("px"),OF=kl("vh"),RF=kl("vw"),Ob={...Ti,parse:e=>Ti.parse(e)/100,transform:e=>Ti.transform(e*100)},Rb={...us,transform:Math.round},fv={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:gu,scaleX:gu,scaleY:gu,scaleZ:gu,skew:xr,skewX:xr,skewY:xr,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:sa,originX:Ob,originY:Ob,originZ:Y,zIndex:Rb,backgroundPositionX:Y,backgroundPositionY:Y,fillOpacity:sa,strokeOpacity:sa,numOctaves:Rb},jF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},IF=wl.length;function LF(e,t,n){let r="",o=!0;for(let i=0;it=>typeof t=="string"&&t.startsWith(e),c$=u$("--"),NF=u$("var(--"),pv=e=>NF(e)?DF.test(e.split("/*")[0].trim()):!1,DF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function hv(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Xr.has(l)){s=!0;continue}else if(c$(l)){o[l]=u;continue}else{const c=l$(u,fv[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=LF(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}const mv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d$(e,t,n){for(const r in t)!dt(t[r])&&!a$(r,n)&&(e[r]=t[r])}function FF({transformTemplate:e},t){return S.useMemo(()=>{const n=mv();return hv(n,t,e),Object.assign({},n.vars,n.style)},[t])}function zF(e,t){const n=e.style||{},r={};return d$(r,n,e),Object.assign(r,FF(e,t)),r}function VF(e,t){const n={},r=zF(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const HF=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 Zc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||HF.has(e)}let f$=e=>!Zc(e);function WF(e){e&&(f$=t=>t.startsWith("on")?!Zc(t):e(t))}try{WF(require("@emotion/is-prop-valid").default)}catch{}function UF(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(f$(o)||n===!0&&Zc(o)||!t&&!Zc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function jb(e,t,n){return typeof e=="string"?e:Y.transform(t+n*e)}function BF(e,t,n){const r=jb(t,e.x,e.width),o=jb(n,e.y,e.height);return`${r} ${o}`}const GF={offset:"stroke-dashoffset",array:"stroke-dasharray"},KF={offset:"strokeDashoffset",array:"strokeDasharray"};function YF(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?GF:KF;e[i.offset]=Y.transform(-r);const s=Y.transform(t),a=Y.transform(n);e[i.array]=`${s} ${a}`}function gv(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(hv(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(o!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=BF(h,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&YF(f,s,a,l,!1)}const p$=()=>({...mv(),attrs:{}}),vv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qF(e,t,n,r){const o=S.useMemo(()=>{const i=p$();return gv(i,t,vv(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};d$(i,e.style,e),o.style={...i,...o.style}}return o}function XF(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(cv(n)?qF:VF)(r,i,s,n),u=UF(r,typeof n=="string",e),c=n!==S.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=S.useMemo(()=>dt(d)?d.get():d,[d]);return S.createElement(n,{...c,children:f})}}function h$(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const m$=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 g$(e,t,n,r){h$(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(m$.has(o)?o:wf(o),t.attrs[o])}function yv(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(dt(o[s])||t.style&&dt(t.style[s])||a$(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function v$(e,t,n){const r=yv(e,t,n);for(const o in e)if(dt(e[o])||dt(t[o])){const i=wl.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Ib(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function xv(e,t,n,r){if(typeof t=="function"){const[o,i]=Ib(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Ib(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function bv(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Em=e=>Array.isArray(e),QF=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ZF=e=>Em(e)?e[e.length-1]||0:e;function JF(e){const t=dt(e)?e.get():e;return QF(t)?t.toValue():t}const y$=new Set(["opacity","clipPath","filter","transform"]);function x$(e){if(Xr.has(e))return"transform";if(y$.has(e))return wf(e)}function b$(e,t){e.indexOf(t)===-1&&e.push(t)}function w$(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function ez({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:nz(o,i,s,a?!1:e,t),renderState:n()};return r&&(l.mount=u=>r(o,u,l)),l}const S$=e=>(t,n)=>{const r=S.useContext(bf),o=S.useContext(iv),i=()=>ez(e,t,r,o,n);return n?i():bv(i)};function tz(e,t){const n=x$(t);n&&b$(e,n)}function Lb(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const y in b){let x=b[y];if(Array.isArray(x)){const w=h?x.length-1:0;x=x[w]}x!==null&&(s[y]=x)}for(const y in m)s[y]=m[y]}),l&&(d&&c!==!1&&!qa(d)&&Lb(e,d,b=>{for(const m in b)tz(a,m)}),a.length&&(s.willChange=a.join(","))),s}const{schedule:Je,cancel:Jc,state:ed,steps:bG}=n$(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ln,!0),rz={useVisualState:S$({scrapeMotionValuesFromProps:v$,createRenderState:p$,onMount:(e,t,{renderState:n,latestValues:r})=>{Je.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Je.render(()=>{gv(n,r,vv(t.tagName),e.transformTemplate),g$(t,n)})}})},oz={useVisualState:S$({applyWillChange:!0,scrapeMotionValuesFromProps:yv,createRenderState:mv})};function iz(e,{forwardMotionProps:t=!1},n,r){return{...cv(e)?rz:oz,preloadedFeatures:n,useRender:XF(t),createVisualElement:r,Component:e}}function yo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const sz=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function k$(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const az=e=>t=>sz(t)&&e(t,k$(t));function Yu(e,t,n,r){return yo(e,t,az(n),r)}const lz=(e,t)=>n=>t(e(n)),Dr=(...e)=>e.reduce(lz);function C$(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const uz=C$("dragHorizontal"),cz=C$("dragVertical");function dz(e){let t=!1;{const n=uz(),r=cz();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function $$(){const e=dz();return e?(e(),!1):!0}class cs{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Nb(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||$$())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&Je.postRender(()=>l(i,s))};return Yu(e.current,n,o,{passive:!e.getProps()[r]})}class fz extends cs{mount(){this.unmount=Dr(Nb(this.node,!0),Nb(this.node,!1))}unmount(){}}class pz extends cs{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=Dr(yo(this.node.current,"focus",()=>this.onFocus()),yo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const P$=(e,t)=>t?e===t?!0:P$(e,t.parentElement):!1;function jp(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,k$(n))}class hz extends cs{constructor(){super(...arguments),this.removeStartListeners=Ln,this.removeEndListeners=Ln,this.removeAccessibleListeners=Ln,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Yu(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!P$(this.node.current,a.target)?c:u;f&&Je.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=Yu(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Dr(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||jp("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Je.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=yo(this.node.current,"keyup",s),jp("down",(a,l)=>{this.startPress(a,l)})},n=yo(this.node.current,"keydown",t),r=()=>{this.isPressing&&jp("cancel",(i,s)=>this.cancelPress(i,s))},o=yo(this.node.current,"blur",r);this.removeAccessibleListeners=Dr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Je.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$$()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Je.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Yu(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Dr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Mm=new WeakMap,Ip=new WeakMap,mz=e=>{const t=Mm.get(e.target);t&&t(e)},gz=e=>{e.forEach(mz)};function vz({root:e,...t}){const n=e||document;Ip.has(n)||Ip.set(n,{});const r=Ip.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(gz,{root:e,...t})),r[o]}function yz(e,t,n){const r=vz(t);return Mm.set(e,n),r.observe(e),()=>{Mm.delete(e),r.unobserve(e)}}const xz={some:0,all:1};class bz extends cs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:xz[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return yz(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wz(t,n))&&this.startObserver()}unmount(){}}function wz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sz={inView:{Feature:bz},tap:{Feature:hz},focus:{Feature:pz},hover:{Feature:fz}};function T$(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,zr=e=>e/1e3,kz={type:"spring",stiffness:500,damping:25,restSpeed:10},Cz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$z={type:"keyframes",duration:.8},Pz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tz=(e,{keyframes:t})=>t.length>2?$z:Xr.has(e)?e.startsWith("scale")?Cz(t[1]):kz:Pz;function Ez({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function E$(e,t){return e[t]||e.default||e}const Mz=e=>e!==null;function Cf(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Mz),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let qu;function _z(){qu=void 0}const Ei={now:()=>(qu===void 0&&Ei.set(ed.isProcessing||cF.useManualTiming?ed.timestamp:performance.now()),qu),set:e=>{qu=e,queueMicrotask(_z)}},M$=e=>/^0[^.\s]+$/u.test(e);function Az(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||M$(e):!0}const _$=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Oz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rz(e){const t=Oz.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function A$(e,t,n=1){const[r,o]=Rz(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return _$(s)?parseFloat(s):s}return pv(o)?A$(o,t,n+1):o}const jz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Db=e=>e===us||e===Y,Fb=(e,t)=>parseFloat(e.split(", ")[t]),zb=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Fb(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Fb(i[1],e):0}},Iz=new Set(["x","y","z"]),Lz=wl.filter(e=>!Iz.has(e));function Nz(e){const t=[];return Lz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Qi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:zb(4,13),y:zb(5,14)};Qi.translateX=Qi.x;Qi.translateY=Qi.y;const O$=e=>t=>t.test(e),Dz={test:e=>e==="auto",parse:e=>e},R$=[us,Y,Ti,xr,RF,OF,Dz],Vb=e=>R$.find(O$(e)),$o=new Set;let _m=!1,Am=!1;function j$(){if(Am){const e=Array.from($o).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Nz(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Am=!1,_m=!1,$o.forEach(e=>e.complete()),$o.clear()}function I$(){$o.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Am=!0)})}function Fz(){I$(),j$()}class wv{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?($o.add(this),_m||(_m=!0,Je.read(I$),Je.resolveKeyframes(j$))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Sl(n)&&_F.test(n)&&n.startsWith(e)||t&&!AF(n)&&Object.prototype.hasOwnProperty.call(n,t)),L$=(e,t,n)=>r=>{if(!Sl(r))return r;const[o,i,s,a]=r.match(dv);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},zz=e=>Xi(0,255,e),Lp={...us,transform:e=>Math.round(zz(e))},xo={test:Sv("rgb","red"),parse:L$("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Lp.transform(e)+", "+Lp.transform(t)+", "+Lp.transform(n)+", "+aa(sa.transform(r))+")"};function Vz(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Om={test:Sv("#"),parse:Vz,transform:xo.transform},hi={test:Sv("hsl","hue"),parse:L$("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ti.transform(aa(t))+", "+Ti.transform(aa(n))+", "+aa(sa.transform(r))+")"},st={test:e=>xo.test(e)||Om.test(e)||hi.test(e),parse:e=>xo.test(e)?xo.parse(e):hi.test(e)?hi.parse(e):Om.parse(e),transform:e=>Sl(e)?e:e.hasOwnProperty("red")?xo.transform(e):hi.transform(e)};function Hz(e){var t,n;return isNaN(e)&&Sl(e)&&(((t=e.match(dv))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(MF))===null||n===void 0?void 0:n.length)||0)>0}const N$="number",D$="color",Wz="var",Uz="var(",Hb="${}",Bz=/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 Xa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Bz,l=>(st.test(l)?(r.color.push(i),o.push(D$),n.push(st.parse(l))):l.startsWith(Uz)?(r.var.push(i),o.push(Wz),n.push(l)):(r.number.push(i),o.push(N$),n.push(parseFloat(l))),++i,Hb)).split(Hb);return{values:n,split:a,indexes:r,types:o}}function F$(e){return Xa(e).values}function z$(e){const{split:t,types:n}=Xa(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function Kz(e){const t=F$(e);return z$(e)(t.map(Gz))}const ds={test:Hz,parse:F$,createTransformer:z$,getAnimatableNone:Kz},Yz=new Set(["brightness","contrast","saturate","opacity"]);function qz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(dv)||[];if(!r)return e;const o=n.replace(r,"");let i=Yz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Xz=/\b([a-z-]*)\(.*?\)/gu,Rm={...ds,getAnimatableNone:e=>{const t=e.match(Xz);return t?t.map(qz).join(" "):e}},Qz={...fv,color:st,backgroundColor:st,outlineColor:st,fill:st,stroke:st,borderColor:st,borderTopColor:st,borderRightColor:st,borderBottomColor:st,borderLeftColor:st,filter:Rm,WebkitFilter:Rm},kv=e=>Qz[e];function V$(e,t){let n=kv(e);return n!==Rm&&(n=ds),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Zz=new Set(["auto","none","0"]);function Jz(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function W$(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ds.test(e)||e==="0")&&!e.startsWith("url("));function eV(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function B$(e,t){return t?e*(1e3/t):0}const nV=5;function G$(e,t,n){const r=Math.max(t-nV,0);return B$(n-e(r),t-r)}const Np=.001,rV=.01,oV=10,iV=.05,sV=1;function aV({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=Xi(iV,sV,s),e=Xi(rV,oV,zr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=jm(u,s),h=Math.exp(-d);return Np-f/p*h},i=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,h=Math.exp(-d),g=jm(Math.pow(u,2),s);return(-o(u)+Np>0?-1:1)*((f-p)*h)/g}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Np+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=uV(o,i,a);if(e=Fr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const lV=12;function uV(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function fV(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ub(e,dV)&&Ub(e,cV)){const n=aV(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function K$({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=fV({...r,velocity:-zr(r.velocity||0)}),p=d||0,h=l/(2*Math.sqrt(a*u)),g=i-o,b=zr(Math.sqrt(a/u)),m=Math.abs(g)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let y;if(h<1){const x=jm(b,h);y=w=>{const C=Math.exp(-h*b*w);return i-C*((p+h*b*g)/x*Math.sin(x*w)+g*Math.cos(x*w))}}else if(h===1)y=x=>i-Math.exp(-b*x)*(g+(p+b*g)*x);else{const x=b*Math.sqrt(h*h-1);y=w=>{const C=Math.exp(-h*b*w),k=Math.min(x*w,300);return i-C*((p+h*b*g)*Math.sinh(k)+x*g*Math.cosh(k))/x}}return{calculatedDuration:f&&c||null,next:x=>{const w=y(x);if(f)s.done=x>=c;else{let C=0;h<1&&(C=x===0?Fr(p):G$(y,x,w));const k=Math.abs(C)<=n,$=Math.abs(i-w)<=t;s.done=k&&$}return s.value=s.done?i:w,s}}}function Bb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=P=>a!==void 0&&Pl,h=P=>a===void 0?l:l===void 0||Math.abs(a-P)-g*Math.exp(-P/r),x=P=>m+y(P),w=P=>{const R=y(P),M=x(P);f.done=Math.abs(R)<=u,f.value=f.done?m:M};let C,k;const $=P=>{p(f.value)&&(C=P,k=K$({keyframes:[f.value,h(f.value)],velocity:G$(x,P,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return $(0),{calculatedDuration:null,next:P=>{let R=!1;return!k&&C===void 0&&(R=!0,w(P),$(P)),C!==void 0&&P>=C?k.next(P-C):(!R&&w(P),f)}}}const Y$=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,pV=1e-7,hV=12;function mV(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Y$(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>pV&&++amV(i,0,1,e,n);return i=>i===0||i===1?i:Y$(o(i),t,r)}const gV=Cl(.42,0,1,1),vV=Cl(0,0,.58,1),q$=Cl(.42,0,.58,1),yV=e=>Array.isArray(e)&&typeof e[0]!="number",X$=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Q$=e=>t=>1-e(1-t),Cv=e=>1-Math.sin(Math.acos(e)),xV=Q$(Cv),bV=X$(Cv),Z$=Cl(.33,1.53,.69,.99),$v=Q$(Z$),wV=X$($v),SV=e=>(e*=2)<1?.5*$v(e):.5*(2-Math.pow(2,-10*(e-1))),Gb={linear:Ln,easeIn:gV,easeInOut:q$,easeOut:vV,circIn:Cv,circInOut:bV,circOut:xV,backIn:$v,backInOut:wV,backOut:Z$,anticipate:SV},Kb=e=>{if(Array.isArray(e)){Tm(e.length===4);const[t,n,r,o]=e;return Cl(t,n,r,o)}else if(typeof e=="string")return Tm(Gb[e]!==void 0),Gb[e];return e},J$=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},$f=(e,t,n)=>e+(t-e)*n;function Dp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kV({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Dp(l,a,e+1/3),i=Dp(l,a,e),s=Dp(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function td(e,t){return n=>n>0?t:e}const Fp=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},CV=[Om,xo,hi],$V=e=>CV.find(t=>t.test(e));function Yb(e){const t=$V(e);if(!t)return!1;let n=t.parse(e);return t===hi&&(n=kV(n)),n}const qb=(e,t)=>{const n=Yb(e),r=Yb(t);if(!n||!r)return td(e,t);const o={...n};return i=>(o.red=Fp(n.red,r.red,i),o.green=Fp(n.green,r.green,i),o.blue=Fp(n.blue,r.blue,i),o.alpha=$f(n.alpha,r.alpha,i),xo.transform(o))},Im=new Set(["none","hidden"]);function PV(e,t){return Im.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TV(e,t){return n=>$f(e,t,n)}function Pv(e){return typeof e=="number"?TV:typeof e=="string"?pv(e)?td:st.test(e)?qb:_V:Array.isArray(e)?eP:typeof e=="object"?st.test(e)?qb:EV:td}function eP(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Pv(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function MV(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=ds.createTransformer(t),r=Xa(e),o=Xa(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Im.has(e)&&!o.values.length||Im.has(t)&&!r.values.length?PV(e,t):Dr(eP(MV(r,o),o.values),n):td(e,t)};function tP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$f(e,t,n):Pv(e)(e,t)}function AV(e,t,n){const r=[],o=n||tP,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=AV(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Xi(e[0],e[i-1],u)):l}function RV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=J$(0,t,r);e.push($f(n,1,o))}}function jV(e){const t=[0];return RV(t,e.length-1),t}function IV(e,t){return e.map(n=>n*t)}function LV(e,t){return e.map(()=>t||q$).splice(0,e.length-1)}function nd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=yV(r)?r.map(Kb):Kb(r),i={done:!1,value:t[0]},s=IV(n&&n.length===t.length?n:jV(t),e),a=OV(s,t,{ease:Array.isArray(o)?o:LV(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Xb=2e4;function NV(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Xb?1/0:t}const DV=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Je.update(t,!0),stop:()=>Jc(t),now:()=>ed.isProcessing?ed.timestamp:Ei.now()}},FV={decay:Bb,inertia:Bb,tween:nd,keyframes:nd,spring:K$},zV=e=>e/100;class Tv extends U${constructor({KeyframeResolver:t=wv,...n}){super(n),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:a}=this.options;a&&a()};const{name:r,motionValue:o,keyframes:i}=this.options,s=(a,l)=>this.onKeyframesResolved(a,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,s,r,o):this.resolver=new t(i,s,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=FV[n]||nd;let l,u;a!==nd&&typeof t[0]!="number"&&(l=Dr(zV,tP(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=NV(c));const{calculatedDuration:d}=c,f=d+o,p=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:h,repeatDelay:g,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,w=i;if(p){const P=Math.min(this.currentTime,c)/d;let R=Math.floor(P),M=P%1;!M&&P>=1&&(M=1),M===1&&R--,R=Math.min(R,p+1),!!(R%2)&&(h==="reverse"?(M=1-M,g&&(M-=g/d)):h==="mirror"&&(w=s)),x=Xi(0,1,M)*d}const C=y?{done:!1,value:l[0]}:w.next(x);a&&(C.value=a(C.value));let{done:k}=C;!y&&u!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return $&&o!==void 0&&(C.value=Cf(l,this.options,o)),b&&b(C.value),$&&this.finish(),C}get duration(){const{resolved:t}=this;return t?zr(t.calculatedDuration):0}get time(){return zr(this.currentTime)}set time(t){t=Fr(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 n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=zr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=DV,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),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 nP=e=>Array.isArray(e)&&typeof e[0]=="number";function rP(e){return!!(!e||typeof e=="string"&&e in Ev||nP(e)||Array.isArray(e)&&e.every(rP))}const zs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ev={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zs([0,.65,.55,1]),circOut:zs([.55,0,1,.45]),backIn:zs([.31,.01,.66,-.59]),backOut:zs([.33,1.53,.69,.99])};function VV(e){return oP(e)||Ev.easeOut}function oP(e){if(e)return nP(e)?zs(e):Array.isArray(e)?e.map(VV):Ev[e]}function HV(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=oP(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const WV=W$(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),rd=10,UV=2e4;function BV(e){return e.type==="spring"||!rP(e.ease)}function GV(e,t){const n=new Tv({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(i,s),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(BV(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...h}=this.options,g=GV(t,h);t=g.keyframes,t.length===1&&(t[1]=t[0]),o=g.duration,i=g.times,s=g.ease,a="keyframes"}const c=HV(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return c.startTime=Ei.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(Cf(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return zr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Fr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ln;const{animation:r}=n;r.timeline=t,r.onfinish=null}return Ln}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,...f}=this.options,p=new Tv({...f,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),h=Fr(this.time);u.setWithVelocity(p.sample(h-rd).value,p.sample(h).value,rd)}const{onStop:l}=this.options;l&&l(),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:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return WV()&&r&&y$.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function KV(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return Je.update(r,!0),()=>Jc(r)}const YV=W$(()=>window.ScrollTimeline!==void 0);class qV{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(YV()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),KV(o=>{r.time=r.duration*o},t)});return()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].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 n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const XV=(e,t,n,r={},o,i,s)=>a=>{const l=E$(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Fr(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};Ez(l)||(d={...d,...Tz(e,d)}),d.duration&&(d.duration=Fr(d.duration)),d.repeatDelay&&(d.repeatDelay=Fr(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=Cf(d.keyframes,l);if(p!==void 0)return Je.update(()=>{d.onUpdate(p),d.onComplete()}),new qV([])}return!i&&Qb.supports(d)?new Qb(d):new Tv(d)};class iP{constructor(){this.subscriptions=[]}add(t){return b$(this.subscriptions,t),()=>w$(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class sP{constructor(t,n={}){this.version="11.3.24",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Ei.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ei.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=QV(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new iP);const r=this.events[t].add(n);return t==="change"?()=>{r(),Je.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ei.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zb);return B$(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 od(e,t){return new sP(e,t)}function ZV(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,od(n))}function JV(e,t){const n=kf(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=ZF(i[s]);ZV(e,s,a)}}function eH(e){return e.getProps()[t$]}class tH extends sP{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=x$(t);if(!n)return;const r=this.counts.get(n)||0;this.counts.set(n,r+1),r===0&&(this.output.push(n),this.update());let o=!1;return()=>{if(o)return;o=!0;const i=this.counts.get(n)-1;this.counts.set(n,i),i===0&&(w$(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function nH(e){return!!(dt(e)&&e.add)}function rH(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new tH("auto"),e.addValue("willChange",r)),nH(r))return r.add(t)}function oH({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function aP(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=l[d];if(p===void 0||c&&oH(c,d))continue;const h={delay:n,elapsed:0,...E$(s||{},d)};let g=!1;if(window.MotionHandoffAnimation){const m=eH(e);if(m){const y=window.MotionHandoffAnimation(m,d,Je);y!==null&&(h.elapsed=y,g=!0)}}f.start(XV(d,f,p,e.shouldReduceMotion&&Xr.has(d)?{type:!1}:h,e,g,rH(e,d)));const b=f.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{Je.update(()=>{a&&JV(e,a)})}),u}function Lm(e,t,n={}){var r;const o=kf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(aP(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return iH(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function iH(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(sH).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Lm(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function sH(e,t){return e.sortNodePosition(t)}function aH(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Lm(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Lm(e,t,n);else{const o=typeof t=="function"?kf(e,t,n.custom):t;r=Promise.all(aP(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const lH=[...lv].reverse(),uH=lv.length;function cH(e){return t=>Promise.all(t.map(({animation:n,options:r})=>aH(e,n,r)))}function dH(e){let t=cH(e),n=Jb(),r=!0;const o=l=>(u,c)=>{var d;const f=kf(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:h,...g}=f;u={...u,...g,...h}}return u};function i(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},h=1/0;for(let b=0;bh&&w,R=!1;const M=Array.isArray(x)?x:[x];let O=M.reduce(o(m),{});C===!1&&(O={});const{prevResolvedValues:E={}}=y,_={...E,...O},T=I=>{P=!0,f.has(I)&&(R=!0,f.delete(I)),y.needsAnimating[I]=!0;const L=e.getValue(I);L&&(L.liveStyle=!1)};for(const I in _){const L=O[I],F=E[I];if(p.hasOwnProperty(I))continue;let j=!1;Em(L)&&Em(F)?j=!T$(L,F):j=L!==F,j?L!=null?T(I):f.add(I):L!==void 0&&f.has(I)?T(I):y.protectedKeys[I]=!0}y.prevProp=x,y.prevResolvedValues=O,y.isActive&&(p={...p,...O}),r&&e.blockInitialAnimation&&(P=!1),P&&(!k||R)&&d.push(...M.map(I=>({animation:I,options:{type:m}})))}if(f.size){const b={};f.forEach(m=>{const y=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),b[m]=y??null}),d.push({animation:b})}let g=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Jb(),r=!0}}}function fH(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!T$(t,e):!1}function ro(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jb(){return{animate:ro(!0),whileInView:ro(),whileHover:ro(),whileTap:ro(),whileDrag:ro(),whileFocus:ro(),exit:ro()}}class pH extends cs{constructor(t){super(t),t.animationState||(t.animationState=dH(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();qa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let hH=0;class mH extends cs{constructor(){super(...arguments),this.id=hH++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const gH={animation:{Feature:pH},exit:{Feature:mH}},ew=()=>({min:0,max:0}),lP=()=>({x:ew(),y:ew()});function vH({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function yH(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function xH(e,t){return vH(yH(e.getBoundingClientRect(),t))}const Nm={current:null},uP={current:!1};function bH(){if(uP.current=!0,!!sv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Nm.current=e.matches;e.addListener(t),t()}else Nm.current=!1}function wH(e,t,n){for(const r in t){const o=t[r],i=n[r];if(dt(o))e.addValue(r,o);else if(dt(i))e.addValue(r,od(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,od(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const tw=new WeakMap,SH=[...R$,st,ds],kH=e=>SH.find(O$(e)),nw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],CH=uv.length;class $H{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.resolveKeyframes=(f,p,h,g)=>new this.KeyframeResolver(f,p,h,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wv,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,Je.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Sf(n),this.isVariantNode=i$(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&dt(p)&&p.set(l[f],!1)}}mount(t){this.current=t,tw.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((n,r)=>this.bindToMotionValue(r,n)),uP.current||bH(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Nm.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){tw.delete(this.current),this.projection&&this.projection.unmount(),Jc(this.notifyUpdate),Jc(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 n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const r=Xr.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Je.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),n.owner&&n.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 qi){const n=qi[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lP()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=od(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(_$(o)||M$(o))?o=parseFloat(o):!kH(o)&&ds.test(n)&&(o=V$(t,n)),this.setBaseTarget(t,dt(o)?o.get():o)),dt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=xv(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!dt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new iP),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class cP extends $H{constructor(){super(...arguments),this.KeyframeResolver=H$}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function PH(e){return window.getComputedStyle(e)}class TH extends cP{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=h$}readValueFromInstance(t,n){if(Xr.has(n)){const r=kv(n);return r&&r.default||0}else{const r=PH(t),o=(c$(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return xH(t,n)}build(t,n,r){hv(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return yv(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;dt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class EH extends cP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lP}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xr.has(n)){const r=kv(n);return r&&r.default||0}return n=m$.has(n)?n:wf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return v$(t,n,r)}build(t,n,r){gv(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){g$(t,n,r,o)}mount(t){this.isSVGTag=vv(t.tagName),super.mount(t)}}const MH=(e,t)=>cv(e)?new EH(t):new TH(t,{allowProjection:e!==S.Fragment}),_H=PF(iz);class AH extends S.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function OH({children:e,isPresent:t}){const n=S.useId(),r=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=S.useContext(ov);return S.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` +`));const g=su(t,i,s),b=su(o,i,s),m=su(n,i,s),y=su(r,i,s);return v.jsxs(S.Fragment,{children:[p&&v.jsx(bx,A({},g,{position:"top",axisId:p})),f&&v.jsx(bx,A({},b,{position:"bottom",axisId:f})),d&&v.jsx(wx,A({},m,{position:"left",axisId:d})),h&&v.jsx(wx,A({},y,{position:"right",axisId:h}))]})}var _0={};Object.defineProperty(_0,"__esModule",{value:!0});var WC=_0.default=void 0,fj=hj(S),pj=jk;function UC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(UC=function(r){return r?n:t})(e)}function hj(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=UC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function mj(e){return Object.keys(e).length===0}function gj(e=null){const t=fj.useContext(pj.ThemeContext);return!t||mj(t)?e:t}WC=_0.default=gj;var $t="top",rn="bottom",on="right",Pt="left",A0="auto",pl=[$t,rn,on,Pt],Wi="start",Da="end",vj="clippingParents",BC="viewport",Ps="popper",yj="reference",Sx=pl.reduce(function(e,t){return e.concat([t+"-"+Wi,t+"-"+Da])},[]),GC=[].concat(pl,[A0]).reduce(function(e,t){return e.concat([t,t+"-"+Wi,t+"-"+Da])},[]),xj="beforeRead",bj="read",wj="afterRead",Sj="beforeMain",kj="main",Cj="afterMain",$j="beforeWrite",Pj="write",Tj="afterWrite",Ej=[xj,bj,wj,Sj,kj,Cj,$j,Pj,Tj];function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function It(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ao(e){var t=It(e).Element;return e instanceof t||e instanceof Element}function Jt(e){var t=It(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function O0(e){if(typeof ShadowRoot>"u")return!1;var t=It(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Jt(i)||!Dn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function _j(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!Jt(o)||!Dn(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Aj={name:"applyStyles",enabled:!0,phase:"write",fn:Mj,effect:_j,requires:["computeStyles"]};function In(e){return e.split("-")[0]}var Co=Math.max,Dc=Math.min,Ui=Math.round;function nm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function KC(){return!/^((?!chrome|android).)*safari/i.test(nm())}function Bi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Jt(e)&&(o=e.offsetWidth>0&&Ui(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ui(r.height)/e.offsetHeight||1);var s=Ao(e)?It(e):window,a=s.visualViewport,l=!KC()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function R0(e){var t=Bi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function YC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&O0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ur(e){return It(e).getComputedStyle(e)}function Oj(e){return["table","td","th"].indexOf(Dn(e))>=0}function qr(e){return((Ao(e)?e.ownerDocument:e.document)||window.document).documentElement}function cf(e){return Dn(e)==="html"?e:e.assignedSlot||e.parentNode||(O0(e)?e.host:null)||qr(e)}function kx(e){return!Jt(e)||ur(e).position==="fixed"?null:e.offsetParent}function Rj(e){var t=/firefox/i.test(nm()),n=/Trident/i.test(nm());if(n&&Jt(e)){var r=ur(e);if(r.position==="fixed")return null}var o=cf(e);for(O0(o)&&(o=o.host);Jt(o)&&["html","body"].indexOf(Dn(o))<0;){var i=ur(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function hl(e){for(var t=It(e),n=kx(e);n&&Oj(n)&&ur(n).position==="static";)n=kx(n);return n&&(Dn(n)==="html"||Dn(n)==="body"&&ur(n).position==="static")?t:n||Rj(e)||t}function j0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zs(e,t,n){return Co(e,Dc(t,n))}function jj(e,t,n){var r=Zs(e,t,n);return r>n?n:r}function qC(){return{top:0,right:0,bottom:0,left:0}}function XC(e){return Object.assign({},qC(),e)}function QC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ij=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,XC(typeof t!="number"?t:QC(t,pl))};function Lj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=In(n.placement),l=j0(a),u=[Pt,on].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=Ij(o.padding,n),f=R0(i),p=l==="y"?$t:Pt,h=l==="y"?rn:on,g=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],b=s[l]-n.rects.reference[l],m=hl(i),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,x=g/2-b/2,w=d[p],C=y-f[c]-d[h],k=y/2-f[c]/2+x,$=Zs(w,k,C),P=l;n.modifiersData[r]=(t={},t[P]=$,t.centerOffset=$-k,t)}}function Nj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||YC(t.elements.popper,o)&&(t.elements.arrow=o))}const Dj={name:"arrow",enabled:!0,phase:"main",fn:Lj,effect:Nj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gi(e){return e.split("-")[1]}var Fj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ui(n*o)/o||0,y:Ui(r*o)/o||0}}function Cx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,h=s.y,g=h===void 0?0:h,b=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=b.x,g=b.y;var m=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),x=Pt,w=$t,C=window;if(u){var k=hl(n),$="clientHeight",P="clientWidth";if(k===It(n)&&(k=qr(n),ur(k).position!=="static"&&a==="absolute"&&($="scrollHeight",P="scrollWidth")),k=k,o===$t||(o===Pt||o===on)&&i===Da){w=rn;var R=d&&k===C&&C.visualViewport?C.visualViewport.height:k[$];g-=R-r.height,g*=l?1:-1}if(o===Pt||(o===$t||o===rn)&&i===Da){x=on;var M=d&&k===C&&C.visualViewport?C.visualViewport.width:k[P];p-=M-r.width,p*=l?1:-1}}var O=Object.assign({position:a},u&&Fj),E=c===!0?zj({x:p,y:g},It(n)):{x:p,y:g};if(p=E.x,g=E.y,l){var _;return Object.assign({},O,(_={},_[w]=y?"0":"",_[x]=m?"0":"",_.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",_))}return Object.assign({},O,(t={},t[w]=y?g+"px":"",t[x]=m?p+"px":"",t.transform="",t))}function Vj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:In(t.placement),variation:Gi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Cx(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cx(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Hj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vj,data:{}};var au={passive:!0};function Wj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=It(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,au)}),a&&l.addEventListener("resize",n.update,au),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,au)}),a&&l.removeEventListener("resize",n.update,au)}}const Uj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wj,data:{}};var Bj={left:"right",right:"left",bottom:"top",top:"bottom"};function Bu(e){return e.replace(/left|right|bottom|top/g,function(t){return Bj[t]})}var Gj={start:"end",end:"start"};function $x(e){return e.replace(/start|end/g,function(t){return Gj[t]})}function I0(e){var t=It(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function L0(e){return Bi(qr(e)).left+I0(e).scrollLeft}function Kj(e,t){var n=It(e),r=qr(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=KC();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+L0(e),y:l}}function Yj(e){var t,n=qr(e),r=I0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Co(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Co(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+L0(e),l=-r.scrollTop;return ur(o||n).direction==="rtl"&&(a+=Co(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function N0(e){var t=ur(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ZC(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:Jt(e)&&N0(e)?e:ZC(cf(e))}function Js(e,t){var n;t===void 0&&(t=[]);var r=ZC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=It(r),s=o?[i].concat(i.visualViewport||[],N0(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Js(cf(s)))}function rm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qj(e,t){var n=Bi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Px(e,t,n){return t===BC?rm(Kj(e,n)):Ao(t)?qj(t,n):rm(Yj(qr(e)))}function Xj(e){var t=Js(cf(e)),n=["absolute","fixed"].indexOf(ur(e).position)>=0,r=n&&Jt(e)?hl(e):e;return Ao(r)?t.filter(function(o){return Ao(o)&&YC(o,r)&&Dn(o)!=="body"}):[]}function Qj(e,t,n,r){var o=t==="clippingParents"?Xj(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Px(e,u,r);return l.top=Co(c.top,l.top),l.right=Dc(c.right,l.right),l.bottom=Dc(c.bottom,l.bottom),l.left=Co(c.left,l.left),l},Px(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function JC(e){var t=e.reference,n=e.element,r=e.placement,o=r?In(r):null,i=r?Gi(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case $t:l={x:s,y:t.y-n.height};break;case rn:l={x:s,y:t.y+t.height};break;case on:l={x:t.x+t.width,y:a};break;case Pt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?j0(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Wi:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Da:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Fa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?vj:a,u=n.rootBoundary,c=u===void 0?BC:u,d=n.elementContext,f=d===void 0?Ps:d,p=n.altBoundary,h=p===void 0?!1:p,g=n.padding,b=g===void 0?0:g,m=XC(typeof b!="number"?b:QC(b,pl)),y=f===Ps?yj:Ps,x=e.rects.popper,w=e.elements[h?y:f],C=Qj(Ao(w)?w:w.contextElement||qr(e.elements.popper),l,c,s),k=Bi(e.elements.reference),$=JC({reference:k,element:x,strategy:"absolute",placement:o}),P=rm(Object.assign({},x,$)),R=f===Ps?P:k,M={top:C.top-R.top+m.top,bottom:R.bottom-C.bottom+m.bottom,left:C.left-R.left+m.left,right:R.right-C.right+m.right},O=e.modifiersData.offset;if(f===Ps&&O){var E=O[o];Object.keys(M).forEach(function(_){var T=[on,rn].indexOf(_)>=0?1:-1,I=[$t,rn].indexOf(_)>=0?"y":"x";M[_]+=E[I]*T})}return M}function Zj(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?GC:l,c=Gi(r),d=c?a?Sx:Sx.filter(function(h){return Gi(h)===c}):pl,f=d.filter(function(h){return u.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,g){return h[g]=Fa(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[In(g)],h},{});return Object.keys(p).sort(function(h,g){return p[h]-p[g]})}function Jj(e){if(In(e)===A0)return[];var t=Bu(e);return[$x(e),t,$x(t)]}function e7(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,g=n.allowedAutoPlacements,b=t.options.placement,m=In(b),y=m===b,x=l||(y||!h?[Bu(b)]:Jj(b)),w=[b].concat(x).reduce(function(J,X){return J.concat(In(X)===A0?Zj(t,{placement:X,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):X)},[]),C=t.rects.reference,k=t.rects.popper,$=new Map,P=!0,R=w[0],M=0;M=0,I=T?"width":"height",L=Fa(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),F=T?_?on:Pt:_?rn:$t;C[I]>k[I]&&(F=Bu(F));var j=Bu(F),N=[];if(i&&N.push(L[E]<=0),a&&N.push(L[F]<=0,L[j]<=0),N.every(function(J){return J})){R=O,P=!1;break}$.set(O,N)}if(P)for(var V=h?3:1,G=function(X){var oe=w.find(function(le){var de=$.get(le);if(de)return de.slice(0,X).every(function(W){return W})});if(oe)return R=oe,"break"},B=V;B>0;B--){var q=G(B);if(q==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const t7={name:"flip",enabled:!0,phase:"main",fn:e7,requiresIfExists:["offset"],data:{_skip:!1}};function Tx(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ex(e){return[$t,on,rn,Pt].some(function(t){return e[t]>=0})}function n7(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Fa(t,{elementContext:"reference"}),a=Fa(t,{altBoundary:!0}),l=Tx(s,r),u=Tx(a,o,i),c=Ex(l),d=Ex(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const r7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:n7};function o7(e,t,n){var r=In(e),o=[Pt,$t].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Pt,on].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function i7(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=GC.reduce(function(c,d){return c[d]=o7(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const s7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:i7};function a7(e){var t=e.state,n=e.name;t.modifiersData[n]=JC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const l7={name:"popperOffsets",enabled:!0,phase:"read",fn:a7,data:{}};function u7(e){return e==="x"?"y":"x"}function c7(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,g=h===void 0?0:h,b=Fa(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=In(t.placement),y=Gi(t.placement),x=!y,w=j0(m),C=u7(w),k=t.modifiersData.popperOffsets,$=t.rects.reference,P=t.rects.popper,R=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,M=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(k){if(i){var _,T=w==="y"?$t:Pt,I=w==="y"?rn:on,L=w==="y"?"height":"width",F=k[w],j=F+b[T],N=F-b[I],V=p?-P[L]/2:0,G=y===Wi?$[L]:P[L],B=y===Wi?-P[L]:-$[L],q=t.elements.arrow,J=p&&q?R0(q):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qC(),oe=X[T],le=X[I],de=Zs(0,$[L],J[L]),W=x?$[L]/2-V-de-oe-M.mainAxis:G-de-oe-M.mainAxis,K=x?-$[L]/2+V+de+le+M.mainAxis:B+de+le+M.mainAxis,Q=t.elements.arrow&&hl(t.elements.arrow),D=Q?w==="y"?Q.clientTop||0:Q.clientLeft||0:0,be=(_=O==null?void 0:O[w])!=null?_:0,ne=F+W-be-D,Re=F+K-be,me=Zs(p?Dc(j,ne):j,F,p?Co(N,Re):N);k[w]=me,E[w]=me-F}if(a){var Be,Qr=w==="x"?$t:Pt,qP=w==="x"?rn:on,Zr=k[C],Ol=C==="y"?"height":"width",Uv=Zr+b[Qr],Bv=Zr-b[qP],Of=[$t,Pt].indexOf(m)!==-1,Gv=(Be=O==null?void 0:O[C])!=null?Be:0,Kv=Of?Uv:Zr-$[Ol]-P[Ol]-Gv+M.altAxis,Yv=Of?Zr+$[Ol]+P[Ol]-Gv-M.altAxis:Bv,qv=p&&Of?jj(Kv,Zr,Yv):Zs(p?Kv:Uv,Zr,p?Yv:Bv);k[C]=qv,E[C]=qv-Zr}t.modifiersData[r]=E}}const d7={name:"preventOverflow",enabled:!0,phase:"main",fn:c7,requiresIfExists:["offset"]};function f7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function p7(e){return e===It(e)||!Jt(e)?I0(e):f7(e)}function h7(e){var t=e.getBoundingClientRect(),n=Ui(t.width)/e.offsetWidth||1,r=Ui(t.height)/e.offsetHeight||1;return n!==1||r!==1}function m7(e,t,n){n===void 0&&(n=!1);var r=Jt(t),o=Jt(t)&&h7(t),i=qr(t),s=Bi(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Dn(t)!=="body"||N0(i))&&(a=p7(t)),Jt(t)?(l=Bi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=L0(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function g7(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function v7(e){var t=g7(e);return Ej.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function y7(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function x7(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Mx={placement:"bottom",modifiers:[],strategy:"absolute"};function _x(){for(var e=arguments.length,t=new Array(e),n=0;n{i||a(k7(o)||document.body)},[o,i]),or(()=>{if(s&&!i)return Sc(n,s),()=>{Sc(n,null)}},[n,s,i]),i){if(S.isValidElement(r)){const u={ref:l};return S.cloneElement(r,u)}return v.jsx(S.Fragment,{children:r})}return v.jsx(S.Fragment,{children:s&&rl.createPortal(r,s)})});function $7(e){return Hn("MuiPopper",e)}fr("MuiPopper",["root"]);const P7=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],T7=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function E7(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function om(e){return typeof e=="function"?e():e}function M7(e){return e.nodeType!==void 0}const _7=e=>{const{classes:t}=e;return Vn({root:["root"]},$7,t)},A7={},O7=S.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:g}=t,b=se(t,P7),m=S.useRef(null),y=Li(m,n),x=S.useRef(null),w=Li(x,f),C=S.useRef(w);or(()=>{C.current=w},[w]),S.useImperativeHandle(f,()=>x.current,[]);const k=E7(c,s),[$,P]=S.useState(k),[R,M]=S.useState(om(o));S.useEffect(()=>{x.current&&x.current.forceUpdate()}),S.useEffect(()=>{o&&M(om(o))},[o]),or(()=>{if(!R||!u)return;const I=j=>{P(j.placement)};let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{I(j)}}];l!=null&&(L=L.concat(l)),d&&d.modifiers!=null&&(L=L.concat(d.modifiers));const F=S7(R,m.current,A({placement:k},d,{modifiers:L}));return C.current(F),()=>{F.destroy(),C.current(null)}},[R,a,l,u,d,k]);const O={placement:$};g!==null&&(O.TransitionProps=g);const E=_7(t),_=(r=h.root)!=null?r:"div",T=On({elementType:_,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:E.root});return v.jsx(_,A({},T,{children:typeof i=="function"?i(O):i}))}),R7=S.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=A7,popperRef:p,style:h,transition:g=!1,slotProps:b={},slots:m={}}=t,y=se(t,T7),[x,w]=S.useState(!0),C=()=>{w(!1)},k=()=>{w(!0)};if(!l&&!c&&(!g||x))return null;let $;if(i)$=i;else if(r){const M=om(r);$=M&&M7(M)?wc(M).body:wc(null).body}const P=!c&&l&&(!g||x)?"none":void 0,R=g?{in:c,onEnter:C,onExited:k}:void 0;return v.jsx(C7,{disablePortal:a,container:$,children:v.jsx(O7,A({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:g?!x:c,placement:d,popperOptions:f,popperRef:p,slotProps:b,slots:m},y,{style:A({position:"fixed",top:0,left:0,display:P},h),TransitionProps:R,children:o}))})}),j7=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],I7=qe(R7,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),L7=S.forwardRef(function(t,n){var r;const o=WC(),i=Ug({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:g,popperOptions:b,popperRef:m,transition:y,slots:x,slotProps:w}=i,C=se(i,j7),k=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,$=A({anchorEl:s,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:g,popperOptions:b,popperRef:m,transition:y},C);return v.jsx(I7,A({as:a,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:w??u},$,{ref:n}))});function e5(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=S.useState(!1);return or(()=>{n||i(!0)},[n]),S.useEffect(()=>{n&&i(!0)},[n]),v.jsx(S.Fragment,{children:o?t:r})}const ml=S.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null}),N7=(e,t)=>{switch(t.type){case"enterItem":return A({},e,{item:t.data});case"exitChart":return e.item===null&&e.axis.x===null&&e.axis.y===null?e:A({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return A({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:A({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:A({},e,{axis:t.data});default:return e}};function D7(e){const{children:t}=e,[n,r]=S.useReducer(N7,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),o=S.useMemo(()=>A({},n,{dispatch:r}),[n]);return v.jsx(ml.Provider,{value:o,children:t})}function F7(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e,r={width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t};return{getBoundingClientRect:()=>A({},r,{toJSON:()=>JSON.stringify(r)})}}function z7(){const e=DC(),[t,n]=S.useState(null);return S.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},i=s=>{n({x:s.clientX,y:s.clientY,height:s.height,pointerType:s.pointerType})};return r.addEventListener("pointerdown",i),r.addEventListener("pointermove",i),r.addEventListener("pointerup",o),()=>{r.removeEventListener("pointerdown",i),r.removeEventListener("pointermove",i),r.removeEventListener("pointerup",o)}},[e]),t}function V7(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function H7(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}function W7(e){return Hn("MuiChartsTooltip",e)}const Ax=fr("MuiChartsTooltip",["root","table","row","cell","mark","markCell","labelCell","valueCell"]),t5=qe("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),borderRadius:e.shape.borderRadius})),n5=qe("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),im=qe("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),mo=qe("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${Ax.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${Ax.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),r5=qe("div",{name:"MuiChartsTooltip",slot:"Mark",shouldForwardProp:e=>JA(e)&&e!=="color"})(({theme:e,color:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",boxShadow:e.shadows[1],backgroundColor:t,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function U7(e){var c;const{series:t,itemData:n,sx:r,classes:o,getColor:i}=e;if(n.dataIndex===void 0||!t.data[n.dataIndex])return null;const{displayedLabel:s,color:a}=t.type==="pie"?{color:i(n.dataIndex),displayedLabel:xn(t.data[n.dataIndex].label,"tooltip")}:{color:i(n.dataIndex),displayedLabel:xn(t.label,"tooltip")},l=t.type==="pie"?A({},t.data[n.dataIndex],{label:xn(t.data[n.dataIndex].label,"tooltip")}):t.data[n.dataIndex],u=(c=t.valueFormatter)==null?void 0:c.call(t,l,{dataIndex:n.dataIndex});return v.jsx(t5,{sx:r,className:o.root,children:v.jsx(n5,{className:o.table,children:v.jsx("tbody",{children:v.jsxs(im,{className:o.row,children:[v.jsx(mo,{className:Zt(o.markCell,o.cell),children:v.jsx(r5,{color:a,className:o.mark})}),v.jsx(mo,{className:Zt(o.labelCell,o.cell),children:s}),v.jsx(mo,{className:Zt(o.valueCell,o.cell),children:u})]})})})})}function B7(e){var w;const{content:t,itemData:n,sx:r,classes:o,contentProps:i}=e,s=No()[n.type].series[n.seriesId],{xAxis:a,yAxis:l,xAxisIds:u,yAxisIds:c}=Yr(),{zAxis:d,zAxisIds:f}=S.useContext(E0),p=cC(),h=s.xAxisId??s.xAxisKey??u[0],g=s.yAxisId??s.yAxisKey??c[0],b=s.zAxisId??s.zAxisKey??f[0],m=((w=p[s.type])==null?void 0:w.call(p,s,h&&a[h],g&&l[g],b&&d[b]))??(()=>""),y=t??U7,x=On({elementType:y,externalSlotProps:i,additionalProps:{itemData:n,series:s,sx:r,classes:o,getColor:m},ownerState:{}});return v.jsx(y,A({},x))}function G7(e){return Hn("MuiTypography",e)}fr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const K7=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Y7=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${Nn(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Vn(a,G7,s)},q7=qe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Nn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>A({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Ox={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},X7={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Q7=e=>X7[e]||e,Cp=S.forwardRef(function(t,n){const r=Ug({props:t,name:"MuiTypography"}),o=Q7(r.color),i=Vk(A({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=Ox}=i,h=se(i,K7),g=A({},i,{align:s,color:o,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:p}),b=l||(d?"p":p[f]||Ox[f])||"span",m=Y7(g);return v.jsx(q7,A({as:b,ref:n,ownerState:g,className:Zt(m.root,a)},h))});let Rx;class Z7{constructor(){if(this.types=new Set,Rx)throw new Error("You can only create one instance!");Rx=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const df=new Z7;df.addType("bar");df.addType("line");df.addType("scatter");function o5(e){return df.getTypes().has(e)}function J7(e){return o5(e.type)}function eI(e){const{series:t,axis:n,dataIndex:r,axisValue:o,sx:i,classes:s}=e;if(r==null)return null;const a=n.valueFormatter??(l=>n.scaleType==="utc"?H7(l):l.toLocaleString());return v.jsx(t5,{sx:i,className:s.root,children:v.jsxs(n5,{className:s.table,children:[o!=null&&!n.hideTooltip&&v.jsx("thead",{children:v.jsx(im,{children:v.jsx(mo,{colSpan:3,children:v.jsx(Cp,{children:a(o,{location:"tooltip"})})})})}),v.jsx("tbody",{children:t.filter(J7).map(({id:l,label:u,valueFormatter:c,data:d,getColor:f})=>{const p=c(d[r]??null,{dataIndex:r});if(p==null)return null;const h=xn(u,"tooltip"),g=f(r);return v.jsxs(im,{className:s.row,children:[v.jsx(mo,{className:Zt(s.markCell,s.cell),children:g&&v.jsx(r5,{color:g,className:s.mark})}),v.jsx(mo,{className:Zt(s.labelCell,s.cell),children:h?v.jsx(Cp,{children:h}):null}),v.jsx(mo,{className:Zt(s.valueCell,s.cell),children:v.jsx(Cp,{children:p})})]},l)})})]})})}function tI(e){const{content:t,contentProps:n,axisData:r,sx:o,classes:i}=e,s=(r.x&&r.x.index)!==void 0,a=s?r.x&&r.x.index:r.y&&r.y.index,l=s?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:u,xAxis:c,yAxisIds:d,yAxis:f}=Yr(),{zAxisIds:p,zAxis:h}=S.useContext(E0),g=No(),b=cC(),m=s?u[0]:d[0],y=S.useMemo(()=>{const k=[];return Object.keys(g).filter(o5).forEach($=>{g[$].seriesOrder.forEach(P=>{var _;const R=g[$].series[P],M=R.xAxisId??R.xAxisKey,O=R.yAxisId??R.yAxisKey,E=s?M:O;if(E===void 0||E===m){const T=g[$].series[P],I=M??u[0],L=O??d[0],F=T.zAxisId??T.zAxisKey??p[0],j=((_=b[$])==null?void 0:_.call(b,T,c[I],f[L],F&&h[F]))??(()=>"");k.push(A({},T,{getColor:j}))}})}),k},[m,b,s,g,c,u,f,d,h,p]),x=S.useMemo(()=>s?c[m]:f[m],[m,s,c,f]),w=t??eI,C=On({elementType:w,externalSlotProps:n,additionalProps:{axisData:r,series:y,axis:x,dataIndex:a,axisValue:l,sx:o,classes:i},ownerState:{}});return v.jsx(w,A({},C))}const nI=e=>{const{classes:t}=e;return Vn({root:["root"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},W7,t)},rI=qe(L7,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function oI(e){const t=nf({props:e,name:"MuiChartsTooltip"}),{trigger:n="axis",itemContent:r,axisContent:o,slots:i,slotProps:s}=t,a=z7(),{item:l,axis:u}=S.useContext(ml),c=n==="item"?l:u,d=V7(n,c),f=a!==null&&d,p=nI({classes:t.classes}),h=(i==null?void 0:i.popper)??rI,g=On({elementType:h,externalSlotProps:s==null?void 0:s.popper,additionalProps:{open:f,placement:(a==null?void 0:a.pointerType)==="mouse"?"right-start":"top",anchorEl:F7(a),modifiers:[{name:"offset",options:{offset:[0,(a==null?void 0:a.pointerType)==="touch"?40-a.height:0]}}]},ownerState:{}});return n==="none"?null:v.jsx(e5,{children:f&&v.jsx(h,A({},g,{children:n==="item"?v.jsx(B7,{itemData:c,content:(i==null?void 0:i.itemContent)??r,contentProps:s==null?void 0:s.itemContent,sx:{mx:2},classes:p}):v.jsx(tI,{axisData:c,content:(i==null?void 0:i.axisContent)??o,contentProps:s==null?void 0:s.axisContent,sx:{mx:2},classes:p})}))})}const iI=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=xn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},sI=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=xn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},aI=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=xn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},lI=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>(n[o].data.forEach(i=>{const s=xn(i.label,"legend");s!==void 0&&r.push({color:i.color,label:s,id:i.id})}),r),[])},uI={bar:iI,scatter:sI,line:aI,pie:lI};function cI(e){return Object.keys(e).flatMap(t=>{const n=uI[t];return n===void 0?[]:n(e[t])})}function dI(e){return Hn("MuiChartsLegend",e)}fr("MuiChartsLegend",["root","series","mark","label","column","row"]);const fI=["label"];function pI(e,t,n,r,o,i,s){let a=0,l=0,u=0,c=0,d=0;const f=[0];return[e.map(h=>{let{label:g}=h,b=se(h,fI);const m=t(g,n),y=A({},b,{label:g,positionX:a,positionY:l,innerHeight:m.innerHeight,innerWidth:m.innerWidth,outerHeight:m.outerHeight,outerWidth:m.outerWidth,rowIndex:d});return r==="row"&&(a+m.innerWidth>o&&(a=0,l+=f[d],d+=1,f.length<=d&&f.push(0),y.positionX=a,y.positionY=l,y.rowIndex=d),u=Math.max(u,a+m.outerWidth),c=Math.max(c,l+m.outerHeight),f[d]=Math.max(f[d],m.outerHeight),a+=m.outerWidth),r==="column"&&(l+m.innerHeight>i&&(a=u+s,l=0,d=0,y.positionX=a,y.positionY=l,y.rowIndex=d),f.length<=d&&f.push(0),u=Math.max(u,a+m.outerWidth),c=Math.max(c,l+m.outerHeight),d+=1,l+=m.outerHeight),y}).map(h=>A({},h,{positionY:h.positionY+(r==="row"?f[h.rowIndex]/2:h.outerHeight/2)})),u,c]}const hI=["rotate","dominantBaseline"],mI=qe("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gI=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:A({left:0,right:0,top:0,bottom:0},e);function vI(e){const{hidden:t,position:n,direction:r,itemsToDisplay:o,classes:i,itemMarkWidth:s=20,itemMarkHeight:a=20,markGap:l=5,itemGap:u=10,padding:c=10,labelStyle:d}=e,f=is(),p=f.direction==="rtl",h=pr(),g=S.useMemo(()=>A({},f.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(f.vars||f).palette.text.primary,lineHeight:1},d),[d,f]),b=S.useMemo(()=>gI(c),[c]),m=S.useCallback((O,E={})=>{const _=se(E,hI),T=M0({style:_,needsComputation:!0,text:O}),I={innerWidth:s+l+Math.max(...T.map(L=>L.width)),innerHeight:Math.max(a,T.length*T[0].height)};return A({},I,{outerWidth:I.innerWidth+u,outerHeight:I.innerHeight+u})},[u,a,s,l]),y=h.left+h.width+h.right,x=h.top+h.height+h.bottom,w=y-b.left-b.right,C=x-b.top-b.bottom,[k,$,P]=S.useMemo(()=>pI(o,m,g,r,w,C,u),[o,m,g,r,w,C,u]),R=S.useMemo(()=>{switch(n.horizontal){case"left":return b.left;case"right":return y-b.right-$;default:return(y-$)/2}},[n.horizontal,b.left,b.right,y,$]),M=S.useMemo(()=>{switch(n.vertical){case"top":return b.top;case"bottom":return x-b.bottom-P;default:return(x-P)/2}},[n.vertical,b.top,b.bottom,x,P]);return t?null:v.jsx(e5,{children:v.jsx(mI,{className:i==null?void 0:i.root,children:k.map(({id:O,label:E,color:_,positionX:T,positionY:I})=>v.jsxs("g",{className:i==null?void 0:i.series,transform:`translate(${R+(p?$-T:T)} ${M+I})`,children:[v.jsx("rect",{className:i==null?void 0:i.mark,x:p?-s:0,y:-a/2,width:s,height:a,fill:_}),v.jsx(Na,{style:g,text:E,x:(p?-1:1)*(s+l),y:0})]},O))})})}const yI=["drawingArea","seriesToDisplay"];function xI(e){const{seriesToDisplay:t}=e,n=se(e,yI);return v.jsx(vI,A({},n,{itemsToDisplay:t}))}const bI=e=>{const{classes:t,direction:n}=e;return Vn({root:["root",n],mark:["mark"],label:["label"],series:["series"]},dI,t)},wI={position:{horizontal:"middle",vertical:"top"},direction:"row"};function SI(e){const t=nf({props:A({},wI,e),name:"MuiChartsLegend"}),{position:n,direction:r,hidden:o,slots:i,slotProps:s}=t,a=is(),l=bI(A({},t,{theme:a})),u=pr(),c=No(),d=cI(c),f=(i==null?void 0:i.legend)??xI,p=On({elementType:f,externalSlotProps:s==null?void 0:s.legend,additionalProps:{position:n,direction:r,classes:l,drawingArea:u,series:c,hidden:o,seriesToDisplay:d},ownerState:{}});return v.jsx(f,A({},p))}const kI=10;function jx(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:o,direction:i,scale:s,colorScale:a,colorMap:l}=e,u=[l.min??0,l.max??100],c=u.map(s).filter(h=>h!==void 0);if(c.length!==2)return null;const d=typeof u[0]=="number"?ja(u[0],u[1]):gC(u[0],u[1]),f=Math.round((Math.max(...c)-Math.min(...c))/kI),p=`${u[0]}-${u[1]}-`;return v.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${i}${n?1:2}`]:t==="objectBoundingBox"?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:f+1},(h,g)=>{const b=d(g/f);if(b===void 0)return null;const m=s(b);if(m===void 0)return null;const y=n?1-m/o:m/o,x=a(b);return x===null?null:v.jsx("stop",{offset:y,stopColor:x,stopOpacity:1},p+g)})})}function lo(e,t){if(typeof e=="number")return e;if(e==="100%")return t;if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith("px")){const n=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(n))return n}throw Error(`MUI X: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function CI(e){return Hn("MuiChartsAxisHighlight",e)}fr("MuiChartsAxisHighlight",["root"]);const $I=()=>Vn({root:["root"]},CI),lu=qe("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>A({pointerEvents:"none"},e.axisHighlight==="band"&&{fill:t.palette.mode==="light"?"gray":"white",fillOpacity:.1},e.axisHighlight==="line"&&{strokeDasharray:"5 2",stroke:t.palette.mode==="light"?"#000000":"#ffffff"}));function PI(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:i,yAxis:s}=Yr(),a=$I(),l=r[0],u=i[0],c=o[l].scale,d=s[u].scale,{axis:f}=S.useContext(ml),p=vx(c),h=vx(d),g=f.x,b=f.y,m=t==="band"&&g!==null&&La(c),y=n==="band"&&b!==null&&La(d);return v.jsxs(S.Fragment,{children:[m&&c(g.value)!==void 0&&v.jsx(lu,{d:`M ${c(g.value)-(c.step()-c.bandwidth())/2} ${d.range()[0]} l ${c.step()} 0 l 0 ${d.range()[1]-d.range()[0]} l ${-c.step()} 0 Z`,className:a.root,ownerState:{axisHighlight:"band"}}),y&&d(b.value)!==void 0&&v.jsx(lu,{d:`M ${c.range()[0]} ${d(b.value)-(d.step()-d.bandwidth())/2} l 0 ${d.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-d.step()} Z`,className:a.root,ownerState:{axisHighlight:"band"}}),t==="line"&&f.x!==null&&v.jsx(lu,{d:`M ${p(f.x.value)} ${d.range()[0]} L ${p(f.x.value)} ${d.range()[1]}`,className:a.root,ownerState:{axisHighlight:"line"}}),n==="line"&&f.y!==null&&v.jsx(lu,{d:`M ${c.range()[0]} ${h(f.y.value)} L ${c.range()[1]} ${h(f.y.value)}`,className:a.root,ownerState:{axisHighlight:"line"}})]})}function TI(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}var D0=vl(),Z=e=>gl(e,D0),F0=vl();Z.write=e=>gl(e,F0);var ff=vl();Z.onStart=e=>gl(e,ff);var z0=vl();Z.onFrame=e=>gl(e,z0);var V0=vl();Z.onFinish=e=>gl(e,V0);var Ci=[];Z.setTimeout=(e,t)=>{const n=Z.now()+t,r=()=>{const i=Ci.findIndex(s=>s.cancel==r);~i&&Ci.splice(i,1),Er-=~i?1:0},o={time:n,handler:e,cancel:r};return Ci.splice(i5(n),0,o),Er+=1,s5(),o};var i5=e=>~(~Ci.findIndex(t=>t.time>e)||~Ci.length);Z.cancel=e=>{ff.delete(e),z0.delete(e),V0.delete(e),D0.delete(e),F0.delete(e)};Z.sync=e=>{sm=!0,Z.batchedUpdates(e),sm=!1};Z.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Z.onStart(n)}return r.handler=e,r.cancel=()=>{ff.delete(n),t=null},r};var H0=typeof window<"u"?window.requestAnimationFrame:()=>{};Z.use=e=>H0=e;Z.now=typeof performance<"u"?()=>performance.now():Date.now;Z.batchedUpdates=e=>e();Z.catch=console.error;Z.frameLoop="always";Z.advance=()=>{Z.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):l5()};var Tr=-1,Er=0,sm=!1;function gl(e,t){sm?(t.delete(e),e(0)):(t.add(e),s5())}function s5(){Tr<0&&(Tr=0,Z.frameLoop!=="demand"&&H0(a5))}function EI(){Tr=-1}function a5(){~Tr&&(H0(a5),Z.batchedUpdates(l5))}function l5(){const e=Tr;Tr=Z.now();const t=i5(Tr);if(t&&(u5(Ci.splice(0,t),n=>n.handler()),Er-=t),!Er){EI();return}ff.flush(),D0.flush(e?Math.min(64,Tr-e):16.667),z0.flush(),F0.flush(),V0.flush()}function vl(){let e=new Set,t=e;return{add(n){Er+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Er-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Er-=t.size,u5(t,r=>r(n)&&e.add(r)),Er+=e.size,t=e)}}}function u5(e,t){e.forEach(n=>{try{t(n)}catch(r){Z.catch(r)}})}var MI=Object.defineProperty,_I=(e,t)=>{for(var n in t)MI(e,n,{get:t[n],enumerable:!0})},Lt={};_I(Lt,{assign:()=>OI,colors:()=>Nr,createStringInterpolator:()=>U0,skipAnimation:()=>d5,to:()=>c5,willAdvance:()=>B0});function am(){}var AI=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),H={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Kn(e,t){if(H.arr(e)){if(!H.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function Fn(e,t,n){if(H.arr(e)){for(let r=0;rH.und(e)?[]:H.arr(e)?e:[e];function ea(e,t){if(e.size){const n=Array.from(e);e.clear(),ee(n,t)}}var Ds=(e,...t)=>ea(e,n=>n(...t)),W0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),U0,c5,Nr=null,d5=!1,B0=am,OI=e=>{e.to&&(c5=e.to),e.now&&(Z.now=e.now),e.colors!==void 0&&(Nr=e.colors),e.skipAnimation!=null&&(d5=e.skipAnimation),e.createStringInterpolator&&(U0=e.createStringInterpolator),e.requestAnimationFrame&&Z.use(e.requestAnimationFrame),e.batchedUpdates&&(Z.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B0=e.willAdvance),e.frameLoop&&(Z.frameLoop=e.frameLoop)},ta=new Set,Kt=[],$p=[],Fc=0,pf={get idle(){return!ta.size&&!Kt.length},start(e){Fc>e.priority?(ta.add(e),Z.onStart(RI)):(f5(e),Z(lm))},advance:lm,sort(e){if(Fc)Z.onFrame(()=>pf.sort(e));else{const t=Kt.indexOf(e);~t&&(Kt.splice(t,1),p5(e))}},clear(){Kt=[],ta.clear()}};function RI(){ta.forEach(f5),ta.clear(),Z(lm)}function f5(e){Kt.includes(e)||p5(e)}function p5(e){Kt.splice(jI(Kt,t=>t.priority>e.priority),0,e)}function lm(e){const t=$p;for(let n=0;n0}function jI(e,t){const n=e.findIndex(t);return n<0?e.length:n}var II=(e,t,n)=>Math.min(Math.max(n,e),t),LI={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},gn="[-+]?\\d*\\.?\\d+",zc=gn+"%";function hf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var NI=new RegExp("rgb"+hf(gn,gn,gn)),DI=new RegExp("rgba"+hf(gn,gn,gn,gn)),FI=new RegExp("hsl"+hf(gn,zc,zc)),zI=new RegExp("hsla"+hf(gn,zc,zc,gn)),VI=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,HI=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,WI=/^#([0-9a-fA-F]{6})$/,UI=/^#([0-9a-fA-F]{8})$/;function BI(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=WI.exec(e))?parseInt(t[1]+"ff",16)>>>0:Nr&&Nr[e]!==void 0?Nr[e]:(t=NI.exec(e))?(Yo(t[1])<<24|Yo(t[2])<<16|Yo(t[3])<<8|255)>>>0:(t=DI.exec(e))?(Yo(t[1])<<24|Yo(t[2])<<16|Yo(t[3])<<8|Nx(t[4]))>>>0:(t=VI.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=UI.exec(e))?parseInt(t[1],16)>>>0:(t=HI.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=FI.exec(e))?(Ix(Lx(t[1]),uu(t[2]),uu(t[3]))|255)>>>0:(t=zI.exec(e))?(Ix(Lx(t[1]),uu(t[2]),uu(t[3]))|Nx(t[4]))>>>0:null}function Pp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ix(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Pp(o,r,e+1/3),s=Pp(o,r,e),a=Pp(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function Yo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Lx(e){return(parseFloat(e)%360+360)%360/360}function Nx(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function uu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dx(e){let t=BI(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}var za=(e,t,n)=>{if(H.fun(e))return e;if(H.arr(e))return za({range:e,output:t,extrapolate:n});if(H.str(e.output[0]))return U0(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=KI(u,i);return GI(u,i[c],i[c+1],o[c],o[c+1],l,s,a,r.map)}};function GI(e,t,n,r,o,i,s,a,l){let u=l?l(e):e;if(un){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:o===1/0?u=u+r:u=u*(o-r)+r,u)}function KI(e,t){for(var n=1;n=e);++n);return n-1}var YI=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,o=t==="end"?Math.floor(r):Math.ceil(r);return II(0,1,o/e)},Vc=1.70158,cu=Vc*1.525,Fx=Vc+1,zx=2*Math.PI/3,Vx=2*Math.PI/4.5,du=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,qI={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Fx*e*e*e-Vc*e*e,easeOutBack:e=>1+Fx*Math.pow(e-1,3)+Vc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((cu+1)*2*e-cu)/2:(Math.pow(2*e-2,2)*((cu+1)*(e*2-2)+cu)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*zx),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*zx)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Vx))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Vx)/2+1,easeInBounce:e=>1-du(1-e),easeOutBounce:du,easeInOutBounce:e=>e<.5?(1-du(1-2*e))/2:(1+du(2*e-1))/2,steps:YI},Va=Symbol.for("FluidValue.get"),Ki=Symbol.for("FluidValue.observers"),Ut=e=>!!(e&&e[Va]),vt=e=>e&&e[Va]?e[Va]():e,Hx=e=>e[Ki]||null;function XI(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ha(e,t){const n=e[Ki];n&&n.forEach(r=>{XI(r,t)})}var h5=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");QI(this,e)}},QI=(e,t)=>m5(e,Va,t);function ss(e,t){if(e[Va]){let n=e[Ki];n||m5(e,Ki,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Wa(e,t){const n=e[Ki];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ki]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var m5=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Gu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ZI=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Wx=new RegExp(`(${Gu.source})(%|[a-z]+)`,"i"),JI=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,mf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,g5=e=>{const[t,n]=eL(e);if(!t||W0())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&mf.test(n))return g5(n);if(n)return n}return e},eL=e=>{const t=mf.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Tp,tL=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,v5=e=>{Tp||(Tp=Nr?new RegExp(`(${Object.keys(Nr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>vt(i).replace(mf,g5).replace(ZI,Dx).replace(Tp,Dx)),n=t.map(i=>i.match(Gu).map(Number)),o=n[0].map((i,s)=>n.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(i=>za({...e,output:i}));return i=>{var l;const s=!Wx.test(t[0])&&((l=t.find(u=>Wx.test(u)))==null?void 0:l.replace(Gu,""));let a=0;return t[0].replace(Gu,()=>`${o[a++](i)}${s||""}`).replace(JI,tL)}},G0="react-spring: ",y5=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${G0}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},nL=y5(console.warn);function rL(){nL(`${G0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var oL=y5(console.warn);function iL(){oL(`${G0}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function gf(e){return H.str(e)&&(e[0]=="#"||/\d/.test(e)||!W0()&&mf.test(e)||e in(Nr||{}))}var go=W0()?S.useEffect:S.useLayoutEffect,sL=()=>{const e=S.useRef(!1);return go(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function x5(){const e=S.useState()[1],t=sL();return()=>{t.current&&e(Math.random())}}function aL(e,t){const[n]=S.useState(()=>({inputs:t,result:e()})),r=S.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&lL(t,i.inputs)||(i={inputs:t,result:e()}):i=n,S.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function lL(e,t){if(e.length!==t.length)return!1;for(let n=0;nS.useEffect(e,uL),uL=[];function cL(e){const t=S.useRef();return S.useEffect(()=>{t.current=e}),t.current}var Ua=Symbol.for("Animated:node"),dL=e=>!!e&&e[Ua]===e,Cn=e=>e&&e[Ua],K0=(e,t)=>AI(e,Ua,t),vf=e=>e&&e[Ua]&&e[Ua].getPayload(),w5=class{constructor(){K0(this,this)}getPayload(){return this.payload||[]}},yl=class extends w5{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,H.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yl(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return H.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,H.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ba=class extends yl{constructor(e){super(0),this._string=null,this._toString=za({output:[e,e]})}static create(e){return new Ba(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(H.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=za({output:[this.getValue(),e]})),this._value=0,super.reset()}},Hc={dependencies:null},yf=class extends w5{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Fn(this.source,(n,r)=>{dL(n)?t[r]=n.getValue(e):Ut(n)?t[r]=vt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ee(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Fn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Hc.dependencies&&Ut(e)&&Hc.dependencies.add(e);const t=vf(e);t&&ee(t,n=>this.add(n))}},S5=class extends yf{constructor(e){super(e)}static create(e){return new S5(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(fL)),!0)}};function fL(e){return(gf(e)?Ba:yl).create(e)}function um(e){const t=Cn(e);return t?t.constructor:H.arr(e)?S5:gf(e)?Ba:yl}var Ux=(e,t)=>{const n=!H.fun(e)||e.prototype&&e.prototype.isReactComponent;return S.forwardRef((r,o)=>{const i=S.useRef(null),s=n&&S.useCallback(h=>{i.current=mL(o,h)},[o]),[a,l]=hL(r,t),u=x5(),c=()=>{const h=i.current;if(n&&!h)return;(h?t.applyAnimatedValues(h,a.getValue(!0)):!1)===!1&&u()},d=new pL(c,l),f=S.useRef();go(()=>(f.current=d,ee(l,h=>ss(h,d)),()=>{f.current&&(ee(f.current.deps,h=>Wa(h,f.current)),Z.cancel(f.current.update))})),S.useEffect(c,[]),b5(()=>()=>{const h=f.current;ee(h.deps,g=>Wa(g,h))});const p=t.getComponentProps(a.getValue());return S.createElement(e,{...p,ref:s})})},pL=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Z.write(this.update)}};function hL(e,t){const n=new Set;return Hc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yf(e),Hc.dependencies=null,[e,n]}function mL(e,t){return e&&(H.fun(e)?e(t):e.current=t),t}var Bx=Symbol.for("AnimatedComponent"),gL=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new yf(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=s=>{const a=Gx(s)||"Anonymous";return H.str(s)?s=i[s]||(i[s]=Ux(s,o)):s=s[Bx]||(s[Bx]=Ux(s,o)),s.displayName=`Animated(${a})`,s};return Fn(e,(s,a)=>{H.arr(e)&&(a=Gx(s)),i[a]=i(s)}),{animated:i}},Gx=e=>H.str(e)?e:e&&H.str(e.displayName)?e.displayName:H.fun(e)&&e.name||null;function yt(e,...t){return H.fun(e)?e(...t):e}var na=(e,t)=>e===!0||!!(t&&e&&(H.fun(e)?e(t):ct(e).includes(t))),k5=(e,t)=>H.obj(e)?t&&e[t]:e,C5=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,vL=e=>e,Y0=(e,t=vL)=>{let n=yL;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const i=t(e[o],o);H.und(i)||(r[o]=i)}return r},yL=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xL={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function bL(e){const t={};let n=0;if(Fn(e,(r,o)=>{xL[o]||(t[o]=r,n++)}),n)return t}function q0(e){const t=bL(e);if(t){const n={to:t};return Fn(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Ga(e){return e=vt(e),H.arr(e)?e.map(Ga):gf(e)?Lt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function wL(e){for(const t in e)return!0;return!1}function cm(e){return H.fun(e)||H.arr(e)&&H.obj(e[0])}function Kx(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function SL(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var kL={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},dm={...kL.default,mass:1,damping:1,easing:qI.linear,clamp:!1},CL=class{constructor(){this.velocity=0,Object.assign(this,dm)}};function $L(e,t,n){n&&(n={...n},Yx(n,t),t={...n,...t}),Yx(e,t),Object.assign(e,t);for(const s in dm)e[s]==null&&(e[s]=dm[s]);let{frequency:r,damping:o}=e;const{mass:i}=e;return H.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r),e}function Yx(e,t){if(!H.und(t.decay))e.duration=void 0;else{const n=!H.und(t.tension)||!H.und(t.friction);(n||!H.und(t.frequency)||!H.und(t.damping)||!H.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var qx=[],PL=class{constructor(){this.changed=!1,this.values=qx,this.toValues=null,this.fromValues=qx,this.config=new CL,this.immediate=!1}};function $5(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((s,a)=>{let l,u,c=na(n.cancel??(r==null?void 0:r.cancel),t);if(c)p();else{H.und(n.pause)||(o.paused=na(n.pause,t));let h=r==null?void 0:r.pause;h!==!0&&(h=o.paused||na(h,t)),l=yt(n.delay||0,t),h?(o.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){o.resumeQueue.add(f),o.timeouts.delete(u),u.cancel(),l=u.time-Z.now()}function f(){l>0&&!Lt.skipAnimation?(o.delayed=!0,u=Z.setTimeout(p,l),o.pauseQueue.add(d),o.timeouts.add(u)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(u),e<=(o.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},s)}catch(h){a(h)}}})}var X0=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?$i(e.get()):t.every(n=>n.noop)?P5(e.get()):hn(e.get(),t.every(n=>n.finished)),P5=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),hn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),$i=e=>({value:e,cancelled:!0,finished:!1});function T5(e,t,n,r){const{callId:o,parentId:i,onRest:s}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=Y0(t,(b,m)=>m==="onRest"?void 0:b);let c,d;const f=new Promise((b,m)=>(c=b,d=m)),p=b=>{const m=o<=(n.cancelId||0)&&$i(r)||o!==n.asyncId&&hn(r,!1);if(m)throw b.result=m,d(b),b},h=(b,m)=>{const y=new Xx,x=new Qx;return(async()=>{if(Lt.skipAnimation)throw Ka(n),x.result=hn(r,!1),d(x),x;p(y);const w=H.obj(b)?{...b}:{...m,to:b};w.parentId=o,Fn(u,(k,$)=>{H.und(w[$])&&(w[$]=k)});const C=await r.start(w);return p(y),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let g;if(Lt.skipAnimation)return Ka(n),hn(r,!1);try{let b;H.arr(e)?b=(async m=>{for(const y of m)await h(y)})(e):b=Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([b.then(c),f]),g=hn(r.get(),!0,!1)}catch(b){if(b instanceof Xx)g=b.result;else if(b instanceof Qx)g=b.result;else throw b}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return H.fun(s)&&Z.batchedUpdates(()=>{s(g,r,r.item)}),g})()}function Ka(e,t){ea(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Xx=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Qx=class extends Error{constructor(){super("SkipAnimationSignal")}},fm=e=>e instanceof Q0,TL=1,Q0=class extends h5{constructor(){super(...arguments),this.id=TL++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Cn(this);return e&&e.getValue()}to(...e){return Lt.to(this,e)}interpolate(...e){return rL(),Lt.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ha(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||pf.sort(this),Ha(this,{type:"priority",parent:this,priority:e})}},Oo=Symbol.for("SpringPhase"),E5=1,pm=2,hm=4,Ep=e=>(e[Oo]&E5)>0,mr=e=>(e[Oo]&pm)>0,Ts=e=>(e[Oo]&hm)>0,Zx=(e,t)=>t?e[Oo]|=pm|E5:e[Oo]&=~pm,Jx=(e,t)=>t?e[Oo]|=hm:e[Oo]&=~hm,EL=class extends Q0{constructor(e,t){if(super(),this.animation=new PL,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!H.und(e)||!H.und(t)){const n=H.obj(e)?{...e}:{...t,from:e};H.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(mr(this)||this._state.asyncTo)||Ts(this)}get goal(){return vt(this.animation.to)}get velocity(){const e=Cn(this);return e instanceof yl?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Ep(this)}get isAnimating(){return mr(this)}get isPaused(){return Ts(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,s=vf(r.to);!s&&Ut(r.to)&&(o=ct(vt(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==Ba?1:s?s[c].lastPosition:o[c];let f=r.immediate,p=d;if(!f){if(p=u.lastPosition,i.tension<=0){u.done=!0;return}let h=u.elapsedTime+=e;const g=r.fromValues[c],b=u.v0!=null?u.v0:u.v0=H.arr(i.velocity)?i.velocity[c]:i.velocity;let m;const y=i.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(H.und(i.duration))if(i.decay){const x=i.decay===!0?.998:i.decay,w=Math.exp(-(1-x)*h);p=g+b/(1-x)*(1-w),f=Math.abs(u.lastPosition-p)<=y,m=b*w}else{m=u.lastVelocity==null?b:u.lastVelocity;const x=i.restVelocity||y/10,w=i.clamp?0:i.bounce,C=!H.und(w),k=g==d?u.v0>0:gx,!(!$&&(f=Math.abs(d-p)<=y,f)));++O){C&&(P=p==d||p>d==k,P&&(m=-m*w,p=d));const E=-i.tension*1e-6*(p-d),_=-i.friction*.001*m,T=(E+_)/i.mass;m=m+T*R,p=p+m*R}}else{let x=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,h=u.elapsedTime+=e)),x=(i.progress||0)+h/this._memoizedDuration,x=x>1?1:x<0?0:x,u.durationProgress=x),p=g+i.easing(x)*(d-g),m=(p-u.lastPosition)/e,f=x==1}u.lastVelocity=m,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}s&&!s[c].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,i.round)&&(n=!0)});const a=Cn(this),l=a.getValue();if(t){const u=vt(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Z.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(mr(this)){const{to:e,config:t}=this.animation;Z.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return H.und(e)?(n=this.queue||[],this.queue=[]):n=[H.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>X0(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ka(this._state,e&&this._lastCallId),Z.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=H.obj(n)?n[t]:n,(n==null||cm(n))&&(n=void 0),r=H.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return Ep(this)||(e.reverse&&([n,r]=[r,n]),r=vt(r),H.und(r)?Cn(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Y0(e,(s,a)=>/^on/.test(a)?k5(s,n):s)),tb(this,e,"onProps"),Ms(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return $5(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ts(this)||(Jx(this,!0),Ds(i.pauseQueue),Ms(this,"onPause",hn(this,Es(this,this.animation.to)),this))},resume:()=>{Ts(this)&&(Jx(this,!1),mr(this)&&this._resume(),Ds(i.resumeQueue),Ms(this,"onResume",hn(this,Es(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=M5(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n($i(this));const r=!H.und(e.to),o=!H.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n($i(this));const{key:i,defaultProps:s,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;o&&!r&&(!t.default||H.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const f=!Kn(d,u);f&&(a.from=d),d=vt(d);const p=!Kn(c,l);p&&this._focus(c);const h=cm(t.to),{config:g}=a,{decay:b,velocity:m}=g;(r||o)&&(g.velocity=0),t.config&&!h&&$L(g,yt(t.config,i),t.config!==s.config?yt(s.config,i):void 0);let y=Cn(this);if(!y||H.und(c))return n(hn(this,!0));const x=H.und(t.reset)?o&&!t.default:!H.und(d)&&na(t.reset,i),w=x?d:this.get(),C=Ga(c),k=H.num(C)||H.arr(C)||gf(C),$=!h&&(!k||na(s.immediate||t.immediate,i));if(p){const O=um(c);if(O!==y.constructor)if($)y=this._set(C);else throw Error(`Cannot animate between ${y.constructor.name} and ${O.name}, as the "to" prop suggests`)}const P=y.constructor;let R=Ut(c),M=!1;if(!R){const O=x||!Ep(this)&&f;(p||O)&&(M=Kn(Ga(w),C),R=!M),(!Kn(a.immediate,$)&&!$||!Kn(g.decay,b)||!Kn(g.velocity,m))&&(R=!0)}if(M&&mr(this)&&(a.changed&&!x?R=!0:R||this._stop(l)),!h&&((R||Ut(l))&&(a.values=y.getPayload(),a.toValues=Ut(c)?null:P==Ba?[1]:ct(C)),a.immediate!=$&&(a.immediate=$,!$&&!x&&this._set(l)),R)){const{onRest:O}=a;ee(ML,_=>tb(this,t,_));const E=hn(this,Es(this,l));Ds(this._pendingCalls,E),this._pendingCalls.add(n),a.changed&&Z.batchedUpdates(()=>{var _;a.changed=!x,O==null||O(E,this),x?yt(s.onRest,E):(_=a.onStart)==null||_.call(a,E,this)})}x&&this._set(w),h?n(T5(t.to,t,this._state,this)):R?this._start():mr(this)&&!p?this._pendingCalls.add(n):n(P5(w))}_focus(e){const t=this.animation;e!==t.to&&(Hx(this)&&this._detach(),t.to=e,Hx(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ut(t)&&(ss(t,this),fm(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ut(e)&&Wa(e,this)}_set(e,t=!0){const n=vt(e);if(!H.und(n)){const r=Cn(this);if(!r||!Kn(n,r.getValue())){const o=um(n);!r||r.constructor!=o?K0(this,o.create(n)):r.setValue(n),r&&Z.batchedUpdates(()=>{this._onChange(n,t)})}}return Cn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ms(this,"onStart",hn(this,Es(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yt(this.animation.onChange,e,this)),yt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Cn(this).reset(vt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),mr(this)||(Zx(this,!0),Ts(this)||this._resume())}_resume(){Lt.skipAnimation?this.finish():pf.start(this)}_stop(e,t){if(mr(this)){Zx(this,!1);const n=this.animation;ee(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ha(this,{type:"idle",parent:this});const r=t?$i(this.get()):hn(this.get(),Es(this,e??n.to));Ds(this._pendingCalls,r),n.changed&&(n.changed=!1,Ms(this,"onRest",r,this))}}};function Es(e,t){const n=Ga(t),r=Ga(e.get());return Kn(r,n)}function M5(e,t=e.loop,n=e.to){const r=yt(t);if(r){const o=r!==!0&&q0(r),i=(o||e).reverse,s=!o||o.reset;return Wc({...e,loop:t,default:!1,pause:void 0,to:!i||cm(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function Wc(e){const{to:t,from:n}=e=q0(e),r=new Set;return H.obj(t)&&eb(t,r),H.obj(n)&&eb(n,r),e.keys=r.size?Array.from(r):null,e}function eb(e,t){Fn(e,(n,r)=>n!=null&&t.add(r))}var ML=["onStart","onRest","onChange","onPause","onResume"];function tb(e,t,n){e.animation[n]=t[n]!==C5(t,n)?k5(t[n],e.key):void 0}function Ms(e,t,...n){var r,o,i,s;(o=(r=e.animation)[t])==null||o.call(r,...n),(s=(i=e.defaultProps)[t])==null||s.call(i,...n)}var _L=["onStart","onChange","onRest"],AL=1,OL=class{constructor(e,t){this.id=AL++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];H.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Wc(e)),this}start(e){let{queue:t}=this;return e?t=ct(e).map(Wc):this.queue=[],this._flush?this._flush(this,t):(R5(this,t),RL(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ee(ct(t),r=>n[r].stop(!!e))}else Ka(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(H.und(e))this.start({pause:!0});else{const t=this.springs;ee(ct(e),n=>t[n].pause())}return this}resume(e){if(H.und(e))this.start({pause:!1});else{const t=this.springs;ee(ct(e),n=>t[n].resume())}return this}each(e){Fn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,ea(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,s=o||i&&n.size?this.get():null;o&&t.size&&ea(t,([a,l])=>{l.value=s,a(l,this,this._item)}),i&&(this._started=!1,ea(n,([a,l])=>{l.value=s,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Z.onFrame(this._onFrame)}};function RL(e,t){return Promise.all(t.map(n=>_5(e,n))).then(n=>X0(e,n))}async function _5(e,t,n){const{keys:r,to:o,from:i,loop:s,onRest:a,onResolve:l}=t,u=H.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const c=H.arr(o)||H.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):ee(_L,g=>{const b=t[g];if(H.fun(b)){const m=e._events[g];t[g]=({finished:y,cancelled:x})=>{const w=m.get(b);w?(y||(w.finished=!1),x&&(w.cancelled=!0)):m.set(b,{value:null,finished:y||!1,cancelled:x||!1})},u&&(u[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ds(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),p=t.cancel===!0||C5(t,"cancel")===!0;(c||p&&d.asyncId)&&f.push($5(++e._lastAsyncId,{props:t,state:d,actions:{pause:am,resume:am,start(g,b){p?(Ka(d,e._lastAsyncId),b($i(e))):(g.onRest=a,b(T5(c,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const h=X0(e,await Promise.all(f));if(s&&h.finished&&!(n&&h.noop)){const g=M5(t,s,o);if(g)return R5(e,[g]),_5(e,g,!0)}return l&&Z.batchedUpdates(()=>l(h,e,e.item)),h}function jL(e,t){const n={...e.springs};return t&&ee(ct(t),r=>{H.und(r.keys)&&(r=Wc(r)),H.obj(r.to)||(r={...r,to:void 0}),O5(n,r,o=>A5(o))}),IL(e,n),n}function IL(e,t){Fn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ss(n,e))})}function A5(e,t){const n=new EL;return n.key=e,t&&ss(n,t),n}function O5(e,t,n){t.keys&&ee(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function R5(e,t){ee(t,n=>{O5(e.springs,n,r=>A5(r,e))})}var xf=({children:e,...t})=>{const n=S.useContext(Uc),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=aL(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=Uc;return S.createElement(i,{value:t},e)},Uc=LL(xf,{});xf.Provider=Uc.Provider;xf.Consumer=Uc.Consumer;function LL(e,t){return Object.assign(e,S.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var NL=()=>{const e=[],t=function(r){iL();const o=[];return ee(e,(i,s)=>{if(H.und(r))o.push(i.start());else{const a=n(r,i,s);a&&o.push(i.start(a))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return ee(e,r=>r.pause(...arguments)),this},t.resume=function(){return ee(e,r=>r.resume(...arguments)),this},t.set=function(r){ee(e,(o,i)=>{const s=H.fun(r)?r(i,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return ee(e,(i,s)=>{if(H.und(r))o.push(i.start());else{const a=this._getProps(r,i,s);a&&o.push(i.start(a))}}),o},t.stop=function(){return ee(e,r=>r.stop(...arguments)),this},t.update=function(r){return ee(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return H.fun(r)?r(i,o):r};return t._getProps=n,t};function j5(e,t,n){const r=H.fun(t)&&t,{reset:o,sort:i,trail:s=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=S.useMemo(()=>r||arguments.length==3?NL():void 0,[]),p=ct(e),h=[],g=S.useRef(null),b=o?null:g.current;go(()=>{g.current=h}),b5(()=>(ee(h,T=>{f==null||f.add(T.ctrl),T.ctrl.ref=f}),()=>{ee(g.current,T=>{T.expired&&clearTimeout(T.expirationId),Kx(T.ctrl,f),T.ctrl.stop(!0)})}));const m=FL(p,r?r():t,b),y=o&&g.current||[];go(()=>ee(y,({ctrl:T,item:I,key:L})=>{Kx(T,f),yt(u,I,L)}));const x=[];if(b&&ee(b,(T,I)=>{T.expired?(clearTimeout(T.expirationId),y.push(T)):(I=x[I]=m.indexOf(T.key),~I&&(h[I]=T))}),ee(p,(T,I)=>{h[I]||(h[I]={key:m[I],item:T,phase:"mount",ctrl:new OL},h[I].ctrl.item=T)}),x.length){let T=-1;const{leave:I}=r?r():t;ee(x,(L,F)=>{const j=b[F];~L?(T=h.indexOf(j),h[T]={...j,item:p[L]}):I&&h.splice(++T,0,j)})}H.fun(i)&&h.sort((T,I)=>i(T.item,I.item));let w=-s;const C=x5(),k=Y0(t),$=new Map,P=S.useRef(new Map),R=S.useRef(!1);ee(h,(T,I)=>{const L=T.key,F=T.phase,j=r?r():t;let N,V;const G=yt(j.delay||0,L);if(F=="mount")N=j.enter,V="enter";else{const X=m.indexOf(L)<0;if(F!="leave")if(X)N=j.leave,V="leave";else if(N=j.update)V="update";else return;else if(!X)N=j.enter,V="enter";else return}if(N=yt(N,T.item,I),N=H.obj(N)?q0(N):{to:N},!N.config){const X=d||k.config;N.config=yt(X,T.item,I,V)}w+=s;const B={...k,delay:G+w,ref:c,immediate:j.immediate,reset:!1,...N};if(V=="enter"&&H.und(B.from)){const X=r?r():t,oe=H.und(X.initial)||b?X.from:X.initial;B.from=yt(oe,T.item,I)}const{onResolve:q}=B;B.onResolve=X=>{yt(q,X);const oe=g.current,le=oe.find(de=>de.key===L);if(le&&!(X.cancelled&&le.phase!="update")&&le.ctrl.idle){const de=oe.every(W=>W.ctrl.idle);if(le.phase=="leave"){const W=yt(a,le.item);if(W!==!1){const K=W===!0?0:W;if(le.expired=!0,!de&&K>0){K<=2147483647&&(le.expirationId=setTimeout(C,K));return}}}de&&oe.some(W=>W.expired)&&(P.current.delete(le),l&&(R.current=!0),C())}};const J=jL(T.ctrl,B);V==="leave"&&l?P.current.set(T,{phase:V,springs:J,payload:B}):$.set(T,{phase:V,springs:J,payload:B})});const M=S.useContext(xf),O=cL(M),E=M!==O&&wL(M);go(()=>{E&&ee(h,T=>{T.ctrl.start({default:M})})},[M]),ee($,(T,I)=>{if(P.current.size){const L=h.findIndex(F=>F.key===I.key);h.splice(L,1)}}),go(()=>{ee(P.current.size?P.current:$,({phase:T,payload:I},L)=>{const{ctrl:F}=L;L.phase=T,f==null||f.add(F),E&&T=="enter"&&F.start({default:M}),I&&(SL(F,I.ref),(F.ref||f)&&!R.current?F.update(I):(F.start(I),R.current&&(R.current=!1)))})},o?void 0:n);const _=T=>S.createElement(S.Fragment,null,h.map((I,L)=>{const{springs:F}=$.get(I)||I.ctrl,j=T({...F},I.item,I,L);return j&&j.type?S.createElement(j.type,{...j.props,key:H.str(I.key)||H.num(I.key)?I.key:I.ctrl.id,ref:j.ref}):j}));return f?[_,f]:_}var DL=1;function FL(e,{key:t,keys:n=t},r){if(n===null){const o=new Set;return e.map(i=>{const s=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!o.has(a));return s?(o.add(s),s.key):DL++})}return H.und(n)?e:H.fun(n)?e.map(n):ct(n)}var I5=class extends Q0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=za(...t);const n=this._get(),r=um(n);K0(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Kn(t,n)||(Cn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&nb(this._active)&&Mp(this)}_get(){const e=H.arr(this.source)?this.source.map(vt):ct(vt(this.source));return this.calc(...e)}_start(){this.idle&&!nb(this._active)&&(this.idle=!1,ee(vf(this),e=>{e.done=!1}),Lt.skipAnimation?(Z.batchedUpdates(()=>this.advance()),Mp(this)):pf.start(this))}_attach(){let e=1;ee(ct(this.source),t=>{Ut(t)&&ss(t,this),fm(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ee(ct(this.source),e=>{Ut(e)&&Wa(e,this)}),this._active.clear(),Mp(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=ct(this.source).reduce((t,n)=>Math.max(t,(fm(n)?n.priority:0)+1),0))}};function zL(e){return e.idle!==!1}function nb(e){return!e.size||Array.from(e).every(zL)}function Mp(e){e.idle||(e.idle=!0,ee(vf(e),t=>{t.done=!0}),Ha(e,{type:"idle",parent:e}))}var Bc=(e,...t)=>new I5(e,t);Lt.assign({createStringInterpolator:v5,to:(e,t)=>new I5(e,t)});var L5=/^--/;function VL(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!L5.test(e)&&!(ra.hasOwnProperty(e)&&ra[e])?t+"px":(""+t).trim()}var rb={};function HL(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:o,scrollTop:i,scrollLeft:s,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:rb[d]||(rb[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));o!==void 0&&(e.textContent=o);for(const d in r)if(r.hasOwnProperty(d)){const f=VL(d,r[d]);L5.test(d)?e.style.setProperty(d,f):e.style[d]=f}c.forEach((d,f)=>{e.setAttribute(d,u[f])}),i!==void 0&&(e.scrollTop=i),s!==void 0&&(e.scrollLeft=s),a!==void 0&&e.setAttribute("viewBox",a)}var ra={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},WL=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),UL=["Webkit","Ms","Moz","O"];ra=Object.keys(ra).reduce((e,t)=>(UL.forEach(n=>e[WL(n,t)]=e[t]),e),ra);var BL=/^(matrix|translate|scale|rotate|skew)/,GL=/^(translate)/,KL=/^(rotate|skew)/,_p=(e,t)=>H.num(e)&&e!==0?e+t:e,Ku=(e,t)=>H.arr(e)?e.every(n=>Ku(n,t)):H.num(e)?e===t:parseFloat(e)===t,YL=class extends yf{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(s=>[`translate3d(${s.map(a=>_p(a,"px")).join(",")})`,Ku(s,0)])),Fn(r,(s,a)=>{if(a==="transform")o.push([s||""]),i.push(l=>[l,l===""]);else if(BL.test(a)){if(delete r[a],H.und(s))return;const l=GL.test(a)?"px":KL.test(a)?"deg":"";o.push(ct(s)),i.push(a==="rotate3d"?([u,c,d,f])=>[`rotate3d(${u},${c},${d},${_p(f,l)})`,Ku(f,0)]:u=>[`${a}(${u.map(c=>_p(c,l)).join(",")})`,Ku(u,a.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new qL(o,i)),super(r)}},qL=class extends h5{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return ee(this.inputs,(n,r)=>{const o=vt(n[0]),[i,s]=this.transforms[r](H.arr(o)?o:n.map(vt));e+=" "+i,t=t&&s}),t?"none":e}observerAdded(e){e==1&&ee(this.inputs,t=>ee(t,n=>Ut(n)&&ss(n,this)))}observerRemoved(e){e==0&&ee(this.inputs,t=>ee(t,n=>Ut(n)&&Wa(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ha(this,e)}},XL=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Lt.assign({batchedUpdates:rl.unstable_batchedUpdates,createStringInterpolator:v5,colors:LI});var QL=gL(XL,{applyAnimatedValues:HL,createAnimatedStyle:e=>new YL(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),N5=QL.animated;const ZL=e=>{const{dispatch:t}=S.useContext(ml),{setHighlighted:n,clearHighlighted:r}=c0();return i=>({onPointerEnter:()=>{t({type:"enterItem",data:i}),n({seriesId:i.seriesId,dataIndex:i.dataIndex})},onPointerLeave:u=>{u.currentTarget.releasePointerCapture(u.pointerId),t({type:"leaveItem",data:i}),r()},onPointerDown:u=>{u.currentTarget.hasPointerCapture(u.pointerId)&&u.currentTarget.releasePointerCapture(u.pointerId)}})};function qo(e){return e instanceof Date?e.getTime():e}const JL=e=>{const t=DC(),n=pr(),{xAxis:r,yAxis:o,xAxisIds:i,yAxisIds:s}=Yr(),{dispatch:a}=S.useContext(ml),l=i[0],u=s[0],c=S.useRef({isInChart:!1,x:-1,y:-1});S.useEffect(()=>{const d=t.current;if(d===null||e)return()=>{};function f(b,m){const{scale:y,data:x,reverse:w}=b;if(!La(y)){const k=y.invert(m);if(x===void 0)return{value:k};const $=qo(k),P=x==null?void 0:x.findIndex((R,M)=>{const O=qo(R);return O>$&&(M===0||Math.abs($-O)<=Math.abs($-qo(x[M-1])))||O<=$&&(M===x.length-1||Math.abs(qo(k)-O)=0?x[P]:k,index:P}}const C=y.bandwidth()===0?Math.floor((m-Math.min(...y.range())+y.step()/2)/y.step()):Math.floor((m-Math.min(...y.range()))/y.step());if(C<0||C>=x.length)return null;if(w){const k=x.length-1-C;return{index:k,value:x[k]}}return{index:C,value:x[C]}}const p=()=>{c.current={isInChart:!1,x:-1,y:-1},a({type:"exitChart"})},h=b=>{const m="targetTouches"in b?b.targetTouches[0]:b,y=TI(d,m);if(c.current.x=y.x,c.current.y=y.y,!n.isPointInside(y,b.target)){c.current.isInChart&&(a({type:"exitChart"}),c.current.isInChart=!1);return}c.current.isInChart=!0;const x=f(r[l],y.x),w=f(o[u],y.y);a({type:"updateAxis",data:{x,y:w}})},g=b=>{const m=b.currentTarget;m&&m.hasPointerCapture(b.pointerId)&&m.releasePointerCapture(b.pointerId)};return d.addEventListener("pointerdown",g),d.addEventListener("pointermove",h),d.addEventListener("pointerout",p),d.addEventListener("pointercancel",p),d.addEventListener("pointerleave",p),()=>{d.removeEventListener("pointerdown",g),d.removeEventListener("pointermove",h),d.removeEventListener("pointerout",p),d.removeEventListener("pointercancel",p),d.removeEventListener("pointerleave",p)}},[t,a,u,o,l,r,e,n])},e9=["children","width","height","viewBox","disableAxisListener","className","title","desc"],t9=qe("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({touchAction:"none"})),n9=S.forwardRef(function(t,n){const{children:r,width:o,height:i,viewBox:s,disableAxisListener:a=!1,className:l,title:u,desc:c}=t,d=se(t,e9),f=A({width:o,height:i,x:0,y:0},s);return JL(a),v.jsxs(t9,A({width:o,height:i,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:n,className:l},d,{children:[v.jsx("title",{children:u}),v.jsx("desc",{children:c}),r]}))});function ob(e){const{isReversed:t,gradientId:n,size:r,direction:o,scale:i,colorMap:s}=e;return v.jsx("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${t?1:2}`]:`${r}px`,gradientUnits:"userSpaceOnUse",children:s.thresholds.map((a,l)=>{const u=i(a);if(u===void 0)return null;const c=t?1-u/r:u/r;return v.jsxs(S.Fragment,{children:[v.jsx("stop",{offset:c,stopColor:s.colors[l],stopOpacity:1}),v.jsx("stop",{offset:c,stopColor:s.colors[l+1],stopOpacity:1})]},a.toString()+l)})})}function r9(){const{chartId:e}=S.useContext(uf);return S.useCallback((t,n)=>`${e}-gradient-${n}-${t}`,[e])}function o9(){const{top:e,height:t,bottom:n,left:r,width:o,right:i}=pr(),s=e+t+n,a=r+o+i,l=r9(),{xAxisIds:u,xAxis:c,yAxisIds:d,yAxis:f}=Yr();return v.jsxs("defs",{children:[d.filter(p=>f[p].colorMap!==void 0).map(p=>{const h=l(p,"y"),{colorMap:g,scale:b,colorScale:m,reverse:y}=f[p];return(g==null?void 0:g.type)==="piecewise"?v.jsx(ob,{isReversed:!y,scale:b,colorMap:g,size:s,gradientId:h,direction:"y"},h):(g==null?void 0:g.type)==="continuous"?v.jsx(jx,{isReversed:!y,scale:b,colorScale:m,colorMap:g,size:s,gradientId:h,direction:"y"},h):null}),u.filter(p=>c[p].colorMap!==void 0).map(p=>{const h=l(p,"x"),{colorMap:g,scale:b,reverse:m,colorScale:y}=c[p];return(g==null?void 0:g.type)==="piecewise"?v.jsx(ob,{isReversed:m,scale:b,colorMap:g,size:a,gradientId:h,direction:"x"},h):(g==null?void 0:g.type)==="continuous"?v.jsx(jx,{isReversed:m,scale:b,colorScale:y,colorMap:g,size:a,gradientId:h,direction:"x"},h):null})]})}const ib=(e,t)=>{const n=t==="x"?Xk:WA;return[...(e==null?void 0:e.map((r,o)=>A({id:`defaultized-${t}-axis-${o}`},r)))??[],...e===void 0||e.findIndex(({id:r})=>r===n)===-1?[{id:n,scaleType:"linear"}]:[]]},i9=(e,t)=>{const n=S.useMemo(()=>ib(e,"x"),[e]),r=S.useMemo(()=>ib(t,"y"),[t]);return[n,r]},s9=()=>{go(()=>{var n;if(!window.matchMedia)return Lt.assign({skipAnimation:!0}),()=>{};const e=window.matchMedia("(prefers-reduced-motion)"),t=r=>{Lt.assign({skipAnimation:r.matches||void 0})};return t(e),(n=e.addEventListener)==null||n.call(e,"change",t),()=>{var r;(r=e.removeEventListener)==null||r.call(e,"change",t)}},[])},a9=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children"],l9=(e,t)=>{const{width:n,height:r,series:o,margin:i,xAxis:s,yAxis:a,zAxis:l,colors:u,dataset:c,sx:d,title:f,desc:p,disableAxisListener:h,highlightedItem:g,onHighlightChange:b,plugins:m,children:y}=e,x=se(e,a9),w=S.useRef(null),C=Li(t,w);s9();const[k,$]=i9(s,a),P={width:n,height:r,margin:i,svgRef:w},R={plugins:m},M={series:o,colors:u,dataset:c},O={xAxis:k,yAxis:$,dataset:c},E={zAxis:l,dataset:c},_={highlightedItem:g,onHighlightChange:b},T=A({},x,{width:n,height:r,ref:C,sx:d,title:f,desc:p,disableAxisListener:h});return{children:y,drawingProviderProps:P,seriesProviderProps:M,cartesianContextProps:O,zAxisContextProps:E,highlightedProviderProps:_,chartsSurfaceProps:T,pluginProviderProps:R,xAxis:k,yAxis:$}},u9=S.forwardRef(function(t,n){const{children:r,drawingProviderProps:o,seriesProviderProps:i,cartesianContextProps:s,zAxisContextProps:a,highlightedProviderProps:l,chartsSurfaceProps:u,pluginProviderProps:c}=l9(t,n);return v.jsx(LR,A({},o,{children:v.jsx(Z6,A({},c,{children:v.jsx(nO,A({},i,{children:v.jsx(KR,A({},s,{children:v.jsx(jR,A({},a,{children:v.jsx(D7,{children:v.jsx(sO,A({},l,{children:v.jsxs(n9,A({},u,{children:[v.jsx(o9,{}),r]}))}))})}))}))}))}))}))}),c9=qe("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}})),d9=(e,t)=>{const n=S.useRef(!1),r=S.useRef(null),[o,i]=S.useState(0),[s,a]=S.useState(0),l=S.useCallback(()=>{const u=r==null?void 0:r.current;if(!u)return;const d=lk(u).getComputedStyle(u),f=Math.floor(parseFloat(d.height))||0,p=Math.floor(parseFloat(d.width))||0;i(p),a(f)},[]);return S.useEffect(()=>{n.current=!0},[]),or(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const u=r.current;if(typeof ResizeObserver>"u")return()=>{};let c;const d=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{l()})});return u&&d.observe(u),()=>{c&&window.cancelAnimationFrame(c),u&&d.unobserve(u)}},[l,t,e]),{containerRef:r,width:e??o,height:t??s}},f9=["width","height","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis"],p9=(e,t)=>{const{width:n,height:r,margin:o,children:i,series:s,colors:a,dataset:l,desc:u,disableAxisListener:c,highlightedItem:d,onHighlightChange:f,plugins:p,sx:h,title:g,viewBox:b,xAxis:m,yAxis:y,zAxis:x}=e,w=se(e,f9),{containerRef:C,width:k,height:$}=d9(n,r),P=A({},w,{ownerState:{width:n,height:r},ref:C});return{hasIntrinsicSize:k&&$,chartContainerProps:{margin:o,children:i,series:s,colors:a,dataset:l,desc:u,disableAxisListener:c,highlightedItem:d,onHighlightChange:f,plugins:p,sx:h,title:g,viewBox:b,xAxis:m,yAxis:y,zAxis:x,width:k,height:$,ref:t},resizableChartContainerProps:P}},h9=S.forwardRef(function(t,n){const{hasIntrinsicSize:r,chartContainerProps:o,resizableChartContainerProps:i}=p9(t,n);return v.jsx(c9,A({},i,{children:r?v.jsx(u9,A({},o)):null}))}),m9=["message"],g9=qe("text")(({theme:e})=>A({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function v9(e){const{message:t}=e,n=se(e,m9),{top:r,left:o,height:i,width:s}=pr();return v.jsx(g9,A({x:o+s/2,y:r+i/2},n,{children:t??"Loading data…"}))}const y9=["message"],x9=qe("text")(({theme:e})=>A({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function b9(e){const{message:t}=e,n=se(e,y9),{top:r,left:o,height:i,width:s}=pr();return v.jsx(x9,A({x:o+s/2,y:r+i/2},n,{children:t??"No data to display"}))}function w9(){const e=No();return Object.values(e).every(t=>{if(!t)return!0;const{series:n,seriesOrder:r}=t;return r.every(o=>n[o].data.length===0)})}function S9(e){var n,r,o,i;const t=w9();if(e.loading){const s=((n=e.slots)==null?void 0:n.loadingOverlay)??v9;return v.jsx(s,A({},(r=e.slotProps)==null?void 0:r.loadingOverlay))}if(t){const s=((o=e.slots)==null?void 0:o.noDataOverlay)??b9;return v.jsx(s,A({},(i=e.slotProps)==null?void 0:i.noDataOverlay))}return null}const k9=["classes","color","cornerRadius","dataIndex","endAngle","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle","highlightScope"];function C9(e){return Hn("MuiPieArc",e)}fr("MuiPieArc",["root","highlighted","faded"]);const $9=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return Vn(i,C9,t)},P9=qe(N5.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})(({theme:e})=>({stroke:(e.vars||e).palette.background.paper,strokeWidth:1,strokeLinejoin:"round"}));function T9(e){const{classes:t,color:n,cornerRadius:r,dataIndex:o,endAngle:i,id:s,innerRadius:a,isFaded:l,isHighlighted:u,onClick:c,outerRadius:d,paddingAngle:f,startAngle:p}=e,h=se(e,k9),g={id:s,dataIndex:o,classes:t,color:n,isFaded:l,isHighlighted:u},b=$9(g),m=ZL();return v.jsx(P9,A({d:Bc([p,i,f,a,d,r],(y,x,w,C,k,$)=>rC().cornerRadius($)({padAngle:w,startAngle:y,endAngle:x,innerRadius:C,outerRadius:k})),visibility:Bc([p,i],(y,x)=>y===x?"hidden":"visible"),onClick:c,cursor:c?"pointer":"unset",ownerState:g,className:b.root},h,m({type:"pie",seriesId:s,dataIndex:o})))}const E9={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,color:s,isFaded:a})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:n,startAngle:(r+o)/2,endAngle:(r+o)/2,paddingAngle:i,fill:s,opacity:a?.3:1}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,color:s,isFaded:a})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,fill:s,opacity:a?.3:1}),config:{tension:120,friction:14,clamp:!0}},M9={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,arcLabelRadius:n,cornerRadius:r,startAngle:o,endAngle:i,paddingAngle:s})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:r,arcLabelRadius:n,startAngle:(o+i)/2,endAngle:(o+i)/2,paddingAngle:s,opacity:0}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,arcLabelRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2,opacity:0}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r,arcLabelRadius:o})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r,arcLabelRadius:o,opacity:1}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,arcLabelRadius:s})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,arcLabelRadius:s,opacity:1}),config:{tension:120,friction:14,clamp:!0}};function D5(e){const{id:t,data:n,faded:r,highlighted:o,paddingAngle:i=0,innerRadius:s=0,arcLabelRadius:a,outerRadius:l,cornerRadius:u=0}=e,{isFaded:c,isHighlighted:d}=c0();return S.useMemo(()=>n.map((p,h)=>{const g={seriesId:t,dataIndex:h},b=d(g),m=!b&&c(g),y=A({additionalRadius:0},m&&r||b&&o||{}),x=Math.max(0,Math.PI*(y.paddingAngle??i)/180),w=Math.max(0,y.innerRadius??s),C=Math.max(0,y.outerRadius??l+y.additionalRadius),k=y.cornerRadius??u,$=y.arcLabelRadius??a??(w+C)/2;return A({},p,y,{isFaded:m,isHighlighted:b,paddingAngle:x,innerRadius:w,outerRadius:C,cornerRadius:k,arcLabelRadius:$})}),[u,s,l,i,a,n,r,o,c,d,t])}const _9=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"],A9=["startAngle","endAngle","paddingAngle","innerRadius","arcLabelRadius","outerRadius","cornerRadius"];function O9(e){const{slots:t,slotProps:n,innerRadius:r=0,outerRadius:o,cornerRadius:i=0,paddingAngle:s=0,id:a,highlighted:l,faded:u={additionalRadius:-5},data:c,onItemClick:d,skipAnimation:f}=e,p=se(e,_9),h=D5({innerRadius:r,outerRadius:o,cornerRadius:i,paddingAngle:s,id:a,highlighted:l,faded:u,data:c}),g=j5(h,A({},E9,{immediate:f})),{highlightScope:b}=c0();if(c.length===0)return null;const m=(t==null?void 0:t.pieArc)??T9;return v.jsx("g",A({},p,{children:g((y,x,w,C)=>{let{startAngle:k,endAngle:$,paddingAngle:P,innerRadius:R,outerRadius:M,cornerRadius:O}=y,E=se(y,A9);return v.jsx(m,A({startAngle:k,endAngle:$,paddingAngle:P,innerRadius:R,outerRadius:M,cornerRadius:O,style:E,id:a,color:x.color,dataIndex:C,highlightScope:b,isFaded:x.isFaded,isHighlighted:x.isHighlighted,onClick:d&&(_=>{d(_,{type:"pie",seriesId:a,dataIndex:C},x)})},n==null?void 0:n.pieArc))})}))}const R9=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function j9(e){return Hn("MuiPieArcLabel",e)}const I9=fr("MuiPieArcLabel",["root","highlighted","faded"]),L9=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return Vn(i,j9,t)},N9=qe(N5.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none"})),sb=(e,t)=>(n,r,o,i,s)=>{if(!e)return 0;const[a,l]=rC().cornerRadius(s).centroid({padAngle:o,startAngle:n,endAngle:r,innerRadius:i,outerRadius:i});return t==="x"?a:l};function D9(e){const{id:t,classes:n,color:r,startAngle:o,endAngle:i,paddingAngle:s,arcLabelRadius:a,cornerRadius:l,formattedArcLabel:u,isHighlighted:c,isFaded:d,style:f}=e,p=se(e,R9),g=L9({id:t,classes:n,color:r,isFaded:d,isHighlighted:c});return v.jsx(N9,A({className:g.root},p,{style:A({x:Bc([o,i,s,a,l],sb(u,"x")),y:Bc([o,i,s,a,l],sb(u,"y"))},f),children:u}))}const F9=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],z9=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],V9=180/Math.PI;function H9(e,t,n){var o;if(!e||(n.endAngle-n.startAngle)*V9{let{startAngle:C,endAngle:k,paddingAngle:$,innerRadius:P,outerRadius:R,arcLabelRadius:M,cornerRadius:O}=x,E=se(x,z9);return v.jsx(y,A({startAngle:C,endAngle:k,paddingAngle:$,innerRadius:P,outerRadius:R,arcLabelRadius:M,cornerRadius:O,style:E,id:l,color:w.color,isFaded:w.isFaded,isHighlighted:w.isHighlighted,formattedArcLabel:H9(t,n,w)},p==null?void 0:p.pieArcLabel))})}))}function ab(e,t){const{height:n,width:r}=t,{cx:o,cy:i}=e,s=Math.min(r,n)/2,a=lo(o??"50%",r),l=lo(i??"50%",n);return{cx:a,cy:l,availableRadius:s}}function U9(e){const{skipAnimation:t,slots:n,slotProps:r,onItemClick:o}=e,i=rO(),{left:s,top:a,width:l,height:u}=S.useContext(uf);if(i===void 0)return null;const{series:c,seriesOrder:d}=i;return v.jsxs("g",{children:[d.map(f=>{const{innerRadius:p,outerRadius:h,cornerRadius:g,paddingAngle:b,data:m,cx:y,cy:x,highlighted:w,faded:C}=c[f],{cx:k,cy:$,availableRadius:P}=ab({cx:y,cy:x},{width:l,height:u}),R=lo(h??P,P),M=lo(p??0,P);return v.jsx("g",{transform:`translate(${s+k}, ${a+$})`,children:v.jsx(O9,{innerRadius:M,outerRadius:R,cornerRadius:g,paddingAngle:b,id:f,data:m,skipAnimation:t,highlighted:w,faded:C,onItemClick:o,slots:n,slotProps:r})},f)}),d.map(f=>{const{innerRadius:p,outerRadius:h,arcLabelRadius:g,cornerRadius:b,paddingAngle:m,arcLabel:y,arcLabelMinAngle:x,data:w,cx:C,cy:k}=c[f],{cx:$,cy:P,availableRadius:R}=ab({cx:C,cy:k},{width:l,height:u}),M=lo(h??R,R),O=lo(p??0,R),E=g===void 0?(M+O)/2:lo(g,R);return v.jsx("g",{transform:`translate(${s+$}, ${a+P})`,children:v.jsx(W9,{innerRadius:O,outerRadius:M??R,arcLabelRadius:E,cornerRadius:b,paddingAngle:m,id:f,data:w,skipAnimation:t,arcLabel:y,arcLabelMinAngle:x,slots:n,slotProps:r})},f)})]})}const B9=()=>is().direction==="rtl",G9=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],K9={top:5,bottom:5,left:5,right:100},Y9={top:5,bottom:5,left:100,right:5},q9=S.forwardRef(function(t,n){const{xAxis:r,yAxis:o,series:i,width:s,height:a,margin:l,colors:u,sx:c,tooltip:d={trigger:"item"},axisHighlight:f={x:"none",y:"none"},skipAnimation:p,legend:h,topAxis:g=null,leftAxis:b=null,rightAxis:m=null,bottomAxis:y=null,children:x,slots:w,slotProps:C,onItemClick:k,loading:$,highlightedItem:P,onHighlightChange:R,className:M}=t,O=se(t,G9),E=B9(),_=A({},E?Y9:K9,l),T=A({direction:"column",position:{vertical:"middle",horizontal:E?"left":"right"}},h);return v.jsxs(h9,A({},O,{ref:n,series:i.map(I=>A({type:"pie"},I)),width:s,height:a,margin:_,xAxis:r??[{id:Xk,scaleType:"point",data:[...new Array(Math.max(...i.map(I=>I.data.length)))].map((I,L)=>L)}],yAxis:o,colors:u,sx:c,disableAxisListener:(d==null?void 0:d.trigger)!=="axis"&&(f==null?void 0:f.x)==="none"&&(f==null?void 0:f.y)==="none",highlightedItem:P,onHighlightChange:R,className:M,children:[v.jsx(dj,{topAxis:g,leftAxis:b,rightAxis:m,bottomAxis:y,slots:w,slotProps:C}),v.jsx(U9,{slots:w,slotProps:C,onItemClick:k,skipAnimation:p}),v.jsx(S9,{loading:$,slots:w,slotProps:C}),v.jsx(SI,A({},T,{slots:w,slotProps:C})),v.jsx(PI,A({},f)),!$&&v.jsx(oI,A({},d,{slots:w,slotProps:C})),x]}))});function X9({setInfo:e}){const t=[{id:0,value:33,name:"Software",skills:[{name:"Django",logo:"https://www.svgrepo.com/show/353657/django-icon.svg"},{name:"React",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRQ-RS3Oeb0xs2q4aJmYZ4FGWnFuPnn4yFNHg&s"},{name:"Python",logo:"https://i.pinimg.com/originals/2f/9c/11/2f9c11f9e55efbf1791f12c06d60729b.jpg"},{name:"Java",logo:"https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/181_Java_logo_logos-512.png"},{name:"JavaScript",logo:"https://upload.wikimedia.org/wikipedia/commons/6/6a/JavaScript-logo.png"},{name:"C",logo:"https://cdn.iconscout.com/icon/free/png-256/free-c-58-1175247.png"},{name:"PHP",logo:"https://pngimg.com/uploads/php/small/php_PNG7.png"},{name:"Motoko",logo:"https://images.squarespace-cdn.com/content/v1/54437e21e4b048c830a0cff1/1582790973231-Y6Y49DRMFQTDOL5F9T32/motoko-master-01.png?format=2500w"},{name:"Rust",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/2/20/Rustacean-orig-noshadow.svg/1200px-Rustacean-orig-noshadow.svg.png"},{name:"Anchor",logo:"https://cryptologos.cc/logos/solana-sol-logo.png"},{name:"Sass",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/96/Sass_Logo_Color.svg/1280px-Sass_Logo_Color.svg.png"},{name:"TypeScript",logo:"https://cdn-icons-png.flaticon.com/256/919/919832.png"},{name:"Postman",logo:"https://uxwing.com/wp-content/themes/uxwing/download/brands-and-social-media/postman-icon.png"},{name:"SQL",logo:"https://icons.veryicon.com/png/o/application/designer-icon/sql-5.png"},{name:"MongoDB",logo:"https://seeklogo.com/images/M/mongodb-logo-D13D67C930-seeklogo.com.png"},{name:"MySQL",logo:"https://w7.pngwing.com/pngs/841/331/png-transparent-mysql-database-phpmyadmin-postgresql-innodb-mysql-orange-logo-area-thumbnail.png"},{name:"jQuery",logo:"https://cdn.worldvectorlogo.com/logos/jquery-4.svg"},{name:"XAMPP",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTeBr8B8nBG3QP5UIoWaS7xNXhXHrKAkmLsZA&s"},{name:"Bootstrap",logo:"https://cdn-icons-png.flaticon.com/512/5968/5968672.png"},{name:"Flask",logo:"https://cms-assets.tutsplus.com/uploads/users/30/posts/16037/preview_image/flask.png"},{name:"Haskell",logo:"https://i.pinimg.com/originals/06/53/a2/0653a2a7b86d7be59dd1738c4ce88096.png"}]},{id:1,value:33,name:"AI",skills:[{name:"Machine Learning",logo:"https://cdn-icons-png.freepik.com/512/8365/8365406.png"},{name:"Data Visualization",logo:"https://static.vecteezy.com/system/resources/thumbnails/001/187/079/small/chart.png"},{name:"Deep Learning",logo:"https://cdn-icons-png.flaticon.com/512/8637/8637101.png"},{name:"Algorithms",logo:"https://cdn-icons-png.flaticon.com/512/10061/10061724.png"},{name:"numpy",logo:"https://user-images.githubusercontent.com/50221806/86498208-af4bfe00-bd39-11ea-88fa-c747ae0ddd85.png"},{name:"pandas",logo:"https://pandas.pydata.org/static/img/favicon_white.ico"},{name:"matplotlib",logo:"https://pydata.org/wp-content/uploads/2016/07/matplotlib-logo-300.png"},{name:"seaborn",logo:"https://user-images.githubusercontent.com/315810/92159303-30d41100-edfb-11ea-8107-1c5352202571.png"},{name:"scikit-learn",logo:"https://avatars.githubusercontent.com/u/17349883?s=280&v=4"},{name:"Jupyter",logo:"https://raw.githubusercontent.com/jithurjacob/vscode-nbpreviewer/master/images/jupyter.png"}]},{id:2,value:33,name:"DevOps",skills:[{name:"Linux",logo:"https://seeklogo.com/images/L/Linux_Tux-logo-DA252F3C21-seeklogo.com.png"},{name:"Docker",logo:"https://cdn-icons-png.flaticon.com/512/5969/5969124.png"},{name:"Git",logo:"https://git-scm.com/images/logos/downloads/Git-Icon-1788C.png"},{name:"VirtualBox",logo:"https://styles.redditmedia.com/t5_7sqfde/styles/communityIcon_ix7q9wstcxna1.png"},{name:"Nginx",logo:"https://iconape.com/wp-content/png_logo_vector/nginx.png"},{name:"Ansible",logo:"https://docs.ansible.com/ansible/2.9/_static/images/logo_invert.png"},{name:"Wireshark",logo:"https://cdn.icon-icons.com/icons2/1495/PNG/512/wireshark_103123.png"},{name:"Networking",logo:"https://static.vecteezy.com/system/resources/thumbnails/018/923/768/small_2x/timeline-diagram-template-png.png"}]}];return v.jsx("div",{className:"pie-div",children:v.jsx(q9,{colors:["wheat","#ffccff","#ccffff"],series:[{data:t,paddingAngle:5,innerRadius:50,cornerRadius:5,startAngle:0,endAngle:360,arcLabel:n=>`${n.name}`,highlightScope:{faded:"global",highlighted:"item"},faded:{innerRadius:30,additionalRadius:-30,color:"grey"},highlighted:{innerRadius:50,additionalRadius:10}}],sx:{[`& .${I9.root}`]:{fill:"black",fontSize:12,fontWeight:"bold"}},tooltip:{enabled:!1},height:330,onHighlightChange:n=>{n&&e(t[n.dataIndex].skills)}})})}function lb(e){const t={display:"flex",font:"monospace",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},n={display:"flex",textAlign:"left",font:"monospace",color:"white",fontSize:"15px",opacity:"0.8",padding:"1rem",border:"0.1px solid rgb(100, 100, 100)",height:"auto",borderRadius:"10px",overflow:"visible",zIndex:"-1"},r={display:"flex",flexWrap:"wrap",columnGap:"0px",padding:"0",margin:"0"},o={display:"flex",alignItems:"center",justifyContent:"center",padding:"5px",margin:"5px",borderRadius:"5px",backgroundColor:"rgba(0, 0, 0, 0.5)",color:"white",fontSize:"12px",fontWeight:"bold",width:"auto"},i={skillData:{display:"block",textAlign:"center",font:"monospace",color:"white",fontSize:"15px",margin:"15px 35px 0 0",opacity:"0.8",padding:"1rem",border:"0.1px solid rgb(100, 100, 100)",height:"auto",borderRadius:"10px"}},[s,a]=S.useState([]);return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"skill-container",children:[v.jsxs("div",{style:t,children:[v.jsx("div",{children:"Skills"}),v.jsx("div",{className:"close-btn",onClick:()=>e.setExpanded(!1),children:v.jsx(ul,{})})]}),v.jsxs("div",{style:window.innerWidth<798?i.skillData:n,children:[v.jsx(X9,{setInfo:a}),v.jsx("div",{className:"pie-info",children:v.jsx("div",{style:r,children:s.map((l,u)=>v.jsxs("div",{style:o,children:[l.logo&&v.jsx("img",{src:l.logo,alt:"",style:{width:"20px",height:"20px",marginRight:"5px"}}),l.name]},u))})})]})]})})}function Q9(e){const t={display:"flex",font:"monospace",color:"white",fontSize:"15px",margin:"15px 35px 0 0",opacity:"0.8",textAlign:"left",padding:"1rem",border:"none",height:"auto",borderRadius:"10px"},n={width:"100px",height:"100px",margin:"0 10px 0 0"},r={display:"flex",font:"monospace",fontSize:"20px",textAlign:"left",fontWeight:"bold"},o={display:"flex",font:"monospace",color:"white",fontSize:"15px",textAlign:"left",fontWeight:"bold"};return v.jsxs("div",{className:"achievement-card",style:t,children:[v.jsx("img",{src:e.logo,alt:"badge",style:n}),v.jsxs("div",{children:[v.jsx("div",{style:r,children:e.content.achievement}),v.jsx("div",{style:o,children:e.content.additional}),v.jsx("div",{style:{color:"grey"},children:e.content.year})]})]})}const Z9="/assets/badge-BXfHEwqV.png",J9="/assets/badge2-CzfoDTcJ.png",eN="/assets/badge3-DyI0Y8Uf.png";function tN(e){const t={display:"block",font:"monospace",position:"relative",margin:"10px",padding:"10px"},n={display:"flex",font:"monospace",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},r=[Z9,J9,eN];return v.jsx(v.Fragment,{children:v.jsxs("div",{style:t,children:[v.jsxs("div",{style:n,children:[v.jsx("div",{children:"Achievements"}),v.jsx("div",{className:"close-btn",onClick:()=>e.setExpanded(!1),children:v.jsx(ul,{})})]}),v.jsx("div",{className:"achievements-list",children:e.content.map((o,i)=>v.jsx(Q9,{logo:r[i],content:o},i))})]})})}function nN({certification:e,index:t}){return v.jsxs("div",{className:"card",children:[v.jsx("div",{className:"card__side card__side--front-1",children:v.jsx("div",{className:"certification-card",children:v.jsxs("div",{children:[v.jsx("div",{style:window.innerWidth<798?{fontSize:"12px"}:{fontSize:"16px"},className:"card-content",children:e.certification}),v.jsx("div",{className:"card-content",style:{fontSize:"12px",color:"grey"},children:e.year}),v.jsx("div",{style:window.innerWidth<798?{fontSize:"10px",color:"grey"}:{fontSize:"12px",color:"grey"},children:e.institution})]})},t)}),v.jsx("div",{className:"card-content card__side card__side--back card__side--back-1",children:v.jsx("img",{src:e.image,alt:"certificate",style:{width:"100%",height:"100%"}})})]})}const rN="/assets/cs50x-B0So1Q_L.png",oN="/assets/acm_ml-DS6srYd9.png",iN="/assets/cs50w-ClLToWVo.png",sN="/assets/google_cyber-DZDomvYC.png",aN="/assets/nptel_python-ScttXPRu.png";function lN(e){const t={display:"block",font:"`Times New Roman`, `serif`",position:"relative",width:"100%",margin:"10px",padding:"10px"},n={display:"flex",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},r=window.innerWidth<798?{display:"flex",flexWrap:"wrap",margin:"4px",padding:"0",paddingTop:"10px"}:{display:"flex",flexWrap:"wrap",marginTop:"10px",padding:"0"},o={title:"Certifications",description:"Proofs of sacrifices and dedication",points:["Harvard","Google","IIT Madras","ACM..."],content:[{certification:"CS50W: Web Programming with Python and JavaScript",year:"2024",institution:"Harvard University",image:iN},{certification:"Google Cybersecurity Professional",year:"2024",institution:"Coursera",image:sN},{certification:"Machine Learning using Python",year:"2024",institution:"Association of Computing Machinery",image:oN},{certification:"CS50: Introduction to Computer Science",year:"2023",institution:"Harvard University",image:rN},{certification:"Programming, Data Structures and Algorithms using Python",year:"2024",institution:"IIT Madras (NPTEL)",image:aN}]};return v.jsx(v.Fragment,{children:v.jsxs("div",{style:t,children:[v.jsxs("div",{style:n,children:[v.jsx("div",{children:"Certifications"}),v.jsx("div",{className:"close-btn",onClick:()=>e.setExpanded(!1),children:v.jsx(ul,{})})]}),v.jsx("div",{style:r,classname:"certificates-div",children:o.content.map((i,s)=>v.jsx(nN,{index:s,certification:i},s))})]})})}function uN({isExpanded:e,setExpanded:t}){const n={title:"Education",description:"Colleges, Schools, and Degrees",points:["College of Engineering, Trivandrum","University College, TVM","St. Joseph's HSS..."],content:[{ongoing:!0,degree:"Masters in Computer Applications",school:"College of Engineering, Trivandrum",year:"2023 - Present",marks:"CGPA: 9.36"},{ongoing:!1,degree:"Bachelor of Science in Mathematics",school:"University College, Trivandrum",year:"2020 - 2023",marks:"CGPA: 9.63 (Core)"},{ongoing:!1,degree:"Higher Secondary",school:"St. Joseph's Higher Secondary School",year:"2018 - 2020",marks:"Percentage: 94%"}]},r={title:"Skills",description:"Products of consistent learning and practice",points:["Django","React","Python","Java","C..."],content:[]},o={title:"Certifications",description:"Proofs of sacrifices and dedication",points:["Harvard","Google","IIT Madras","ACM..."]},i={title:"Achievements",description:"Seeds of motivation and inspiration",points:["College Topper","IIT JAM","Kerala MCA Entrance..."],content:[{achievement:"College Topper",year:"2023",additional:"University College, Trivandrum"},{achievement:"AIR 1778",year:"2023",additional:"IIT JAM "},{achievement:"Rank 20",year:"2023",additional:"Kerala MCA Entrance"}]},s={overflow:"hidden"},a={display:"block",position:"relative",backgroundColor:"black",height:"100%",width:"100%",borderRadius:"20px",overflow:"hidden"},l={display:"grid",gridTemplateColumns:"1fr 1fr",gridGap:"20px"},u={cards:{...l,display:"block"},expanded:{...a}},[c,d]=S.useState("none"),f=S.useRef(null);S.useEffect(()=>{f.current&&e&&f.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[]);const[p,h]=S.useState(0);return S.useEffect(()=>{const g=setInterval(()=>{h(b=>(b+1)%4)},2e3);return()=>clearInterval(g)},[]),v.jsxs("div",{ref:f,style:s,children:[v.jsxs("div",{className:"expandedDiv",style:e?window.innerWidth<798?u.expanded:a:{display:"none"},onMouseLeave:()=>t(!1),children:[c=="Education"&&v.jsx(HA,{...n,setExpanded:t}),c=="Skills"&&v.jsx(lb,{...lb,setExpanded:t}),c=="Achievements"&&v.jsx(tN,{...i,setExpanded:t}),c=="Certifications"&&v.jsx(lN,{setExpanded:t})]}),v.jsxs("div",{style:window.innerWidth<798?u.cards:l,className:"more-details",children:[v.jsx(Jl,{...n,isExpanded:e,setExpanded:t,setHovering:d,isActive:p===0}),v.jsx(Jl,{...r,isExpanded:e,setExpanded:t,setHovering:d,isActive:p===1}),v.jsx(Jl,{...o,isExpanded:e,setExpanded:t,setHovering:d,isActive:p===(window.innerWidth<798?2:3)}),v.jsx(Jl,{...i,isExpanded:e,setExpanded:t,setHovering:d,isActive:p===(window.innerWidth<798?3:2)})]})]})}function cN({isExpanded:e,setExpanded:t}){const n={flex:4,padding:"1rem",display:"block",backgroundColor:"black",maxWidth:"100%",height:"auto",background:"#000",borderRadius:"0 1.5rem 1.5rem 0",overflow:"hidden",zIndex:2},r={...n,borderRadius:"0 0 1.5rem 1.5rem"};return v.jsx(v.Fragment,{children:v.jsxs("div",{style:window.innerWidth<798?r:n,onMouseLeave:()=>t(!1),children:[v.jsx(kE,{isExpanded:e}),v.jsx(uN,{isExpanded:e,setExpanded:t})]})})}const dN="/assets/dp_cartoon-C0cUQ8Bq.jpeg";function fN(e,t,n){let[r,o]=S.useState(e||t),i=S.useRef(e!==void 0),s=e!==void 0;S.useEffect(()=>{let u=i.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:r,l=S.useCallback((u,...c)=>{let d=(f,...p)=>{n&&(Object.is(a,f)||n(f,...p)),s||(a=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...h)=>{let g=u(s?a:p,...h);return d(g,...c),s?p:g})):(s||o(u),d(u,...c))},[s,a,n]);return[a,l]}function mm(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function pN(e){let[t,n]=fN(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=S.useCallback(()=>{n(!0)},[n]),o=S.useCallback(()=>{n(!1)},[n]),i=S.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}const hN=1500,ub=500;let to={},mN=0,_s=!1,Un=null,no=null;function gN(e={}){let{delay:t=hN,closeDelay:n=ub}=e,{isOpen:r,open:o,close:i}=pN(e),s=S.useMemo(()=>`${++mN}`,[]),a=S.useRef(),l=()=>{to[s]=d},u=()=>{for(let p in to)p!==s&&(to[p](!0),delete to[p])},c=()=>{clearTimeout(a.current),a.current=null,u(),l(),_s=!0,o(),Un&&(clearTimeout(Un),Un=null),no&&(clearTimeout(no),no=null)},d=p=>{p||n<=0?(clearTimeout(a.current),a.current=null,i()):a.current||(a.current=setTimeout(()=>{a.current=null,i()},n)),Un&&(clearTimeout(Un),Un=null),_s&&(no&&clearTimeout(no),no=setTimeout(()=>{delete to[s],no=null,_s=!1},Math.max(ub,n)))},f=()=>{u(),l(),!r&&!Un&&!_s?Un=setTimeout(()=>{Un=null,_s=!0,c()},t):r||c()};return S.useEffect(()=>()=>{clearTimeout(a.current),to[s]&&delete to[s]},[s]),{isOpen:r,open:p=>{!p&&t>0&&!a.current?f():c()},close:d}}const Yi=typeof document<"u"?ze.useLayoutEffect:()=>{};function gm(e){const t=S.useRef(null);return Yi(()=>{t.current=e},[e]),S.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Gc={prefix:String(Math.round(Math.random()*1e10)),current:0},F5=ze.createContext(Gc),vN=ze.createContext(!1);let yN=!!(typeof window<"u"&&window.document&&window.document.createElement),Ap=new WeakMap;function xN(e=!1){let t=S.useContext(F5),n=S.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=Ap.get(i);s==null?Ap.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Ap.delete(i))}n.current=++t.current}return n.current}function bN(e){let t=S.useContext(F5);t===Gc&&!yN&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=xN(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function wN(e){let t=ze.useId(),[n]=S.useState(Z0()),r=n?"react-aria":`react-aria${Gc.prefix}`;return e||`${r}-${t}`}const SN=typeof ze.useId=="function"?wN:bN;function kN(){return!1}function CN(){return!0}function $N(e){return()=>{}}function Z0(){return typeof ze.useSyncExternalStore=="function"?ze.useSyncExternalStore($N,kN,CN):S.useContext(vN)}let PN=!!(typeof window<"u"&&window.document&&window.document.createElement),Kc=new Map;function TN(e){let[t,n]=S.useState(e),r=S.useRef(null),o=SN(t),i=S.useCallback(s=>{r.current=s},[]);return PN&&Kc.set(o,i),Yi(()=>{let s=o;return()=>{Kc.delete(s)}},[o]),S.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),o}function EN(e,t){if(e===t)return e;let n=Kc.get(e);if(n)return n(t),t;let r=Kc.get(t);return r?(r(e),e):t}function MN(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const xl=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},vm=e=>e&&"window"in e&&e.window===e?e:xl(e).defaultView||window;function vo(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=MN(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Zt(i,s):o==="id"&&i&&s?t.id=EN(i,s):t[o]=s!==void 0?s:i}}return t}const _N=new Set(["id"]),AN=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ON=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),RN=/^(data-.*)$/;function jN(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(_N.has(s)||n&&AN.has(s)||r&&ON.has(s)||o!=null&&o.has(s)||RN.test(s))&&(i[s]=e[s]);return i}function J0(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function IN(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function LN(){return IN(/^Mac/i)}function NN(){return J0(/AppleWebKit/i)&&!DN()}function DN(){return J0(/Chrome/i)}function FN(){return J0(/Android/i)}function zN(){return typeof window.ResizeObserver<"u"}function VN(e){const{ref:t,onResize:n}=e;S.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(zN()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function HN(e){return e.mozInputSource===0&&e.isTrusted?!0:FN()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}let WN=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}};function UN(e){let t=S.useRef({isFocused:!1,observer:null});Yi(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=gm(r=>{e==null||e(r)});return S.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new WN("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let as=null,BN=new Set,oa=new Map,Ro=!1,ym=!1;function ev(e,t){for(let n of BN)n(e,t)}function GN(e){return!(e.metaKey||!LN()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Yc(e){Ro=!0,GN(e)&&(as="keyboard",ev("keyboard",e))}function Bt(e){as="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ro=!0,ev("pointer",e))}function z5(e){HN(e)&&(Ro=!0,as="virtual")}function V5(e){e.target===window||e.target===document||(!Ro&&!ym&&(as="virtual",ev("virtual",e)),Ro=!1,ym=!1)}function H5(){Ro=!1,ym=!0}function cb(e){if(typeof window>"u"||oa.get(vm(e)))return;const t=vm(e),n=xl(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ro=!0,r.apply(this,arguments)},n.addEventListener("keydown",Yc,!0),n.addEventListener("keyup",Yc,!0),n.addEventListener("click",z5,!0),t.addEventListener("focus",V5,!0),t.addEventListener("blur",H5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Bt,!0),n.addEventListener("pointermove",Bt,!0),n.addEventListener("pointerup",Bt,!0)):(n.addEventListener("mousedown",Bt,!0),n.addEventListener("mousemove",Bt,!0),n.addEventListener("mouseup",Bt,!0)),t.addEventListener("beforeunload",()=>{W5(e)},{once:!0}),oa.set(t,{focus:r})}const W5=(e,t)=>{const n=vm(e),r=xl(e);t&&r.removeEventListener("DOMContentLoaded",t),oa.has(n)&&(n.HTMLElement.prototype.focus=oa.get(n).focus,r.removeEventListener("keydown",Yc,!0),r.removeEventListener("keyup",Yc,!0),r.removeEventListener("click",z5,!0),n.removeEventListener("focus",V5,!0),n.removeEventListener("blur",H5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Bt,!0),r.removeEventListener("pointermove",Bt,!0),r.removeEventListener("pointerup",Bt,!0)):(r.removeEventListener("mousedown",Bt,!0),r.removeEventListener("mousemove",Bt,!0),r.removeEventListener("mouseup",Bt,!0)),oa.delete(n))};function KN(e){const t=xl(e);let n;return t.readyState!=="loading"?cb(e):(n=()=>{cb(e)},t.addEventListener("DOMContentLoaded",n)),()=>W5(e,n)}typeof document<"u"&&KN();function YN(){return as!=="pointer"}function qN(){return as}function XN(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=S.useRef({isFocusWithin:!1}),s=S.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),a=UN(s),l=S.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,a(u))},[r,o,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let qc=!1,Op=0;function xm(){qc=!0,setTimeout(()=>{qc=!1},50)}function db(e){e.pointerType==="touch"&&xm()}function QN(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",db):document.addEventListener("touchend",xm),Op++,()=>{Op--,!(Op>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",db):document.removeEventListener("touchend",xm))}}function U5(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=S.useState(!1),a=S.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;S.useEffect(QN,[]);let{hoverProps:l,triggerHoverEnd:u}=S.useMemo(()=>{let c=(p,h)=>{if(a.pointerType=h,o||h==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let g=p.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:h}),n&&n(!0),s(!0)},d=(p,h)=>{if(a.pointerType="",a.target=null,h==="touch"||!a.isHovered)return;a.isHovered=!1;let g=p.currentTarget;r&&r({type:"hoverend",target:g,pointerType:h}),n&&n(!1),s(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=p=>{qc&&p.pointerType==="mouse"||c(p,p.pointerType)},f.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,p.pointerType)}):(f.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!qc&&c(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,o,a]);return S.useEffect(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:l,isHovered:i}}function ZN(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=S.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=gm(l=>{n&&fu(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=gm(l=>{n&&n(l)});S.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,c=xl(u);if(typeof PointerEvent<"u"){let d=f=>{l.isPointerDown&&fu(f,t)&&a(f),l.isPointerDown=!1};return c.addEventListener("pointerdown",s,!0),c.addEventListener("pointerup",d,!0),()=>{c.removeEventListener("pointerdown",s,!0),c.removeEventListener("pointerup",d,!0)}}else{let d=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&fu(p,t)&&a(p),l.isPointerDown=!1},f=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&fu(p,t)&&a(p),l.isPointerDown=!1};return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",f,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",f,!0)}}},[t,r,s,a])}function fu(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function JN(e,t){let n=jN(e,{labelable:!0}),{hoverProps:r}=U5({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:vo(n,r,{role:"tooltip"})}}const tv=typeof document<"u"?ze.useLayoutEffect:()=>{};function eD(e){const t=S.useRef(null);return tv(()=>{t.current=e},[e]),S.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}let fb=new Map;function tD(e,t){if(e===t)return e;let n=fb.get(e);if(n)return n(t),t;let r=fb.get(t);return r?(r(e),e):t}function nD(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ls=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},bm=e=>e&&"window"in e&&e.window===e?e:ls(e).defaultView||window;function pb(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=nD(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Zt(i,s):o==="id"&&i&&s?t.id=tD(i,s):t[o]=s!==void 0?s:i}}return t}function hb(e){if(rD())e.focus({preventScroll:!0});else{let t=oD(e);e.focus(),iD(t)}}let pu=null;function rD(){if(pu==null){pu=!1;try{document.createElement("div").focus({get preventScroll(){return pu=!0,!0}})}catch{}}return pu}function oD(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function aD(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function B5(e){let t=null;return()=>(t==null&&(t=e()),t)}const lD=B5(function(){return aD(/^Mac/i)}),uD=B5(function(){return sD(/Android/i)});let Jo=new Map,wm=new Set;function mb(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Jo.get(r.target);o||(o=new Set,Jo.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Jo.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Jo.delete(r.target)),Jo.size===0)){for(let i of wm)i();wm.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?mb():document.addEventListener("DOMContentLoaded",mb));function cD(e){requestAnimationFrame(()=>{Jo.size===0?e():wm.add(e)})}function dD(e,t){tv(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function fD(e){return e.mozInputSource===0&&e.isTrusted?!0:uD()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class pD{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function hD(e){let t=S.useRef({isFocused:!1,observer:null});tv(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=eD(r=>{e==null||e(r)});return S.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new pD("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function mD(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=S.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=hD(i),a=S.useCallback(l=>{const u=ls(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}let bl=null,gD=new Set,ia=new Map,jo=!1,Sm=!1;function nv(e,t){for(let n of gD)n(e,t)}function vD(e){return!(e.metaKey||!lD()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Xc(e){jo=!0,vD(e)&&(bl="keyboard",nv("keyboard",e))}function Gt(e){bl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(jo=!0,nv("pointer",e))}function G5(e){fD(e)&&(jo=!0,bl="virtual")}function K5(e){e.target===window||e.target===document||(!jo&&!Sm&&(bl="virtual",nv("virtual",e)),jo=!1,Sm=!1)}function Y5(){jo=!1,Sm=!0}function gb(e){if(typeof window>"u"||ia.get(bm(e)))return;const t=bm(e),n=ls(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){jo=!0,r.apply(this,arguments)},n.addEventListener("keydown",Xc,!0),n.addEventListener("keyup",Xc,!0),n.addEventListener("click",G5,!0),t.addEventListener("focus",K5,!0),t.addEventListener("blur",Y5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Gt,!0),n.addEventListener("pointermove",Gt,!0),n.addEventListener("pointerup",Gt,!0)):(n.addEventListener("mousedown",Gt,!0),n.addEventListener("mousemove",Gt,!0),n.addEventListener("mouseup",Gt,!0)),t.addEventListener("beforeunload",()=>{q5(e)},{once:!0}),ia.set(t,{focus:r})}const q5=(e,t)=>{const n=bm(e),r=ls(e);t&&r.removeEventListener("DOMContentLoaded",t),ia.has(n)&&(n.HTMLElement.prototype.focus=ia.get(n).focus,r.removeEventListener("keydown",Xc,!0),r.removeEventListener("keyup",Xc,!0),r.removeEventListener("click",G5,!0),n.removeEventListener("focus",K5,!0),n.removeEventListener("blur",Y5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Gt,!0),r.removeEventListener("pointermove",Gt,!0),r.removeEventListener("pointerup",Gt,!0)):(r.removeEventListener("mousedown",Gt,!0),r.removeEventListener("mousemove",Gt,!0),r.removeEventListener("mouseup",Gt,!0)),ia.delete(n))};function yD(e){const t=ls(e);let n;return t.readyState!=="loading"?gb(e):(n=()=>{gb(e)},t.addEventListener("DOMContentLoaded",n)),()=>q5(e,n)}typeof document<"u"&&yD();function xD(){return bl}function vb(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function bD(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:vb(e.onKeyDown),onKeyUp:vb(e.onKeyUp)}}}function wD(e){const t=ls(e);if(xD()==="virtual"){let n=t.activeElement;cD(()=>{t.activeElement===n&&e.isConnected&&hb(e)})}else hb(e)}let SD=null;function X5(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function kD(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of xb.traverse(xb.getTreeNode(t)))if(n&&X5(e,n.current))return!0;return!1}function CD(e){return kD(e,SD)}class rv{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new yb({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&X5(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new rv;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new yb({scopeRef:null}),this.fastMap.set(null,this.root)}}class yb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let xb=new rv,$D=ze.createContext(null);function PD(e){let t=S.useContext($D)||{};dD(t,e);let{ref:n,...r}=t;return r}function TD(e,t){let{focusProps:n}=mD(e),{keyboardProps:r}=bD(e),o=pb(n,r),i=PD(t),s=e.isDisabled?{}:i,a=S.useRef(e.autoFocus);return S.useEffect(()=>{a.current&&t.current&&wD(t.current),a.current=!1},[t]),{focusableProps:pb({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function ED(e,t,n){let{isDisabled:r,trigger:o}=e,i=TN(),s=S.useRef(!1),a=S.useRef(!1),l=()=>{(s.current||a.current)&&t.open(a.current)},u=m=>{!s.current&&!a.current&&t.close(m)};S.useEffect(()=>{let m=y=>{n&&n.current&&y.key==="Escape"&&(y.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",m,!0),()=>{document.removeEventListener("keydown",m,!0)}},[n,t]);let c=()=>{o!=="focus"&&(qN()==="pointer"?s.current=!0:s.current=!1,l())},d=()=>{o!=="focus"&&(a.current=!1,s.current=!1,u())},f=()=>{a.current=!1,s.current=!1,u(!0)},p=()=>{YN()&&(a.current=!0,l())},h=()=>{a.current=!1,s.current=!1,u(!0)},{hoverProps:g}=U5({isDisabled:r,onHoverStart:c,onHoverEnd:d}),{focusableProps:b}=TD({isDisabled:r,onFocus:p,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...vo(b,g,{onPointerDown:f,onKeyDown:f})},tooltipProps:{id:i}}}const pi={top:"top",bottom:"top",left:"left",right:"left"},Qc={top:"bottom",bottom:"top",left:"right",right:"left"},MD={top:"left",left:"top"},km={top:"height",left:"width"},Q5={width:"totalWidth",height:"totalHeight"},hu={};let mt=typeof document<"u"&&window.visualViewport;function bb(e){let t=0,n=0,r=0,o=0,i=0,s=0,a={},l=(mt==null?void 0:mt.scale)>1;if(e.tagName==="BODY"){let d=document.documentElement;r=d.clientWidth,o=d.clientHeight;var u;t=(u=mt==null?void 0:mt.width)!==null&&u!==void 0?u:r;var c;n=(c=mt==null?void 0:mt.height)!==null&&c!==void 0?c:o,a.top=d.scrollTop||e.scrollTop,a.left=d.scrollLeft||e.scrollLeft,mt&&(i=mt.offsetTop,s=mt.offsetLeft)}else({width:t,height:n,top:i,left:s}=Pi(e)),a.top=e.scrollTop,a.left=e.scrollLeft,r=t,o=n;return NN()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(a.top=0,a.left=0,i=mt.pageTop,s=mt.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:a,top:i,left:s}}function _D(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function wb(e,t,n,r,o,i,s){let a=o.scroll[e],l=r[km[e]],u=r.scroll[pi[e]]+i,c=l+r.scroll[pi[e]]-i,d=t-a+s[e]-r[pi[e]],f=t-a+n+s[e]-r[pi[e]];return dc?Math.max(c-f,u-d):0}function AD(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Sb(e){if(hu[e])return hu[e];let[t,n]=e.split(" "),r=pi[t]||"right",o=MD[r];pi[n]||(n="center");let i=km[r],s=km[o];return hu[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:s},hu[e]}function Rp(e,t,n,r,o,i,s,a,l,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:p,size:h,crossSize:g}=r,b={};b[p]=e[p],d==="center"?b[p]+=(e[g]-n[g])/2:d!==p&&(b[p]+=e[g]-n[g]),b[p]+=i;const m=e[p]-n[g]+l+u,y=e[p]+e[g]-l-u;if(b[p]=mm(b[p],m,y),c===f){const x=a?s[h]:t[Q5[h]];b[Qc[f]]=Math.floor(x-e[f]+o)}else b[f]=Math.floor(e[f]+e[h]+o);return b}function OD(e,t,n,r,o,i,s,a){const l=r?n.height:t[Q5.height];let u=e.top!=null?n.top+e.top:n.top+(l-e.bottom-s),c=a!=="top"?Math.max(0,t.height+t.top+t.scroll.top-u-(o.top+o.bottom+i)):Math.max(0,u+s-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,c)}function kb(e,t,n,r,o,i){let{placement:s,axis:a,size:l}=i;return s===a?Math.max(0,n[a]-e[a]-e.scroll[a]+t[a]-r[a]-r[Qc[a]]-o):Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-n[a]-n[l]-r[a]-r[Qc[a]]-o)}function RD(e,t,n,r,o,i,s,a,l,u,c,d,f,p,h,g){let b=Sb(e),{size:m,crossAxis:y,crossSize:x,placement:w,crossPlacement:C}=b,k=Rp(t,a,n,b,c,d,u,f,h,g),$=c,P=kb(a,u,t,o,i+c,b);if(s&&r[m]>P){let N=Sb(`${Qc[w]} ${C}`),V=Rp(t,a,n,N,c,d,u,f,h,g);kb(a,u,t,o,i+c,N)>P&&(b=N,k=V,$=c)}let R="bottom";b.axis==="top"?b.placement==="top"?R="top":b.placement==="bottom"&&(R="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?R="bottom":b.crossPlacement==="bottom"&&(R="top"));let M=wb(y,k[y],n[x],a,l,i,u);k[y]+=M;let O=OD(k,a,u,f,o,i,n.height,R);p&&p{if(!n||r===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let a=r||LD.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}const DD=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),FD=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function zD(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return DD.has(n.script)}let t=e.split("-")[0];return FD.has(t)}const VD=Symbol.for("react-aria.i18n.locale");function Z5(){let e=typeof window<"u"&&window[VD]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:zD(e)?"rtl":"ltr"}}let Cm=Z5(),Fs=new Set;function Pb(){Cm=Z5();for(let e of Fs)e(Cm)}function HD(){let e=Z0(),[t,n]=S.useState(Cm);return S.useEffect(()=>(Fs.size===0&&window.addEventListener("languagechange",Pb),Fs.add(n),()=>{Fs.delete(n),Fs.size===0&&window.removeEventListener("languagechange",Pb)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const WD=ze.createContext(null);function UD(){let e=HD();return S.useContext(WD)||e}let je=typeof document<"u"&&window.visualViewport;function BD(e){let{direction:t}=UD(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:s="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:f=!0,isOpen:p=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:b=0}=e,[m,y]=S.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[f,s,o.current,r.current,i.current,a,l,u,c,d,p,t,g,b,n],w=S.useRef(je==null?void 0:je.scale);S.useEffect(()=>{p&&(w.current=je==null?void 0:je.scale)},[p]);let C=S.useCallback(()=>{if(f===!1||!p||!o.current||!r.current||!i.current||!u||(je==null?void 0:je.scale)!==w.current)return;let P=o.current;if(!g&&o.current){var R;P.style.top="0px",P.style.bottom="";var M;P.style.maxHeight=((M=(R=window.visualViewport)===null||R===void 0?void 0:R.height)!==null&&M!==void 0?M:window.innerHeight)+"px"}let O=jD({placement:KD(s,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:a,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:g,arrowSize:n,arrowBoundaryOffset:b});P.style.top="",P.style.bottom="",Object.keys(O.position).forEach(E=>P.style[E]=O.position[E]+"px"),P.style.maxHeight=O.maxHeight!=null?O.maxHeight+"px":void 0,y(O)},x);Yi(C,x),GD(C),VN({ref:o,onResize:C});let k=S.useRef(!1);Yi(()=>{let P,R=()=>{k.current=!0,clearTimeout(P),P=setTimeout(()=>{k.current=!1},500),C()},M=()=>{k.current&&R()};return je==null||je.addEventListener("resize",R),je==null||je.addEventListener("scroll",M),()=>{je==null||je.removeEventListener("resize",R),je==null||je.removeEventListener("scroll",M)}},[C]);let $=S.useCallback(()=>{k.current||h()},[h,k]);return ND({triggerRef:r,isOpen:p,onClose:h&&$}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...m.position,maxHeight:m.maxHeight}},placement:m.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m.arrowOffsetLeft,top:m.arrowOffsetTop}},updatePosition:C}}function GD(e){Yi(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function KD(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Bn=[];function YD(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:a}=e;S.useEffect(()=>(o&&Bn.push(t),()=>{let h=Bn.indexOf(t);h>=0&&Bn.splice(h,1)}),[o,t]);let l=()=>{Bn[Bn.length-1]===t&&n&&n()},u=h=>{(!a||a(h.target))&&Bn[Bn.length-1]===t&&(h.stopPropagation(),h.preventDefault())},c=h=>{(!a||a(h.target))&&(Bn[Bn.length-1]===t&&(h.stopPropagation(),h.preventDefault()),l())},d=h=>{h.key==="Escape"&&!s&&!h.nativeEvent.isComposing&&(h.stopPropagation(),h.preventDefault(),l())};ZN({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:u});let{focusWithinProps:f}=XN({isDisabled:!r,onBlurWithin:h=>{!h.relatedTarget||CD(h.relatedTarget)||(!a||a(h.relatedTarget))&&n()}}),p=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:p}}}const $m=ze.createContext(null);function qD(e){let{children:t}=e,n=S.useContext($m),[r,o]=S.useState(0),i=S.useMemo(()=>({parent:n,modalCount:r,addModal(){o(s=>s+1),n&&n.addModal()},removeModal(){o(s=>s-1),n&&n.removeModal()}}),[n,r]);return ze.createElement($m.Provider,{value:i},t)}function XD(){let e=S.useContext($m);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function QD(e){let{modalProviderProps:t}=XD();return ze.createElement("div",{"data-overlay-container":!0,...e,...t})}function ZD(e){return ze.createElement(qD,null,ze.createElement(QD,e))}function Tb(e){let t=Z0(),{portalContainer:n=t?null:document.body,...r}=e;if(ze.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=ze.createElement(ZD,r);return SE.createPortal(o,n)}function JD(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=S.createContext(void 0);o.displayName=r;function i(){var s;const a=S.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function eF(e){return{UNSAFE_getDOMNode(){return e.current}}}function tF(e){return typeof e=="function"}var Xo=e=>e?"true":void 0;function J5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t"u")&&!Eb[i]&&(Eb[i]=!0,((r=process==null?void 0:rF)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}function iF(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function sF(e,t){if(e!=null){if(tF(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function aF(...e){return t=>{e.forEach(n=>sF(n,t))}}var[yG,lF]=JD({name:"ProviderContext",strict:!1});const ov=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),bf=S.createContext({}),iv=S.createContext(null),sv=typeof window<"u",e$=sv?S.useLayoutEffect:S.useEffect,av=S.createContext({strict:!1}),wf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),uF="framerAppearId",t$="data-"+wf(uF),cF={skipAnimations:!1,useManualTiming:!1};function dF(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const p=d&&r?t:n;return c&&i.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(u))}};return l}const mu=["read","resolveKeyframes","update","preRender","render","postRender"],fF=40;function n$(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=mu.reduce((m,y)=>(m[y]=dF(i),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,p=()=>{const m=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,fF),1),o.timestamp=m,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},h=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:mu.reduce((m,y)=>{const x=s[y];return m[y]=(w,C=!1,k=!1)=>(n||h(),x.schedule(w,C,k)),m},{}),cancel:m=>{for(let y=0;y{d&&d.update(n,l)});const p=n[t$],h=S.useRef(!!p&&!window.MotionHandoffIsComplete&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,p)));return e$(()=>{d&&(d.updateFeatures(),pF.render(d.render),h.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!h.current&&d.animationState&&d.animationState.animateChanges(),h.current=!1,Mb||(Mb=!0,queueMicrotask(gF)))}),d}function gF(){window.MotionHandoffIsComplete=!0}function vF(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:o$(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&r$(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function o$(e){if(e)return e.options.allowProjection!==!1?e.projection:o$(e.parent)}function yF(e,t,n){return S.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):r$(n)&&(n.current=r))},[t])}function Ya(e){return typeof e=="string"||Array.isArray(e)}function qa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const lv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uv=["initial",...lv];function Sf(e){return qa(e.animate)||uv.some(t=>Ya(e[t]))}function i$(e){return!!(Sf(e)||e.variants)}function xF(e,t){if(Sf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ya(n)?n:void 0,animate:Ya(r)?r:void 0}}return e.inherit!==!1?t:{}}function bF(e){const{initial:t,animate:n}=xF(e,S.useContext(bf));return S.useMemo(()=>({initial:t,animate:n}),[_b(t),_b(n)])}function _b(e){return Array.isArray(e)?e.join(" "):e}const Ab={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"]},qi={};for(const e in Ab)qi[e]={isEnabled:t=>Ab[e].some(n=>!!t[n])};function Pm(e){for(const t in e)qi[t]={...qi[t],...e[t]}}const s$=S.createContext({}),wF=Symbol.for("motionComponentSymbol"),Ln=e=>e;let Tm=Ln;function SF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&Pm(e);function i(a,l){let u;const c={...S.useContext(ov),...a,layoutId:kF(a)},{isStatic:d}=c,f=bF(a),p=r(a,d);if(!d&&sv){CF();const h=$F(c);u=h.MeasureLayout,f.visualElement=mF(o,p,c,t,h.ProjectionNode)}return v.jsxs(bf.Provider,{value:f,children:[u&&f.visualElement?v.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,yF(p,f.visualElement,l),p,d,f.visualElement)]})}const s=S.forwardRef(i);return s[wF]=o,s}function kF({layoutId:e}){const t=S.useContext(s$).id;return t&&e!==void 0?t+"-"+e:e}function CF(e,t){S.useContext(av).strict}function $F(e){const{drag:t,layout:n}=qi;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function PF(e){function t(r,o={}){return SF(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const TF=["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 cv(e){return typeof e!="string"||e.includes("-")?!1:!!(TF.indexOf(e)>-1||/[A-Z]/u.test(e))}const EF={},wl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xr=new Set(wl);function a$(e,{layout:t,layoutId:n}){return Xr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!EF[e]||e==="opacity")}const dt=e=>!!(e&&e.getVelocity),l$=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xi=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},sa={...us,transform:e=>Xi(0,1,e)},gu={...us,default:1},aa=e=>Math.round(e*1e5)/1e5,dv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,MF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,_F=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Sl(e){return typeof e=="string"}function AF(e){return e==null}const kl=e=>({test:t=>Sl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=kl("deg"),Ti=kl("%"),Y=kl("px"),OF=kl("vh"),RF=kl("vw"),Ob={...Ti,parse:e=>Ti.parse(e)/100,transform:e=>Ti.transform(e*100)},Rb={...us,transform:Math.round},fv={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:gu,scaleX:gu,scaleY:gu,scaleZ:gu,skew:xr,skewX:xr,skewY:xr,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:sa,originX:Ob,originY:Ob,originZ:Y,zIndex:Rb,backgroundPositionX:Y,backgroundPositionY:Y,fillOpacity:sa,strokeOpacity:sa,numOctaves:Rb},jF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},IF=wl.length;function LF(e,t,n){let r="",o=!0;for(let i=0;it=>typeof t=="string"&&t.startsWith(e),c$=u$("--"),NF=u$("var(--"),pv=e=>NF(e)?DF.test(e.split("/*")[0].trim()):!1,DF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function hv(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Xr.has(l)){s=!0;continue}else if(c$(l)){o[l]=u;continue}else{const c=l$(u,fv[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=LF(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}const mv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d$(e,t,n){for(const r in t)!dt(t[r])&&!a$(r,n)&&(e[r]=t[r])}function FF({transformTemplate:e},t){return S.useMemo(()=>{const n=mv();return hv(n,t,e),Object.assign({},n.vars,n.style)},[t])}function zF(e,t){const n=e.style||{},r={};return d$(r,n,e),Object.assign(r,FF(e,t)),r}function VF(e,t){const n={},r=zF(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const HF=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 Zc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||HF.has(e)}let f$=e=>!Zc(e);function WF(e){e&&(f$=t=>t.startsWith("on")?!Zc(t):e(t))}try{WF(require("@emotion/is-prop-valid").default)}catch{}function UF(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(f$(o)||n===!0&&Zc(o)||!t&&!Zc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function jb(e,t,n){return typeof e=="string"?e:Y.transform(t+n*e)}function BF(e,t,n){const r=jb(t,e.x,e.width),o=jb(n,e.y,e.height);return`${r} ${o}`}const GF={offset:"stroke-dashoffset",array:"stroke-dasharray"},KF={offset:"strokeDashoffset",array:"strokeDasharray"};function YF(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?GF:KF;e[i.offset]=Y.transform(-r);const s=Y.transform(t),a=Y.transform(n);e[i.array]=`${s} ${a}`}function gv(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(hv(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(o!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=BF(h,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&YF(f,s,a,l,!1)}const p$=()=>({...mv(),attrs:{}}),vv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qF(e,t,n,r){const o=S.useMemo(()=>{const i=p$();return gv(i,t,vv(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};d$(i,e.style,e),o.style={...i,...o.style}}return o}function XF(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(cv(n)?qF:VF)(r,i,s,n),u=UF(r,typeof n=="string",e),c=n!==S.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=S.useMemo(()=>dt(d)?d.get():d,[d]);return S.createElement(n,{...c,children:f})}}function h$(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const m$=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 g$(e,t,n,r){h$(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(m$.has(o)?o:wf(o),t.attrs[o])}function yv(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(dt(o[s])||t.style&&dt(t.style[s])||a$(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function v$(e,t,n){const r=yv(e,t,n);for(const o in e)if(dt(e[o])||dt(t[o])){const i=wl.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Ib(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function xv(e,t,n,r){if(typeof t=="function"){const[o,i]=Ib(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Ib(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function bv(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Em=e=>Array.isArray(e),QF=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ZF=e=>Em(e)?e[e.length-1]||0:e;function JF(e){const t=dt(e)?e.get():e;return QF(t)?t.toValue():t}const y$=new Set(["opacity","clipPath","filter","transform"]);function x$(e){if(Xr.has(e))return"transform";if(y$.has(e))return wf(e)}function b$(e,t){e.indexOf(t)===-1&&e.push(t)}function w$(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function ez({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:nz(o,i,s,a?!1:e,t),renderState:n()};return r&&(l.mount=u=>r(o,u,l)),l}const S$=e=>(t,n)=>{const r=S.useContext(bf),o=S.useContext(iv),i=()=>ez(e,t,r,o,n);return n?i():bv(i)};function tz(e,t){const n=x$(t);n&&b$(e,n)}function Lb(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const y in b){let x=b[y];if(Array.isArray(x)){const w=h?x.length-1:0;x=x[w]}x!==null&&(s[y]=x)}for(const y in m)s[y]=m[y]}),l&&(d&&c!==!1&&!qa(d)&&Lb(e,d,b=>{for(const m in b)tz(a,m)}),a.length&&(s.willChange=a.join(","))),s}const{schedule:Je,cancel:Jc,state:ed,steps:bG}=n$(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ln,!0),rz={useVisualState:S$({scrapeMotionValuesFromProps:v$,createRenderState:p$,onMount:(e,t,{renderState:n,latestValues:r})=>{Je.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Je.render(()=>{gv(n,r,vv(t.tagName),e.transformTemplate),g$(t,n)})}})},oz={useVisualState:S$({applyWillChange:!0,scrapeMotionValuesFromProps:yv,createRenderState:mv})};function iz(e,{forwardMotionProps:t=!1},n,r){return{...cv(e)?rz:oz,preloadedFeatures:n,useRender:XF(t),createVisualElement:r,Component:e}}function yo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const sz=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function k$(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const az=e=>t=>sz(t)&&e(t,k$(t));function Yu(e,t,n,r){return yo(e,t,az(n),r)}const lz=(e,t)=>n=>t(e(n)),Dr=(...e)=>e.reduce(lz);function C$(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const uz=C$("dragHorizontal"),cz=C$("dragVertical");function dz(e){let t=!1;{const n=uz(),r=cz();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function $$(){const e=dz();return e?(e(),!1):!0}class cs{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Nb(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||$$())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&Je.postRender(()=>l(i,s))};return Yu(e.current,n,o,{passive:!e.getProps()[r]})}class fz extends cs{mount(){this.unmount=Dr(Nb(this.node,!0),Nb(this.node,!1))}unmount(){}}class pz extends cs{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=Dr(yo(this.node.current,"focus",()=>this.onFocus()),yo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const P$=(e,t)=>t?e===t?!0:P$(e,t.parentElement):!1;function jp(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,k$(n))}class hz extends cs{constructor(){super(...arguments),this.removeStartListeners=Ln,this.removeEndListeners=Ln,this.removeAccessibleListeners=Ln,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Yu(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!P$(this.node.current,a.target)?c:u;f&&Je.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=Yu(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Dr(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||jp("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Je.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=yo(this.node.current,"keyup",s),jp("down",(a,l)=>{this.startPress(a,l)})},n=yo(this.node.current,"keydown",t),r=()=>{this.isPressing&&jp("cancel",(i,s)=>this.cancelPress(i,s))},o=yo(this.node.current,"blur",r);this.removeAccessibleListeners=Dr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Je.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$$()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Je.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Yu(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Dr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Mm=new WeakMap,Ip=new WeakMap,mz=e=>{const t=Mm.get(e.target);t&&t(e)},gz=e=>{e.forEach(mz)};function vz({root:e,...t}){const n=e||document;Ip.has(n)||Ip.set(n,{});const r=Ip.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(gz,{root:e,...t})),r[o]}function yz(e,t,n){const r=vz(t);return Mm.set(e,n),r.observe(e),()=>{Mm.delete(e),r.unobserve(e)}}const xz={some:0,all:1};class bz extends cs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:xz[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return yz(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wz(t,n))&&this.startObserver()}unmount(){}}function wz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sz={inView:{Feature:bz},tap:{Feature:hz},focus:{Feature:pz},hover:{Feature:fz}};function T$(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,zr=e=>e/1e3,kz={type:"spring",stiffness:500,damping:25,restSpeed:10},Cz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$z={type:"keyframes",duration:.8},Pz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tz=(e,{keyframes:t})=>t.length>2?$z:Xr.has(e)?e.startsWith("scale")?Cz(t[1]):kz:Pz;function Ez({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function E$(e,t){return e[t]||e.default||e}const Mz=e=>e!==null;function Cf(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Mz),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let qu;function _z(){qu=void 0}const Ei={now:()=>(qu===void 0&&Ei.set(ed.isProcessing||cF.useManualTiming?ed.timestamp:performance.now()),qu),set:e=>{qu=e,queueMicrotask(_z)}},M$=e=>/^0[^.\s]+$/u.test(e);function Az(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||M$(e):!0}const _$=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Oz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rz(e){const t=Oz.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function A$(e,t,n=1){const[r,o]=Rz(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return _$(s)?parseFloat(s):s}return pv(o)?A$(o,t,n+1):o}const jz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Db=e=>e===us||e===Y,Fb=(e,t)=>parseFloat(e.split(", ")[t]),zb=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Fb(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Fb(i[1],e):0}},Iz=new Set(["x","y","z"]),Lz=wl.filter(e=>!Iz.has(e));function Nz(e){const t=[];return Lz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Qi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:zb(4,13),y:zb(5,14)};Qi.translateX=Qi.x;Qi.translateY=Qi.y;const O$=e=>t=>t.test(e),Dz={test:e=>e==="auto",parse:e=>e},R$=[us,Y,Ti,xr,RF,OF,Dz],Vb=e=>R$.find(O$(e)),$o=new Set;let _m=!1,Am=!1;function j$(){if(Am){const e=Array.from($o).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Nz(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Am=!1,_m=!1,$o.forEach(e=>e.complete()),$o.clear()}function I$(){$o.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Am=!0)})}function Fz(){I$(),j$()}class wv{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?($o.add(this),_m||(_m=!0,Je.read(I$),Je.resolveKeyframes(j$))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Sl(n)&&_F.test(n)&&n.startsWith(e)||t&&!AF(n)&&Object.prototype.hasOwnProperty.call(n,t)),L$=(e,t,n)=>r=>{if(!Sl(r))return r;const[o,i,s,a]=r.match(dv);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},zz=e=>Xi(0,255,e),Lp={...us,transform:e=>Math.round(zz(e))},xo={test:Sv("rgb","red"),parse:L$("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Lp.transform(e)+", "+Lp.transform(t)+", "+Lp.transform(n)+", "+aa(sa.transform(r))+")"};function Vz(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Om={test:Sv("#"),parse:Vz,transform:xo.transform},hi={test:Sv("hsl","hue"),parse:L$("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ti.transform(aa(t))+", "+Ti.transform(aa(n))+", "+aa(sa.transform(r))+")"},st={test:e=>xo.test(e)||Om.test(e)||hi.test(e),parse:e=>xo.test(e)?xo.parse(e):hi.test(e)?hi.parse(e):Om.parse(e),transform:e=>Sl(e)?e:e.hasOwnProperty("red")?xo.transform(e):hi.transform(e)};function Hz(e){var t,n;return isNaN(e)&&Sl(e)&&(((t=e.match(dv))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(MF))===null||n===void 0?void 0:n.length)||0)>0}const N$="number",D$="color",Wz="var",Uz="var(",Hb="${}",Bz=/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 Xa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Bz,l=>(st.test(l)?(r.color.push(i),o.push(D$),n.push(st.parse(l))):l.startsWith(Uz)?(r.var.push(i),o.push(Wz),n.push(l)):(r.number.push(i),o.push(N$),n.push(parseFloat(l))),++i,Hb)).split(Hb);return{values:n,split:a,indexes:r,types:o}}function F$(e){return Xa(e).values}function z$(e){const{split:t,types:n}=Xa(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function Kz(e){const t=F$(e);return z$(e)(t.map(Gz))}const ds={test:Hz,parse:F$,createTransformer:z$,getAnimatableNone:Kz},Yz=new Set(["brightness","contrast","saturate","opacity"]);function qz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(dv)||[];if(!r)return e;const o=n.replace(r,"");let i=Yz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Xz=/\b([a-z-]*)\(.*?\)/gu,Rm={...ds,getAnimatableNone:e=>{const t=e.match(Xz);return t?t.map(qz).join(" "):e}},Qz={...fv,color:st,backgroundColor:st,outlineColor:st,fill:st,stroke:st,borderColor:st,borderTopColor:st,borderRightColor:st,borderBottomColor:st,borderLeftColor:st,filter:Rm,WebkitFilter:Rm},kv=e=>Qz[e];function V$(e,t){let n=kv(e);return n!==Rm&&(n=ds),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Zz=new Set(["auto","none","0"]);function Jz(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function W$(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ds.test(e)||e==="0")&&!e.startsWith("url("));function eV(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function B$(e,t){return t?e*(1e3/t):0}const nV=5;function G$(e,t,n){const r=Math.max(t-nV,0);return B$(n-e(r),t-r)}const Np=.001,rV=.01,oV=10,iV=.05,sV=1;function aV({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=Xi(iV,sV,s),e=Xi(rV,oV,zr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=jm(u,s),h=Math.exp(-d);return Np-f/p*h},i=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,h=Math.exp(-d),g=jm(Math.pow(u,2),s);return(-o(u)+Np>0?-1:1)*((f-p)*h)/g}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Np+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=uV(o,i,a);if(e=Fr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const lV=12;function uV(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function fV(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ub(e,dV)&&Ub(e,cV)){const n=aV(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function K$({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=fV({...r,velocity:-zr(r.velocity||0)}),p=d||0,h=l/(2*Math.sqrt(a*u)),g=i-o,b=zr(Math.sqrt(a/u)),m=Math.abs(g)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let y;if(h<1){const x=jm(b,h);y=w=>{const C=Math.exp(-h*b*w);return i-C*((p+h*b*g)/x*Math.sin(x*w)+g*Math.cos(x*w))}}else if(h===1)y=x=>i-Math.exp(-b*x)*(g+(p+b*g)*x);else{const x=b*Math.sqrt(h*h-1);y=w=>{const C=Math.exp(-h*b*w),k=Math.min(x*w,300);return i-C*((p+h*b*g)*Math.sinh(k)+x*g*Math.cosh(k))/x}}return{calculatedDuration:f&&c||null,next:x=>{const w=y(x);if(f)s.done=x>=c;else{let C=0;h<1&&(C=x===0?Fr(p):G$(y,x,w));const k=Math.abs(C)<=n,$=Math.abs(i-w)<=t;s.done=k&&$}return s.value=s.done?i:w,s}}}function Bb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=P=>a!==void 0&&Pl,h=P=>a===void 0?l:l===void 0||Math.abs(a-P)-g*Math.exp(-P/r),x=P=>m+y(P),w=P=>{const R=y(P),M=x(P);f.done=Math.abs(R)<=u,f.value=f.done?m:M};let C,k;const $=P=>{p(f.value)&&(C=P,k=K$({keyframes:[f.value,h(f.value)],velocity:G$(x,P,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return $(0),{calculatedDuration:null,next:P=>{let R=!1;return!k&&C===void 0&&(R=!0,w(P),$(P)),C!==void 0&&P>=C?k.next(P-C):(!R&&w(P),f)}}}const Y$=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,pV=1e-7,hV=12;function mV(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Y$(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>pV&&++amV(i,0,1,e,n);return i=>i===0||i===1?i:Y$(o(i),t,r)}const gV=Cl(.42,0,1,1),vV=Cl(0,0,.58,1),q$=Cl(.42,0,.58,1),yV=e=>Array.isArray(e)&&typeof e[0]!="number",X$=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Q$=e=>t=>1-e(1-t),Cv=e=>1-Math.sin(Math.acos(e)),xV=Q$(Cv),bV=X$(Cv),Z$=Cl(.33,1.53,.69,.99),$v=Q$(Z$),wV=X$($v),SV=e=>(e*=2)<1?.5*$v(e):.5*(2-Math.pow(2,-10*(e-1))),Gb={linear:Ln,easeIn:gV,easeInOut:q$,easeOut:vV,circIn:Cv,circInOut:bV,circOut:xV,backIn:$v,backInOut:wV,backOut:Z$,anticipate:SV},Kb=e=>{if(Array.isArray(e)){Tm(e.length===4);const[t,n,r,o]=e;return Cl(t,n,r,o)}else if(typeof e=="string")return Tm(Gb[e]!==void 0),Gb[e];return e},J$=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},$f=(e,t,n)=>e+(t-e)*n;function Dp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kV({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Dp(l,a,e+1/3),i=Dp(l,a,e),s=Dp(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function td(e,t){return n=>n>0?t:e}const Fp=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},CV=[Om,xo,hi],$V=e=>CV.find(t=>t.test(e));function Yb(e){const t=$V(e);if(!t)return!1;let n=t.parse(e);return t===hi&&(n=kV(n)),n}const qb=(e,t)=>{const n=Yb(e),r=Yb(t);if(!n||!r)return td(e,t);const o={...n};return i=>(o.red=Fp(n.red,r.red,i),o.green=Fp(n.green,r.green,i),o.blue=Fp(n.blue,r.blue,i),o.alpha=$f(n.alpha,r.alpha,i),xo.transform(o))},Im=new Set(["none","hidden"]);function PV(e,t){return Im.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TV(e,t){return n=>$f(e,t,n)}function Pv(e){return typeof e=="number"?TV:typeof e=="string"?pv(e)?td:st.test(e)?qb:_V:Array.isArray(e)?eP:typeof e=="object"?st.test(e)?qb:EV:td}function eP(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Pv(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function MV(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=ds.createTransformer(t),r=Xa(e),o=Xa(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Im.has(e)&&!o.values.length||Im.has(t)&&!r.values.length?PV(e,t):Dr(eP(MV(r,o),o.values),n):td(e,t)};function tP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$f(e,t,n):Pv(e)(e,t)}function AV(e,t,n){const r=[],o=n||tP,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=AV(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Xi(e[0],e[i-1],u)):l}function RV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=J$(0,t,r);e.push($f(n,1,o))}}function jV(e){const t=[0];return RV(t,e.length-1),t}function IV(e,t){return e.map(n=>n*t)}function LV(e,t){return e.map(()=>t||q$).splice(0,e.length-1)}function nd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=yV(r)?r.map(Kb):Kb(r),i={done:!1,value:t[0]},s=IV(n&&n.length===t.length?n:jV(t),e),a=OV(s,t,{ease:Array.isArray(o)?o:LV(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Xb=2e4;function NV(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Xb?1/0:t}const DV=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Je.update(t,!0),stop:()=>Jc(t),now:()=>ed.isProcessing?ed.timestamp:Ei.now()}},FV={decay:Bb,inertia:Bb,tween:nd,keyframes:nd,spring:K$},zV=e=>e/100;class Tv extends U${constructor({KeyframeResolver:t=wv,...n}){super(n),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:a}=this.options;a&&a()};const{name:r,motionValue:o,keyframes:i}=this.options,s=(a,l)=>this.onKeyframesResolved(a,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,s,r,o):this.resolver=new t(i,s,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=FV[n]||nd;let l,u;a!==nd&&typeof t[0]!="number"&&(l=Dr(zV,tP(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=NV(c));const{calculatedDuration:d}=c,f=d+o,p=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:h,repeatDelay:g,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,w=i;if(p){const P=Math.min(this.currentTime,c)/d;let R=Math.floor(P),M=P%1;!M&&P>=1&&(M=1),M===1&&R--,R=Math.min(R,p+1),!!(R%2)&&(h==="reverse"?(M=1-M,g&&(M-=g/d)):h==="mirror"&&(w=s)),x=Xi(0,1,M)*d}const C=y?{done:!1,value:l[0]}:w.next(x);a&&(C.value=a(C.value));let{done:k}=C;!y&&u!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return $&&o!==void 0&&(C.value=Cf(l,this.options,o)),b&&b(C.value),$&&this.finish(),C}get duration(){const{resolved:t}=this;return t?zr(t.calculatedDuration):0}get time(){return zr(this.currentTime)}set time(t){t=Fr(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 n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=zr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=DV,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),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 nP=e=>Array.isArray(e)&&typeof e[0]=="number";function rP(e){return!!(!e||typeof e=="string"&&e in Ev||nP(e)||Array.isArray(e)&&e.every(rP))}const zs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ev={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zs([0,.65,.55,1]),circOut:zs([.55,0,1,.45]),backIn:zs([.31,.01,.66,-.59]),backOut:zs([.33,1.53,.69,.99])};function VV(e){return oP(e)||Ev.easeOut}function oP(e){if(e)return nP(e)?zs(e):Array.isArray(e)?e.map(VV):Ev[e]}function HV(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=oP(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const WV=W$(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),rd=10,UV=2e4;function BV(e){return e.type==="spring"||!rP(e.ease)}function GV(e,t){const n=new Tv({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(i,s),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(BV(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...h}=this.options,g=GV(t,h);t=g.keyframes,t.length===1&&(t[1]=t[0]),o=g.duration,i=g.times,s=g.ease,a="keyframes"}const c=HV(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return c.startTime=Ei.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(Cf(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return zr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Fr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ln;const{animation:r}=n;r.timeline=t,r.onfinish=null}return Ln}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,...f}=this.options,p=new Tv({...f,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),h=Fr(this.time);u.setWithVelocity(p.sample(h-rd).value,p.sample(h).value,rd)}const{onStop:l}=this.options;l&&l(),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:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return WV()&&r&&y$.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function KV(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return Je.update(r,!0),()=>Jc(r)}const YV=W$(()=>window.ScrollTimeline!==void 0);class qV{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(YV()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),KV(o=>{r.time=r.duration*o},t)});return()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].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 n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const XV=(e,t,n,r={},o,i,s)=>a=>{const l=E$(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Fr(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};Ez(l)||(d={...d,...Tz(e,d)}),d.duration&&(d.duration=Fr(d.duration)),d.repeatDelay&&(d.repeatDelay=Fr(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=Cf(d.keyframes,l);if(p!==void 0)return Je.update(()=>{d.onUpdate(p),d.onComplete()}),new qV([])}return!i&&Qb.supports(d)?new Qb(d):new Tv(d)};class iP{constructor(){this.subscriptions=[]}add(t){return b$(this.subscriptions,t),()=>w$(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class sP{constructor(t,n={}){this.version="11.3.24",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Ei.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ei.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=QV(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new iP);const r=this.events[t].add(n);return t==="change"?()=>{r(),Je.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ei.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zb);return B$(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 od(e,t){return new sP(e,t)}function ZV(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,od(n))}function JV(e,t){const n=kf(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=ZF(i[s]);ZV(e,s,a)}}function eH(e){return e.getProps()[t$]}class tH extends sP{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=x$(t);if(!n)return;const r=this.counts.get(n)||0;this.counts.set(n,r+1),r===0&&(this.output.push(n),this.update());let o=!1;return()=>{if(o)return;o=!0;const i=this.counts.get(n)-1;this.counts.set(n,i),i===0&&(w$(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function nH(e){return!!(dt(e)&&e.add)}function rH(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new tH("auto"),e.addValue("willChange",r)),nH(r))return r.add(t)}function oH({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function aP(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=l[d];if(p===void 0||c&&oH(c,d))continue;const h={delay:n,elapsed:0,...E$(s||{},d)};let g=!1;if(window.MotionHandoffAnimation){const m=eH(e);if(m){const y=window.MotionHandoffAnimation(m,d,Je);y!==null&&(h.elapsed=y,g=!0)}}f.start(XV(d,f,p,e.shouldReduceMotion&&Xr.has(d)?{type:!1}:h,e,g,rH(e,d)));const b=f.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{Je.update(()=>{a&&JV(e,a)})}),u}function Lm(e,t,n={}){var r;const o=kf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(aP(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return iH(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function iH(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(sH).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Lm(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function sH(e,t){return e.sortNodePosition(t)}function aH(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Lm(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Lm(e,t,n);else{const o=typeof t=="function"?kf(e,t,n.custom):t;r=Promise.all(aP(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const lH=[...lv].reverse(),uH=lv.length;function cH(e){return t=>Promise.all(t.map(({animation:n,options:r})=>aH(e,n,r)))}function dH(e){let t=cH(e),n=Jb(),r=!0;const o=l=>(u,c)=>{var d;const f=kf(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:h,...g}=f;u={...u,...g,...h}}return u};function i(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},h=1/0;for(let b=0;bh&&w,R=!1;const M=Array.isArray(x)?x:[x];let O=M.reduce(o(m),{});C===!1&&(O={});const{prevResolvedValues:E={}}=y,_={...E,...O},T=I=>{P=!0,f.has(I)&&(R=!0,f.delete(I)),y.needsAnimating[I]=!0;const L=e.getValue(I);L&&(L.liveStyle=!1)};for(const I in _){const L=O[I],F=E[I];if(p.hasOwnProperty(I))continue;let j=!1;Em(L)&&Em(F)?j=!T$(L,F):j=L!==F,j?L!=null?T(I):f.add(I):L!==void 0&&f.has(I)?T(I):y.protectedKeys[I]=!0}y.prevProp=x,y.prevResolvedValues=O,y.isActive&&(p={...p,...O}),r&&e.blockInitialAnimation&&(P=!1),P&&(!k||R)&&d.push(...M.map(I=>({animation:I,options:{type:m}})))}if(f.size){const b={};f.forEach(m=>{const y=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),b[m]=y??null}),d.push({animation:b})}let g=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Jb(),r=!0}}}function fH(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!T$(t,e):!1}function ro(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jb(){return{animate:ro(!0),whileInView:ro(),whileHover:ro(),whileTap:ro(),whileDrag:ro(),whileFocus:ro(),exit:ro()}}class pH extends cs{constructor(t){super(t),t.animationState||(t.animationState=dH(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();qa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let hH=0;class mH extends cs{constructor(){super(...arguments),this.id=hH++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const gH={animation:{Feature:pH},exit:{Feature:mH}},ew=()=>({min:0,max:0}),lP=()=>({x:ew(),y:ew()});function vH({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function yH(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function xH(e,t){return vH(yH(e.getBoundingClientRect(),t))}const Nm={current:null},uP={current:!1};function bH(){if(uP.current=!0,!!sv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Nm.current=e.matches;e.addListener(t),t()}else Nm.current=!1}function wH(e,t,n){for(const r in t){const o=t[r],i=n[r];if(dt(o))e.addValue(r,o);else if(dt(i))e.addValue(r,od(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,od(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const tw=new WeakMap,SH=[...R$,st,ds],kH=e=>SH.find(O$(e)),nw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],CH=uv.length;class $H{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.resolveKeyframes=(f,p,h,g)=>new this.KeyframeResolver(f,p,h,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wv,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,Je.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Sf(n),this.isVariantNode=i$(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&dt(p)&&p.set(l[f],!1)}}mount(t){this.current=t,tw.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((n,r)=>this.bindToMotionValue(r,n)),uP.current||bH(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Nm.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){tw.delete(this.current),this.projection&&this.projection.unmount(),Jc(this.notifyUpdate),Jc(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 n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const r=Xr.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Je.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),n.owner&&n.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 qi){const n=qi[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lP()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=od(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(_$(o)||M$(o))?o=parseFloat(o):!kH(o)&&ds.test(n)&&(o=V$(t,n)),this.setBaseTarget(t,dt(o)?o.get():o)),dt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=xv(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!dt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new iP),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class cP extends $H{constructor(){super(...arguments),this.KeyframeResolver=H$}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function PH(e){return window.getComputedStyle(e)}class TH extends cP{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=h$}readValueFromInstance(t,n){if(Xr.has(n)){const r=kv(n);return r&&r.default||0}else{const r=PH(t),o=(c$(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return xH(t,n)}build(t,n,r){hv(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return yv(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;dt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class EH extends cP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lP}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xr.has(n)){const r=kv(n);return r&&r.default||0}return n=m$.has(n)?n:wf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return v$(t,n,r)}build(t,n,r){gv(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){g$(t,n,r,o)}mount(t){this.isSVGTag=vv(t.tagName),super.mount(t)}}const MH=(e,t)=>cv(e)?new EH(t):new TH(t,{allowProjection:e!==S.Fragment}),_H=PF(iz);class AH extends S.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function OH({children:e,isPresent:t}){const n=S.useId(),r=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=S.useContext(ov);return S.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${s}px !important; @@ -74,4 +74,4 @@ Error generating stack: `+i.message+` top: ${l}px !important; left: ${u}px !important; } - `),()=>{document.head.removeChild(c)}},[t]),v.jsx(AH,{isPresent:t,childRef:r,sizeRef:o,children:S.cloneElement(e,{ref:r})})}const RH=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=bv(jH),l=S.useId(),u=S.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?[Math.random()]:[n]);return S.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),S.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=v.jsx(OH,{isPresent:n,children:e})),v.jsx(iv.Provider,{value:u,children:e})};function jH(){return new Map}const vu=e=>e.key||"";function rw(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const IH=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=S.useMemo(()=>rw(e),[e]),l=a.map(vu),u=S.useRef(!0),c=S.useRef(a),d=bv(()=>new Map),[f,p]=S.useState(a),[h,g]=S.useState(a);e$(()=>{u.current=!1,c.current=a;for(let y=0;y{const x=vu(y),w=a===h||l.includes(x),C=()=>{if(d.has(x))d.set(x,!0);else return;let k=!0;d.forEach($=>{$||(k=!1)}),k&&(m==null||m(),g(c.current),o&&o())};return v.jsx(RH,{isPresent:w,initial:!u.current||r?void 0:!1,custom:w?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:w?void 0:C,children:y},x)})})};function LH({children:e,features:t,strict:n=!1}){const[,r]=S.useState(!zp(t)),o=S.useRef(void 0);if(!zp(t)){const{renderer:i,...s}=t;o.current=i,Pm(s)}return S.useEffect(()=>{zp(t)&&t().then(({renderer:i,...s})=>{Pm(s),o.current=i,r(!0)})},[]),v.jsx(av.Provider,{value:{renderer:o.current,strict:n},children:e})}function zp(e){return typeof e=="function"}const NH={renderer:MH,...gH,...Sz};function DH(e){return S.forwardRef(e)}var FH=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),r]:[e,r]},zH={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},VH={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},HH={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},WH={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},UH={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},BH={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},GH={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},Qo={solid:zH,shadow:VH,bordered:HH,flat:WH,faded:UH,light:BH,ghost:GH},yu=["small","medium","large"],ow={theme:{opacity:["disabled"],spacing:["divider"],borderWidth:yu,borderRadius:yu},classGroups:{shadow:[{shadow:yu}],"font-size":[{text:["tiny",...yu]}],"bg-image":["bg-stripe-gradient"]}},iw=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Et=e=>!e||typeof e!="object"||Object.keys(e).length===0,KH=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function dP(e,t){e.forEach(function(n){Array.isArray(n)?dP(n,t):t.push(n)})}function fP(e){let t=[];return dP(e,t),t}var pP=(...e)=>fP(e).filter(Boolean),hP=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let s=e[i],a=t[i];typeof s=="object"&&typeof a=="object"?n[i]=hP(s,a):Array.isArray(s)||Array.isArray(a)?n[i]=pP(a,s):n[i]=a+" "+s}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},sw=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function YH(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var vP="!";function tW(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:b}}}function nW(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function rW(e){return{cache:eW(e.cacheSize),splitModifiers:tW(e),...qH(e)}}var oW=/\s+/;function iW(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(oW).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),p=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};p=!1}var h=nW(l).join(":"),g=u?h+vP:h;return{isTailwindClass:!0,modifierId:g,classGroupId:f,originalClassName:s,hasPostfixModifier:p}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(d){return i.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Fm(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;re||void 0,Qa=(...e)=>wP(fP(e).filter(Boolean).join(" ")),Vp=null,id={},Hm=!1,Rs=(...e)=>t=>t.twMerge?((!Vp||Hm)&&(Hm=!1,Vp=Et(id)?kW:SW(id)),wP(Vp(Qa(e)))):Qa(e),cw=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=Qa(e[n],t[n]):e[n]=t[n];return e},$W=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=e,l={...CW,...t},u=n!=null&&n.base?Qa(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!Et(n.variants)?hP(o,n.variants):o,d=n!=null&&n.defaultVariants&&!Et(n.defaultVariants)?{...n.defaultVariants,...a}:a;!Et(l.twMergeConfig)&&!KH(l.twMergeConfig,id)&&(Hm=!0,id=l.twMergeConfig);let f=Et(n==null?void 0:n.slots),p=Et(r)?{}:{base:Qa(e==null?void 0:e.base,f&&(n==null?void 0:n.base)),...r},h=f?p:cw({...n==null?void 0:n.slots},Et(p)?{base:e==null?void 0:e.base}:p),g=m=>{if(Et(c)&&Et(r)&&f)return Rs(u,m==null?void 0:m.class,m==null?void 0:m.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let y=(E,_,T=[],I)=>{let L=T;if(typeof _=="string")L=L.concat(sw(_).split(" ").map(F=>`${E}:${F}`));else if(Array.isArray(_))L=L.concat(_.reduce((F,j)=>F.concat(`${E}:${j}`),[]));else if(typeof _=="object"&&typeof I=="string"){for(let F in _)if(_.hasOwnProperty(F)&&F===I){let j=_[F];if(j&&typeof j=="string"){let N=sw(j);L[I]?L[I]=L[I].concat(N.split(" ").map(V=>`${E}:${V}`)):L[I]=N.split(" ").map(V=>`${E}:${V}`)}else Array.isArray(j)&&j.length>0&&(L[I]=j.reduce((N,V)=>N.concat(`${E}:${V}`),[]))}}return L},x=(E,_=c,T=null,I=null)=>{var L;let F=_[E];if(!F||Et(F))return null;let j=(L=I==null?void 0:I[E])!=null?L:m==null?void 0:m[E];if(j===null)return null;let N=iw(j),V=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,G=d==null?void 0:d[E],B=[];if(typeof N=="object"&&V)for(let[J,X]of Object.entries(N)){let oe=F[X];if(J==="initial"){G=X;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(J)||(B=y(J,oe,B,T))}let q=F[N]||F[iw(G)];return typeof B=="object"&&typeof T=="string"&&B[T]?cw(B,q):B.length>0?(B.push(q),B):q},w=()=>c?Object.keys(c).map(E=>x(E,c)):null,C=(E,_)=>{if(!c||typeof c!="object")return null;let T=new Array;for(let I in c){let L=x(I,c,E,_),F=E==="base"&&typeof L=="string"?L:L&&L[E];F&&(T[T.length]=F)}return T},k={};for(let E in m)m[E]!==void 0&&(k[E]=m[E]);let $=(E,_)=>{var T;let I=typeof(m==null?void 0:m[E])=="object"?{[E]:(T=m[E])==null?void 0:T.initial}:{};return{...d,...k,...I,..._}},P=(E=[],_)=>{let T=[];for(let{class:I,className:L,...F}of E){let j=!0;for(let[N,V]of Object.entries(F)){let G=$(N,_);if(Array.isArray(V)){if(!V.includes(G[N])){j=!1;break}}else if(G[N]!==V){j=!1;break}}j&&(I&&T.push(I),L&&T.push(L))}return T},R=E=>{let _=P(i,E),T=P(n==null?void 0:n.compoundVariants,E);return pP(T,_)},M=E=>{let _=R(E);if(!Array.isArray(_))return _;let T={};for(let I of _)if(typeof I=="string"&&(T.base=Rs(T.base,I)(l)),typeof I=="object")for(let[L,F]of Object.entries(I))T[L]=Rs(T[L],F)(l);return T},O=E=>{if(s.length<1)return null;let _={};for(let{slots:T=[],class:I,className:L,...F}of s){if(!Et(F)){let j=!0;for(let N of Object.keys(F)){let V=$(N,E)[N];if(V===void 0||(Array.isArray(F[N])?!F[N].includes(V):F[N]!==V)){j=!1;break}}if(!j)continue}for(let j of T)_[j]=_[j]||[],_[j].push([I,L])}return _};if(!Et(r)||!f){let E={};if(typeof h=="object"&&!Et(h))for(let _ of Object.keys(h))E[_]=T=>{var I,L;return Rs(h[_],C(_,T),((I=M(T))!=null?I:[])[_],((L=O(T))!=null?L:[])[_],T==null?void 0:T.class,T==null?void 0:T.className)(l)};return E}return Rs(u,w(),R(),m==null?void 0:m.class,m==null?void 0:m.className)(l)},b=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return g.variantKeys=b(),g.extend=n,g.base=u,g.slots=h,g.variants=c,g.defaultVariants=d,g.compoundSlots=s,g.compoundVariants=i,g},PW=(e,t)=>{var n,r,o;return $W(e,{...t,twMerge:(n=void 0)!=null?n:!0,twMergeConfig:{theme:{...(r=void 0)==null?void 0:r.theme,...ow.theme},classGroups:{...(o=void 0)==null?void 0:o.classGroups,...ow.classGroups}}})},TW=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],dw=PW({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...TW],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:Qo.solid.foreground},primary:{base:"before:bg-primary",content:Qo.solid.primary},secondary:{base:"before:bg-secondary",content:Qo.solid.secondary},success:{base:"before:bg-success",content:Qo.solid.success},warning:{base:"before:bg-warning",content:Qo.solid.warning},danger:{base:"before:bg-danger",content:Qo.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),EW=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(t==null?void 0:t[e])||{}},MW=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],fw=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e},_W=globalThis!=null&&globalThis.document?S.useLayoutEffect:S.useEffect;function AW(e){var t,n;const r=lF(),[o,i]=FH(e,dw.variantKeys),{ref:s,as:a,isOpen:l,content:u,children:c,defaultOpen:d,onOpenChange:f,isDisabled:p,trigger:h,shouldFlip:g=!0,containerPadding:b=12,placement:m="top",delay:y=0,closeDelay:x=500,showArrow:w=!1,offset:C=7,crossOffset:k=0,isDismissable:$,shouldCloseOnBlur:P=!0,portalContainer:R,isKeyboardDismissDisabled:M=!1,updatePositionDeps:O=[],shouldCloseOnInteractOutside:E,className:_,onClose:T,motionProps:I,classNames:L,...F}=o,j=a||"div",N=(n=(t=e==null?void 0:e.disableAnimation)!=null?t:r==null?void 0:r.disableAnimation)!=null?n:!1,V=gN({delay:y,closeDelay:x,isDisabled:p,defaultOpen:d,isOpen:l,onOpenChange:me=>{f==null||f(me),me||T==null||T()}}),G=S.useRef(null),B=S.useRef(null),q=S.useId(),J=V.isOpen&&!p;S.useImperativeHandle(s,()=>eF(B));const{triggerProps:X,tooltipProps:oe}=ED({isDisabled:p,trigger:h},V,G),{tooltipProps:le}=JN({isOpen:J,...vo(o,oe)},V),{overlayProps:de,placement:W,updatePosition:K}=BD({isOpen:J,targetRef:G,placement:MW(m),overlayRef:B,offset:w?C+3:C,crossOffset:k,shouldFlip:g,containerPadding:b});_W(()=>{O.length&&K()},O);const{overlayProps:Q}=YD({isOpen:J,onClose:V.close,isDismissable:$,shouldCloseOnBlur:P,isKeyboardDismissDisabled:M,shouldCloseOnInteractOutside:E},B),D=S.useMemo(()=>{var me,Be,Qr;return dw({...i,disableAnimation:N,radius:(me=e==null?void 0:e.radius)!=null?me:"md",size:(Be=e==null?void 0:e.size)!=null?Be:"md",shadow:(Qr=e==null?void 0:e.shadow)!=null?Qr:"sm"})},[iF(i),N,e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),be=S.useCallback((me={},Be=null)=>({...vo(X,me),ref:aF(Be,G),"aria-describedby":J?q:void 0}),[X,J,q,V]),ne=S.useCallback(()=>({ref:B,"data-slot":"base","data-open":Xo(J),"data-arrow":Xo(w),"data-disabled":Xo(p),"data-placement":fw(W,m),...vo(le,Q,F),style:vo(de.style,F.style,o.style),className:D.base({class:L==null?void 0:L.base}),id:q}),[D,J,w,p,W,m,le,Q,F,de,o,q]),Re=S.useCallback(()=>({"data-slot":"content","data-open":Xo(J),"data-arrow":Xo(w),"data-disabled":Xo(p),"data-placement":fw(W,m),className:D.content({class:nF(L==null?void 0:L.content,_)})}),[D,J,w,p,W,m,L]);return{Component:j,content:u,children:c,isOpen:J,triggerRef:G,showArrow:w,portalContainer:R,placement:m,disableAnimation:N,isDisabled:p,motionProps:I,getTooltipContentProps:Re,getTriggerProps:be,getTooltipProps:ne}}var Zo={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},OW={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:Zo.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:Zo.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:Zo.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:Zo.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Zo.ease}},exit:{opacity:0,transition:{duration:.3,ease:Zo.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},SP=DH((e,t)=>{const{Component:n,children:r,content:o,isOpen:i,portalContainer:s,placement:a,disableAnimation:l,motionProps:u,getTriggerProps:c,getTooltipProps:d,getTooltipContentProps:f}=AW({...e,ref:t});let p;try{if(S.Children.count(r)!==1)throw new Error;if(!S.isValidElement(r))p=v.jsx("p",{...c(),children:r});else{const w=r;p=S.cloneElement(w,c(w.props,w.ref))}}catch{p=v.jsx("span",{}),oF("Tooltip must have only one child node. Please, check your code.")}const{ref:h,id:g,style:b,...m}=d(),y=v.jsx("div",{ref:h,id:g,style:b,children:v.jsx(LH,{features:NH,children:v.jsx(_H.div,{animate:"enter",exit:"exit",initial:"exit",variants:OW.scaleSpring,...vo(u,m),style:{...EW(a)},children:v.jsx(n,{...f(),children:o})})})});return v.jsxs(v.Fragment,{children:[p,l&&i?v.jsx(Tb,{portalContainer:s,children:v.jsx("div",{ref:h,id:g,style:b,...m,children:v.jsx(n,{...f(),children:o})})}):v.jsx(IH,{children:i?v.jsx(Tb,{portalContainer:s,children:y}):null})]})});SP.displayName="NextUI.Tooltip";var Vs=SP;function RW(){const e={container:{display:"block",padding:"2rem",flex:1,backgroundColor:"black",maxWidth:"100%",height:"auto",aspectRatio:"attr(width) / attr(height)",background:"#000",borderRadius:"1.5rem 0 0 1.5rem"},imgContainer:{textAlign:"left",height:"auto",aspectRatio:"attr(width) / attr(height)",background:"#000",borderRadius:"50%"},dp:{textAlign:"center",borderRadius:"50%",border:"1px solid wheat",width:"300px",margin:"0",padding:"0",height:"auto"},details:{display:"block",textAlign:"left",maxWidth:"100%",height:"auto",color:"white",aspectRatio:"attr(width) / attr(height)",background:"#000",borderRadius:"0 1.5rem 1.5rem 0"},greyFont:{color:"grey",fontSize:"1rem",margin:"0px"},name:{color:"white",fontSize:"25px",fontWeight:"bold"},desc:{textAlign:"left",color:"white",fontSize:"1rem",marginTop:"5px"},buttonDiv:{textAlign:"left",width:"100%",marginTop:"1rem",height:"auto"},mainButton:{width:"100%",fontSize:"15px",color:"#b1aeae",fontWeight:"normal",borderRadius:"0.5rem",margin:"0.5rem 0"},extras:{textAlign:"left",color:"white",fontSize:"1rem",marginTop:"1rem"},url:{color:"wheat",textDecoration:"none",fontSize:"14px"},urlHover:{color:"wheat",textDecoration:"underline",fontSize:"14px"}},t={...e,dp:{width:"100px",borderRadius:"50%",border:"1px solid wheat"},imgContainer:{margin:0},container:{...e.container,display:"flex",margin:"2px",padding:"10px",borderRadius:"1.5rem 1.5rem 0 0"},details:{...e.details,padding:"1rem",paddingTop:"0",paddingBottom:"2px",borderRadius:"1.5rem 1.5rem 1.5rem 1.5rem"},buttonDiv:{...e.buttonDiv,margin:"0"},extras:{...e.extras,margin:"0"}},[n,r]=S.useState(!1);return v.jsx(v.Fragment,{children:v.jsxs("div",{style:window.innerWidth<798?t.container:e.container,children:[v.jsx("div",{style:window.innerWidth<798?t.imgContainer:e.imgContainer,children:v.jsx(Vs,{content:"👽️",showArrow:!0,placement:"right-end",color:"foreground",offset:-100,children:v.jsx("img",{src:dN,style:window.innerWidth<798?t.dp:e.dp,alt:"display picture"})})}),v.jsxs("div",{children:[v.jsxs("div",{style:window.innerWidth<798?t.details:e.details,children:[v.jsx("div",{style:e.name,children:"Akshay R"}),v.jsx("h3",{style:e.greyFont,children:"akshay-rajan"})]}),v.jsxs("div",{style:window.innerWidth<798?t.details:e.desc,children:["Software Developer | MCA 25' @ College of Engineering, Trivandrum",v.jsx("div",{style:window.innerWidth?t.buttonDiv:e.buttonDiv,children:v.jsx("a",{href:"https://github.com/akshay-rajan",children:v.jsx("button",{style:e.mainButton,children:"Github"})})}),v.jsx("div",{style:window.innerHeight?t.extras:e.extras,children:v.jsx("a",{href:"https://akshay-rajan.github.io/",style:n?e.urlHover:e.url,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:"akshay-rajan.github.io/"})})]})]})]})})}function jW(){const e={laptopStyle:{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",margin:"auto",width:"100%",maxWidth:"80rem",overflow:"hidden"},laptopScreenStyle:{display:"flex",position:"relative",zIndex:1,padding:"10px",minHeight:"80vh",width:"90vw",borderRadius:"2rem",background:"#ecf1f7",backgroundImage:"linear-gradient(to bottom, #333, #111)",boxShadow:"0 0.1rem 0 #cfcfcf",border:"1px solid wheat"},laptopShadowStyle:{position:"absolute",right:"-10%",bottom:"-2.5rem",left:"-10%",zIndex:0,height:"2rem",background:"radial-gradient(ellipse closest-side,#000,transparent)",opacity:.5}},t={...e},n={...e,laptopStyle:{position:"relative",maxWidth:"80rem",overflow:"hidden",width:"100%"},laptopScreenStyle:{...e.laptopScreenStyle,flexDirection:"column",width:"auto",margin:"0",padding:"4px",minHeight:"90vh"}},[r,o]=S.useState(t);S.useEffect(()=>{const a=()=>{window.innerWidth<768?o(n):o(t)};return a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]);const[i,s]=S.useState(!1);return S.useEffect(()=>{const a=()=>{const l=document.getElementById("about"),u=document.body,c=document.querySelector("#nav"),d=document.querySelector("#projects"),f=l.getBoundingClientRect();window.innerWidth>=798?f.top<100&&f.bottom>100?(u.style.backgroundColor="white",u.style.color="black",c.classList.add("scrolled"),c.classList.remove("light"),d.classList.remove("focused"),l.style.paddingTop="75px"):f.top>=100?(u.style.backgroundColor="transparent",c.classList.remove("scrolled"),c.classList.remove("light"),d.classList.remove("focused"),l.style.paddingTop="0px"):(u.style.backgroundColor="transparent",d.classList.add("focused"),c.classList.add("light"),c.classList.add("scrolled"),l.style.paddingTop="75px"):f.top<100&&f.bottom>100?(u.style.backgroundColor="white",u.style.color="black",d.classList.remove("focused")):f.top>=100?(u.style.backgroundColor="transparent",d.classList.remove("focused")):(u.style.backgroundColor="transparent",d.classList.add("focused"))};return window.addEventListener("scroll",a),a(),()=>{window.removeEventListener("scroll",a)}},[]),v.jsx("main",{children:v.jsx("div",{className:"container",id:"about",children:v.jsxs("div",{className:"laptop",style:r.laptopStyle,children:[v.jsxs("div",{className:"laptop__screen",style:r.laptopScreenStyle,children:[v.jsx(RW,{}),v.jsx(cN,{isExpanded:i,setExpanded:s})]}),v.jsx("div",{className:"laptop__shadow",style:r.laptopShadowStyle})]})})})}var Ae={},_v={},$l={},Pl={},kP="Expected a function",pw=NaN,IW="[object Symbol]",LW=/^\s+|\s+$/g,NW=/^[-+]0x[0-9a-f]+$/i,DW=/^0b[01]+$/i,FW=/^0o[0-7]+$/i,zW=parseInt,VW=typeof Rl=="object"&&Rl&&Rl.Object===Object&&Rl,HW=typeof self=="object"&&self&&self.Object===Object&&self,WW=VW||HW||Function("return this")(),UW=Object.prototype,BW=UW.toString,GW=Math.max,KW=Math.min,Hp=function(){return WW.Date.now()};function YW(e,t,n){var r,o,i,s,a,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(kP);t=hw(t)||0,sd(n)&&(c=!!n.leading,d="maxWait"in n,i=d?GW(hw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p(k){var $=r,P=o;return r=o=void 0,u=k,s=e.apply(P,$),s}function h(k){return u=k,a=setTimeout(m,t),c?p(k):s}function g(k){var $=k-l,P=k-u,R=t-$;return d?KW(R,i-P):R}function b(k){var $=k-l,P=k-u;return l===void 0||$>=t||$<0||d&&P>=i}function m(){var k=Hp();if(b(k))return y(k);a=setTimeout(m,g(k))}function y(k){return a=void 0,f&&r?p(k):(r=o=void 0,s)}function x(){a!==void 0&&clearTimeout(a),u=0,r=l=o=a=void 0}function w(){return a===void 0?s:y(Hp())}function C(){var k=Hp(),$=b(k);if(r=arguments,o=this,l=k,$){if(a===void 0)return h(l);if(d)return a=setTimeout(m,t),p(l)}return a===void 0&&(a=setTimeout(m,t)),s}return C.cancel=x,C.flush=w,C}function qW(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(kP);return sd(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),YW(e,t,{leading:r,maxWait:t,trailing:o})}function sd(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function XW(e){return!!e&&typeof e=="object"}function QW(e){return typeof e=="symbol"||XW(e)&&BW.call(e)==IW}function hw(e){if(typeof e=="number")return e;if(QW(e))return pw;if(sd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=sd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(LW,"");var n=DW.test(e);return n||FW.test(e)?zW(e.slice(2),n?2:8):NW.test(e)?pw:+e}var ZW=qW,Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});Tl.addPassiveEventListener=function(t,n,r){var o=r.name;o||(o=n,console.warn("Listener must be a named function.")),Xu.has(n)||Xu.set(n,new Set);var i=Xu.get(n);if(!i.has(o)){var s=function(){var a=!1;try{var l=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("test",null,l)}catch{}return a}();t.addEventListener(n,r,s?{passive:!0}:!1),i.add(o)}};Tl.removePassiveEventListener=function(t,n,r){t.removeEventListener(n,r),Xu.get(n).delete(r.name||n)};var Xu=new Map;Object.defineProperty(Pl,"__esModule",{value:!0});var JW=ZW,eU=nU(JW),tU=Tl;function nU(e){return e&&e.__esModule?e:{default:e}}var rU=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:66;return(0,eU.default)(t,n)},Ce={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(t,n){if(t){var r=rU(function(o){Ce.scrollHandler(t)},n);Ce.scrollSpyContainers.push(t),(0,tU.addPassiveEventListener)(t,"scroll",r)}},isMounted:function(t){return Ce.scrollSpyContainers.indexOf(t)!==-1},currentPositionX:function(t){if(t===document){var n=window.pageYOffset!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft}else return t.scrollLeft},currentPositionY:function(t){if(t===document){var n=window.pageXOffset!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop}else return t.scrollTop},scrollHandler:function(t){var n=Ce.scrollSpyContainers[Ce.scrollSpyContainers.indexOf(t)].spyCallbacks||[];n.forEach(function(r){return r(Ce.currentPositionX(t),Ce.currentPositionY(t))})},addStateHandler:function(t){Ce.spySetState.push(t)},addSpyHandler:function(t,n){var r=Ce.scrollSpyContainers[Ce.scrollSpyContainers.indexOf(n)];r.spyCallbacks||(r.spyCallbacks=[]),r.spyCallbacks.push(t),t(Ce.currentPositionX(n),Ce.currentPositionY(n))},updateStates:function(){Ce.spySetState.forEach(function(t){return t()})},unmount:function(t,n){Ce.scrollSpyContainers.forEach(function(r){return r.spyCallbacks&&r.spyCallbacks.length&&r.spyCallbacks.indexOf(n)>-1&&r.spyCallbacks.splice(r.spyCallbacks.indexOf(n),1)}),Ce.spySetState&&Ce.spySetState.length&&Ce.spySetState.indexOf(t)>-1&&Ce.spySetState.splice(Ce.spySetState.indexOf(t),1),document.removeEventListener("scroll",Ce.scrollHandler)},update:function(){return Ce.scrollSpyContainers.forEach(function(t){return Ce.scrollHandler(t)})}};Pl.default=Ce;var fs={},El={};Object.defineProperty(El,"__esModule",{value:!0});var oU=function(t,n){var r=t.indexOf("#")===0?t.substring(1):t,o=r?"#"+r:"",i=window&&window.location,s=o?i.pathname+i.search+o:i.pathname+i.search;n?history.pushState(history.state,"",s):history.replaceState(history.state,"",s)},iU=function(){return window.location.hash.replace(/^#/,"")},sU=function(t){return function(n){return t.contains?t!=n&&t.contains(n):!!(t.compareDocumentPosition(n)&16)}},aU=function(t){return getComputedStyle(t).position!=="static"},Wp=function(t,n){for(var r=t.offsetTop,o=t.offsetParent;o&&!n(o);)r+=o.offsetTop,o=o.offsetParent;return{offsetTop:r,offsetParent:o}},lU=function(t,n,r){if(r)return t===document?n.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):getComputedStyle(t).position!=="static"?n.offsetLeft:n.offsetLeft-t.offsetLeft;if(t===document)return n.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if(aU(t)){if(n.offsetParent!==t){var o=function(c){return c===t||c===document},i=Wp(n,o),s=i.offsetTop,a=i.offsetParent;if(a!==t)throw new Error("Seems containerElement is not an ancestor of the Element");return s}return n.offsetTop}if(n.offsetParent===t.offsetParent)return n.offsetTop-t.offsetTop;var l=function(c){return c===document};return Wp(n,l).offsetTop-Wp(t,l).offsetTop};El.default={updateHash:oU,getHash:iU,filterElementInContainer:sU,scrollOffset:lU};var Pf={},Av={};Object.defineProperty(Av,"__esModule",{value:!0});Av.default={defaultEasing:function(t){return t<.5?Math.pow(t*2,2)/2:1-Math.pow((1-t)*2,2)/2},linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:-1+(4-2*t)*t},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};var Ov={};Object.defineProperty(Ov,"__esModule",{value:!0});var uU=Tl,cU=["mousedown","mousewheel","touchmove","keydown"];Ov.default={subscribe:function(t){return typeof document<"u"&&cU.forEach(function(n){return(0,uU.addPassiveEventListener)(document,n,t)})}};var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});var Wm={registered:{},scrollEvent:{register:function(t,n){Wm.registered[t]=n},remove:function(t){Wm.registered[t]=null}}};Ml.default=Wm;Object.defineProperty(Pf,"__esModule",{value:!0});var dU=Object.assign||function(e){for(var t=1;t=o.duration?1:t(o.progress/o.duration),o.currentPosition=o.startPosition+Math.ceil(o.delta*o.percent),o.containerElement&&o.containerElement!==document&&o.containerElement!==document.body?n.horizontal?o.containerElement.scrollLeft=o.currentPosition:o.containerElement.scrollTop=o.currentPosition:n.horizontal?window.scrollTo(o.currentPosition,0):window.scrollTo(0,o.currentPosition),o.percent<1){var i=e.bind(null,t,n);Um.call(window,i);return}Tn.default.registered.end&&Tn.default.registered.end(o.to,o.target,o.currentPosition)},Rv=function(t){t.data.containerElement=t?t.containerId?document.getElementById(t.containerId):t.container&&t.container.nodeType?t.container:document:null},_l=function(t,n,r,o){n.data=n.data||$P(),window.clearTimeout(n.data.delayTimeout);var i=function(){n.data.cancel=!0};if(mU.default.subscribe(i),Rv(n),n.data.start=null,n.data.cancel=!1,n.data.startPosition=n.horizontal?PP(n):TP(n),n.data.targetPosition=n.absolute?t:t+n.data.startPosition,n.data.startPosition===n.data.targetPosition){Tn.default.registered.end&&Tn.default.registered.end(n.data.to,n.data.target,n.data.currentPosition);return}n.data.delta=Math.round(n.data.targetPosition-n.data.startPosition),n.data.duration=vU(n.duration)(n.data.delta),n.data.duration=isNaN(parseFloat(n.data.duration))?1e3:parseFloat(n.data.duration),n.data.to=r,n.data.target=o;var s=CP(n),a=wU.bind(null,s,n);if(n&&n.delay>0){n.data.delayTimeout=window.setTimeout(function(){Tn.default.registered.begin&&Tn.default.registered.begin(n.data.to,n.data.target),Um.call(window,a)},n.delay);return}Tn.default.registered.begin&&Tn.default.registered.begin(n.data.to,n.data.target),Um.call(window,a)},Ef=function(t){return t=dU({},t),t.data=t.data||$P(),t.absolute=!0,t},SU=function(t){_l(0,Ef(t))},kU=function(t,n){_l(t,Ef(n))},CU=function(t){t=Ef(t),Rv(t),_l(t.horizontal?xU(t):bU(t),t)},$U=function(t,n){n=Ef(n),Rv(n);var r=n.horizontal?PP(n):TP(n);_l(t+r,n)};Pf.default={animateTopScroll:_l,getAnimationType:CP,scrollToTop:SU,scrollToBottom:CU,scrollTo:kU,scrollMore:$U};Object.defineProperty(fs,"__esModule",{value:!0});var PU=Object.assign||function(e){for(var t=1;t=Math.floor(g)&&w=Math.floor(b)}else{var C=0,k=0,$=0;if(u.getBoundingClientRect){var P=u.getBoundingClientRect();$=P.top}if(!f||s.props.isDynamic){if(f=n.get(d),!f)return;var R=f.getBoundingClientRect();C=R.top-$+l,k=C+R.height}var M=l-s.props.offset;p=M>=Math.floor(C)&&M=Math.floor(k)}var O=n.getActiveLink();if(h){if(d===O&&n.setActiveLink(void 0),s.props.hashSpy&&vr.default.getHash()===d){var E=s.props.saveHashHistory,_=E===void 0?!1:E;vr.default.changeHash("",_)}s.props.spy&&s.state.active&&(s.setState({active:!1}),s.props.onSetInactive&&s.props.onSetInactive(d,f))}if(p&&(O!==d||s.state.active===!1)){n.setActiveLink(d);var T=s.props.saveHashHistory,I=T===void 0?!1:T;s.props.hashSpy&&vr.default.changeHash(d,I),s.props.spy&&(s.setState({active:!0}),s.props.onSetActive&&s.props.onSetActive(d,f))}}}};return r.propTypes=yw,r.defaultProps={offset:0},r};Object.defineProperty(_v,"__esModule",{value:!0});var BU=S,xw=EP(BU),GU=$l,KU=EP(GU);function EP(e){return e&&e.__esModule?e:{default:e}}function YU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bw(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function qU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var XU=function(e){qU(t,e);function t(){var n,r,o,i;YU(this,t);for(var s=arguments.length,a=Array(s),l=0;l"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(i){this.props.name!==i.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;kw.default.unregister(this.props.name)}},{key:"registerElems",value:function(i){kw.default.register(i,this.childBindings.domNode)}},{key:"render",value:function(){return Sw.default.createElement(e,iB({},this.props,{parentBindings:this.childBindings}))}}]),r}(Sw.default.Component);return t.propTypes={name:Cw.default.string,id:Cw.default.string},t};Object.defineProperty(Lv,"__esModule",{value:!0});var $w=Object.assign||function(e){for(var t=1;t=Math.floor(f)&&m=Math.floor(p),w=r.getActiveLink();if(x)return c===w&&r.setActiveLink(void 0),a.props.hashSpy&&yr.getHash()===c&&yr.changeHash(),a.props.spy&&a.state.active&&(a.setState({active:!1}),a.props.onSetInactive&&a.props.onSetInactive()),oo.updateStates();if(y&&w!==c)return r.setActiveLink(c),a.props.hashSpy&&yr.changeHash(c),a.props.spy&&(a.setState({active:!0}),a.props.onSetActive&&a.props.onSetActive(c)),oo.updateStates()}}};return o.propTypes=Ow,o.defaultProps={offset:0},o},Element:function(t){console.warn("Helpers.Element is deprecated since v1.7.0");var n=function(r){Aw(o,r);function o(i){Mw(this,o);var s=_w(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,i));return s.childBindings={domNode:null},s}return Ew(o,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(s){this.props.name!==s.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;Gp.unregister(this.props.name)}},{key:"registerElems",value:function(s){Gp.register(s,this.childBindings.domNode)}},{key:"render",value:function(){return Cu.createElement(t,Bp({},this.props,{parentBindings:this.childBindings}))}}]),o}(Cu.Component);return n.propTypes={name:$e.string,id:$e.string},n}},kB=SB;Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Helpers=Ae.ScrollElement=Ae.ScrollLink=Bm=Ae.animateScroll=Ae.scrollSpy=Ae.Events=Ae.scroller=Ae.Element=Ae.Button=cn=Ae.Link=void 0;var CB=_v,AP=Wn(CB),$B=Iv,OP=Wn($B),PB=Lv,RP=Wn(PB),TB=fs,jP=Wn(TB),EB=Ml,IP=Wn(EB),MB=Pl,LP=Wn(MB),_B=Pf,NP=Wn(_B),AB=$l,DP=Wn(AB),OB=_f,FP=Wn(OB),RB=kB,zP=Wn(RB);function Wn(e){return e&&e.__esModule?e:{default:e}}var cn=Ae.Link=AP.default;Ae.Button=OP.default;Ae.Element=RP.default;Ae.scroller=jP.default;Ae.Events=IP.default;Ae.scrollSpy=LP.default;var Bm=Ae.animateScroll=NP.default;Ae.ScrollLink=DP.default;Ae.ScrollElement=FP.default;Ae.Helpers=zP.default;Ae.default={Link:AP.default,Button:OP.default,Element:RP.default,scroller:jP.default,Events:IP.default,scrollSpy:LP.default,animateScroll:NP.default,ScrollLink:DP.default,ScrollElement:FP.default,Helpers:zP.default};var Dv={},jB=zn;Object.defineProperty(Dv,"__esModule",{value:!0});var VP=Dv.default=void 0,IB=jB(Gr()),LB=v;VP=Dv.default=(0,IB.default)((0,LB.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");const Rw=os(v.jsx("path",{d:"M20 0H4v2h16zM4 24h16v-2H4zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-8 2.75c1.24 0 2.25 1.01 2.25 2.25s-1.01 2.25-2.25 2.25S9.75 10.24 9.75 9 10.76 6.75 12 6.75M17 17H7v-1.5c0-1.67 3.33-2.5 5-2.5s5 .83 5 2.5z"}),"Contacts"),jw=os(v.jsx("path",{d:"M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m13.1-8.16c.01-.11.02-.22.02-.34 0-.12-.01-.23-.03-.34l.74-.58c.07-.05.08-.15.04-.22l-.7-1.21c-.04-.08-.14-.1-.21-.08l-.86.35c-.18-.14-.38-.25-.59-.34l-.13-.93c-.02-.09-.09-.15-.18-.15h-1.4c-.09 0-.16.06-.17.15l-.13.93c-.21.09-.41.21-.59.34l-.87-.35c-.08-.03-.17 0-.21.08l-.7 1.21c-.04.08-.03.17.04.22l.74.58c-.02.11-.03.23-.03.34 0 .11.01.23.03.34l-.74.58c-.07.05-.08.15-.04.22l.7 1.21c.04.08.14.1.21.08l.87-.35c.18.14.38.25.59.34l.13.93c.01.09.08.15.17.15h1.4c.09 0 .16-.06.17-.15l.13-.93c.21-.09.41-.21.59-.34l.87.35c.08.03.17 0 .21-.08l.7-1.21c.04-.08.03-.17-.04-.22zm-2.6.91c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m.42 3.93-.5-.87c-.03-.06-.1-.08-.15-.06l-.62.25c-.13-.1-.27-.18-.42-.24l-.09-.66c-.02-.06-.08-.1-.14-.1h-1c-.06 0-.11.04-.12.11l-.09.66c-.15.06-.29.15-.42.24l-.62-.25c-.06-.02-.12 0-.15.06l-.5.87c-.03.06-.02.12.03.16l.53.41c-.01.08-.02.16-.02.24 0 .08.01.17.02.24l-.53.41c-.05.04-.06.11-.03.16l.5.87c.03.06.1.08.15.06l.62-.25c.13.1.27.18.42.24l.09.66c.01.07.06.11.12.11h1c.06 0 .12-.04.12-.11l.09-.66c.15-.06.29-.15.42-.24l.62.25c.06.02.12 0 .15-.06l.5-.87c.03-.06.02-.12-.03-.16l-.52-.41c.01-.08.02-.16.02-.24 0-.08-.01-.17-.02-.24l.53-.41c.05-.04.06-.11.04-.17m-2.42 1.65c-.46 0-.83-.38-.83-.83 0-.46.38-.83.83-.83s.83.38.83.83c0 .46-.37.83-.83.83M4.74 9h8.53c.27 0 .49-.22.49-.49v-.02c0-.27-.22-.49-.49-.49H13c0-1.48-.81-2.75-2-3.45v.95c0 .28-.22.5-.5.5s-.5-.22-.5-.5V4.14C9.68 4.06 9.35 4 9 4s-.68.06-1 .14V5.5c0 .28-.22.5-.5.5S7 5.78 7 5.5v-.95C5.81 5.25 5 6.52 5 8h-.26c-.27 0-.49.22-.49.49v.03c0 .26.22.48.49.48M9 13c1.86 0 3.41-1.28 3.86-3H5.14c.45 1.72 2 3 3.86 3"}),"Engineering"),Iw=os(v.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),Lw=os(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),Nw=os(v.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");function NB({isOpen:e,toggle:t}){return v.jsxs("div",{id:"nav-icon2",className:e?"open":"",onClick:t,children:[v.jsx("span",{}),v.jsx("span",{}),v.jsx("span",{}),v.jsx("span",{}),v.jsx("span",{}),v.jsx("span",{})]})}function DB(){const[e,t]=S.useState(!1),n=()=>{document.body.style.overflow=e?"auto":"hidden",t(!e)},[r,o]=S.useState(0),i=()=>{const a=window.scrollY>100?20:0;o(a)};S.useEffect(()=>(window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}),[]);const s={verticalAlign:"sub"};return v.jsx("div",{className:"myheader",id:"nav",children:v.jsxs("div",{className:"head-container",children:[v.jsx("nav",{className:"mynavbar",style:window.innerWidth<798?{display:"none"}:{},children:v.jsxs("ul",{className:"navigation-links",children:[v.jsx("li",{children:v.jsxs(cn,{to:"",smooth:!0,duration:800,offset:-70,id:"home-button",onClick:()=>Bm.scrollToTop(),children:[v.jsx(Iw,{style:s}),v.jsx("div",{className:"help",children:"Home"})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"about",smooth:!0,duration:800,offset:r,id:"about-button",children:[v.jsx(Lw,{style:s}),v.jsx("div",{className:"help",children:"About"})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"projects",smooth:!0,duration:800,offset:20,id:"projects-button",children:[v.jsx(jw,{style:s}),v.jsx("div",{className:"help",children:"Projects"})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"experience",smooth:!0,duration:800,offset:20,id:"experience-button",children:[v.jsx(Nw,{style:s}),v.jsx("div",{className:"help",children:"Experience"})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"contact",smooth:!0,duration:800,offset:20,id:"contact-button",children:[v.jsx(Rw,{style:s}),v.jsx("div",{className:"help",children:"Contact"})]})})]})}),v.jsx("span",{className:"hamburger-icon",children:v.jsx(NB,{isOpen:e,toggle:n})}),v.jsx("div",{className:`mobile-navbar ${e?"open":""}`,children:v.jsxs("ul",{children:[v.jsx("li",{children:v.jsxs(cn,{to:"",smooth:!0,duration:800,offset:-70,id:"home-button",onClick:()=>{Bm.scrollToTop(),n()},children:[v.jsx("div",{className:"help",children:"Home"}),v.jsx(Iw,{style:s})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"about",smooth:!0,duration:800,offset:10,id:"about-button",onClick:n,children:[v.jsx("div",{className:"help",children:"About"}),v.jsx(Lw,{style:s})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"projects",smooth:!0,duration:800,offset:20,id:"projects-button",onClick:n,children:[v.jsx("div",{className:"help",children:"Projects"}),v.jsx(jw,{style:s})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"experience",smooth:!0,duration:800,offset:20,id:"experience-button",onClick:n,children:[v.jsx("div",{className:"help",children:"Experience"}),v.jsx(Nw,{style:s})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"contact",smooth:!0,duration:800,offset:20,id:"contact-button",onClick:n,children:[v.jsx("div",{className:"help",children:"Contact"}),v.jsx(Rw,{style:s})]})}),v.jsx("li",{className:"resume-link-li",children:v.jsxs("a",{href:"https://drive.google.com/file/d/1OAndl2Vdgvz096IhcTUArfRPpG7oadOm/view?usp=sharing",className:"nav-resume-link",children:[v.jsx("div",{children:"Resume"})," ",v.jsx(VP,{style:s})]})})]})})]})})}function Dw({project:e}){const t=S.useRef(null),n=S.useRef(null),r=S.useRef(null),o=S.useRef(null),i=S.useRef(null),s=S.useRef(null),a=S.useRef(null);S.useEffect(()=>{if(window.innerWidth<798)return;const u=(f,p,h)=>{f&&f.current&&(f.current.style.transform=`translate(${p.clientX*h}px, ${p.clientY*h}px)`)},c=f=>{let p=0,h=0;do p+=f.offsetTop||0,h+=f.offsetLeft||0,f=f.offsetParent;while(f);return{top:p,left:h}},d=f=>{const p=f||window.event,h=(p.pageX-c(o.current).left-350/2)*-1/100,g=(p.pageY-c(o.current).top-350/2)*-1/100,b=[[1,0,0,-h*5e-5],[0,1,0,-g*5e-5],[0,0,1,1],[0,0,0,1]];u(n,p,.03),u(s,p,.03),u(i,p,.09),u(t,p,.05),u(r,p,.03),u(a,p,.05),o&&o.current&&(o.current.style.transform=`matrix3d(${b.toString()})`)};return document.addEventListener("mousemove",d),()=>{document.removeEventListener("mousemove",d)}},[]);const l=window.innerWidth<798?{maxWidth:"30px",maxHeight:"30px"}:{maxWidth:"50px",maxHeight:"50px"};return v.jsx("div",{className:"wrapper",children:v.jsxs("div",{className:"project-card",ref:o,children:[v.jsx("div",{className:"card__greenShine",ref:t}),v.jsx("div",{className:"card__thankyou",ref:s,children:v.jsx("div",{className:"project-stack",children:e.techStack.map((u,c)=>v.jsx("img",{src:u,alt:u,style:l},c))})}),v.jsx("img",{src:e.image,className:"project-image",alt:e.title})]})})}function Fw({project:e}){return v.jsxs("div",{className:"project-content",children:[v.jsx("div",{className:"project-title",children:e.title}),v.jsx("p",{className:"project-desc",children:e.description}),v.jsxs("div",{className:"project-btns",children:[v.jsx("a",{href:e.github,target:"_blank",rel:"noreferrer",children:v.jsx("button",{className:"project-button",children:"GitHub"})}),e.live&&v.jsx("a",{href:e.live,target:"_blank",rel:"noreferrer",children:v.jsx("button",{className:"project-button",children:"Live"})})]})]})}const FB=({project:e,index:t})=>{const n=S.useRef(null);return S.useEffect(()=>{const r=new IntersectionObserver(([o])=>{o.isIntersecting?o.target.classList.add("fadeIn"):o.target.classList.remove("fadeIn")});return n.current&&r.observe(n.current),()=>{n.current&&r.unobserve(n.current)}},[]),t%2===1||window.innerWidth<798?v.jsxs("div",{className:"project-cards project-card-div",ref:n,children:[v.jsx("div",{className:"project-card left",children:v.jsx(Dw,{project:e})}),v.jsx("div",{className:"project-card right",children:v.jsx(Fw,{project:e})})]}):v.jsxs("div",{className:"project-cards project-card-div",ref:n,children:[v.jsx("div",{className:"project-card left",children:v.jsx(Fw,{project:e})}),v.jsx("div",{className:"project-card right",children:v.jsx(Dw,{project:e})})]})},zB="/assets/proj1-C8UT7oe-.png",VB="/assets/aura-project-CFgog_w9.jpeg",HB="/assets/timer-NXi4WZaO.png",WB="/assets/auctions-DzVGnVD5.png",UB=()=>{const[e,t]=S.useState(null),n=[{id:1,key:1,title:"Aura: A Crypto Token",image:VB,description:"A fungible crypto token deployed on the Internet Computer blockchain. The ledger smart contract is built using Motoko, and React is used for an interactive user interface. Implemented authentication by integrating with Internet Identity, a native authentication technology which uses passkeys.",techStack:["https://images.squarespace-cdn.com/content/v1/54437e21e4b048c830a0cff1/1582790973231-Y6Y49DRMFQTDOL5F9T32/motoko-master-01.png?format=2500w","https://dwglogo.com/wp-content/uploads/2017/09/1460px-React_logo.png","https://brandlogos.net/wp-content/uploads/2021/09/bootstrap-logo.png"],github:"https://github.com/akshay-rajan/aura"},{id:2,key:2,title:"DeviceDash: Smartphone Recommendation Website",image:zB,description:"A smartphone recommendation website in Django, designed to significantly reduce the time required for an average person to choose a smartphone by 90%. Implemented an API to fetch data from `gsmarena.com` by web scraping using BeautifulSoup.",techStack:["https://www.svgrepo.com/show/353657/django-icon.svg","https://cdn.iconscout.com/icon/free/png-256/free-python-3521655-2945099.png?f=webp&w=256"],github:"https://github.com/akshay-rajan/devicedash"},{id:3,key:3,title:"Timer for Chrome",image:HB,description:"A Timer chrome extension using JavaScript, designed to track time during browsing or tests, boosting focus and time management of an individual by 50%. Enhanced proficiency in DOM manipulation, event handling and asynchronous operations. Studied Chrome extension architecture, including background scripts, content scripts, and popup pages.",techStack:["https://upload.wikimedia.org/wikipedia/commons/6/6a/JavaScript-logo.png","https://cdn.iconscout.com/icon/free/png-256/free-html-5-1-1175208.png","https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/CSS3_logo.svg/2048px-CSS3_logo.svg.png","https://upload.wikimedia.org/wikipedia/commons/8/87/Google_Chrome_icon_%282011%29.png"],github:"https://github.com/akshay-rajan/timer"},{id:4,key:4,title:"Auctions",image:WB,description:"An online auction website in Django and Bootstrap, designed to facilitate the buying and selling of products. Implemented a bidding system, user authentication, and a user-friendly interface.",techStack:["https://www.svgrepo.com/show/353657/django-icon.svg","https://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Bootstrap_logo.svg/2560px-Bootstrap_logo.svg.png"],github:"https://github.com/akshay-rajan/commerce"}],r=i=>{t(e===i?null:i)},o=window.innerWidth<798?{cardContainer:{display:"block",width:"100%",height:"auto",zIndex:"1"}}:{cardContainer:{display:"flex",flexWrap:"wrap",width:"100%",height:"auto",zIndex:"1"}};return v.jsxs("div",{className:"project-wrapper",id:"projects",children:[v.jsx("div",{className:"project-header",children:v.jsx("h1",{className:"project-header__title",children:"Recent Projects"})}),v.jsx("div",{className:"project-cards",style:o.cardContainer,children:n.map(i=>v.jsx("div",{children:v.jsx(FB,{index:i.id,project:i,isActive:e===i.id,toggleProject:r})},i.key))})]})},BB="/assets/main-DCDyGC_w.png",GB=()=>{const e=S.useRef(null),t=()=>{if(e.current){const n=window.scrollY,r=window.innerWidth<798?240:350,o=500;if(n>r){const i=n-r,s=Math.max(0,Math.min(1,1-i/(o-r)));e.current.style.opacity=s,s==0?e.current.style.zIndex="-1":e.current.style.display="2"}else e.current.style.opacity=1}};return S.useEffect(()=>(window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)),[]),v.jsxs("div",{className:"main",id:"home",children:[v.jsx("div",{className:"bg"}),v.jsx("div",{className:"content first quarter",children:v.jsxs("div",{className:"name-container",children:[v.jsx("div",{className:"name-intro imgDiv",children:v.jsx("img",{src:BB,alt:"dp",className:"main-img",ref:e})}),v.jsxs("h1",{className:"name marquee",children:[v.jsx("span",{className:"m1",children:"SOFTWARE DEVELOPER "}),v.jsx("span",{className:"m2",children:"SOFTWARE DEVELOPER "})]})]})})]})};function KB(){const e="https://script.google.com/macros/s/AKfycbzks4jFjaFkVQEuvAHol0hJmw86jni2yFubSw-wmSZtgIViK-Kb7VwTFXWA0bfBXng/exec",t=S.useRef(null),[n,r]=S.useState(""),o=i=>{i.preventDefault();const s=t.current,a=s.querySelector("#send-msg");a.disabled=!0;const l=new FormData(s);for(let[u,c]of l.entries())console.log(`${u}: ${c}`);fetch(e,{method:"POST",body:l}).then(u=>{r("Message Sent Successfully!"),setTimeout(()=>{r("")},5e3),s.reset(),a.disabled=!1}).catch(u=>{console.error("Error!",u.message),a.disabled=!1})};return v.jsx("div",{className:"contact-form",children:v.jsxs("form",{ref:t,onSubmit:o,className:"contact-form-f",name:"submit-to-google-sheet",children:[v.jsx("div",{className:"form-group",children:v.jsx("input",{type:"text",id:"name",name:"Name",placeholder:"Name",className:"form-control",required:!0})}),v.jsx("div",{className:"form-group",children:v.jsx("input",{type:"email",id:"email",name:"Email",required:!0,placeholder:"Email",className:"form-control"})}),v.jsx("div",{className:"form-group",children:v.jsx("textarea",{id:"message",name:"Message",required:!0,placeholder:"Enter your message",className:"form-control"})}),v.jsx("div",{className:"form-group",children:v.jsx("button",{type:"submit",className:"btn btn-dark",id:"send-msg",children:"Send Message"})}),v.jsx("div",{id:"alert",children:n})]})})}var Fv={},YB=zn;Object.defineProperty(Fv,"__esModule",{value:!0});var HP=Fv.default=void 0,qB=YB(Gr()),XB=v;HP=Fv.default=(0,qB.default)((0,XB.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var zv={},QB=zn;Object.defineProperty(zv,"__esModule",{value:!0});var WP=zv.default=void 0;eG(S);var ZB=QB(Gr()),JB=v;function UP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(UP=function(r){return r?n:t})(e)}function eG(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=UP(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}WP=zv.default=(0,ZB.default)((0,JB.jsx)("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn");const tG="/assets/dp_icon-BmwZl1nG.jpg";function nG(){return window.innerWidth>=798&&v.jsx("div",{className:"link-container",children:v.jsxs("div",{className:"mylinks",children:[v.jsx("div",{className:"icon linkedin-icon",children:v.jsx(Vs,{content:"LinkedIn",placement:"bottom",color:"success",style:{color:"white"},children:v.jsx("a",{href:"https://www.linkedin.com/in/iamakshayrajan/",children:v.jsx("img",{src:"https://cdn-icons-png.flaticon.com/512/174/174857.png",alt:"linkedin"})})})}),v.jsx("div",{className:"icon github-icon",children:v.jsx(Vs,{content:"Github",placement:"bottom",color:"success",style:{color:"white"},children:v.jsx("a",{href:"https://github.com/akshay-rajan",children:v.jsx("img",{src:"https://cdn.pixabay.com/photo/2022/01/30/13/33/github-6980894_960_720.png",alt:"github"})})})}),v.jsx("div",{className:"icon leetcode-icon",children:v.jsx(Vs,{content:"LeetCode",placement:"bottom",color:"success",style:{color:"white"},children:v.jsx("a",{href:"https://leetcode.com/u/akshayrajan/",children:v.jsx("img",{src:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQG3Ir9453MFZjzGK8jeX9en0kjW8igj-FTNg&s",alt:"leetcode"})})})}),v.jsx("div",{className:"icon myicon",children:v.jsx(Vs,{content:"Resume",placement:"bottom",color:"success",style:{color:"white"},children:v.jsx("a",{href:"https://drive.google.com/file/d/1OAndl2Vdgvz096IhcTUArfRPpG7oadOm/view?usp=sharing",children:v.jsx("img",{src:tG,alt:"DP"})})})})]})})}var Vv={},rG=zn;Object.defineProperty(Vv,"__esModule",{value:!0});var BP=Vv.default=void 0,oG=rG(Gr()),iG=v;BP=Vv.default=(0,oG.default)((0,iG.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code");var Hv={},sG=zn;Object.defineProperty(Hv,"__esModule",{value:!0});var GP=Hv.default=void 0;uG(S);var aG=sG(Gr()),lG=v;function KP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(KP=function(r){return r?n:t})(e)}function uG(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=KP(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}GP=Hv.default=(0,aG.default)((0,lG.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var Wv={},cG=zn;Object.defineProperty(Wv,"__esModule",{value:!0});var YP=Wv.default=void 0,dG=cG(Gr()),fG=v;YP=Wv.default=(0,dG.default)((0,fG.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn");const pG=()=>v.jsxs("div",{className:"contact",id:"contact",children:[v.jsx(nG,{}),v.jsxs("div",{className:"contact-container",children:[v.jsx("div",{className:"contact-title",children:"Contact Me"}),v.jsxs("div",{className:"contact-row",children:[v.jsx("div",{className:"contact-col-1"}),v.jsx("div",{className:"contact-col-2"}),v.jsxs("address",{className:"contact-info",children:[v.jsx("div",{children:v.jsx("a",{href:"https://www.linkedin.com/in/iamakshayrajan/",children:v.jsx(WP,{})})}),v.jsx("div",{children:v.jsx("a",{href:"mailto:akshayrajan345@gmail.com",children:v.jsx(HP,{})})}),v.jsx("div",{children:v.jsx("a",{href:"https://www.google.com/maps/place/Thiruvananthapuram,+Kerala/",children:v.jsx(YP,{})})}),window.innerWidth<798&&v.jsxs(v.Fragment,{children:[v.jsx("div",{children:v.jsx("a",{href:"https://github.com/akshay-rajan",children:v.jsx(GP,{})})}),v.jsx("div",{children:v.jsx("a",{href:"https://leetcode.com/u/akshayrajan/",children:v.jsx(BP,{})})})]})]})]}),v.jsx(KB,{})]})]});function hG(e){return S.useEffect(()=>{const t=document.querySelector("#experience");if(t){let n=t.querySelectorAll(".job-title");t.addEventListener("mouseover",()=>{n.forEach(r=>{r.style.color="wheat"})}),t.addEventListener("mouseout",()=>{n.forEach(r=>{r.style.color="white"})})}}),v.jsxs("div",{className:"exp",id:"experience",children:[v.jsx("div",{className:"exp-title",children:"Experience"}),v.jsx("ul",{className:"exp-timeline",children:v.jsxs("li",{className:"exp-timeline-event",children:[v.jsx("label",{className:"exp-timeline-event-icon"}),v.jsxs("div",{className:"exp-timeline-event-copy",children:[v.jsx("p",{className:"exp-timeline-event-thumbnail",children:"May 2024 - Present"}),v.jsx("h3",{className:"job-title",children:"Software Engineer Intern"}),v.jsxs("h4",{children:["XTG Technologies, Kochi, Kerala",v.jsx("div",{className:"xtra",children:"(Remote)"})]}),v.jsxs("div",{children:[v.jsx("strong",{children:"Smart Contracts: Internet Computer"}),v.jsx("br",{}),v.jsxs("ul",{children:[v.jsx("li",{children:"Developed 100% on-chain decentralized applications on the Internet Computer blockchain using Motoko and React."}),v.jsx("li",{children:"Designed scalable smart contracts and integrated them with Internet Identity, an on-chain authenticaiton service."}),v.jsx("li",{children:"Implemented the front-ends using React."})]})]}),v.jsxs("div",{children:[v.jsx("strong",{children:"Smart Contracts: Solana"}),v.jsx("br",{}),v.jsxs("ul",{children:[v.jsx("li",{children:"Collaborated with team members to develop an application on the Solana blockchain."}),v.jsx("li",{children:"Used the Rust programming language along with the Anchor framework for the backend development."}),v.jsx("li",{children:"Wrote programs in TypeScript for testing Solana programs."})]})]})]})]})})]})}const mG=()=>{const e=S.useRef(null);return S.useEffect(()=>{const{random:t,atan2:n,cos:r,sin:o,hypot:i}=Math,s=200,a=e.current,l=a.getContext("2d"),u=document.body,c=[];u.style.backgroundColor="transparent";let d=a.width=window.innerWidth,f=a.height=window.innerHeight,p={x:d/2,y:f/2},h=0;function g(){}g.prototype={init(){return this.hue=h,this.alpha=0,this.size=this.random(1,5),this.x=this.random(0,d),this.y=this.random(0,f),this.velocity=this.size*.5,this.changed=null,this.changedFrame=0,this.maxChangedFrames=50,this},draw(){l.strokeStyle=`hsla(${Math.random()*10+50}, 100%, 50%, ${this.alpha})`,l.beginPath(),l.arc(this.x,this.y,this.size,0,2*Math.PI),l.stroke(),this.update()},update(){if(this.changed)this.alpha*=.92,this.size+=2,this.changedFrame++,this.changedFrame>this.maxChangedFrames&&this.reset();else if(this.distance(p.x,p.y)<50)this.changed=!0;else{let x=p.x-this.x,w=p.y-this.y,C=n(w,x);this.alpha+=.01,this.x+=this.velocity*r(C),this.y+=this.velocity*o(C),this.velocity+=.02}},reset(){this.init()},distance(x,w){return i(x-this.x,w-this.y)},random(x,w){return t()*(w-x)+x}};function b(){l.fillStyle="rgba(0,0,0, .2)",l.fillRect(0,0,d,f),c.forEach(x=>{x.draw()}),h+=.3,window.requestAnimationFrame(b)}function m(x){p.x=x.touches?x.touches[0].clientX:x.clientX,p.y=x.touches?x.touches[0].clientY:x.clientY}function y(){for(let x=0;x{let w=new g().init();c.push(w)},x*10);a.addEventListener("mousemove",m),a.addEventListener("touchmove",m),a.addEventListener("mouseleave",()=>{p={x:d/2,y:f/2}}),window.addEventListener("resize",()=>{d=a.width=window.innerWidth,f=a.height=window.innerHeight,p={x:d/2,y:f/2}}),b()}return y(),()=>{a.removeEventListener("mousemove",m),a.removeEventListener("touchmove",m),a.removeEventListener("mouseleave",()=>{p={x:d/2,y:f/2}}),window.removeEventListener("resize",()=>{d=a.width=window.innerWidth,f=a.height=window.innerHeight,p={x:d/2,y:f/2}})}},[]),v.jsx("canvas",{className:"background-animation",ref:e})};function gG(){const[e,t]=S.useState(!0);return S.useEffect(()=>{const n=document.getElementById("preloader");n&&setTimeout(()=>{n.style.display="none",t(!1)},1e3)},[]),v.jsx(v.Fragment,{children:!e&&v.jsxs(v.Fragment,{children:[v.jsx(mG,{}),v.jsx(DB,{}),v.jsx(GB,{}),v.jsx(jW,{}),v.jsx(UB,{}),v.jsx(hG,{}),v.jsx(pG,{}),v.jsx("div",{style:{color:"wheat",zIndex:20,fontSize:10},children:"Last Updated: 08/2024"})]})})}Yp.createRoot(document.getElementById("root")).render(v.jsx(ze.StrictMode,{children:v.jsx(gG,{})})); + `),()=>{document.head.removeChild(c)}},[t]),v.jsx(AH,{isPresent:t,childRef:r,sizeRef:o,children:S.cloneElement(e,{ref:r})})}const RH=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=bv(jH),l=S.useId(),u=S.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?[Math.random()]:[n]);return S.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),S.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=v.jsx(OH,{isPresent:n,children:e})),v.jsx(iv.Provider,{value:u,children:e})};function jH(){return new Map}const vu=e=>e.key||"";function rw(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const IH=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=S.useMemo(()=>rw(e),[e]),l=a.map(vu),u=S.useRef(!0),c=S.useRef(a),d=bv(()=>new Map),[f,p]=S.useState(a),[h,g]=S.useState(a);e$(()=>{u.current=!1,c.current=a;for(let y=0;y{const x=vu(y),w=a===h||l.includes(x),C=()=>{if(d.has(x))d.set(x,!0);else return;let k=!0;d.forEach($=>{$||(k=!1)}),k&&(m==null||m(),g(c.current),o&&o())};return v.jsx(RH,{isPresent:w,initial:!u.current||r?void 0:!1,custom:w?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:w?void 0:C,children:y},x)})})};function LH({children:e,features:t,strict:n=!1}){const[,r]=S.useState(!zp(t)),o=S.useRef(void 0);if(!zp(t)){const{renderer:i,...s}=t;o.current=i,Pm(s)}return S.useEffect(()=>{zp(t)&&t().then(({renderer:i,...s})=>{Pm(s),o.current=i,r(!0)})},[]),v.jsx(av.Provider,{value:{renderer:o.current,strict:n},children:e})}function zp(e){return typeof e=="function"}const NH={renderer:MH,...gH,...Sz};function DH(e){return S.forwardRef(e)}var FH=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),r]:[e,r]},zH={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},VH={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},HH={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},WH={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},UH={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},BH={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},GH={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},Qo={solid:zH,shadow:VH,bordered:HH,flat:WH,faded:UH,light:BH,ghost:GH},yu=["small","medium","large"],ow={theme:{opacity:["disabled"],spacing:["divider"],borderWidth:yu,borderRadius:yu},classGroups:{shadow:[{shadow:yu}],"font-size":[{text:["tiny",...yu]}],"bg-image":["bg-stripe-gradient"]}},iw=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Et=e=>!e||typeof e!="object"||Object.keys(e).length===0,KH=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function dP(e,t){e.forEach(function(n){Array.isArray(n)?dP(n,t):t.push(n)})}function fP(e){let t=[];return dP(e,t),t}var pP=(...e)=>fP(e).filter(Boolean),hP=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let s=e[i],a=t[i];typeof s=="object"&&typeof a=="object"?n[i]=hP(s,a):Array.isArray(s)||Array.isArray(a)?n[i]=pP(a,s):n[i]=a+" "+s}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},sw=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function YH(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var vP="!";function tW(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:b}}}function nW(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function rW(e){return{cache:eW(e.cacheSize),splitModifiers:tW(e),...qH(e)}}var oW=/\s+/;function iW(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(oW).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),p=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};p=!1}var h=nW(l).join(":"),g=u?h+vP:h;return{isTailwindClass:!0,modifierId:g,classGroupId:f,originalClassName:s,hasPostfixModifier:p}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(d){return i.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Fm(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;re||void 0,Qa=(...e)=>wP(fP(e).filter(Boolean).join(" ")),Vp=null,id={},Hm=!1,Rs=(...e)=>t=>t.twMerge?((!Vp||Hm)&&(Hm=!1,Vp=Et(id)?kW:SW(id)),wP(Vp(Qa(e)))):Qa(e),cw=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=Qa(e[n],t[n]):e[n]=t[n];return e},$W=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=e,l={...CW,...t},u=n!=null&&n.base?Qa(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!Et(n.variants)?hP(o,n.variants):o,d=n!=null&&n.defaultVariants&&!Et(n.defaultVariants)?{...n.defaultVariants,...a}:a;!Et(l.twMergeConfig)&&!KH(l.twMergeConfig,id)&&(Hm=!0,id=l.twMergeConfig);let f=Et(n==null?void 0:n.slots),p=Et(r)?{}:{base:Qa(e==null?void 0:e.base,f&&(n==null?void 0:n.base)),...r},h=f?p:cw({...n==null?void 0:n.slots},Et(p)?{base:e==null?void 0:e.base}:p),g=m=>{if(Et(c)&&Et(r)&&f)return Rs(u,m==null?void 0:m.class,m==null?void 0:m.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let y=(E,_,T=[],I)=>{let L=T;if(typeof _=="string")L=L.concat(sw(_).split(" ").map(F=>`${E}:${F}`));else if(Array.isArray(_))L=L.concat(_.reduce((F,j)=>F.concat(`${E}:${j}`),[]));else if(typeof _=="object"&&typeof I=="string"){for(let F in _)if(_.hasOwnProperty(F)&&F===I){let j=_[F];if(j&&typeof j=="string"){let N=sw(j);L[I]?L[I]=L[I].concat(N.split(" ").map(V=>`${E}:${V}`)):L[I]=N.split(" ").map(V=>`${E}:${V}`)}else Array.isArray(j)&&j.length>0&&(L[I]=j.reduce((N,V)=>N.concat(`${E}:${V}`),[]))}}return L},x=(E,_=c,T=null,I=null)=>{var L;let F=_[E];if(!F||Et(F))return null;let j=(L=I==null?void 0:I[E])!=null?L:m==null?void 0:m[E];if(j===null)return null;let N=iw(j),V=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,G=d==null?void 0:d[E],B=[];if(typeof N=="object"&&V)for(let[J,X]of Object.entries(N)){let oe=F[X];if(J==="initial"){G=X;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(J)||(B=y(J,oe,B,T))}let q=F[N]||F[iw(G)];return typeof B=="object"&&typeof T=="string"&&B[T]?cw(B,q):B.length>0?(B.push(q),B):q},w=()=>c?Object.keys(c).map(E=>x(E,c)):null,C=(E,_)=>{if(!c||typeof c!="object")return null;let T=new Array;for(let I in c){let L=x(I,c,E,_),F=E==="base"&&typeof L=="string"?L:L&&L[E];F&&(T[T.length]=F)}return T},k={};for(let E in m)m[E]!==void 0&&(k[E]=m[E]);let $=(E,_)=>{var T;let I=typeof(m==null?void 0:m[E])=="object"?{[E]:(T=m[E])==null?void 0:T.initial}:{};return{...d,...k,...I,..._}},P=(E=[],_)=>{let T=[];for(let{class:I,className:L,...F}of E){let j=!0;for(let[N,V]of Object.entries(F)){let G=$(N,_);if(Array.isArray(V)){if(!V.includes(G[N])){j=!1;break}}else if(G[N]!==V){j=!1;break}}j&&(I&&T.push(I),L&&T.push(L))}return T},R=E=>{let _=P(i,E),T=P(n==null?void 0:n.compoundVariants,E);return pP(T,_)},M=E=>{let _=R(E);if(!Array.isArray(_))return _;let T={};for(let I of _)if(typeof I=="string"&&(T.base=Rs(T.base,I)(l)),typeof I=="object")for(let[L,F]of Object.entries(I))T[L]=Rs(T[L],F)(l);return T},O=E=>{if(s.length<1)return null;let _={};for(let{slots:T=[],class:I,className:L,...F}of s){if(!Et(F)){let j=!0;for(let N of Object.keys(F)){let V=$(N,E)[N];if(V===void 0||(Array.isArray(F[N])?!F[N].includes(V):F[N]!==V)){j=!1;break}}if(!j)continue}for(let j of T)_[j]=_[j]||[],_[j].push([I,L])}return _};if(!Et(r)||!f){let E={};if(typeof h=="object"&&!Et(h))for(let _ of Object.keys(h))E[_]=T=>{var I,L;return Rs(h[_],C(_,T),((I=M(T))!=null?I:[])[_],((L=O(T))!=null?L:[])[_],T==null?void 0:T.class,T==null?void 0:T.className)(l)};return E}return Rs(u,w(),R(),m==null?void 0:m.class,m==null?void 0:m.className)(l)},b=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return g.variantKeys=b(),g.extend=n,g.base=u,g.slots=h,g.variants=c,g.defaultVariants=d,g.compoundSlots=s,g.compoundVariants=i,g},PW=(e,t)=>{var n,r,o;return $W(e,{...t,twMerge:(n=void 0)!=null?n:!0,twMergeConfig:{theme:{...(r=void 0)==null?void 0:r.theme,...ow.theme},classGroups:{...(o=void 0)==null?void 0:o.classGroups,...ow.classGroups}}})},TW=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],dw=PW({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...TW],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:Qo.solid.foreground},primary:{base:"before:bg-primary",content:Qo.solid.primary},secondary:{base:"before:bg-secondary",content:Qo.solid.secondary},success:{base:"before:bg-success",content:Qo.solid.success},warning:{base:"before:bg-warning",content:Qo.solid.warning},danger:{base:"before:bg-danger",content:Qo.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),EW=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(t==null?void 0:t[e])||{}},MW=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],fw=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e},_W=globalThis!=null&&globalThis.document?S.useLayoutEffect:S.useEffect;function AW(e){var t,n;const r=lF(),[o,i]=FH(e,dw.variantKeys),{ref:s,as:a,isOpen:l,content:u,children:c,defaultOpen:d,onOpenChange:f,isDisabled:p,trigger:h,shouldFlip:g=!0,containerPadding:b=12,placement:m="top",delay:y=0,closeDelay:x=500,showArrow:w=!1,offset:C=7,crossOffset:k=0,isDismissable:$,shouldCloseOnBlur:P=!0,portalContainer:R,isKeyboardDismissDisabled:M=!1,updatePositionDeps:O=[],shouldCloseOnInteractOutside:E,className:_,onClose:T,motionProps:I,classNames:L,...F}=o,j=a||"div",N=(n=(t=e==null?void 0:e.disableAnimation)!=null?t:r==null?void 0:r.disableAnimation)!=null?n:!1,V=gN({delay:y,closeDelay:x,isDisabled:p,defaultOpen:d,isOpen:l,onOpenChange:me=>{f==null||f(me),me||T==null||T()}}),G=S.useRef(null),B=S.useRef(null),q=S.useId(),J=V.isOpen&&!p;S.useImperativeHandle(s,()=>eF(B));const{triggerProps:X,tooltipProps:oe}=ED({isDisabled:p,trigger:h},V,G),{tooltipProps:le}=JN({isOpen:J,...vo(o,oe)},V),{overlayProps:de,placement:W,updatePosition:K}=BD({isOpen:J,targetRef:G,placement:MW(m),overlayRef:B,offset:w?C+3:C,crossOffset:k,shouldFlip:g,containerPadding:b});_W(()=>{O.length&&K()},O);const{overlayProps:Q}=YD({isOpen:J,onClose:V.close,isDismissable:$,shouldCloseOnBlur:P,isKeyboardDismissDisabled:M,shouldCloseOnInteractOutside:E},B),D=S.useMemo(()=>{var me,Be,Qr;return dw({...i,disableAnimation:N,radius:(me=e==null?void 0:e.radius)!=null?me:"md",size:(Be=e==null?void 0:e.size)!=null?Be:"md",shadow:(Qr=e==null?void 0:e.shadow)!=null?Qr:"sm"})},[iF(i),N,e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),be=S.useCallback((me={},Be=null)=>({...vo(X,me),ref:aF(Be,G),"aria-describedby":J?q:void 0}),[X,J,q,V]),ne=S.useCallback(()=>({ref:B,"data-slot":"base","data-open":Xo(J),"data-arrow":Xo(w),"data-disabled":Xo(p),"data-placement":fw(W,m),...vo(le,Q,F),style:vo(de.style,F.style,o.style),className:D.base({class:L==null?void 0:L.base}),id:q}),[D,J,w,p,W,m,le,Q,F,de,o,q]),Re=S.useCallback(()=>({"data-slot":"content","data-open":Xo(J),"data-arrow":Xo(w),"data-disabled":Xo(p),"data-placement":fw(W,m),className:D.content({class:nF(L==null?void 0:L.content,_)})}),[D,J,w,p,W,m,L]);return{Component:j,content:u,children:c,isOpen:J,triggerRef:G,showArrow:w,portalContainer:R,placement:m,disableAnimation:N,isDisabled:p,motionProps:I,getTooltipContentProps:Re,getTriggerProps:be,getTooltipProps:ne}}var Zo={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},OW={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:Zo.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:Zo.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:Zo.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:Zo.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Zo.ease}},exit:{opacity:0,transition:{duration:.3,ease:Zo.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},SP=DH((e,t)=>{const{Component:n,children:r,content:o,isOpen:i,portalContainer:s,placement:a,disableAnimation:l,motionProps:u,getTriggerProps:c,getTooltipProps:d,getTooltipContentProps:f}=AW({...e,ref:t});let p;try{if(S.Children.count(r)!==1)throw new Error;if(!S.isValidElement(r))p=v.jsx("p",{...c(),children:r});else{const w=r;p=S.cloneElement(w,c(w.props,w.ref))}}catch{p=v.jsx("span",{}),oF("Tooltip must have only one child node. Please, check your code.")}const{ref:h,id:g,style:b,...m}=d(),y=v.jsx("div",{ref:h,id:g,style:b,children:v.jsx(LH,{features:NH,children:v.jsx(_H.div,{animate:"enter",exit:"exit",initial:"exit",variants:OW.scaleSpring,...vo(u,m),style:{...EW(a)},children:v.jsx(n,{...f(),children:o})})})});return v.jsxs(v.Fragment,{children:[p,l&&i?v.jsx(Tb,{portalContainer:s,children:v.jsx("div",{ref:h,id:g,style:b,...m,children:v.jsx(n,{...f(),children:o})})}):v.jsx(IH,{children:i?v.jsx(Tb,{portalContainer:s,children:y}):null})]})});SP.displayName="NextUI.Tooltip";var Vs=SP;function RW(){const e={container:{display:"block",padding:"2rem",flex:1,backgroundColor:"black",maxWidth:"100%",height:"auto",aspectRatio:"attr(width) / attr(height)",background:"#000",borderRadius:"1.5rem 0 0 1.5rem"},imgContainer:{textAlign:"left",height:"auto",aspectRatio:"attr(width) / attr(height)",background:"#000",borderRadius:"50%"},dp:{textAlign:"center",borderRadius:"50%",border:"1px solid wheat",width:"300px",margin:"0",padding:"0",height:"auto"},details:{display:"block",textAlign:"left",maxWidth:"100%",height:"auto",color:"white",aspectRatio:"attr(width) / attr(height)",background:"#000",borderRadius:"0 1.5rem 1.5rem 0"},greyFont:{color:"grey",fontSize:"1rem",margin:"0px"},name:{color:"white",fontSize:"25px",fontWeight:"bold"},desc:{textAlign:"left",color:"white",fontSize:"1rem",marginTop:"5px"},buttonDiv:{textAlign:"left",width:"100%",marginTop:"1rem",height:"auto"},mainButton:{width:"100%",fontSize:"15px",color:"#b1aeae",fontWeight:"normal",borderRadius:"0.5rem",margin:"0.5rem 0"},extras:{textAlign:"left",color:"white",fontSize:"1rem",marginTop:"1rem"},url:{color:"wheat",textDecoration:"none",fontSize:"14px"},urlHover:{color:"wheat",textDecoration:"underline",fontSize:"14px"}},t={...e,dp:{width:"100px",borderRadius:"50%",border:"1px solid wheat"},imgContainer:{margin:0},container:{...e.container,display:"flex",margin:"2px",padding:"10px",borderRadius:"1.5rem 1.5rem 0 0"},details:{...e.details,padding:"1rem",paddingTop:"0",paddingBottom:"2px",borderRadius:"1.5rem 1.5rem 1.5rem 1.5rem"},buttonDiv:{...e.buttonDiv,margin:"0"},extras:{...e.extras,margin:"0"}},[n,r]=S.useState(!1);return v.jsx(v.Fragment,{children:v.jsxs("div",{style:window.innerWidth<798?t.container:e.container,children:[v.jsx("div",{style:window.innerWidth<798?t.imgContainer:e.imgContainer,children:v.jsx(Vs,{content:"👽️",showArrow:!0,placement:"right-end",color:"foreground",offset:-100,children:v.jsx("img",{src:dN,style:window.innerWidth<798?t.dp:e.dp,alt:"display picture"})})}),v.jsxs("div",{children:[v.jsxs("div",{style:window.innerWidth<798?t.details:e.details,children:[v.jsx("div",{style:e.name,children:"Akshay R"}),v.jsx("h3",{style:e.greyFont,children:"akshay-rajan"})]}),v.jsxs("div",{style:window.innerWidth<798?t.details:e.desc,children:["Software Developer | MCA 25' @ College of Engineering, Trivandrum",v.jsx("div",{style:window.innerWidth?t.buttonDiv:e.buttonDiv,children:v.jsx("a",{href:"https://github.com/akshay-rajan",children:v.jsx("button",{style:e.mainButton,children:"Github"})})}),v.jsx("div",{style:window.innerHeight?t.extras:e.extras,children:v.jsx("a",{href:"https://akshay-rajan.github.io/",style:n?e.urlHover:e.url,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:"akshay-rajan.github.io/"})})]})]})]})})}function jW(){const e={laptopStyle:{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",margin:"auto",width:"100%",maxWidth:"80rem",overflow:"hidden"},laptopScreenStyle:{display:"flex",position:"relative",zIndex:1,padding:"10px",minHeight:"80vh",width:"90vw",borderRadius:"2rem",background:"#ecf1f7",backgroundImage:"linear-gradient(to bottom, #333, #111)",boxShadow:"0 0.1rem 0 #cfcfcf",border:"1px solid wheat"},laptopShadowStyle:{position:"absolute",right:"-10%",bottom:"-2.5rem",left:"-10%",zIndex:0,height:"2rem",background:"radial-gradient(ellipse closest-side,#000,transparent)",opacity:.5}},t={...e},n={...e,laptopStyle:{position:"relative",maxWidth:"80rem",overflow:"hidden",width:"100%"},laptopScreenStyle:{...e.laptopScreenStyle,flexDirection:"column",width:"auto",margin:"0",padding:"4px",minHeight:"90vh"}},[r,o]=S.useState(t);S.useEffect(()=>{const a=()=>{window.innerWidth<768?o(n):o(t)};return a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]);const[i,s]=S.useState(!1);return S.useEffect(()=>{const a=()=>{const l=document.getElementById("about"),u=document.body,c=document.querySelector("#nav"),d=document.querySelector("#projects"),f=l.getBoundingClientRect();window.innerWidth>=798?f.top<100&&f.bottom>100?(u.style.backgroundColor="white",u.style.color="black",c.classList.add("scrolled"),c.classList.remove("light"),d.classList.remove("focused"),l.style.paddingTop="75px"):f.top>=100?(u.style.backgroundColor="transparent",c.classList.remove("scrolled"),c.classList.remove("light"),d.classList.remove("focused"),l.style.paddingTop="0px"):(u.style.backgroundColor="transparent",d.classList.add("focused"),c.classList.add("light"),c.classList.add("scrolled"),l.style.paddingTop="75px"):f.top<100&&f.bottom>100?(u.style.backgroundColor="white",u.style.color="black",d.classList.remove("focused")):f.top>=100?(u.style.backgroundColor="transparent",d.classList.remove("focused")):(u.style.backgroundColor="transparent",d.classList.add("focused"))};return window.addEventListener("scroll",a),a(),()=>{window.removeEventListener("scroll",a)}},[]),v.jsx("main",{children:v.jsx("div",{className:"container",id:"about",children:v.jsxs("div",{className:"laptop",style:r.laptopStyle,children:[v.jsxs("div",{className:"laptop__screen",style:r.laptopScreenStyle,children:[v.jsx(RW,{}),v.jsx(cN,{isExpanded:i,setExpanded:s})]}),v.jsx("div",{className:"laptop__shadow",style:r.laptopShadowStyle})]})})})}var Ae={},_v={},$l={},Pl={},kP="Expected a function",pw=NaN,IW="[object Symbol]",LW=/^\s+|\s+$/g,NW=/^[-+]0x[0-9a-f]+$/i,DW=/^0b[01]+$/i,FW=/^0o[0-7]+$/i,zW=parseInt,VW=typeof Rl=="object"&&Rl&&Rl.Object===Object&&Rl,HW=typeof self=="object"&&self&&self.Object===Object&&self,WW=VW||HW||Function("return this")(),UW=Object.prototype,BW=UW.toString,GW=Math.max,KW=Math.min,Hp=function(){return WW.Date.now()};function YW(e,t,n){var r,o,i,s,a,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(kP);t=hw(t)||0,sd(n)&&(c=!!n.leading,d="maxWait"in n,i=d?GW(hw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p(k){var $=r,P=o;return r=o=void 0,u=k,s=e.apply(P,$),s}function h(k){return u=k,a=setTimeout(m,t),c?p(k):s}function g(k){var $=k-l,P=k-u,R=t-$;return d?KW(R,i-P):R}function b(k){var $=k-l,P=k-u;return l===void 0||$>=t||$<0||d&&P>=i}function m(){var k=Hp();if(b(k))return y(k);a=setTimeout(m,g(k))}function y(k){return a=void 0,f&&r?p(k):(r=o=void 0,s)}function x(){a!==void 0&&clearTimeout(a),u=0,r=l=o=a=void 0}function w(){return a===void 0?s:y(Hp())}function C(){var k=Hp(),$=b(k);if(r=arguments,o=this,l=k,$){if(a===void 0)return h(l);if(d)return a=setTimeout(m,t),p(l)}return a===void 0&&(a=setTimeout(m,t)),s}return C.cancel=x,C.flush=w,C}function qW(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(kP);return sd(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),YW(e,t,{leading:r,maxWait:t,trailing:o})}function sd(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function XW(e){return!!e&&typeof e=="object"}function QW(e){return typeof e=="symbol"||XW(e)&&BW.call(e)==IW}function hw(e){if(typeof e=="number")return e;if(QW(e))return pw;if(sd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=sd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(LW,"");var n=DW.test(e);return n||FW.test(e)?zW(e.slice(2),n?2:8):NW.test(e)?pw:+e}var ZW=qW,Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});Tl.addPassiveEventListener=function(t,n,r){var o=r.name;o||(o=n,console.warn("Listener must be a named function.")),Xu.has(n)||Xu.set(n,new Set);var i=Xu.get(n);if(!i.has(o)){var s=function(){var a=!1;try{var l=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("test",null,l)}catch{}return a}();t.addEventListener(n,r,s?{passive:!0}:!1),i.add(o)}};Tl.removePassiveEventListener=function(t,n,r){t.removeEventListener(n,r),Xu.get(n).delete(r.name||n)};var Xu=new Map;Object.defineProperty(Pl,"__esModule",{value:!0});var JW=ZW,eU=nU(JW),tU=Tl;function nU(e){return e&&e.__esModule?e:{default:e}}var rU=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:66;return(0,eU.default)(t,n)},Ce={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(t,n){if(t){var r=rU(function(o){Ce.scrollHandler(t)},n);Ce.scrollSpyContainers.push(t),(0,tU.addPassiveEventListener)(t,"scroll",r)}},isMounted:function(t){return Ce.scrollSpyContainers.indexOf(t)!==-1},currentPositionX:function(t){if(t===document){var n=window.pageYOffset!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft}else return t.scrollLeft},currentPositionY:function(t){if(t===document){var n=window.pageXOffset!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop}else return t.scrollTop},scrollHandler:function(t){var n=Ce.scrollSpyContainers[Ce.scrollSpyContainers.indexOf(t)].spyCallbacks||[];n.forEach(function(r){return r(Ce.currentPositionX(t),Ce.currentPositionY(t))})},addStateHandler:function(t){Ce.spySetState.push(t)},addSpyHandler:function(t,n){var r=Ce.scrollSpyContainers[Ce.scrollSpyContainers.indexOf(n)];r.spyCallbacks||(r.spyCallbacks=[]),r.spyCallbacks.push(t),t(Ce.currentPositionX(n),Ce.currentPositionY(n))},updateStates:function(){Ce.spySetState.forEach(function(t){return t()})},unmount:function(t,n){Ce.scrollSpyContainers.forEach(function(r){return r.spyCallbacks&&r.spyCallbacks.length&&r.spyCallbacks.indexOf(n)>-1&&r.spyCallbacks.splice(r.spyCallbacks.indexOf(n),1)}),Ce.spySetState&&Ce.spySetState.length&&Ce.spySetState.indexOf(t)>-1&&Ce.spySetState.splice(Ce.spySetState.indexOf(t),1),document.removeEventListener("scroll",Ce.scrollHandler)},update:function(){return Ce.scrollSpyContainers.forEach(function(t){return Ce.scrollHandler(t)})}};Pl.default=Ce;var fs={},El={};Object.defineProperty(El,"__esModule",{value:!0});var oU=function(t,n){var r=t.indexOf("#")===0?t.substring(1):t,o=r?"#"+r:"",i=window&&window.location,s=o?i.pathname+i.search+o:i.pathname+i.search;n?history.pushState(history.state,"",s):history.replaceState(history.state,"",s)},iU=function(){return window.location.hash.replace(/^#/,"")},sU=function(t){return function(n){return t.contains?t!=n&&t.contains(n):!!(t.compareDocumentPosition(n)&16)}},aU=function(t){return getComputedStyle(t).position!=="static"},Wp=function(t,n){for(var r=t.offsetTop,o=t.offsetParent;o&&!n(o);)r+=o.offsetTop,o=o.offsetParent;return{offsetTop:r,offsetParent:o}},lU=function(t,n,r){if(r)return t===document?n.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):getComputedStyle(t).position!=="static"?n.offsetLeft:n.offsetLeft-t.offsetLeft;if(t===document)return n.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if(aU(t)){if(n.offsetParent!==t){var o=function(c){return c===t||c===document},i=Wp(n,o),s=i.offsetTop,a=i.offsetParent;if(a!==t)throw new Error("Seems containerElement is not an ancestor of the Element");return s}return n.offsetTop}if(n.offsetParent===t.offsetParent)return n.offsetTop-t.offsetTop;var l=function(c){return c===document};return Wp(n,l).offsetTop-Wp(t,l).offsetTop};El.default={updateHash:oU,getHash:iU,filterElementInContainer:sU,scrollOffset:lU};var Pf={},Av={};Object.defineProperty(Av,"__esModule",{value:!0});Av.default={defaultEasing:function(t){return t<.5?Math.pow(t*2,2)/2:1-Math.pow((1-t)*2,2)/2},linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:-1+(4-2*t)*t},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};var Ov={};Object.defineProperty(Ov,"__esModule",{value:!0});var uU=Tl,cU=["mousedown","mousewheel","touchmove","keydown"];Ov.default={subscribe:function(t){return typeof document<"u"&&cU.forEach(function(n){return(0,uU.addPassiveEventListener)(document,n,t)})}};var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});var Wm={registered:{},scrollEvent:{register:function(t,n){Wm.registered[t]=n},remove:function(t){Wm.registered[t]=null}}};Ml.default=Wm;Object.defineProperty(Pf,"__esModule",{value:!0});var dU=Object.assign||function(e){for(var t=1;t=o.duration?1:t(o.progress/o.duration),o.currentPosition=o.startPosition+Math.ceil(o.delta*o.percent),o.containerElement&&o.containerElement!==document&&o.containerElement!==document.body?n.horizontal?o.containerElement.scrollLeft=o.currentPosition:o.containerElement.scrollTop=o.currentPosition:n.horizontal?window.scrollTo(o.currentPosition,0):window.scrollTo(0,o.currentPosition),o.percent<1){var i=e.bind(null,t,n);Um.call(window,i);return}Tn.default.registered.end&&Tn.default.registered.end(o.to,o.target,o.currentPosition)},Rv=function(t){t.data.containerElement=t?t.containerId?document.getElementById(t.containerId):t.container&&t.container.nodeType?t.container:document:null},_l=function(t,n,r,o){n.data=n.data||$P(),window.clearTimeout(n.data.delayTimeout);var i=function(){n.data.cancel=!0};if(mU.default.subscribe(i),Rv(n),n.data.start=null,n.data.cancel=!1,n.data.startPosition=n.horizontal?PP(n):TP(n),n.data.targetPosition=n.absolute?t:t+n.data.startPosition,n.data.startPosition===n.data.targetPosition){Tn.default.registered.end&&Tn.default.registered.end(n.data.to,n.data.target,n.data.currentPosition);return}n.data.delta=Math.round(n.data.targetPosition-n.data.startPosition),n.data.duration=vU(n.duration)(n.data.delta),n.data.duration=isNaN(parseFloat(n.data.duration))?1e3:parseFloat(n.data.duration),n.data.to=r,n.data.target=o;var s=CP(n),a=wU.bind(null,s,n);if(n&&n.delay>0){n.data.delayTimeout=window.setTimeout(function(){Tn.default.registered.begin&&Tn.default.registered.begin(n.data.to,n.data.target),Um.call(window,a)},n.delay);return}Tn.default.registered.begin&&Tn.default.registered.begin(n.data.to,n.data.target),Um.call(window,a)},Ef=function(t){return t=dU({},t),t.data=t.data||$P(),t.absolute=!0,t},SU=function(t){_l(0,Ef(t))},kU=function(t,n){_l(t,Ef(n))},CU=function(t){t=Ef(t),Rv(t),_l(t.horizontal?xU(t):bU(t),t)},$U=function(t,n){n=Ef(n),Rv(n);var r=n.horizontal?PP(n):TP(n);_l(t+r,n)};Pf.default={animateTopScroll:_l,getAnimationType:CP,scrollToTop:SU,scrollToBottom:CU,scrollTo:kU,scrollMore:$U};Object.defineProperty(fs,"__esModule",{value:!0});var PU=Object.assign||function(e){for(var t=1;t=Math.floor(g)&&w=Math.floor(b)}else{var C=0,k=0,$=0;if(u.getBoundingClientRect){var P=u.getBoundingClientRect();$=P.top}if(!f||s.props.isDynamic){if(f=n.get(d),!f)return;var R=f.getBoundingClientRect();C=R.top-$+l,k=C+R.height}var M=l-s.props.offset;p=M>=Math.floor(C)&&M=Math.floor(k)}var O=n.getActiveLink();if(h){if(d===O&&n.setActiveLink(void 0),s.props.hashSpy&&vr.default.getHash()===d){var E=s.props.saveHashHistory,_=E===void 0?!1:E;vr.default.changeHash("",_)}s.props.spy&&s.state.active&&(s.setState({active:!1}),s.props.onSetInactive&&s.props.onSetInactive(d,f))}if(p&&(O!==d||s.state.active===!1)){n.setActiveLink(d);var T=s.props.saveHashHistory,I=T===void 0?!1:T;s.props.hashSpy&&vr.default.changeHash(d,I),s.props.spy&&(s.setState({active:!0}),s.props.onSetActive&&s.props.onSetActive(d,f))}}}};return r.propTypes=yw,r.defaultProps={offset:0},r};Object.defineProperty(_v,"__esModule",{value:!0});var BU=S,xw=EP(BU),GU=$l,KU=EP(GU);function EP(e){return e&&e.__esModule?e:{default:e}}function YU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bw(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function qU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var XU=function(e){qU(t,e);function t(){var n,r,o,i;YU(this,t);for(var s=arguments.length,a=Array(s),l=0;l"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(i){this.props.name!==i.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;kw.default.unregister(this.props.name)}},{key:"registerElems",value:function(i){kw.default.register(i,this.childBindings.domNode)}},{key:"render",value:function(){return Sw.default.createElement(e,iB({},this.props,{parentBindings:this.childBindings}))}}]),r}(Sw.default.Component);return t.propTypes={name:Cw.default.string,id:Cw.default.string},t};Object.defineProperty(Lv,"__esModule",{value:!0});var $w=Object.assign||function(e){for(var t=1;t=Math.floor(f)&&m=Math.floor(p),w=r.getActiveLink();if(x)return c===w&&r.setActiveLink(void 0),a.props.hashSpy&&yr.getHash()===c&&yr.changeHash(),a.props.spy&&a.state.active&&(a.setState({active:!1}),a.props.onSetInactive&&a.props.onSetInactive()),oo.updateStates();if(y&&w!==c)return r.setActiveLink(c),a.props.hashSpy&&yr.changeHash(c),a.props.spy&&(a.setState({active:!0}),a.props.onSetActive&&a.props.onSetActive(c)),oo.updateStates()}}};return o.propTypes=Ow,o.defaultProps={offset:0},o},Element:function(t){console.warn("Helpers.Element is deprecated since v1.7.0");var n=function(r){Aw(o,r);function o(i){Mw(this,o);var s=_w(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,i));return s.childBindings={domNode:null},s}return Ew(o,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(s){this.props.name!==s.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;Gp.unregister(this.props.name)}},{key:"registerElems",value:function(s){Gp.register(s,this.childBindings.domNode)}},{key:"render",value:function(){return Cu.createElement(t,Bp({},this.props,{parentBindings:this.childBindings}))}}]),o}(Cu.Component);return n.propTypes={name:$e.string,id:$e.string},n}},kB=SB;Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Helpers=Ae.ScrollElement=Ae.ScrollLink=Bm=Ae.animateScroll=Ae.scrollSpy=Ae.Events=Ae.scroller=Ae.Element=Ae.Button=cn=Ae.Link=void 0;var CB=_v,AP=Wn(CB),$B=Iv,OP=Wn($B),PB=Lv,RP=Wn(PB),TB=fs,jP=Wn(TB),EB=Ml,IP=Wn(EB),MB=Pl,LP=Wn(MB),_B=Pf,NP=Wn(_B),AB=$l,DP=Wn(AB),OB=_f,FP=Wn(OB),RB=kB,zP=Wn(RB);function Wn(e){return e&&e.__esModule?e:{default:e}}var cn=Ae.Link=AP.default;Ae.Button=OP.default;Ae.Element=RP.default;Ae.scroller=jP.default;Ae.Events=IP.default;Ae.scrollSpy=LP.default;var Bm=Ae.animateScroll=NP.default;Ae.ScrollLink=DP.default;Ae.ScrollElement=FP.default;Ae.Helpers=zP.default;Ae.default={Link:AP.default,Button:OP.default,Element:RP.default,scroller:jP.default,Events:IP.default,scrollSpy:LP.default,animateScroll:NP.default,ScrollLink:DP.default,ScrollElement:FP.default,Helpers:zP.default};var Dv={},jB=zn;Object.defineProperty(Dv,"__esModule",{value:!0});var VP=Dv.default=void 0,IB=jB(Gr()),LB=v;VP=Dv.default=(0,IB.default)((0,LB.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");const Rw=os(v.jsx("path",{d:"M20 0H4v2h16zM4 24h16v-2H4zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-8 2.75c1.24 0 2.25 1.01 2.25 2.25s-1.01 2.25-2.25 2.25S9.75 10.24 9.75 9 10.76 6.75 12 6.75M17 17H7v-1.5c0-1.67 3.33-2.5 5-2.5s5 .83 5 2.5z"}),"Contacts"),jw=os(v.jsx("path",{d:"M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m13.1-8.16c.01-.11.02-.22.02-.34 0-.12-.01-.23-.03-.34l.74-.58c.07-.05.08-.15.04-.22l-.7-1.21c-.04-.08-.14-.1-.21-.08l-.86.35c-.18-.14-.38-.25-.59-.34l-.13-.93c-.02-.09-.09-.15-.18-.15h-1.4c-.09 0-.16.06-.17.15l-.13.93c-.21.09-.41.21-.59.34l-.87-.35c-.08-.03-.17 0-.21.08l-.7 1.21c-.04.08-.03.17.04.22l.74.58c-.02.11-.03.23-.03.34 0 .11.01.23.03.34l-.74.58c-.07.05-.08.15-.04.22l.7 1.21c.04.08.14.1.21.08l.87-.35c.18.14.38.25.59.34l.13.93c.01.09.08.15.17.15h1.4c.09 0 .16-.06.17-.15l.13-.93c.21-.09.41-.21.59-.34l.87.35c.08.03.17 0 .21-.08l.7-1.21c.04-.08.03-.17-.04-.22zm-2.6.91c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m.42 3.93-.5-.87c-.03-.06-.1-.08-.15-.06l-.62.25c-.13-.1-.27-.18-.42-.24l-.09-.66c-.02-.06-.08-.1-.14-.1h-1c-.06 0-.11.04-.12.11l-.09.66c-.15.06-.29.15-.42.24l-.62-.25c-.06-.02-.12 0-.15.06l-.5.87c-.03.06-.02.12.03.16l.53.41c-.01.08-.02.16-.02.24 0 .08.01.17.02.24l-.53.41c-.05.04-.06.11-.03.16l.5.87c.03.06.1.08.15.06l.62-.25c.13.1.27.18.42.24l.09.66c.01.07.06.11.12.11h1c.06 0 .12-.04.12-.11l.09-.66c.15-.06.29-.15.42-.24l.62.25c.06.02.12 0 .15-.06l.5-.87c.03-.06.02-.12-.03-.16l-.52-.41c.01-.08.02-.16.02-.24 0-.08-.01-.17-.02-.24l.53-.41c.05-.04.06-.11.04-.17m-2.42 1.65c-.46 0-.83-.38-.83-.83 0-.46.38-.83.83-.83s.83.38.83.83c0 .46-.37.83-.83.83M4.74 9h8.53c.27 0 .49-.22.49-.49v-.02c0-.27-.22-.49-.49-.49H13c0-1.48-.81-2.75-2-3.45v.95c0 .28-.22.5-.5.5s-.5-.22-.5-.5V4.14C9.68 4.06 9.35 4 9 4s-.68.06-1 .14V5.5c0 .28-.22.5-.5.5S7 5.78 7 5.5v-.95C5.81 5.25 5 6.52 5 8h-.26c-.27 0-.49.22-.49.49v.03c0 .26.22.48.49.48M9 13c1.86 0 3.41-1.28 3.86-3H5.14c.45 1.72 2 3 3.86 3"}),"Engineering"),Iw=os(v.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),Lw=os(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),Nw=os(v.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");function NB({isOpen:e,toggle:t}){return v.jsxs("div",{id:"nav-icon2",className:e?"open":"",onClick:t,children:[v.jsx("span",{}),v.jsx("span",{}),v.jsx("span",{}),v.jsx("span",{}),v.jsx("span",{}),v.jsx("span",{})]})}function DB(){const[e,t]=S.useState(!1),n=()=>{document.body.style.overflow=e?"auto":"hidden",t(!e)},[r,o]=S.useState(0),i=()=>{const a=window.scrollY>100?20:0;o(a)};S.useEffect(()=>(window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}),[]);const s={verticalAlign:"sub"};return v.jsx("div",{className:"myheader",id:"nav",children:v.jsxs("div",{className:"head-container",children:[v.jsx("nav",{className:"mynavbar",style:window.innerWidth<798?{display:"none"}:{},children:v.jsxs("ul",{className:"navigation-links",children:[v.jsx("li",{children:v.jsxs(cn,{to:"",smooth:!0,duration:800,offset:-70,id:"home-button",onClick:()=>Bm.scrollToTop(),children:[v.jsx(Iw,{style:s}),v.jsx("div",{className:"help",children:"Home"})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"about",smooth:!0,duration:800,offset:r,id:"about-button",children:[v.jsx(Lw,{style:s}),v.jsx("div",{className:"help",children:"About"})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"projects",smooth:!0,duration:800,offset:20,id:"projects-button",children:[v.jsx(jw,{style:s}),v.jsx("div",{className:"help",children:"Projects"})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"experience",smooth:!0,duration:800,offset:20,id:"experience-button",children:[v.jsx(Nw,{style:s}),v.jsx("div",{className:"help",children:"Experience"})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"contact",smooth:!0,duration:800,offset:20,id:"contact-button",children:[v.jsx(Rw,{style:s}),v.jsx("div",{className:"help",children:"Contact"})]})})]})}),v.jsx("span",{className:"hamburger-icon",children:v.jsx(NB,{isOpen:e,toggle:n})}),v.jsx("div",{className:`mobile-navbar ${e?"open":""}`,children:v.jsxs("ul",{children:[v.jsx("li",{children:v.jsxs(cn,{to:"",smooth:!0,duration:800,offset:-70,id:"home-button",onClick:()=>{Bm.scrollToTop(),n()},children:[v.jsx("div",{className:"help",children:"Home"}),v.jsx(Iw,{style:s})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"about",smooth:!0,duration:800,offset:10,id:"about-button",onClick:n,children:[v.jsx("div",{className:"help",children:"About"}),v.jsx(Lw,{style:s})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"projects",smooth:!0,duration:800,offset:20,id:"projects-button",onClick:n,children:[v.jsx("div",{className:"help",children:"Projects"}),v.jsx(jw,{style:s})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"experience",smooth:!0,duration:800,offset:20,id:"experience-button",onClick:n,children:[v.jsx("div",{className:"help",children:"Experience"}),v.jsx(Nw,{style:s})]})}),v.jsx("li",{children:v.jsxs(cn,{to:"contact",smooth:!0,duration:800,offset:20,id:"contact-button",onClick:n,children:[v.jsx("div",{className:"help",children:"Contact"}),v.jsx(Rw,{style:s})]})}),v.jsx("li",{className:"resume-link-li",children:v.jsxs("a",{href:"https://drive.google.com/file/d/1OAndl2Vdgvz096IhcTUArfRPpG7oadOm/view?usp=sharing",className:"nav-resume-link",children:[v.jsx("div",{children:"Resume"})," ",v.jsx(VP,{style:s})]})})]})})]})})}function Dw({project:e}){const t=S.useRef(null),n=S.useRef(null),r=S.useRef(null),o=S.useRef(null),i=S.useRef(null),s=S.useRef(null),a=S.useRef(null);S.useEffect(()=>{if(window.innerWidth<798)return;const u=(f,p,h)=>{f&&f.current&&(f.current.style.transform=`translate(${p.clientX*h}px, ${p.clientY*h}px)`)},c=f=>{let p=0,h=0;do p+=f.offsetTop||0,h+=f.offsetLeft||0,f=f.offsetParent;while(f);return{top:p,left:h}},d=f=>{const p=f||window.event,h=(p.pageX-c(o.current).left-350/2)*-1/100,g=(p.pageY-c(o.current).top-350/2)*-1/100,b=[[1,0,0,-h*5e-5],[0,1,0,-g*5e-5],[0,0,1,1],[0,0,0,1]];u(n,p,.03),u(s,p,.03),u(i,p,.09),u(t,p,.05),u(r,p,.03),u(a,p,.05),o&&o.current&&(o.current.style.transform=`matrix3d(${b.toString()})`)};return document.addEventListener("mousemove",d),()=>{document.removeEventListener("mousemove",d)}},[]);const l=window.innerWidth<798?{maxWidth:"30px",maxHeight:"30px"}:{maxWidth:"50px",maxHeight:"50px"};return v.jsx("div",{className:"wrapper",children:v.jsxs("div",{className:"project-card",ref:o,children:[v.jsx("div",{className:"card__greenShine",ref:t}),v.jsx("div",{className:"card__thankyou",ref:s,children:v.jsx("div",{className:"project-stack",children:e.techStack.map((u,c)=>v.jsx("img",{src:u,alt:u,style:l},c))})}),v.jsx("img",{src:e.image,className:"project-image",alt:e.title})]})})}function Fw({project:e}){return v.jsxs("div",{className:"project-content",children:[v.jsx("div",{className:"project-title",children:e.title}),v.jsx("p",{className:"project-desc",children:e.description}),v.jsxs("div",{className:"project-btns",children:[v.jsx("a",{href:e.github,target:"_blank",rel:"noreferrer",children:v.jsx("button",{className:"project-button",children:"GitHub"})}),e.live&&v.jsx("a",{href:e.live,target:"_blank",rel:"noreferrer",children:v.jsx("button",{className:"project-button",children:"Live"})})]})]})}const FB=({project:e,index:t})=>{const n=S.useRef(null);return S.useEffect(()=>{const r=new IntersectionObserver(([o])=>{o.isIntersecting?o.target.classList.add("fadeIn"):o.target.classList.remove("fadeIn")});return n.current&&r.observe(n.current),()=>{n.current&&r.unobserve(n.current)}},[]),t%2===1||window.innerWidth<798?v.jsxs("div",{className:"project-cards project-card-div",ref:n,children:[v.jsx("div",{className:"project-card left",children:v.jsx(Dw,{project:e})}),v.jsx("div",{className:"project-card right",children:v.jsx(Fw,{project:e})})]}):v.jsxs("div",{className:"project-cards project-card-div",ref:n,children:[v.jsx("div",{className:"project-card left",children:v.jsx(Fw,{project:e})}),v.jsx("div",{className:"project-card right",children:v.jsx(Dw,{project:e})})]})},zB="/assets/proj1-C8UT7oe-.png",VB="/assets/aura-project-CFgog_w9.jpeg",HB="/assets/timer-NXi4WZaO.png",WB="/assets/auctions-DzVGnVD5.png",UB=()=>{const[e,t]=S.useState(null),n=[{id:1,key:1,title:"Aura: A Crypto Token",image:VB,description:"A fungible crypto token deployed on the Internet Computer blockchain. The ledger smart contract is built using Motoko, and React is used for an interactive user interface. Implemented authentication by integrating with Internet Identity, a native authentication technology which uses passkeys.",techStack:["https://images.squarespace-cdn.com/content/v1/54437e21e4b048c830a0cff1/1582790973231-Y6Y49DRMFQTDOL5F9T32/motoko-master-01.png?format=2500w","https://dwglogo.com/wp-content/uploads/2017/09/1460px-React_logo.png","https://brandlogos.net/wp-content/uploads/2021/09/bootstrap-logo.png"],github:"https://github.com/akshay-rajan/aura"},{id:2,key:2,title:"DeviceDash: Smartphone Recommendation Website",image:zB,description:"A smartphone recommendation website in Django. Implemented a Django REST API to fetch data from `gsmarena.com` by web scraping using BeautifulSoup.",techStack:["https://www.svgrepo.com/show/353657/django-icon.svg","https://cdn.iconscout.com/icon/free/png-256/free-python-3521655-2945099.png?f=webp&w=256"],github:"https://github.com/akshay-rajan/devicedash"},{id:3,key:3,title:"Timer for Chrome",image:HB,description:"A Timer Chrome Extension using JavaScript, designed to track time during browsing or tests. Enhanced proficiency in DOM manipulation, event handling and asynchronous operations. Studied Chrome extension architecture, including background scripts, content scripts, and popup pages.",techStack:["https://upload.wikimedia.org/wikipedia/commons/6/6a/JavaScript-logo.png","https://cdn.iconscout.com/icon/free/png-256/free-html-5-1-1175208.png","https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/CSS3_logo.svg/2048px-CSS3_logo.svg.png","https://upload.wikimedia.org/wikipedia/commons/8/87/Google_Chrome_icon_%282011%29.png"],github:"https://github.com/akshay-rajan/timer"},{id:4,key:4,title:"Auctions",image:WB,description:"An online auction platform in Django and Bootstrap, enabling seamless buying and selling of products. Implemented a bidding system, user authentication, and a user-friendly interface.",techStack:["https://www.svgrepo.com/show/353657/django-icon.svg","https://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Bootstrap_logo.svg/2560px-Bootstrap_logo.svg.png"],github:"https://github.com/akshay-rajan/commerce"}],r=i=>{t(e===i?null:i)},o=window.innerWidth<798?{cardContainer:{display:"block",width:"100%",height:"auto",zIndex:"1"}}:{cardContainer:{display:"flex",flexWrap:"wrap",width:"100%",height:"auto",zIndex:"1"}};return v.jsxs("div",{className:"project-wrapper",id:"projects",children:[v.jsx("div",{className:"project-header",children:v.jsx("h1",{className:"project-header__title",children:"Recent Projects"})}),v.jsx("div",{className:"project-cards",style:o.cardContainer,children:n.map(i=>v.jsx("div",{children:v.jsx(FB,{index:i.id,project:i,isActive:e===i.id,toggleProject:r})},i.key))})]})},BB="/assets/main-DCDyGC_w.png",GB=()=>{const e=S.useRef(null),t=()=>{if(e.current){const n=window.scrollY,r=window.innerWidth<798?240:350,o=500;if(n>r){const i=n-r,s=Math.max(0,Math.min(1,1-i/(o-r)));e.current.style.opacity=s,s==0?e.current.style.zIndex="-1":e.current.style.display="2"}else e.current.style.opacity=1}};return S.useEffect(()=>(window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)),[]),v.jsxs("div",{className:"main",id:"home",children:[v.jsx("div",{className:"bg"}),v.jsx("div",{className:"content first quarter",children:v.jsxs("div",{className:"name-container",children:[v.jsx("div",{className:"name-intro imgDiv",children:v.jsx("img",{src:BB,alt:"dp",className:"main-img",ref:e})}),v.jsxs("h1",{className:"name marquee",children:[v.jsx("span",{className:"m1",children:"SOFTWARE DEVELOPER "}),v.jsx("span",{className:"m2",children:"SOFTWARE DEVELOPER "})]})]})})]})};function KB(){const e="https://script.google.com/macros/s/AKfycbzks4jFjaFkVQEuvAHol0hJmw86jni2yFubSw-wmSZtgIViK-Kb7VwTFXWA0bfBXng/exec",t=S.useRef(null),[n,r]=S.useState(""),o=i=>{i.preventDefault();const s=t.current,a=s.querySelector("#send-msg");a.disabled=!0;const l=new FormData(s);for(let[u,c]of l.entries())console.log(`${u}: ${c}`);fetch(e,{method:"POST",body:l}).then(u=>{r("Message Sent Successfully!"),setTimeout(()=>{r("")},5e3),s.reset(),a.disabled=!1}).catch(u=>{console.error("Error!",u.message),a.disabled=!1})};return v.jsx("div",{className:"contact-form",children:v.jsxs("form",{ref:t,onSubmit:o,className:"contact-form-f",name:"submit-to-google-sheet",children:[v.jsx("div",{className:"form-group",children:v.jsx("input",{type:"text",id:"name",name:"Name",placeholder:"Name",className:"form-control",required:!0})}),v.jsx("div",{className:"form-group",children:v.jsx("input",{type:"email",id:"email",name:"Email",required:!0,placeholder:"Email",className:"form-control"})}),v.jsx("div",{className:"form-group",children:v.jsx("textarea",{id:"message",name:"Message",required:!0,placeholder:"Enter your message",className:"form-control"})}),v.jsx("div",{className:"form-group",children:v.jsx("button",{type:"submit",className:"btn btn-dark",id:"send-msg",children:"Send Message"})}),v.jsx("div",{id:"alert",children:n})]})})}var Fv={},YB=zn;Object.defineProperty(Fv,"__esModule",{value:!0});var HP=Fv.default=void 0,qB=YB(Gr()),XB=v;HP=Fv.default=(0,qB.default)((0,XB.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var zv={},QB=zn;Object.defineProperty(zv,"__esModule",{value:!0});var WP=zv.default=void 0;eG(S);var ZB=QB(Gr()),JB=v;function UP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(UP=function(r){return r?n:t})(e)}function eG(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=UP(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}WP=zv.default=(0,ZB.default)((0,JB.jsx)("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn");const tG="/assets/dp_icon-BmwZl1nG.jpg";function nG(){return window.innerWidth>=798&&v.jsx("div",{className:"link-container",children:v.jsxs("div",{className:"mylinks",children:[v.jsx("div",{className:"icon linkedin-icon",children:v.jsx(Vs,{content:"LinkedIn",placement:"bottom",color:"success",style:{color:"white"},children:v.jsx("a",{href:"https://www.linkedin.com/in/iamakshayrajan/",children:v.jsx("img",{src:"https://cdn-icons-png.flaticon.com/512/174/174857.png",alt:"linkedin"})})})}),v.jsx("div",{className:"icon github-icon",children:v.jsx(Vs,{content:"Github",placement:"bottom",color:"success",style:{color:"white"},children:v.jsx("a",{href:"https://github.com/akshay-rajan",children:v.jsx("img",{src:"https://cdn.pixabay.com/photo/2022/01/30/13/33/github-6980894_960_720.png",alt:"github"})})})}),v.jsx("div",{className:"icon leetcode-icon",children:v.jsx(Vs,{content:"LeetCode",placement:"bottom",color:"success",style:{color:"white"},children:v.jsx("a",{href:"https://leetcode.com/u/akshayrajan/",children:v.jsx("img",{src:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQG3Ir9453MFZjzGK8jeX9en0kjW8igj-FTNg&s",alt:"leetcode"})})})}),v.jsx("div",{className:"icon myicon",children:v.jsx(Vs,{content:"Resume",placement:"bottom",color:"success",style:{color:"white"},children:v.jsx("a",{href:"https://drive.google.com/file/d/1OAndl2Vdgvz096IhcTUArfRPpG7oadOm/view?usp=sharing",children:v.jsx("img",{src:tG,alt:"DP"})})})})]})})}var Vv={},rG=zn;Object.defineProperty(Vv,"__esModule",{value:!0});var BP=Vv.default=void 0,oG=rG(Gr()),iG=v;BP=Vv.default=(0,oG.default)((0,iG.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code");var Hv={},sG=zn;Object.defineProperty(Hv,"__esModule",{value:!0});var GP=Hv.default=void 0;uG(S);var aG=sG(Gr()),lG=v;function KP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(KP=function(r){return r?n:t})(e)}function uG(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=KP(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}GP=Hv.default=(0,aG.default)((0,lG.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var Wv={},cG=zn;Object.defineProperty(Wv,"__esModule",{value:!0});var YP=Wv.default=void 0,dG=cG(Gr()),fG=v;YP=Wv.default=(0,dG.default)((0,fG.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn");const pG=()=>v.jsxs("div",{className:"contact",id:"contact",children:[v.jsx(nG,{}),v.jsxs("div",{className:"contact-container",children:[v.jsx("div",{className:"contact-title",children:"Contact Me"}),v.jsxs("div",{className:"contact-row",children:[v.jsx("div",{className:"contact-col-1"}),v.jsx("div",{className:"contact-col-2"}),v.jsxs("address",{className:"contact-info",children:[v.jsx("div",{children:v.jsx("a",{href:"https://www.linkedin.com/in/iamakshayrajan/",children:v.jsx(WP,{})})}),v.jsx("div",{children:v.jsx("a",{href:"mailto:akshayrajan345@gmail.com",children:v.jsx(HP,{})})}),v.jsx("div",{children:v.jsx("a",{href:"https://www.google.com/maps/place/Thiruvananthapuram,+Kerala/",children:v.jsx(YP,{})})}),window.innerWidth<798&&v.jsxs(v.Fragment,{children:[v.jsx("div",{children:v.jsx("a",{href:"https://github.com/akshay-rajan",children:v.jsx(GP,{})})}),v.jsx("div",{children:v.jsx("a",{href:"https://leetcode.com/u/akshayrajan/",children:v.jsx(BP,{})})})]})]})]}),v.jsx(KB,{})]})]});function hG(e){return S.useEffect(()=>{const t=document.querySelector("#experience");if(t){let n=t.querySelectorAll(".job-title");t.addEventListener("mouseover",()=>{n.forEach(r=>{r.style.color="wheat"})}),t.addEventListener("mouseout",()=>{n.forEach(r=>{r.style.color="white"})})}}),v.jsxs("div",{className:"exp",id:"experience",children:[v.jsx("div",{className:"exp-title",children:"Experience"}),v.jsx("ul",{className:"exp-timeline",children:v.jsxs("li",{className:"exp-timeline-event",children:[v.jsx("label",{className:"exp-timeline-event-icon"}),v.jsxs("div",{className:"exp-timeline-event-copy",children:[v.jsx("p",{className:"exp-timeline-event-thumbnail",children:"May 2024 - Present"}),v.jsx("h3",{className:"job-title",children:"Software Engineer Intern"}),v.jsxs("h4",{children:["XTG Technologies, Kochi, Kerala",v.jsx("div",{className:"xtra",children:"(Remote)"})]}),v.jsxs("div",{children:[v.jsx("strong",{children:"Smart Contracts: Internet Computer"}),v.jsx("br",{}),v.jsxs("ul",{children:[v.jsx("li",{children:"Developed 100% on-chain decentralized applications on the Internet Computer blockchain using Motoko and React."}),v.jsx("li",{children:"Designed scalable smart contracts and integrated them with Internet Identity, an on-chain authenticaiton service."}),v.jsx("li",{children:"Implemented the front-ends using React."})]})]}),v.jsxs("div",{children:[v.jsx("strong",{children:"Smart Contracts: Solana"}),v.jsx("br",{}),v.jsxs("ul",{children:[v.jsx("li",{children:"Collaborated with team members to develop an application on the Solana blockchain."}),v.jsx("li",{children:"Used the Rust programming language along with the Anchor framework for the backend development."}),v.jsx("li",{children:"Wrote programs in TypeScript for testing Solana programs."})]})]})]})]})})]})}const mG=()=>{const e=S.useRef(null);return S.useEffect(()=>{const{random:t,atan2:n,cos:r,sin:o,hypot:i}=Math,s=200,a=e.current,l=a.getContext("2d"),u=document.body,c=[];u.style.backgroundColor="transparent";let d=a.width=window.innerWidth,f=a.height=window.innerHeight,p={x:d/2,y:f/2},h=0;function g(){}g.prototype={init(){return this.hue=h,this.alpha=0,this.size=this.random(1,5),this.x=this.random(0,d),this.y=this.random(0,f),this.velocity=this.size*.5,this.changed=null,this.changedFrame=0,this.maxChangedFrames=50,this},draw(){l.strokeStyle=`hsla(${Math.random()*10+50}, 100%, 50%, ${this.alpha})`,l.beginPath(),l.arc(this.x,this.y,this.size,0,2*Math.PI),l.stroke(),this.update()},update(){if(this.changed)this.alpha*=.92,this.size+=2,this.changedFrame++,this.changedFrame>this.maxChangedFrames&&this.reset();else if(this.distance(p.x,p.y)<50)this.changed=!0;else{let x=p.x-this.x,w=p.y-this.y,C=n(w,x);this.alpha+=.01,this.x+=this.velocity*r(C),this.y+=this.velocity*o(C),this.velocity+=.02}},reset(){this.init()},distance(x,w){return i(x-this.x,w-this.y)},random(x,w){return t()*(w-x)+x}};function b(){l.fillStyle="rgba(0,0,0, .2)",l.fillRect(0,0,d,f),c.forEach(x=>{x.draw()}),h+=.3,window.requestAnimationFrame(b)}function m(x){p.x=x.touches?x.touches[0].clientX:x.clientX,p.y=x.touches?x.touches[0].clientY:x.clientY}function y(){for(let x=0;x{let w=new g().init();c.push(w)},x*10);a.addEventListener("mousemove",m),a.addEventListener("touchmove",m),a.addEventListener("mouseleave",()=>{p={x:d/2,y:f/2}}),window.addEventListener("resize",()=>{d=a.width=window.innerWidth,f=a.height=window.innerHeight,p={x:d/2,y:f/2}}),b()}return y(),()=>{a.removeEventListener("mousemove",m),a.removeEventListener("touchmove",m),a.removeEventListener("mouseleave",()=>{p={x:d/2,y:f/2}}),window.removeEventListener("resize",()=>{d=a.width=window.innerWidth,f=a.height=window.innerHeight,p={x:d/2,y:f/2}})}},[]),v.jsx("canvas",{className:"background-animation",ref:e})};function gG(){const[e,t]=S.useState(!0);return S.useEffect(()=>{const n=document.getElementById("preloader");n&&setTimeout(()=>{n.style.display="none",t(!1)},1e3)},[]),v.jsx(v.Fragment,{children:!e&&v.jsxs(v.Fragment,{children:[v.jsx(mG,{}),v.jsx(DB,{}),v.jsx(GB,{}),v.jsx(jW,{}),v.jsx(UB,{}),v.jsx(hG,{}),v.jsx(pG,{}),v.jsx("div",{style:{color:"wheat",zIndex:20,fontSize:10},children:"Last Updated: 08/2024"})]})})}Yp.createRoot(document.getElementById("root")).render(v.jsx(ze.StrictMode,{children:v.jsx(gG,{})})); diff --git a/assets/index-MQtsnj8L.css b/assets/index-MQtsnj8L.css deleted file mode 100644 index 8933790..0000000 --- a/assets/index-MQtsnj8L.css +++ /dev/null @@ -1 +0,0 @@ -@import"https://fonts.googleapis.com/css?family=Open+Sans:300,700";#root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em}.read-the-docs{color:#888}#about{margin:0;padding:0}.close-btn{position:absolute;top:20;left:90%;color:#fff;cursor:pointer}.svg-edu{display:flex}.achievements-list{display:flex;flex-wrap:wrap;justify-content:center}.achievement-card{margin:5px;border-radius:0;width:100%;overflow:hidden;position:relative;cursor:pointer;transform-style:preserve-3d;perspective:1000px;transition:all .5s cubic-bezier(.23,1,.32,1)}.achievement-card:hover{transform:rotateY(10deg) rotateX(10deg) scale(1.05);box-shadow:0 10px 20px #0003}.achievement-card:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;transition:transform .5s cubic-bezier(.23,1,.32,1);z-index:1}.achievement-card:hover:before{transform:translate(-100%)}.achievement-card:after{content:"";position:absolute;top:0;right:0;width:100%;height:100%;transition:transform .5s cubic-bezier(.23,1,.32,1);z-index:1}.achievement-card:hover:after{transform:translate(100%)}.certification-card{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;font-family:Times New Roman,Times,serif;font-weight:700}.card{overflow:hidden;position:relative;height:160px;width:210px;text-align:center;margin:5px;padding:3px}.card-content{padding:5px 5px 0;margin:0;overflow:visible}.card__side{height:auto;-webkit-transition:all .8s ease;transition:all .8s ease;position:absolute;top:0;left:0;width:100%;height:100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;border-radius:3px;overflow:hidden;-webkit-box-shadow:0 1.5rem 4rem rgba(0,0,0,.15);box-shadow:0 1.5rem 4rem #00000026}.card__side--front-1{background-image:url(/assets/certificate_bg-d5f2R32O.png);background-size:cover;display:flex;flex-wrap:wrap;justify-content:center;align-items:center}.card__side--back{margin:0;padding:0;-webkit-transform:rotateY(180deg);transform:rotateY(180deg);display:flex;flex-wrap:wrap;justify-content:center;align-items:center}.card__side--back-1{background:#fff}.card:hover .card__side--front-1{-webkit-transform:rotateY(-180deg);transform:rotateY(-180deg)}.card:hover .card__side--back{-webkit-transform:rotateY(0);transform:rotateY(0)}@media (max-width: 798px){.card{height:180px;width:250px;margin:2px 2px 2px 20px;padding:3px;font-size:12px}.close-btn{position:absolute;top:20;left:80%;color:#fff;cursor:pointer}.svg-edu{display:block}}.skill-container{display:block;font:monospace;position:relative;width:100%;min-height:70vh;margin:10px;padding:10px}.pie-div{flex:7;width:100%;max-width:400px}.pie-div svg{overflow:visible}.pie-info{flex:5;display:flex;width:100%;color:#fff;font-size:15px;margin:15px 35px 0 0;opacity:.8;text-align:left;padding:1rem;max-height:330px;border-radius:10px}@media screen and (max-width: 798px){.pie-div{display:flex;justify-content:center;align-items:center;width:95vw}}.myheader{color:#fff;padding:4px 0;position:sticky;top:0;width:100%;z-index:2}.myheader:hover{opacity:1}.head-container{display:flex;justify-content:space-between;align-items:center;padding:0 2px 0 0}.mynavbar{display:flex;justify-content:space-between;align-items:center;opacity:1;background-color:#0000004d;border-radius:20px;height:40px;width:100%;padding:0 2px 0 0}.navigation-links{list-style:none;display:flex;gap:20px;z-index:100}.navigation-links li{margin:0 10px;cursor:pointer}.navigation-links li .help{display:inline-flex;font-size:14px;margin:5px}.navigation-links a{color:#fff;text-decoration:none;font-size:18px}.navigation-links a:hover{color:wheat}.hamburger-icon{display:none}.scrolled.myheader{position:fixed;top:0;right:0;height:100%;width:auto;display:flex;align-items:center;justify-content:right;z-index:2}.scrolled .head-container{display:flex;flex-direction:column;align-items:center}.scrolled .mynavbar{display:flex;flex-direction:column;align-items:center;margin:0 10px 0 0;height:auto;background-color:transparent}.scrolled .navigation-links{list-style:none;padding:0;display:flex;flex-direction:column;width:50px;overflow:visible;z-index:3}.scrolled .navigation-links li{display:flex;flex-direction:column;margin:30px 0}.scrolled .experience-button{display:flex}.scrolled .navigation-links li .help{order:-1;opacity:0;color:wheat;vertical-align:top;font-size:12px;padding:4px;margin-right:10px}.scrolled .navigation-links a svg:hover+.help{opacity:1}.scrolled .navigation-links a{display:flex;align-items:right;justify-content:right;text-decoration:none;color:#000;font-size:1.2rem}.scrolled .navigation-links a:hover{color:tan}.light .navigation-links a{color:wheat}.light .navigation-links a:hover{color:tan;text-decoration:none}.mobile-navbar{display:none}@media screen and (max-width: 798px){.mynavbar{display:none}.hamburger-icon{display:block;z-index:3;position:fixed;top:0;right:0;margin-right:10px;margin-top:5px;padding:0}.mobile-navbar.open{display:flex;justify-content:center;align-items:center;position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;z-index:2;background-color:#000000e6}.mobile-navbar.open ul{list-style:none;padding-left:0;padding-right:0}.mobile-navbar.open ul li a{display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;margin:20px 0;width:250px;height:50px;border-radius:15px;background-color:wheat;color:#000}.mobile-navbar.open ul li .nav-resume-link{display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;margin:20px 0;width:250px;height:50px;border-radius:15px;background-color:#1a1a1a;color:wheat}.mobile-navbar.open ul li .nav-resume-link:hover{border:1px solid wheat}.mobile-navbar.open div{display:none;display:inline-flex;width:0;margin:10px;padding:0;overflow:hidden;white-space:nowrap;animation:revSlideIn 1s forwards}.mobile-navbar.open ul li .nav-resume-link div{width:auto;animation:revSlideIn 1s forwards}@keyframes revSlideIn{0%{width:0}to{width:70%}}.resume-link-li{justify-content:center;align-items:center;margin:20px 0;width:250px;height:50px;border-radius:15px;background-color:#1a1a1a;color:wheat}}#nav-icon2{width:35px;height:25px;position:relative;margin:15px auto;-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0);-webkit-transition:.5s ease-in-out;-moz-transition:.5s ease-in-out;-o-transition:.5s ease-in-out;transition:.5s ease-in-out;cursor:pointer}#nav-icon2 span{display:block;position:absolute;height:5px;width:50%;background:#fff;opacity:1;-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0);-webkit-transition:.25s ease-in-out;-moz-transition:.25s ease-in-out;-o-transition:.25s ease-in-out;transition:.25s ease-in-out}#nav-icon2 span:nth-child(2n){left:50%;border-radius:0 6px 6px 0}#nav-icon2 span:nth-child(odd){left:0;border-radius:6px 0 0 6px}#nav-icon2 span:nth-child(1),#nav-icon2 span:nth-child(2){top:0}#nav-icon2 span:nth-child(3),#nav-icon2 span:nth-child(4){top:12px}#nav-icon2 span:nth-child(5),#nav-icon2 span:nth-child(6){top:24px}#nav-icon2.open span:nth-child(1),#nav-icon2.open span:nth-child(6){-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}#nav-icon2.open span:nth-child(2),#nav-icon2.open span:nth-child(5){-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}#nav-icon2.open span:nth-child(1){left:3px;top:5px}#nav-icon2.open span:nth-child(2){left:calc(50% - 3px);top:5px}#nav-icon2.open span:nth-child(3){left:-50%;opacity:0}#nav-icon2.open span:nth-child(4){left:100%;opacity:0}#nav-icon2.open span:nth-child(5){left:3px;top:21px}#nav-icon2.open span:nth-child(6){left:calc(50% - 3px);top:21px}#home{margin:0;padding:0}.content{position:relative;z-index:1}.marquee{font-family:Times New Roman,Times,serif;margin:0 auto;white-space:nowrap;overflow:hidden;color:#fff;opacity:.9}.marquee span{display:inline-block;color:#fff;font-size:200px;height:60vh;animation:marquee 12s linear infinite;padding:40px;z-index:4;margin-top:55px}.m1{display:inline-block;padding:0 20px 0 0}.m2{animation-delay:14s;padding:0 400px 0 0}@keyframes marquee{0%{transform:translate(0)}to{transform:translate(-100%)}}.dg .cr>div{display:flex}.dg .cr>div>.c,.dg .cr>div>.property-name{float:none;clear:none}.dg .cr>div>.property-name{width:100px}.dg .cr>div>.c{display:flex;flex-direction:row-reverse;flex-grow:1;width:100%}.dg .cr>div>.c>.slider{float:none;width:100%;margin-left:0}.dg .cr>div>.c input[type=text]{width:40px;margin-left:6px}.name-intro.imgDiv{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;margin:0;padding:0;z-index:2;overflow:hidden;opacity:1}.main-img{height:90vh;position:fixed;bottom:0}@media screen and (max-width: 798px){#home{height:70vh}.name-container{width:99vw;display:flex;height:50vh}.marquee{text-align:top;flex-direction:column;margin:0;padding:0}.marquee span{display:inline-block;color:#fff;font-size:250px;height:60vh;width:auto;animation:marquee 12s linear infinite;padding:10px 40px 40px;z-index:4;margin-top:20px}.name-intro.imgDiv{position:fixed;display:flex;justify-content:center;align-items:baseline;width:100vw;margin:0;padding:0;z-index:2;overflow:hidden}.main-img{position:relative;width:100vw;margin-top:25vh;height:auto}}#contact{display:flex;flex-wrap:wrap;position:relative;z-index:1}.icon{display:inline-block}.contact-container{flex:1;color:#fff;text-align:right;margin-right:3vw;padding:20px;min-height:70vh;letter-spacing:.05em;font-size:1em;font-weight:300;line-height:1.5}.contact-title{font-size:2.5em;font-weight:500;line-height:1.1;margin:0}.contact-info{display:flex;justify-content:flex-end;align-items:center;margin:1em;text-align:right}.contact-info div{margin:0;width:60px}.contact-info a{color:wheat;text-decoration:none}.contact-info a:hover{color:tan;text-decoration:none}.contact-form{display:flex;justify-content:flex-end;align-items:center;padding:0;text-align:right}.contact-form-f{width:40vw;margin-top:20px}.contact-form-f div{margin:10px 0;color:#fff}.contact-form-f input,.contact-form-f textarea{width:90%;padding:10px;border:1px solid white;border-radius:5px;background-color:transparent;color:#fff}.contact-form-f input::placeholder,.contact-form-f textarea::placeholder{color:#fff;font-family:Arial,Helvetica,sans-serif}.contact-form-f input:focus::placeholder,.contact-form-f textarea:focus::placeholder{color:#000}.contact-form-f textarea{height:150px}.contact-form-f button{padding:10px 20px;border:1px solid transparent;background-color:wheat;color:#000;cursor:pointer}.contact-form-f button:hover{background-color:#000;border:1px solid wheat;color:wheat}.contact-form-f input:focus,.contact-form-f textarea:focus{color:#000;box-shadow:none;background-color:wheat}.contact-form-f button:disabled{background-color:gray;color:#000;border:1px solid transparent;cursor:not-allowed}#alert{height:10px;color:green}.icon img{width:50px;height:50px;margin:20px;border-radius:20%}.link-container{flex:1;width:auto;display:flex;justify-content:center;align-items:center}.mylinks{background-color:#ffffff0d;color:#fff;margin-top:2vh;margin-bottom:2vh;width:100%;height:50%;display:flex;justify-content:center;align-items:center}@media screen and (max-width: 798px){#contact{margin-top:50px}.contact-container{text-align:center;margin:0;padding:0}.contact-info,.contact-form{justify-content:center;text-align:center}.contact-form-f{width:90vw}.contact-form-f input,.contact-form-f textarea{width:90%}.contact-form-f button{width:95%}.icon img{width:30px;height:30px;margin:10px}.link-container,.mylinks{width:100%}}:root{--exp-color-1: white;--exp-color-2: white;--exp-color-3: wheat;--exp-color-4: black}#experience{position:relative;color:var(--exp-color-1);text-align:left;margin:30px;padding:20px;min-height:70vh;background-color:var(--exp-color-4);font-size:1em;font-weight:300;line-height:1.5;letter-spacing:.05em;z-index:1}.exp-title{margin:1em;font-size:2.5em;font-weight:500;text-align:left;line-height:1.1}.xtra{display:inline-block;font-size:small;font-weight:100;padding-left:10px}.exp-timeline{margin:4em auto;position:relative;max-width:46em;background-color:var(--exp-color-4);list-style:none}.exp-timeline:before{background-color:var(--exp-color-1);content:"";margin-left:40px;position:absolute;top:0;left:2em;width:2px;height:100%}.exp-timeline-event{position:relative}.exp-timeline-event:hover .exp-timeline-event-icon{transform:rotate(-45deg);background-color:var(--exp-color-3)}.exp-timeline-event:hover .exp-timeline-event-thumbnail{box-shadow:inset 40em 0 0 0 var(--exp-color-1)}.exp-timeline-event:hover .job-title{color:var(--exp-color-3)}.exp-timeline-event-copy{padding:25px 2em 2em;position:relative;top:-1.875em;left:4em;width:80%}.exp-timeline-event-copy h3{font-size:1.75em}.exp-timeline-event-copy h4{font-size:1.2em;margin-bottom:1.2em}.exp-timeline-event-copy strong{font-weight:700}.exp-timeline-event-copy p:not(.exp-timeline-event-thumbnail){padding-bottom:1.2em}.exp-timeline-event-icon{transition:transform .2s ease-in;transform:rotate(45deg);background-color:var(--exp-color-3);outline:10px solid var(--exp-color-4);display:block;margin:.5em .5em .5em -.5em;position:absolute;top:0;left:2em;width:1em;height:1em}.exp-timeline-event-thumbnail{transition:box-shadow .5s ease-in .1s;color:var(--exp-color-4);font-size:.75em;background-color:var(--exp-color-3);box-shadow:inset 0 0 #ef795a;display:inline-block;margin-bottom:1.2em;padding:.25em 1em .2em}@media screen and (max-width: 798px){#experience{color:var(--exp-color-1);text-align:left;margin:0;padding:5px 5px 5px 0;min-height:70vh;width:90%;overflow:hidden}.exp-title{margin:1em;font-size:2.5em;font-weight:500;text-align:left;line-height:1.1}.job-title{margin:0}.xtra{display:inline-block;font-size:small;font-weight:100;padding-left:10px}.exp-timeline{margin:0;padding:0;position:relative;background-color:var(--exp-color-4);list-style:none}.exp-timeline:before{background-color:var(--exp-color-1);content:"";margin-left:0;position:absolute;top:0;left:2em;width:2px;height:100%}.exp-timeline-event{position:relative}.exp-timeline-event h4{margin:0;padding:0}.exp-timeline-event:hover .exp-timeline-event-icon{transform:rotate(-45deg);background-color:var(--exp-color-3)}.exp-timeline-event:hover .exp-timeline-event-thumbnail{box-shadow:inset 40em 0 0 0 var(--exp-color-1)}.exp-timeline-event-copy{padding:25px 0 0;position:relative;top:-1.875em;left:4em}.exp-timeline-event-copy h3{font-size:1.75em}.exp-timeline-event-copy h4{font-size:1.2em;margin-bottom:1.2em}.exp-timeline-event-copy strong{font-weight:700;padding-right:5px}.exp-timeline-event-copy div ul li{display:flex;padding-right:5px;flex-wrap:wrap;list-style:square}.exp-timeline-event-copy p:not(.exp-timeline-event-thumbnail){padding-bottom:1.2em}.exp-timeline-event-icon{transition:transform .2s ease-in;transform:rotate(45deg);background-color:var(--exp-color-3);outline:10px solid var(--exp-color-4);display:block;margin:.5em .5em .5em -.5em;position:absolute;top:0;left:2em;width:1em;height:1em}.exp-timeline-event-thumbnail{transition:box-shadow .5s ease-in .1s;color:var(--exp-color-4);font-size:.75em;background-color:var(--exp-color-3);box-shadow:inset 0 0 #ef795a;display:inline-block;margin-bottom:1.2em;padding:.25em 1em .2em}}:root{font-family:Arial,Helvetica,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#000;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{color:#fff;background-color:#000;transition:background-color 1s;max-width:100%;overflow-x:hidden;margin:0!important;place-items:center;min-width:320px;min-height:100vh;scroll-behavior:smooth}a{font-weight:500;color:wheat;text-decoration:inherit}a:hover{color:#535bf2}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:wheat}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.background-animation{position:fixed;overflow:hidden;top:0;left:0;width:100vw;height:100vh;z-index:-1;margin:0;padding:0}@media screen and (max-width: 798px){#root{margin:0;padding:2px}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}#projects{background-color:"transparent"}#projects.focused{background-color:"transparent";color:#fff}.project-wrapper{margin:1em}.project-header{padding:30px 30px 0;text-align:center}.project-header__title{margin:1em;font-size:2.5em;text-align:left;font-weight:500;line-height:1.1}.project-cards{display:flex;flex-wrap:wrap;opacity:1}.project-card{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;margin:0 0 50px;z-index:1}.project-card-div{opacity:0;transition:opacity 1.2s}.project-card-div.fadeIn{opacity:1}.project-card.left{flex:1;float:left;display:block;text-align:right}.project-card.right{flex:1;width:100%;height:100%;float:right;display:block;text-align:left}.project-image{width:500px;pointer-events:none;height:auto}.wrapper,.project-card{position:relative;overflow:hidden}.card__year,.card__cometOuter,.card__circle,.card__smallCircle,.card__orangeShine,.card__greenShine,.card__thankyou,.card__outer-year{position:absolute;pointer-events:none}.card__greenShine{background-image:none;background-repeat:no-repeat;background-size:cover;left:20%;top:0;bottom:0;width:400px;z-index:1}.card__thankyou{font-family:Oswald,sans-serif;position:absolute;text-transform:uppercase;font-weight:100;left:33%;bottom:20%;z-index:2;font-size:30px;color:#000;text-align:center}.project-stack{display:flex;flex-wrap:wrap;justify-content:center;align-items:center}.project-stack img{padding:10px}.project-title{font-size:1.5em;font-weight:500;line-height:1.1;margin:20px}.project-desc{margin:20px}.project-btns{margin:10px}.project-button{background-color:wheat;color:#000;margin:10px;border:1px solid black}.project-button:hover{background-color:#000;color:wheat}.project-button:after{background-color:#000;color:wheat;border:1px solid wheat}.focused .navigation-links{color:#fff!important}@media screen and (max-width: 798px){.project-cards{display:block;max-width:100%;overflow:hidden}.wrapper img{width:100%}.card__thankyou{left:0;position:inherit}.project-header__title{margin:1em 0 .5em;font-size:2.5em;text-align:left;font-weight:500;line-height:1.1}} diff --git a/index.html b/index.html index 4c603c4..4389da3 100644 --- a/index.html +++ b/index.html @@ -28,8 +28,8 @@ Akshay Rajan - - + +