@sankhyatronics/sankhya-ui 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,21 +1,44 @@
1
- (function($,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react"),require("react-router")):typeof define=="function"&&define.amd?define(["exports","react","react-router"],j):($=typeof globalThis<"u"?globalThis:$||self,j($["react-jp-ui"]={},$.React,$.ReactRouter))})(this,(function($,j,Bn){"use strict";var Ji=document.createElement("style");Ji.textContent=`@layer sankhya-ui{:root{--color-primary-50: #f0f9ff;--color-primary-100: #e0f2fe;--color-primary-200: #bae6fd;--color-primary-300: #7dd3fc;--color-primary-400: #38bdf8;--color-primary-500: #0ea5e9;--color-primary-600: #0284c7;--color-primary-700: #0369a1;--color-primary-800: #075985;--color-primary-900: #0c4a6e;--color-primary-950: #082f49;--color-primary: #ffffff;--text-xs: .75rem;--text-sm: .875rem;--text-base: 1rem;--text-lg: 1.125rem;--text-xl: 1.25rem;--text-2xl: 1.5rem;--text-3xl: 1.875rem;--text-4xl: 2.25rem;--text-5xl: 3rem;--text-6xl: 3.75rem;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--font-weight-extrabold: 800}}.bento-grid-section{padding:80px 24px;background-color:var(--color-primary)}.bento-grid-container{max-width:1200px;margin:0 auto}.bento-grid-header{text-align:center;margin-bottom:48px}.bento-grid-title{margin:0 0 16px}.bento-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:minmax(240px,auto);gap:24px}.bento-card{background-color:var(--color-primary);border:1px solid var(--color-primary-100);border-radius:24px;overflow:hidden;position:relative;display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;text-decoration:none}.bento-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px -10px var(--color-primary-800);z-index:1}.bento-card-image-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.bento-card-image{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}.bento-card:hover .bento-card-image{transform:scale(1.05)}.bento-card-image-wrapper:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,#0000,#0009)}.bento-card-content{position:relative;z-index:1;margin-top:auto;padding:24px;display:flex;flex-direction:column;gap:16px}.bento-card:not(:has(.bento-card-image-wrapper)){background-color:var(--color-primary-950)}.bento-card:has(.bento-card-image-wrapper) .bento-card-title,.bento-card:has(.bento-card-image-wrapper) .bento-card-description,.bento-card:has(.bento-card-image-wrapper) .bento-card-icon{color:var(--color-primary)}.bento-card-icon{width:40px;height:40px;border-radius:10px;background-color:var(--color-primary-100);color:var(--color-primary-600);display:flex;align-items:center;justify-content:center}.bento-card:has(.bento-card-image-wrapper) .bento-card-icon{background-color:var(--color-primary-900);color:var(--color-primary-100);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.bento-card-text{border-radius:8px;padding:16px;color:var(--color-primary)}.bento-card-title{font-size:1rem}.bento-card-description{font-size:.875rem}.col-span-1{grid-column:span 1}.col-span-2{grid-column:span 2}.col-span-3{grid-column:span 3}.col-span-4{grid-column:span 4}.row-span-1{grid-row:span 1}.row-span-2{grid-row:span 2}@media(max-width:1024px){.bento-grid{grid-template-columns:repeat(2,1fr)}.col-span-3,.col-span-4{grid-column:span 2}}@media(max-width:640px){.bento-grid{grid-template-columns:1fr}.col-span-1,.col-span-2,.col-span-3,.col-span-4{grid-column:span 1}}.card{background-color:var(--color-primary);border-radius:12px;overflow:hidden;position:relative;transition:all .3s ease;border:1px solid var(--color-primary-100)}.card.theme-inverted{background-color:var(--color-primary-900);border-color:var(--color-primary-800)}.card-bordered{border:1px solid var(--color-primary-200)}.card-elevation-sm{box-shadow:0 1px 2px #0000000d}.card-elevation-md{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.card-elevation-lg{box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.card-hoverable:hover{transform:translateY(-4px);box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;border-color:var(--color-primary-300)}.card-padding-none{padding:0}.card-padding-sm{padding:16px}.card-padding-md{padding:24px}.card-padding-lg{padding:32px}@keyframes headerSlideDown{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes headerFadeIn{0%{opacity:0}to{opacity:1}}.header{display:flex;justify-content:space-between;align-items:center;width:100%;padding:1rem;position:relative;background-color:var(--color-primary);z-index:1000}.header.header-sticky{position:fixed;top:0;left:0;right:0;box-shadow:0 2px 8px #0000001a}.header-logo-wrapper{display:flex;align-items:center;flex-shrink:0}.header-logo-img{width:auto;height:auto;max-height:48px}.header-toggle{display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;padding:.5rem;font-size:1.5rem;color:var(--color-primary-950);z-index:1002}.header-nav-container{position:fixed;inset:0;background-color:var(--color-primary);display:none;flex-direction:column;padding:5rem 1.5rem 2rem;gap:2rem;z-index:1001;overflow-y:auto}.header-nav-container.active{display:flex;animation:headerFadeIn .3s ease}.header-nav{display:flex;flex-direction:column;gap:1.5rem}.header-utility{display:flex;flex-direction:column;gap:1.5rem;padding-top:1.5rem;border-top:1px solid var(--color-primary-200)}@media(min-width:768px){.header{padding:1rem 2rem}.header-toggle{display:none}.header-nav-container{position:static;display:flex;flex-direction:row;flex-grow:1;padding:0;margin-left:4rem;gap:1rem;background:none;overflow:visible}.header-nav{flex-direction:row;flex-grow:1;gap:1.5rem}.header-utility{flex-direction:row;padding-top:0;margin-left:1.5rem;padding-left:1.5rem;border-top:none;border-left:1px solid var(--color-primary-200)}}.btn{padding:12px 24px;border-radius:4px;display:inline-block;border:none;cursor:pointer;font-family:inherit;text-decoration:none;text-align:center;transition:all .2s ease}.btn-outline{background-color:transparent;border:2px solid currentColor}.delay-100{transition-delay:.1s}.delay-200{transition-delay:.2s}.delay-300{transition-delay:.3s}.delay-400{transition-delay:.4s}.delay-500{transition-delay:.5s}.duration-fast{transition-duration:.2s}.duration-normal{transition-duration:.3s}.duration-slow{transition-duration:.5s}.ease-in{transition-timing-function:ease-in}.ease-out{transition-timing-function:ease-out}.ease-in-out{transition-timing-function:ease-in-out}.will-change-opacity{will-change:opacity}.will-change-transform{will-change:transform}.fade-in{opacity:0;transition:opacity .3s ease-out}.fade-in.visible{opacity:1}.slide-up{opacity:0;transform:translateY(20px);transition:opacity .3s ease-out,transform .3s ease-out}.slide-up.visible{opacity:1;transform:translateY(0)}.hidden{display:none}.visible{display:block}.invisible{visibility:hidden}.hover-lift:hover{transform:translateY(-2px);transition:transform .2s ease}.hover-scale:hover{transform:scale(1.05);transition:transform .2s ease}.active-scale:active{transform:scale(.98)}.section-title{font-size:var(--text-4xl, 2.25rem);font-weight:var(--font-weight-bold, 700);color:var(--color-primary-950, #011d41);margin-bottom:1rem;line-height:1.2}.section-subtitle{font-size:var(--text-lg, 1.125rem);color:var(--color-primary-600, #2f87fd);line-height:1.6;margin-bottom:2rem}.hero-title{font-size:1.5rem;font-weight:700;line-height:1.2;margin-bottom:1rem}.hero-subtitle{font-size:.875rem;line-height:1.6;margin-bottom:1.5rem}@media(min-width:640px){.hero-title{font-size:1.875rem}.hero-subtitle{font-size:1rem}}@media(min-width:768px){.hero-title{font-size:2.25rem}.hero-subtitle{font-size:1.125rem}}@media(min-width:1024px){.hero-title{font-size:3rem}.hero-subtitle{font-size:1.25rem}}@media(min-width:1280px){.hero-title{font-size:3.75rem}}.card-title{font-size:var(--text-xl, 1.25rem);font-weight:var(--font-weight-semibold, 600);color:var(--color-primary-950, #011d41);margin-bottom:.5rem}.card-description{font-size:var(--text-sm, .875rem);color:var(--color-primary-600, #2f87fd);line-height:1.5}.theme-inverted .section-title,.theme-inverted .card-title,.theme-inverted .hero-title{color:var(--color-primary, #f0f7ff)}.theme-inverted .section-subtitle,.theme-inverted .card-description,.theme-inverted .hero-subtitle{color:var(--color-primary-300, #93c5fd)}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.items-start{align-items:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.p-none{padding:0}.p-small{padding:1rem}.p-medium{padding:1.5rem}.p-large{padding:2rem}@media(min-width:768px){.p-small{padding:1.5rem}.p-medium{padding:2rem}.p-large{padding:3rem}}@media(min-width:1024px){.p-medium{padding:3rem}.p-large{padding:4rem}}.menu-item{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;font-size:var(--text-sm);text-decoration:none;border-radius:6px;transition:all .15s ease;box-sizing:border-box}.menu-item.active{background-color:var(--color-primary-100);color:var(--color-primary-900);border-left:4px solid var(--color-primary-600)}.menu-item-icon{flex-shrink:0;margin-top:2px}.menu-item-icon svg{width:16px;height:16px}.menu-item-content{flex:1;min-width:0}.menu-item-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.menu-item-title{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-item-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;font-size:var(--text-xs);font-weight:500;border-radius:9999px;flex-shrink:0}.menu-item-description{margin-top:4px;font-size:var(--text-xs);display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}.menu-item.compact{padding:8px 12px;gap:8px}.menu-item.compact .menu-item-icon svg{width:14px;height:14px}.menu-item.compact .menu-item-title,.menu-item.compact .menu-item-description{font-size:var(--text-xs)}.menu-item.no-description{align-items:center}.menu-item.no-description .menu-item-icon{margin-top:0}.menu-grid-container{width:100%}.menu-grid{display:grid;gap:12px}.menu-grid.columns-1{grid-template-columns:repeat(1,1fr)}.menu-grid.columns-2{grid-template-columns:repeat(2,1fr)}.menu-grid.columns-3{grid-template-columns:repeat(3,1fr)}.menu-grid.columns-4{grid-template-columns:repeat(4,1fr)}@media(max-width:768px){.menu-grid.columns-2,.menu-grid.columns-3,.menu-grid.columns-4{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){.menu-grid.columns-1,.menu-grid.columns-2,.menu-grid.columns-3,.menu-grid.columns-4{grid-template-columns:1fr}}.menu-grid-item{display:flex;flex-direction:column;border-radius:8px;position:relative;overflow:hidden;transition:all .2s ease}.menu-grid-item.regular{padding:16px}.menu-grid-item.compact{padding:12px}.menu-grid-item:hover{transform:translateY(-2px)}.menu-grid-link{display:flex;flex-direction:column;text-decoration:none;width:100%;height:100%;gap:8px}.menu-grid-badge{position:absolute;top:2px;right:8px;font-size:.5rem;padding:2px 8px;border-radius:9999px;font-weight:500;z-index:1;background-color:var(--color-primary-950);color:var(--color-primary)}.menu-grid-header{display:flex;align-items:center;gap:12px;width:100%}.menu-grid-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;transition:background-color .2s ease;flex-shrink:0;padding:0;margin-bottom:0}.menu-grid-icon svg{width:18px;height:18px}.menu-grid-title{font-size:var(--text-sm);font-weight:500;transition:color .2s ease;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:0}.menu-grid-description{font-size:var(--text-xs);display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4;transition:color .2s ease}.menu-grid-children{padding-top:12px;margin-top:12px}.menu-grid-children>*{margin:4px 0}.menu-grid-item.compact .menu-grid-header{gap:8px}.menu-grid-item.compact .menu-grid-icon{width:24px;height:24px}.menu-grid-item.compact .menu-grid-icon svg{width:14px;height:14px}.menu-grid-item.compact .menu-grid-title,.menu-grid-item.compact .menu-grid-description{font-size:var(--text-xs)}.menu-grid-item:has(.menu-grid-icon):not(:has(.menu-grid-title)) .menu-grid-header{justify-content:center}.menu-grid-item:has(.menu-grid-title):not(:has(.menu-grid-icon)) .menu-grid-header{justify-content:flex-start}@media(max-width:480px){.menu-grid-header{gap:8px}.menu-grid-icon{width:28px;height:28px}.menu-grid-icon svg{width:16px;height:16px}}.hero-image{background-position:center;background-repeat:no-repeat;background-size:cover;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;width:100%}.hero-text{display:flex;flex-direction:column;gap:20px;text-align:center;z-index:2;position:relative;width:80%;margin:0 auto}.hero-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,#0006,#0003,#0006);z-index:1}.hero-text-primary{color:var(--color-primary)}.hero-actions{display:flex;flex-direction:column;gap:1rem;justify-content:center;align-items:center;width:100%}.hero-btn-primary{background-color:var(--color-primary-600);color:var(--color-primary);font-size:.875rem;padding:.5rem 1rem}.hero-btn-primary:hover{background-color:var(--color-primary-500)}@media(min-width:640px){.hero-actions{flex-direction:row}.hero-btn-primary{font-size:1rem;padding:.5rem 1.5rem}}@media(min-width:768px){.hero-text{padding:2rem}.hero-btn-primary{font-size:1.125rem}}@media(min-width:1024px){.hero-text{padding:3rem}}.select-options-group{padding:.5rem;display:flex;flex-direction:column;gap:.25rem}.select-option{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;border-radius:.375rem;transition:all .2s ease}.option-icon{display:flex;align-items:center;font-size:1.25rem}.option-label{flex:1}.feature-split-section{padding:24px;background-color:var(--color-primary)}.feature-split-container{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}.feature-split-section.image-left .feature-split-container{direction:rtl}.feature-split-section.image-left .feature-split-content{direction:ltr}.feature-split-section.image-top .feature-split-container{grid-template-columns:1fr;gap:48px;text-align:center}.feature-split-section.image-top .feature-split-content{align-items:center}.feature-split-section.image-top .feature-split-image-wrapper{order:-1;max-width:800px;margin:0 auto;min-height:400px}.feature-split-content{display:flex;flex-direction:column;gap:32px}.feature-split-title{line-height:1.2;margin:0}.feature-split-description{font-size:var(--text-base);color:var(--color-primary-600);line-height:1.6;margin:0}.feature-split-description p{margin-bottom:1em}.feature-split-description p:last-child{margin-bottom:0}.feature-split-section.theme-inverted{background-color:var(--color-primary-950)}.feature-split-section.theme-inverted .feature-split-title{color:var(--color-primary)!important}.feature-split-section.theme-inverted .feature-split-description{color:var(--color-primary-100)!important}.feature-split-section.theme-inverted .feature-split-item-title{color:var(--color-primary)!important}.feature-split-section.theme-inverted .feature-split-item-description{color:var(--color-primary-100)!important}.feature-split-section.theme-inverted .feature-split-icon-wrapper{background-color:var(--color-primary-800);color:var(--color-primary-100)}.feature-split-actions{margin-top:16px}.feature-split-actions button{color:var(--color-primary-950);background-color:var(--color-primary-100);padding:16px;border-radius:12px}.feature-split-list{display:flex;flex-direction:column;gap:24px;margin-top:16px}.feature-split-item{display:flex;gap:16px;align-items:flex-start}.feature-split-icon-wrapper{flex-shrink:0;width:48px;height:48px;border-radius:12px;background-color:var(--color-primary-100);color:var(--color-primary-600);display:flex;align-items:center;justify-content:center}.feature-split-item-title{margin:0 0 8px}.feature-split-item-description{font-size:var(--text-sm);color:var(--color-primary-600);line-height:1.5;margin:0}.feature-split-image-wrapper{width:100%;height:100%;min-height:400px;border-radius:24px;overflow:hidden;box-shadow:0 20px 40px -12px #0000001a}.feature-split-image{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}.feature-split-image:hover{transform:scale(1.02)}@media(max-width:1024px){.feature-split-container{gap:48px}}@media(max-width:768px){.feature-split-section{padding:64px 24px}.feature-split-container{grid-template-columns:1fr;gap:48px;direction:ltr!important}.feature-split-image-wrapper{min-height:300px;order:-1}}.content-block-section{padding:24px;background-color:var(--color-primary)}.content-block-container{max-width:1440px;padding:0 48px;margin:0 auto}.content-block-header{text-align:center;margin-bottom:48px}.content-block-title{margin:0 0 16px;line-height:1.1}.content-block-featured-image{margin-bottom:48px;border-radius:16px;overflow:hidden}.content-block-featured-image img{width:100%;height:auto;display:block}.content-block-featured-image figcaption{padding:12px;text-align:center;color:var(--color-primary-500);font-size:var(--text-xs)}.content-block-body{color:var(--color-primary-800);font-size:var(--text-base);line-height:1.7}.content-block-body h2{font-size:var(--text-2xl);font-weight:var(--font-weight-bold);color:var(--color-primary-900);margin:48px 0 24px}.content-block-body h3{font-size:var(--text-xl);font-weight:var(--font-weight-semibold);color:var(--color-primary-900);margin:32px 0 16px}.content-block-body p{margin-bottom:24px}.content-block-body ul,.content-block-body ol{margin-bottom:24px;padding-left:24px}.content-block-body li{margin-bottom:8px}.content-block-body a{color:var(--color-primary-600);text-decoration:underline;text-underline-offset:4px}.content-block-body a:hover{color:var(--color-primary-800)}.content-block-body img{max-width:100%;height:auto;border-radius:8px;margin:32px 0}.content-block-body blockquote{border-left:4px solid var(--color-primary-300);margin:32px 0;padding-left:24px;font-style:italic;color:var(--color-primary-700)}@media(max-width:768px){.content-block-section{padding:48px 24px}.content-block-body{font-size:var(--text-base)}}.features-section{padding:80px 24px;background-color:var(--color-primary)}.features-container{max-width:1200px;margin:0 auto}.features-header{text-align:center;margin-bottom:64px}.features-title{margin:0;color:var(--color-primary-950)}.features-subtitle{margin:0 auto;color:var(--color-primary-600)}.features-section.theme-inverted{background-color:var(--color-primary-950)}.features-section.theme-inverted .features-title,.features-section.theme-inverted .section-title{color:var(--color-primary)!important}.features-section.theme-inverted .features-subtitle,.features-section.theme-inverted .section-subtitle{color:var(--color-primary-200)!important}.features-grid{display:grid;grid-template-columns:repeat(var(--features-columns, 2),1fr);gap:32px}.feature-card-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.feature-icon-wrapper{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background-color:var(--color-primary-100);color:var(--color-primary-900);margin-bottom:8px}.feature-title{margin:0}.feature-link{display:flex;align-items:center;gap:4px;margin-top:auto;color:var(--color-primary-600);font-weight:500;font-size:var(--text-sm);text-decoration:none;transition:color .2s ease}.feature-link:hover{color:var(--color-primary-900);text-decoration:underline}.feature-description{margin:0}.card.theme-inverted .feature-icon-wrapper{background-color:var(--color-primary-800);color:var(--color-primary-100)}.card.theme-inverted .feature-link{color:var(--color-primary-300)}.card.theme-inverted .feature-link:hover{color:var(--color-primary-100)}@media(max-width:768px){.features-section{padding:48px 20px}.features-grid{grid-template-columns:1fr!important}}.menu{display:block;position:relative}.menu-title{display:flex;align-items:center;justify-content:center;min-height:40px;padding:12px;text-align:center;width:fit-content;transition:background-color .3s ease;cursor:pointer;gap:8px;white-space:nowrap}.menu-title .arrow{display:inline-block;margin-left:8px;font-size:var(--text-xs);transition:transform .3s ease}.menu-title[aria-expanded=true] .arrow{transform:rotate(180deg)}.menu-dropdown{position:absolute;top:100%;left:0;z-index:100;opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity .3s ease,visibility .3s ease,transform .3s ease;pointer-events:none}.menu-dropdown.show{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.touch-device .menu-dropdown{display:none;position:relative;width:100%;opacity:1;visibility:visible;transform:none}.touch-device .menu-dropdown.show{display:block;pointer-events:auto}@media(max-width:768px){.menu-dropdown{width:100vw;left:0;right:0}}.menu-dropdown>*{overflow:hidden;transition:all .3s cubic-bezier(.73,.32,.34,1.5)}.stats-section{padding:64px 24px;background-color:var(--color-primary);border-top:1px solid var(--color-primary-100);border-bottom:1px solid var(--color-primary-100)}.stats-container{max-width:1200px;margin:0 auto}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:40px}.stat-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}.stat-value{font-size:var(--text-2xl);font-weight:var(--font-weight-bold);color:var(--color-primary-950);line-height:1;letter-spacing:-.02em}.stat-label{font-size:var(--text-base);font-weight:var(--font-weight-semibold);color:var(--color-primary-600);text-transform:uppercase;letter-spacing:.05em}.stat-description{font-size:var(--text-sm);color:var(--color-primary-500);max-width:200px}@media(max-width:768px){.stats-section{padding:40px 24px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:24px}.stat-value{font-size:var(--text-xl)}}.cta-section{padding:100px 24px;background-color:var(--color-primary-950);color:var(--color-primary);text-align:center;border-radius:24px;margin:40px auto;max-width:1200px;width:calc(100% - 48px)}.cta-container{max-width:800px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:32px}.cta-title{margin:0;letter-spacing:-.02em}.cta-description{margin:0}.cta-actions{display:flex;gap:16px;margin-top:16px}@media(max-width:768px){.cta-section{padding:60px 24px;margin:24px;width:auto;border-radius:16px}.cta-actions{flex-direction:column;width:100%}.cta-actions>button{width:100%}}.testimonials-section{padding:80px 24px;background-color:var(--color-primary-100)}.testimonials-container{max-width:1200px;margin:0 auto}.testimonials-header{text-align:center;margin-bottom:64px}.testimonials-title{margin-bottom:16px;letter-spacing:-.02em}.testimonials-subtitle{margin:0 auto}.testimonials-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:32px}.testimonial-card-content{display:flex;flex-direction:column;gap:24px}.testimonial-stars{display:flex;gap:4px;color:#fbbf24}.testimonial-quote{font-size:var(--text-sm);line-height:1.6;color:var(--color-primary-700);font-style:italic;margin:0}.testimonial-author{display:flex;align-items:center;gap:12px;margin-top:auto}.testimonial-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;background-color:var(--color-primary-200)}.testimonial-avatar-placeholder{width:48px;height:48px;border-radius:50%;background-color:var(--color-primary-200);display:flex;align-items:center;justify-content:center;color:var(--color-primary-600);font-weight:var(--font-weight-semibold);font-size:var(--text-lg)}.testimonial-author-info{display:flex;flex-direction:column}.testimonial-name{font-weight:var(--font-weight-semibold);color:var(--color-primary-950);font-size:var(--text-lg)}.testimonial-role{font-size:var(--text-sm);color:var(--color-primary-500)}@media(max-width:768px){.testimonials-section{padding:48px 20px}}.footer{background-color:var(--color-primary);padding:64px 24px 32px;border-top:1px solid var(--color-primary-100)}.footer-container{max-width:1200px;margin:0 auto}.footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:64px;margin-bottom:64px}.footer-brand{display:flex;flex-direction:column;gap:16px}.footer-logo{font-size:var(--text-xl);font-weight:var(--font-weight-bold);color:var(--color-primary-950)}.footer-logo-container{display:flex;align-items:center;gap:8px;font-size:var(--text-xl);font-weight:var(--font-weight-bold)}.footer-logo-img{height:32px;width:auto}.footer-description{color:var(--color-primary-600);line-height:1.6;max-width:300px}.footer-social{display:flex;gap:16px;margin-top:16px}.footer-social-link{color:var(--color-primary-500);transition:color .2s ease}.footer-social-link:hover{color:var(--color-primary-900)}.footer-column-title{font-size:var(--text-xs);font-weight:var(--font-weight-semibold);color:var(--color-primary-900);text-transform:uppercase;letter-spacing:.05em;margin-bottom:24px}.footer-links{display:flex;flex-direction:column;gap:16px}.footer-link{color:var(--color-primary-600);text-decoration:none;transition:color .2s ease;font-size:var(--text-sm)}.footer-link:hover{color:var(--color-primary-900)}.footer-copyright{display:flex;flex-direction:column;gap:4px}.footer-bottom{padding-top:32px;border-top:1px solid var(--color-primary-200);display:flex;justify-content:space-between;align-items:center;color:var(--color-primary-500);font-size:var(--text-xs)}@media(max-width:1024px){.footer-grid{grid-template-columns:1fr repeat(2,1fr);gap:48px}}@media(max-width:768px){.footer-grid{grid-template-columns:1fr;gap:40px}.footer-bottom{flex-direction:column;gap:16px;text-align:center}}.footer.theme-inverted{background-color:var(--color-primary-950);border-top:1px solid var(--color-primary-900)}.footer.theme-inverted .footer-logo{color:var(--color-primary-100)}.footer.theme-inverted .footer-description{color:var(--color-primary-300)}.footer.theme-inverted .footer-column-title{color:var(--color-primary-100)}.footer.theme-inverted .footer-link{color:var(--color-primary-400)}.footer.theme-inverted .footer-link:hover{color:var(--color-primary-100)}.footer.theme-inverted .footer-social-link{color:var(--color-primary-400)}.footer.theme-inverted .footer-social-link:hover{color:var(--color-primary-100)}.footer.theme-inverted .footer-bottom{border-top:1px solid var(--color-primary-900);color:var(--color-primary-500)}.footer-powered-by{font-size:.85em;opacity:.8;margin-top:4px}.accordion-section{padding:80px 24px;background-color:var(--color-primary)}.accordion-container{max-width:800px;margin:0 auto}.accordion-header-section{text-align:center;margin-bottom:48px}.accordion-title{font-size:var(--text-2xl);font-weight:var(--font-weight-bold);color:var(--color-primary-950);margin-bottom:12px}.accordion-subtitle{font-size:var(--text-base);color:var(--color-primary-600)}.accordion-list{display:flex;flex-direction:column;gap:16px}.accordion-item{border:1px solid var(--color-primary-200);border-radius:8px;background-color:var(--color-primary);overflow:hidden;transition:all .2s ease}.accordion-item.open{border-color:var(--color-primary-400);box-shadow:0 4px 6px -1px #0000000d}.accordion-trigger{width:100%;display:flex;justify-content:space-between;align-items:center;padding:24px;background:none;border:none;cursor:pointer;text-align:left;font-size:var(--text-lg);font-weight:var(--font-weight-semibold);color:var(--color-primary-900)}.accordion-trigger:hover{background-color:var(--color-primary-100)}.accordion-icon{transition:transform .3s ease;color:var(--color-primary-500);flex-shrink:0;margin-left:16px}.accordion-icon.rotate{transform:rotate(180deg)}.accordion-content{height:0;overflow:hidden;transition:height .3s ease}.accordion-content-inner{padding:0 24px 24px;color:var(--color-primary-700);line-height:1.6}@media(max-width:768px){.accordion-section{padding:48px 20px}.accordion-title{font-size:var(--text-xl)}}
2
- /*$vite$:1*/`,document.head.appendChild(Ji);function eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sn={exports:{}},Et={};var to;function lc(){if(to)return Et;to=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var s=null;if(o!==void 0&&(s=""+o),i.key!==void 0&&(s=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:o}}return Et.Fragment=t,Et.jsx=n,Et.jsxs=n,Et}var At={};var no;function uc(){return no||(no=1,process.env.NODE_ENV!=="production"&&(function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===L?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case v:return"Fragment";case S:return"Profiler";case g:return"StrictMode";case k:return"Suspense";case N:return"SuspenseList";case B:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case m:return"Portal";case P:return C.displayName||"Context";case w:return(C._context.displayName||"Context")+".Consumer";case E:var z=C.render;return C=C.displayName,C||(C=z.displayName||z.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case M:return z=C.displayName||null,z!==null?z:e(C.type)||"Memo";case O:z=C._payload,C=C._init;try{return e(C(z))}catch{}}return null}function t(C){return""+C}function n(C){try{t(C);var z=!1}catch{z=!0}if(z){z=console;var p=z.error,X=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return p.call(z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",X),t(C)}}function r(C){if(C===v)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===O)return"<...>";try{var z=e(C);return z?"<"+z+">":"<...>"}catch{return"<...>"}}function i(){var C=R.A;return C===null?null:C.getOwner()}function o(){return Error("react-stack-top-frame")}function s(C){if(K.call(C,"key")){var z=Object.getOwnPropertyDescriptor(C,"key").get;if(z&&z.isReactWarning)return!1}return C.key!==void 0}function a(C,z){function p(){G||(G=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",z))}p.isReactWarning=!0,Object.defineProperty(C,"key",{get:p,configurable:!0})}function l(){var C=e(this.type);return W[C]||(W[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function u(C,z,p,X,Ie,oe){var te=p.ref;return C={$$typeof:x,type:C,key:z,props:p,_owner:X},(te!==void 0?te:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:l}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ie}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function c(C,z,p,X,Ie,oe){var te=z.children;if(te!==void 0)if(X)if(F(te)){for(X=0;X<te.length;X++)f(te[X]);Object.freeze&&Object.freeze(te)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(te);if(K.call(z,"key")){te=e(C);var ge=Object.keys(z).filter(function(Xe){return Xe!=="key"});X=0<ge.length?"{key: someKey, "+ge.join(": ..., ")+": ...}":"{key: someKey}",y[te+X]||(ge=0<ge.length?"{"+ge.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(B,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-router")):typeof define=="function"&&define.amd?define(["exports","react","react-router"],I):(B=typeof globalThis<"u"?globalThis:B||self,I(B["react-jp-ui"]={},B.React,B.ReactRouter))})(this,(function(B,I,nr){"use strict";var Ao=document.createElement("style");Ao.textContent=`@layer sankhya-ui{:root{--color-primary-50: #f0f9ff;--color-primary-100: #e0f2fe;--color-primary-200: #bae6fd;--color-primary-300: #7dd3fc;--color-primary-400: #38bdf8;--color-primary-500: #0ea5e9;--color-primary-600: #0284c7;--color-primary-700: #0369a1;--color-primary-800: #075985;--color-primary-900: #0c4a6e;--color-primary-950: #082f49;--color-primary: #ffffff;--text-xs: .75rem;--text-sm: .875rem;--text-base: 1rem;--text-lg: 1.125rem;--text-xl: 1.25rem;--text-2xl: 1.5rem;--text-3xl: 1.875rem;--text-4xl: 2.25rem;--text-5xl: 3rem;--text-6xl: 3.75rem;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--font-weight-extrabold: 800}}.bento-grid-section{padding:80px 24px;background-color:var(--color-primary)}.bento-grid-container{max-width:1200px;margin:0 auto}.bento-grid-header{text-align:center;margin-bottom:48px}.bento-grid-title{margin:0 0 16px}.bento-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:minmax(240px,auto);gap:24px}.bento-card{background-color:var(--color-primary);border:1px solid var(--color-primary-100);border-radius:24px;overflow:hidden;position:relative;display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;text-decoration:none}.bento-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px -10px var(--color-primary-800);z-index:1}.bento-card-image-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.bento-card-image{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}.bento-card:hover .bento-card-image{transform:scale(1.05)}.bento-card-image-wrapper:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,#0000,#0009)}.bento-card-content{position:relative;z-index:1;margin-top:auto;padding:24px;display:flex;flex-direction:column;gap:16px}.bento-card:not(:has(.bento-card-image-wrapper)){background-color:var(--color-primary-950)}.bento-card:has(.bento-card-image-wrapper) .bento-card-title,.bento-card:has(.bento-card-image-wrapper) .bento-card-description,.bento-card:has(.bento-card-image-wrapper) .bento-card-icon{color:var(--color-primary)}.bento-card-icon{width:40px;height:40px;border-radius:10px;background-color:var(--color-primary-100);color:var(--color-primary-600);display:flex;align-items:center;justify-content:center}.bento-card:has(.bento-card-image-wrapper) .bento-card-icon{background-color:var(--color-primary-900);color:var(--color-primary-100);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.bento-card-text{border-radius:8px;padding:16px;color:var(--color-primary)}.bento-card-title{font-size:1rem}.bento-card-description{font-size:.875rem}.col-span-1{grid-column:span 1}.col-span-2{grid-column:span 2}.col-span-3{grid-column:span 3}.col-span-4{grid-column:span 4}.row-span-1{grid-row:span 1}.row-span-2{grid-row:span 2}@media(max-width:1024px){.bento-grid{grid-template-columns:repeat(2,1fr)}.col-span-3,.col-span-4{grid-column:span 2}}@media(max-width:640px){.bento-grid{grid-template-columns:1fr}.col-span-1,.col-span-2,.col-span-3,.col-span-4{grid-column:span 1}}.card{background-color:var(--color-primary);border-radius:12px;overflow:hidden;position:relative;transition:all .3s ease;border:1px solid var(--color-primary-100)}.card.theme-inverted{background-color:var(--color-primary-900);border-color:var(--color-primary-800)}.card-bordered{border:1px solid var(--color-primary-200)}.card-elevation-sm{box-shadow:0 1px 2px #0000000d}.card-elevation-md{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.card-elevation-lg{box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.card-hoverable:hover{transform:translateY(-4px);box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;border-color:var(--color-primary-300)}.card-padding-none{padding:0}.card-padding-sm{padding:16px}.card-padding-md{padding:24px}.card-padding-lg{padding:32px}@keyframes headerSlideDown{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes headerFadeIn{0%{opacity:0}to{opacity:1}}.header{display:flex;justify-content:space-between;align-items:center;width:100%;padding:1rem;position:relative;background-color:var(--color-primary);z-index:1000}.header.header-sticky{position:fixed;top:0;left:0;right:0;box-shadow:0 2px 8px #0000001a}.header-logo-wrapper{display:flex;align-items:center;flex-shrink:0}.header-logo-img{width:auto;height:auto;max-height:48px}.header-toggle{display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;padding:.5rem;font-size:1.5rem;color:var(--color-primary-950);z-index:1002}.header-nav-container{position:fixed;inset:0;background-color:var(--color-primary);display:none;flex-direction:column;padding:5rem 1.5rem 2rem;gap:2rem;z-index:1001;overflow-y:auto}.header-nav-container.active{display:flex;animation:headerFadeIn .3s ease}.header-nav{display:flex;flex-direction:column;gap:1.5rem}.header-utility{display:flex;flex-direction:column;gap:1.5rem;padding-top:1.5rem;border-top:1px solid var(--color-primary-200)}@media(min-width:768px){.header{padding:1rem 2rem}.header-toggle{display:none}.header-nav-container{position:static;display:flex;flex-direction:row;flex-grow:1;padding:0;margin-left:4rem;gap:1rem;background:none;overflow:visible}.header-nav{flex-direction:row;flex-grow:1;gap:1.5rem}.header-utility{flex-direction:row;padding-top:0;margin-left:1.5rem;padding-left:1.5rem;border-top:none;border-left:1px solid var(--color-primary-200)}}.btn{padding:12px 24px;border-radius:4px;display:inline-block;border:none;cursor:pointer;font-family:inherit;text-decoration:none;text-align:center;transition:all .2s ease}.btn-outline{background-color:transparent;border:2px solid currentColor}.btn-primary{background-color:var(--color-primary-600, #2563eb);color:var(--color-white, #ffffff)}.btn-primary:hover{background-color:var(--color-primary-500, #3b82f6);transform:translateY(-2px)}.delay-100{transition-delay:.1s}.delay-200{transition-delay:.2s}.delay-300{transition-delay:.3s}.delay-400{transition-delay:.4s}.delay-500{transition-delay:.5s}.duration-fast{transition-duration:.2s}.duration-normal{transition-duration:.3s}.duration-slow{transition-duration:.5s}.ease-in{transition-timing-function:ease-in}.ease-out{transition-timing-function:ease-out}.ease-in-out{transition-timing-function:ease-in-out}.will-change-opacity{will-change:opacity}.will-change-transform{will-change:transform}.fade-in{opacity:0;transition:opacity .3s ease-out}.fade-in.visible{opacity:1}.slide-up{opacity:0;transform:translateY(20px);transition:opacity .3s ease-out,transform .3s ease-out}.slide-up.visible{opacity:1;transform:translateY(0)}.hidden{display:none}.visible{display:block}.invisible{visibility:hidden}.hover-lift:hover{transform:translateY(-2px);transition:transform .2s ease}.hover-scale:hover{transform:scale(1.05);transition:transform .2s ease}.active-scale:active{transform:scale(.98)}.section-title{font-size:var(--text-4xl, 2.25rem);font-weight:var(--font-weight-bold, 700);color:var(--color-primary-950, #011d41);margin-bottom:1rem;line-height:1.2}.section-subtitle{font-size:var(--text-lg, 1.125rem);color:var(--color-primary-600, #2f87fd);line-height:1.6;margin-bottom:2rem}.hero-title{font-size:1.5rem;font-weight:700;line-height:1.2;margin-bottom:1rem}.hero-subtitle{font-size:.875rem;line-height:1.6;margin-bottom:1.5rem}@media(min-width:640px){.hero-title{font-size:1.875rem}.hero-subtitle{font-size:1rem}}@media(min-width:768px){.hero-title{font-size:2.25rem}.hero-subtitle{font-size:1.125rem}}@media(min-width:1024px){.hero-title{font-size:3rem}.hero-subtitle{font-size:1.25rem}}@media(min-width:1280px){.hero-title{font-size:3.75rem}}.card-title{font-size:var(--text-xl, 1.25rem);font-weight:var(--font-weight-semibold, 600);color:var(--color-primary-950, #011d41);margin-bottom:.5rem}.card-description{font-size:var(--text-sm, .875rem);color:var(--color-primary-600, #2f87fd);line-height:1.5}.theme-inverted .section-title,.theme-inverted .card-title,.theme-inverted .hero-title{color:var(--color-primary, #f0f7ff)}.theme-inverted .section-subtitle,.theme-inverted .card-description,.theme-inverted .hero-subtitle{color:var(--color-primary-300, #93c5fd)}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.items-start{align-items:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.p-none{padding:0}.p-small{padding:1rem}.p-medium{padding:1.5rem}.p-large{padding:2rem}@media(min-width:768px){.p-small{padding:1.5rem}.p-medium{padding:2rem}.p-large{padding:3rem}}@media(min-width:1024px){.p-medium{padding:3rem}.p-large{padding:4rem}}.menu-item{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;font-size:var(--text-sm);text-decoration:none;border-radius:6px;transition:all .15s ease;box-sizing:border-box}.menu-item.active{background-color:var(--color-primary-100);color:var(--color-primary-900);border-left:4px solid var(--color-primary-600)}.menu-item-icon{flex-shrink:0;margin-top:2px}.menu-item-icon svg{width:16px;height:16px}.menu-item-content{flex:1;min-width:0}.menu-item-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.menu-item-title{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-item-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;font-size:var(--text-xs);font-weight:500;border-radius:9999px;flex-shrink:0}.menu-item-description{margin-top:4px;font-size:var(--text-xs);display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}.menu-item.compact{padding:8px 12px;gap:8px}.menu-item.compact .menu-item-icon svg{width:14px;height:14px}.menu-item.compact .menu-item-title,.menu-item.compact .menu-item-description{font-size:var(--text-xs)}.menu-item.no-description{align-items:center}.menu-item.no-description .menu-item-icon{margin-top:0}.menu-grid-container{width:100%}.menu-grid{display:grid;gap:12px}.menu-grid.columns-1{grid-template-columns:repeat(1,1fr)}.menu-grid.columns-2{grid-template-columns:repeat(2,1fr)}.menu-grid.columns-3{grid-template-columns:repeat(3,1fr)}.menu-grid.columns-4{grid-template-columns:repeat(4,1fr)}@media(max-width:768px){.menu-grid.columns-2,.menu-grid.columns-3,.menu-grid.columns-4{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){.menu-grid.columns-1,.menu-grid.columns-2,.menu-grid.columns-3,.menu-grid.columns-4{grid-template-columns:1fr}}.menu-grid-item{display:flex;flex-direction:column;border-radius:8px;position:relative;overflow:hidden;transition:all .2s ease}.menu-grid-item.regular{padding:16px}.menu-grid-item.compact{padding:12px}.menu-grid-item:hover{transform:translateY(-2px)}.menu-grid-link{display:flex;flex-direction:column;text-decoration:none;width:100%;height:100%;gap:8px}.menu-grid-badge{position:absolute;top:2px;right:8px;font-size:.5rem;padding:2px 8px;border-radius:9999px;font-weight:500;z-index:1;background-color:var(--color-primary-950);color:var(--color-primary)}.menu-grid-header{display:flex;align-items:center;gap:12px;width:100%}.menu-grid-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;transition:background-color .2s ease;flex-shrink:0;padding:0;margin-bottom:0}.menu-grid-icon svg{width:18px;height:18px}.menu-grid-title{font-size:var(--text-sm);font-weight:500;transition:color .2s ease;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:0}.menu-grid-description{font-size:var(--text-xs);display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4;transition:color .2s ease}.menu-grid-children{padding-top:12px;margin-top:12px}.menu-grid-children>*{margin:4px 0}.menu-grid-item.compact .menu-grid-header{gap:8px}.menu-grid-item.compact .menu-grid-icon{width:24px;height:24px}.menu-grid-item.compact .menu-grid-icon svg{width:14px;height:14px}.menu-grid-item.compact .menu-grid-title,.menu-grid-item.compact .menu-grid-description{font-size:var(--text-xs)}.menu-grid-item:has(.menu-grid-icon):not(:has(.menu-grid-title)) .menu-grid-header{justify-content:center}.menu-grid-item:has(.menu-grid-title):not(:has(.menu-grid-icon)) .menu-grid-header{justify-content:flex-start}@media(max-width:480px){.menu-grid-header{gap:8px}.menu-grid-icon{width:28px;height:28px}.menu-grid-icon svg{width:16px;height:16px}}.hero-image{background-position:center;background-repeat:no-repeat;background-size:cover;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;width:100%}.hero-text{display:flex;flex-direction:column;gap:20px;text-align:center;z-index:2;position:relative;width:80%;margin:0 auto}.hero-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,#0006,#0003,#0006);z-index:1}.hero-text-primary{color:var(--color-primary)}.hero-actions{display:flex;flex-direction:column;gap:1rem;justify-content:center;align-items:center;width:100%}.hero-btn-primary{background-color:var(--color-primary-600);color:var(--color-primary);font-size:.875rem;padding:.5rem 1rem}.hero-btn-primary:hover{background-color:var(--color-primary-500)}@media(min-width:640px){.hero-actions{flex-direction:row}.hero-btn-primary{font-size:1rem;padding:.5rem 1.5rem}}@media(min-width:768px){.hero-text{padding:2rem}.hero-btn-primary{font-size:1.125rem}}@media(min-width:1024px){.hero-text{padding:3rem}}.select-options-group{padding:.5rem;display:flex;flex-direction:column;gap:.25rem}.select-option{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;border-radius:.375rem;transition:all .2s ease}.option-icon{display:flex;align-items:center;font-size:1.25rem}.option-label{flex:1}.feature-split-section{padding:24px;background-color:var(--color-primary)}.feature-split-container{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}.feature-split-section.image-left .feature-split-container{direction:rtl}.feature-split-section.image-left .feature-split-content{direction:ltr}.feature-split-section.image-top .feature-split-container{grid-template-columns:1fr;gap:48px;text-align:center}.feature-split-section.image-top .feature-split-content{align-items:center}.feature-split-section.image-top .feature-split-image-wrapper{order:-1;max-width:800px;margin:0 auto;min-height:400px}.feature-split-content{display:flex;flex-direction:column;gap:32px}.feature-split-title{line-height:1.2;margin:0}.feature-split-description{font-size:var(--text-base);color:var(--color-primary-600);line-height:1.6;margin:0}.feature-split-description p{margin-bottom:1em}.feature-split-description p:last-child{margin-bottom:0}.feature-split-section.theme-inverted{background-color:var(--color-primary-950)}.feature-split-section.theme-inverted .feature-split-title{color:var(--color-primary)!important}.feature-split-section.theme-inverted .feature-split-description{color:var(--color-primary-100)!important}.feature-split-section.theme-inverted .feature-split-item-title{color:var(--color-primary)!important}.feature-split-section.theme-inverted .feature-split-item-description{color:var(--color-primary-100)!important}.feature-split-section.theme-inverted .feature-split-icon-wrapper{background-color:var(--color-primary-800);color:var(--color-primary-100)}.feature-split-actions{margin-top:16px}.feature-split-actions button{color:var(--color-primary-950);background-color:var(--color-primary-100);padding:16px;border-radius:12px}.feature-split-list{display:flex;flex-direction:column;gap:24px;margin-top:16px}.feature-split-item{display:flex;gap:16px;align-items:flex-start}.feature-split-icon-wrapper{flex-shrink:0;width:48px;height:48px;border-radius:12px;background-color:var(--color-primary-100);color:var(--color-primary-600);display:flex;align-items:center;justify-content:center}.feature-split-item-title{margin:0 0 8px}.feature-split-item-description{font-size:var(--text-sm);color:var(--color-primary-600);line-height:1.5;margin:0}.feature-split-image-wrapper{width:100%;height:100%;min-height:400px;border-radius:24px;overflow:hidden;box-shadow:0 20px 40px -12px #0000001a}.feature-split-image{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}.feature-split-image:hover{transform:scale(1.02)}@media(max-width:1024px){.feature-split-container{gap:48px}}@media(max-width:768px){.feature-split-section{padding:64px 24px}.feature-split-container{grid-template-columns:1fr;gap:48px;direction:ltr!important}.feature-split-image-wrapper{min-height:300px;order:-1}}.content-block-section{padding:24px;background-color:var(--color-primary)}.content-block-container{max-width:1440px;padding:0 48px;margin:0 auto}.content-block-header{text-align:center;margin-bottom:48px}.content-block-title{margin:0 0 16px;line-height:1.1}.content-block-featured-image{margin-bottom:48px;border-radius:16px;overflow:hidden}.content-block-featured-image img{width:100%;height:auto;display:block}.content-block-featured-image figcaption{padding:12px;text-align:center;color:var(--color-primary-500);font-size:var(--text-xs)}.content-block-body{color:var(--color-primary-800);font-size:var(--text-base);line-height:1.7}.content-block-body h2{font-size:var(--text-2xl);font-weight:var(--font-weight-bold);color:var(--color-primary-900);margin:48px 0 24px}.content-block-body h3{font-size:var(--text-xl);font-weight:var(--font-weight-semibold);color:var(--color-primary-900);margin:32px 0 16px}.content-block-body p{margin-bottom:24px}.content-block-body ul,.content-block-body ol{margin-bottom:24px;padding-left:24px}.content-block-body li{margin-bottom:8px}.content-block-body a{color:var(--color-primary-600);text-decoration:underline;text-underline-offset:4px}.content-block-body a:hover{color:var(--color-primary-800)}.content-block-body img{max-width:100%;height:auto;border-radius:8px;margin:32px 0}.content-block-body blockquote{border-left:4px solid var(--color-primary-300);margin:32px 0;padding-left:24px;font-style:italic;color:var(--color-primary-700)}@media(max-width:768px){.content-block-section{padding:48px 24px}.content-block-body{font-size:var(--text-base)}}.features-section{padding:80px 24px;background-color:var(--color-primary)}.features-container{max-width:1200px;margin:0 auto}.features-header{text-align:center;margin-bottom:64px}.features-title{margin:0;color:var(--color-primary-950)}.features-subtitle{margin:0 auto;color:var(--color-primary-600)}.features-section.theme-inverted{background-color:var(--color-primary-950)}.features-section.theme-inverted .features-title,.features-section.theme-inverted .section-title{color:var(--color-primary)!important}.features-section.theme-inverted .features-subtitle,.features-section.theme-inverted .section-subtitle{color:var(--color-primary-200)!important}.features-grid{display:grid;grid-template-columns:repeat(var(--features-columns, 2),1fr);gap:32px}.feature-card-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.feature-icon-wrapper{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background-color:var(--color-primary-100);color:var(--color-primary-900);margin-bottom:8px}.feature-title{margin:0}.feature-link{display:flex;align-items:center;gap:4px;margin-top:auto;color:var(--color-primary-600);font-weight:500;font-size:var(--text-sm);text-decoration:none;transition:color .2s ease}.feature-link:hover{color:var(--color-primary-900);text-decoration:underline}.feature-description{margin:0}.card.theme-inverted .feature-icon-wrapper{background-color:var(--color-primary-800);color:var(--color-primary-100)}.card.theme-inverted .feature-link{color:var(--color-primary-300)}.card.theme-inverted .feature-link:hover{color:var(--color-primary-100)}@media(max-width:768px){.features-section{padding:48px 20px}.features-grid{grid-template-columns:1fr!important}}.menu{display:block;position:relative}.menu-title{display:flex;align-items:center;justify-content:center;min-height:40px;padding:12px;text-align:center;width:fit-content;transition:background-color .3s ease;cursor:pointer;gap:8px;white-space:nowrap}.menu-title .arrow{display:inline-block;margin-left:8px;font-size:var(--text-xs);transition:transform .3s ease}.menu-title[aria-expanded=true] .arrow{transform:rotate(180deg)}.menu-dropdown{position:absolute;top:100%;left:0;z-index:100;opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity .3s ease,visibility .3s ease,transform .3s ease;pointer-events:none}.menu-dropdown.show{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.touch-device .menu-dropdown{display:none;position:relative;width:100%;opacity:1;visibility:visible;transform:none}.touch-device .menu-dropdown.show{display:block;pointer-events:auto}@media(max-width:768px){.menu-dropdown{width:100vw;left:0;right:0}}.menu-dropdown>*{overflow:hidden;transition:all .3s cubic-bezier(.73,.32,.34,1.5)}.stats-section{padding:64px 24px;background-color:var(--color-primary);border-top:1px solid var(--color-primary-100);border-bottom:1px solid var(--color-primary-100)}.stats-container{max-width:1200px;margin:0 auto}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:40px}.stat-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}.stat-value{font-size:var(--text-2xl);font-weight:var(--font-weight-bold);color:var(--color-primary-950);line-height:1;letter-spacing:-.02em}.stat-label{font-size:var(--text-base);font-weight:var(--font-weight-semibold);color:var(--color-primary-600);text-transform:uppercase;letter-spacing:.05em}.stat-description{font-size:var(--text-sm);color:var(--color-primary-500);max-width:200px}@media(max-width:768px){.stats-section{padding:40px 24px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:24px}.stat-value{font-size:var(--text-xl)}}.cta-section{padding:100px 24px;background-color:var(--color-primary-950);color:var(--color-primary);text-align:center;border-radius:24px;margin:40px auto;max-width:1200px;width:calc(100% - 48px)}.cta-container{max-width:800px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:32px}.cta-title{margin:0;letter-spacing:-.02em}.cta-description{margin:0}.cta-actions{display:flex;gap:16px;margin-top:16px}@media(max-width:768px){.cta-section{padding:60px 24px;margin:24px;width:auto;border-radius:16px}.cta-actions{flex-direction:column;width:100%}.cta-actions>button{width:100%}}.testimonials-section{padding:80px 24px;background-color:var(--color-primary-100)}.testimonials-container{max-width:1200px;margin:0 auto}.testimonials-header{text-align:center;margin-bottom:64px}.testimonials-title{margin-bottom:16px;letter-spacing:-.02em}.testimonials-subtitle{margin:0 auto}.testimonials-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:32px}.testimonial-card-content{display:flex;flex-direction:column;gap:24px}.testimonial-stars{display:flex;gap:4px;color:#fbbf24}.testimonial-quote{font-size:var(--text-sm);line-height:1.6;color:var(--color-primary-700);font-style:italic;margin:0}.testimonial-author{display:flex;align-items:center;gap:12px;margin-top:auto}.testimonial-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;background-color:var(--color-primary-200)}.testimonial-avatar-placeholder{width:48px;height:48px;border-radius:50%;background-color:var(--color-primary-200);display:flex;align-items:center;justify-content:center;color:var(--color-primary-600);font-weight:var(--font-weight-semibold);font-size:var(--text-lg)}.testimonial-author-info{display:flex;flex-direction:column}.testimonial-name{font-weight:var(--font-weight-semibold);color:var(--color-primary-950);font-size:var(--text-lg)}.testimonial-role{font-size:var(--text-sm);color:var(--color-primary-500)}@media(max-width:768px){.testimonials-section{padding:48px 20px}}.carousel-container{position:relative;width:100%;overflow:hidden}.carousel-nav-btn{position:absolute;top:50%;transform:translateY(-50%);background:#fff3;border:1px solid rgba(255,255,255,.4);border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;transition:all .3s ease;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff;font-size:1.5rem}.carousel-nav-btn:hover{background:#fff6;transform:translateY(-50%) scale(1.1)}.carousel-prev{left:20px}.carousel-next{right:20px}.carousel-indicators{position:absolute;bottom:24px;left:50%;transform:translate(-50%);display:flex;gap:12px;z-index:10}.carousel-dot{width:12px;height:12px;border-radius:50%;background:#fff6;cursor:pointer;transition:all .3s ease;border:none;padding:0}.carousel-dot:hover{background:#ffffffb3}.carousel-dot.active{background:#fff;transform:scale(1.2)}@media(max-width:640px){.carousel-nav-btn{width:36px;height:36px;font-size:1.2rem}.carousel-prev{left:10px}.carousel-next{right:10px}}.footer{background-color:var(--color-primary);padding:64px 24px 32px;border-top:1px solid var(--color-primary-100)}.footer-container{max-width:1200px;margin:0 auto}.footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:64px;margin-bottom:64px}.footer-brand{display:flex;flex-direction:column;gap:16px}.footer-logo{font-size:var(--text-xl);font-weight:var(--font-weight-bold);color:var(--color-primary-950)}.footer-logo-container{display:flex;align-items:center;gap:8px;font-size:var(--text-xl);font-weight:var(--font-weight-bold)}.footer-logo-img{height:32px;width:auto}.footer-description{color:var(--color-primary-600);line-height:1.6;max-width:300px}.footer-social{display:flex;gap:16px;margin-top:16px}.footer-social-link{color:var(--color-primary-500);transition:color .2s ease}.footer-social-link:hover{color:var(--color-primary-900)}.footer-column-title{font-size:var(--text-xs);font-weight:var(--font-weight-semibold);color:var(--color-primary-900);text-transform:uppercase;letter-spacing:.05em;margin-bottom:24px}.footer-links{display:flex;flex-direction:column;gap:16px}.footer-link{color:var(--color-primary-600);text-decoration:none;transition:color .2s ease;font-size:var(--text-sm)}.footer-link:hover{color:var(--color-primary-900)}.footer-copyright{display:flex;flex-direction:column;gap:4px}.footer-bottom{padding-top:32px;border-top:1px solid var(--color-primary-200);display:flex;justify-content:space-between;align-items:center;color:var(--color-primary-500);font-size:var(--text-xs)}@media(max-width:1024px){.footer-grid{grid-template-columns:1fr repeat(2,1fr);gap:48px}}@media(max-width:768px){.footer-grid{grid-template-columns:1fr;gap:40px}.footer-bottom{flex-direction:column;gap:16px;text-align:center}}.footer.theme-inverted{background-color:var(--color-primary-950);border-top:1px solid var(--color-primary-900)}.footer.theme-inverted .footer-logo{color:var(--color-primary-100)}.footer.theme-inverted .footer-description{color:var(--color-primary-300)}.footer.theme-inverted .footer-column-title{color:var(--color-primary-100)}.footer.theme-inverted .footer-link{color:var(--color-primary-400)}.footer.theme-inverted .footer-link:hover{color:var(--color-primary-100)}.footer.theme-inverted .footer-social-link{color:var(--color-primary-400)}.footer.theme-inverted .footer-social-link:hover{color:var(--color-primary-100)}.footer.theme-inverted .footer-bottom{border-top:1px solid var(--color-primary-900);color:var(--color-primary-500)}.footer-powered-by{font-size:.85em;opacity:.8;margin-top:4px}.accordion-section{padding:80px 24px;background-color:var(--color-primary)}.accordion-container{max-width:800px;margin:0 auto}.accordion-header-section{text-align:center;margin-bottom:48px}.accordion-title{font-size:var(--text-2xl);font-weight:var(--font-weight-bold);color:var(--color-primary-950);margin-bottom:12px}.accordion-subtitle{font-size:var(--text-base);color:var(--color-primary-600)}.accordion-list{display:flex;flex-direction:column;gap:16px}.accordion-item{border:1px solid var(--color-primary-200);border-radius:8px;background-color:var(--color-primary);overflow:hidden;transition:all .2s ease}.accordion-item.open{border-color:var(--color-primary-400);box-shadow:0 4px 6px -1px #0000000d}.accordion-trigger{width:100%;display:flex;justify-content:space-between;align-items:center;padding:24px;background:none;border:none;cursor:pointer;text-align:left;font-size:var(--text-lg);font-weight:var(--font-weight-semibold);color:var(--color-primary-900)}.accordion-trigger:hover{background-color:var(--color-primary-100)}.accordion-icon{transition:transform .3s ease;color:var(--color-primary-500);flex-shrink:0;margin-left:16px}.accordion-icon.rotate{transform:rotate(180deg)}.accordion-content{height:0;overflow:hidden;transition:height .3s ease}.accordion-content-inner{padding:0 24px 24px;color:var(--color-primary-700);line-height:1.6}@media(max-width:768px){.accordion-section{padding:48px 20px}.accordion-title{font-size:var(--text-xl)}}
2
+ /*$vite$:1*/`,document.head.appendChild(Ao);function mf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const pn=mf(I);function Eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mn={exports:{}},Lt={};var Io;function gf(){if(Io)return Lt;Io=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var o=null;if(s!==void 0&&(o=""+s),i.key!==void 0&&(o=""+i.key),"key"in i){s={};for(var a in i)a!=="key"&&(s[a]=i[a])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:o,ref:i!==void 0?i:null,props:s}}return Lt.Fragment=t,Lt.jsx=n,Lt.jsxs=n,Lt}var Nt={};var Do;function yf(){return Do||(Do=1,process.env.NODE_ENV!=="production"&&(function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===R?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case y:return"Fragment";case k:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case M:return"SuspenseList";case C:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case m:return"Portal";case E:return P.displayName||"Context";case v:return(P._context.displayName||"Context")+".Consumer";case A:var $=P.render;return P=P.displayName,P||(P=$.displayName||$.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case D:return $=P.displayName||null,$!==null?$:e(P.type)||"Memo";case V:$=P._payload,P=P._init;try{return e(P($))}catch{}}return null}function t(P){return""+P}function n(P){try{t(P);var $=!1}catch{$=!0}if($){$=console;var x=$.error,Q=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return x.call($,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Q),t(P)}}function r(P){if(P===y)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===V)return"<...>";try{var $=e(P);return $?"<"+$+">":"<...>"}catch{return"<...>"}}function i(){var P=O.A;return P===null?null:P.getOwner()}function s(){return Error("react-stack-top-frame")}function o(P){if(K.call(P,"key")){var $=Object.getOwnPropertyDescriptor(P,"key").get;if($&&$.isReactWarning)return!1}return P.key!==void 0}function a(P,$){function x(){X||(X=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",$))}x.isReactWarning=!0,Object.defineProperty(P,"key",{get:x,configurable:!0})}function l(){var P=e(this.type);return W[P]||(W[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function u(P,$,x,Q,je,se){var ne=x.ref;return P={$$typeof:p,type:P,key:$,props:x,_owner:Q},(ne!==void 0?ne:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:l}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:je}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function c(P,$,x,Q,je,se){var ne=$.children;if(ne!==void 0)if(Q)if(z(ne)){for(Q=0;Q<ne.length;Q++)f(ne[Q]);Object.freeze&&Object.freeze(ne)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(ne);if(K.call($,"key")){ne=e(P);var be=Object.keys($).filter(function(Je){return Je!=="key"});Q=0<be.length?"{key: someKey, "+be.join(": ..., ")+": ...}":"{key: someKey}",w[ne+Q]||(be=0<be.length?"{"+be.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
3
3
  let props = %s;
4
4
  <%s {...props} />
5
5
  React keys must be passed directly to JSX without using spread:
6
6
  let props = %s;
7
- <%s key={someKey} {...props} />`,X,te,ge,te),y[te+X]=!0)}if(te=null,p!==void 0&&(n(p),te=""+p),s(z)&&(n(z.key),te=""+z.key),"key"in z){p={};for(var Fe in z)Fe!=="key"&&(p[Fe]=z[Fe])}else p=z;return te&&a(p,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,te,p,i(),Ie,oe)}function f(C){d(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===O&&(C._payload.status==="fulfilled"?d(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function d(C){return typeof C=="object"&&C!==null&&C.$$typeof===x}var h=j,x=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),P=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),R=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,F=Array.isArray,D=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(C){return C()}};var G,W={},Q=h.react_stack_bottom_frame.bind(h,o)(),le=D(r(o)),y={};At.Fragment=v,At.jsx=function(C,z,p){var X=1e4>R.recentlyCreatedOwnerStacks++;return c(C,z,p,!1,X?Error("react-stack-top-frame"):Q,X?D(r(C)):le)},At.jsxs=function(C,z,p){var X=1e4>R.recentlyCreatedOwnerStacks++;return c(C,z,p,!0,X?Error("react-stack-top-frame"):Q,X?D(r(C)):le)}})()),At}var ro;function cc(){return ro||(ro=1,process.env.NODE_ENV==="production"?sn.exports=lc():sn.exports=uc()),sn.exports}var b=cc();function fc(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function o(s){if(n[s])return i[s]=[];if(!(s in i)){i[s]=null;const a=r[s]&&r[s].parent,l=a&&o(a);l&&(i[s]=[a].concat(l))}return i[s]}return Object.keys(n).concat(Object.keys(r)).forEach(o),i}const io=Object.freeze({left:0,top:0,width:16,height:16}),an=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),zn=Object.freeze({...io,...an}),_n=Object.freeze({...zn,body:"",hidden:!1});function dc(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function oo(e,t){const n=dc(e,t);for(const r in _n)r in an?r in e&&!(r in n)&&(n[r]=an[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function hc(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let o={};function s(a){o=oo(r[a]||i[a],o)}return s(t),n.forEach(s),oo(e,o)}function so(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=fc(e);for(const i in r){const o=r[i];o&&(t(i,hc(e,i,o)),n.push(i))}return n}const pc={provider:"",aliases:{},not_found:{},...io};function $n(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ao(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!$n(e,pc))return null;const n=t.icons;for(const i in n){const o=n[i];if(!i||typeof o.body!="string"||!$n(o,_n))return null}const r=t.aliases||Object.create(null);for(const i in r){const o=r[i],s=o.parent;if(!i||typeof s!="string"||!n[s]&&!r[s]||!$n(o,_n))return null}return t}const lo=Object.create(null);function mc(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ot(e,t){const n=lo[e]||(lo[e]=Object.create(null));return n[t]||(n[t]=mc(e,t))}function uo(e,t){return ao(t)?so(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function gc(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}const co=/^[a-z0-9]+(-[a-z0-9]+)*$/,ln=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),u={provider:i.length>0?i[0]:r,prefix:l,name:a};return t&&!un(u)?null:u}const o=i[0],s=o.split("-");if(s.length>1){const a={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!un(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:o};return t&&!un(a,n)?null:a}return null},un=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;let It=!1;function fo(e){return typeof e=="boolean"&&(It=e),It}function ho(e){const t=typeof e=="string"?ln(e,!0,It):e;if(t){const n=ot(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function yc(e,t){const n=ln(e,!0,It);if(!n)return!1;const r=ot(n.provider,n.prefix);return t?gc(r,n.name,t):(r.missing.add(n.name),!0)}function xc(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),It&&!t&&!e.prefix){let i=!1;return ao(e)&&(e.prefix="",so(e,(o,s)=>{yc(o,s)&&(i=!0)})),i}const n=e.prefix;if(!un({prefix:n,name:"a"}))return!1;const r=ot(t,n);return!!uo(r,e)}const po=Object.freeze({width:null,height:null}),mo=Object.freeze({...po,...an}),bc=/(-?[0-9.]*[0-9]+[0-9.]*)/g,vc=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function go(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(bc);if(r===null||!r.length)return e;const i=[];let o=r.shift(),s=vc.test(o);for(;;){if(s){const a=parseFloat(o);isNaN(a)?i.push(o):i.push(Math.ceil(a*t*n)/n)}else i.push(o);if(o=r.shift(),o===void 0)return i.join("");s=!s}}function wc(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),o=e.indexOf("</"+t);if(i===-1||o===-1)break;const s=e.indexOf(">",o);if(s===-1)break;n+=e.slice(i+1,o).trim(),e=e.slice(0,r).trim()+e.slice(s+1)}return{defs:n,content:e}}function kc(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Sc(e,t,n){const r=wc(e);return kc(r.defs,t+r.content+n)}const Tc=e=>e==="unset"||e==="undefined"||e==="none";function Cc(e,t){const n={...zn,...e},r={...mo,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(m=>{const v=[],g=m.hFlip,S=m.vFlip;let w=m.rotate;g?S?w+=2:(v.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),v.push("scale(-1 1)"),i.top=i.left=0):S&&(v.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),v.push("scale(1 -1)"),i.top=i.left=0);let P;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:P=i.height/2+i.top,v.unshift("rotate(90 "+P.toString()+" "+P.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:P=i.width/2+i.left,v.unshift("rotate(-90 "+P.toString()+" "+P.toString()+")");break}w%2===1&&(i.left!==i.top&&(P=i.left,i.left=i.top,i.top=P),i.width!==i.height&&(P=i.width,i.width=i.height,i.height=P)),v.length&&(o=Sc(o,'<g transform="'+v.join(" ")+'">',"</g>"))});const s=r.width,a=r.height,l=i.width,u=i.height;let c,f;s===null?(f=a===null?"1em":a==="auto"?u:a,c=go(f,l/u)):(c=s==="auto"?l:s,f=a===null?go(c,u/l):a==="auto"?u:a);const d={},h=(m,v)=>{Tc(v)||(d[m]=v.toString())};h("width",c),h("height",f);const x=[i.left,i.top,l,u];return d.viewBox=x.join(" "),{attributes:d,viewBox:x,body:o}}const Pc=/\sid="(\S+)"/g,Ec="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ac=0;function Ic(e,t=Ec){const n=[];let r;for(;r=Pc.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(o=>{const s=typeof t=="function"?t(o):t+(Ac++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const Un=Object.create(null);function Dc(e,t){Un[e]=t}function Hn(e){return Un[e]||Un[""]}function Wn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const qn=Object.create(null),Dt=["https://api.simplesvg.com","https://api.unisvg.com"],cn=[];for(;Dt.length>0;)Dt.length===1||Math.random()>.5?cn.push(Dt.shift()):cn.push(Dt.pop());qn[""]=Wn({resources:["https://api.iconify.design"].concat(cn)});function jc(e,t){const n=Wn(t);return n===null?!1:(qn[e]=n,!0)}function Gn(e){return qn[e]}let yo=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function Mc(e,t){const n=Gn(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(s=>{i=Math.max(i,s.length)});const o=t+".json?icons=";r=n.maxURL-i-n.path.length-o.length}return r}function Nc(e){return e===404}const Vc=(e,t,n)=>{const r=[],i=Mc(e,t),o="icons";let s={type:o,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,u)=>{a+=l.length+1,a>=i&&u>0&&(r.push(s),s={type:o,provider:e,prefix:t,icons:[]},a=l.length),s.icons.push(l)}),r.push(s),r};function Lc(e){if(typeof e=="string"){const t=Gn(e);if(t)return t.path}return"/"}const Rc={prepare:Vc,send:(e,t,n)=>{if(!yo){n("abort",424);return}let r=Lc(t.provider);switch(t.type){case"icons":{const o=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=o+".json?"+l.toString();break}case"custom":{const o=t.uri;r+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let i=503;yo(e+r).then(o=>{const s=o.status;if(s!==200){setTimeout(()=>{n(Nc(s)?"abort":"next",s)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",i)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",i)})}};function xo(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function Oc(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(o=>{const s=o.icons,a=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==i)return!0;const u=l.name;if(e.icons[u])s.loaded.push({provider:r,prefix:i,name:u});else if(e.missing.has(u))s.missing.push({provider:r,prefix:i,name:u});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||xo([e],o.id),o.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),o.abort))})}))}let Fc=0;function Bc(e,t,n){const r=Fc++,i=xo.bind(null,n,r);if(!t.pending.length)return i;const o={id:r,icons:t,callback:e,abort:i};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(o)}),i}function zc(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const o=i.provider,s=i.prefix,a=i.name,l=n[o]||(n[o]=Object.create(null)),u=l[s]||(l[s]=ot(o,s));let c;a in u.icons?c=t.loaded:s===""||u.missing.has(a)?c=t.missing:c=t.pending;const f={provider:o,prefix:s,name:a};c.push(f)}),t}function _c(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const o=typeof i=="string"?ln(i,t,n):i;o&&r.push(o)}),r}const $c={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Uc(e,t,n,r){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let s;if(e.random){let k=e.resources.slice(0);for(s=[];k.length>1;){const N=Math.floor(Math.random()*k.length);s.push(k[N]),k=k.slice(0,N).concat(k.slice(N+1))}s=s.concat(k)}else s=e.resources.slice(o).concat(e.resources.slice(0,o));const a=Date.now();let l="pending",u=0,c,f=null,d=[],h=[];typeof r=="function"&&h.push(r);function x(){f&&(clearTimeout(f),f=null)}function m(){l==="pending"&&(l="aborted"),x(),d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function v(k,N){N&&(h=[]),typeof k=="function"&&h.push(k)}function g(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:d.length,subscribe:v,abort:m}}function S(){l="failed",h.forEach(k=>{k(void 0,c)})}function w(){d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function P(k,N,M){const O=N!=="success";switch(d=d.filter(B=>B!==k),l){case"pending":break;case"failed":if(O||!e.dataAfterTimeout)return;break;default:return}if(N==="abort"){c=M,S();return}if(O){c=M,d.length||(s.length?E():S());return}if(x(),w(),!e.random){const B=e.resources.indexOf(k.resource);B!==-1&&B!==e.index&&(e.index=B)}l="completed",h.forEach(B=>{B(M)})}function E(){if(l!=="pending")return;x();const k=s.shift();if(k===void 0){if(d.length){f=setTimeout(()=>{x(),l==="pending"&&(w(),S())},e.timeout);return}S();return}const N={status:"pending",resource:k,callback:(M,O)=>{P(N,M,O)}};d.push(N),u++,f=setTimeout(E,e.rotate),n(k,t,N.callback)}return setTimeout(E),g}function bo(e){const t={...$c,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function i(a,l,u){const c=Uc(t,a,l,(f,d)=>{r(),u&&u(f,d)});return n.push(c),c}function o(a){return n.find(l=>a(l))||null}return{query:i,find:o,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function vo(){}const Yn=Object.create(null);function Hc(e){if(!Yn[e]){const t=Gn(e);if(!t)return;const n=bo(t),r={config:t,redundancy:n};Yn[e]=r}return Yn[e]}function Wc(e,t,n){let r,i;if(typeof e=="string"){const o=Hn(e);if(!o)return n(void 0,424),vo;i=o.send;const s=Hc(e);s&&(r=s.redundancy)}else{const o=Wn(e);if(o){r=bo(o);const s=e.resources?e.resources[0]:"",a=Hn(s);a&&(i=a.send)}}return!r||!i?(n(void 0,424),vo):r.query(t,i,n)().abort}function wo(){}function qc(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Oc(e)}))}function Gc(e){const t=[],n=[];return e.forEach(r=>{(r.match(co)?t:n).push(r)}),{valid:t,invalid:n}}function jt(e,t,n){function r(){const i=e.pendingIcons;t.forEach(o=>{i&&i.delete(o),e.icons[o]||e.missing.add(o)})}if(n&&typeof n=="object")try{if(!uo(e,n).length){r();return}}catch(i){console.error(i)}r(),qc(e)}function ko(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Yc(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;if(delete e.iconsToLoad,!i||!i.length)return;const o=e.loadIcon;if(e.loadIcons&&(i.length>1||!o)){ko(e.loadIcons(i,r,n),c=>{jt(e,i,c)});return}if(o){i.forEach(c=>{const f=o(c,r,n);ko(f,d=>{const h=d?{prefix:r,icons:{[c]:d}}:null;jt(e,[c],h)})});return}const{valid:s,invalid:a}=Gc(i);if(a.length&&jt(e,a,null),!s.length)return;const l=r.match(co)?Hn(n):null;if(!l){jt(e,s,null);return}l.prepare(n,r,s).forEach(c=>{Wc(n,c,f=>{jt(e,c.icons,f)})})}))}const Kc=(e,t)=>{const n=_c(e,!0,fo()),r=zc(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,wo)}),()=>{l=!1}}const i=Object.create(null),o=[];let s,a;return r.pending.forEach(l=>{const{provider:u,prefix:c}=l;if(c===a&&u===s)return;s=u,a=c,o.push(ot(u,c));const f=i[u]||(i[u]=Object.create(null));f[c]||(f[c]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:c,name:f}=l,d=ot(u,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),i[u][c].push(f))}),o.forEach(l=>{const u=i[l.provider][l.prefix];u.length&&Yc(l,u)}),t?Bc(t,r,o):wo};function Xc(e,t){const n={...e};for(const r in t){const i=t[r],o=typeof i;r in po?(i===null||i&&(o==="string"||o==="number"))&&(n[r]=i):o===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const Qc=/[\s,]+/;function Zc(e,t){t.split(Qc).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Jc(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/i,o%1===0?r(o):0)}}return t}function ef(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function tf(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function nf(e){return"data:image/svg+xml,"+tf(e)}function rf(e){return'url("'+nf(e)+'")'}let Mt;function of(){try{Mt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Mt=null}}function sf(e){return Mt===void 0&&of(),Mt?Mt.createHTML(e):e}const So={...mo,inline:!1},af={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},lf={display:"inline-block"},Kn={backgroundColor:"currentColor"},To={backgroundColor:"transparent"},Co={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Po={WebkitMask:Kn,mask:Kn,background:To};for(const e in Po){const t=Po[e];for(const n in Co)t[e+n]=Co[n]}const uf={...So,inline:!0};function Eo(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const cf=(e,t,n)=>{const r=t.inline?uf:So,i=Xc(r,t),o=t.mode||"svg",s={},a=t.style||{},l={...o==="svg"?af:{}};if(n){const v=ln(n,!1,!0);if(v){const g=["iconify"],S=["provider","prefix"];for(const w of S)v[w]&&g.push("iconify--"+v[w]);l.className=g.join(" ")}}for(let v in t){const g=t[v];if(g!==void 0)switch(v){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":l.ref=g;break;case"className":l[v]=(l[v]?l[v]+" ":"")+g;break;case"inline":case"hFlip":case"vFlip":i[v]=g===!0||g==="true"||g===1;break;case"flip":typeof g=="string"&&Zc(i,g);break;case"color":s.color=g;break;case"rotate":typeof g=="string"?i[v]=Jc(g):typeof g=="number"&&(i[v]=g);break;case"ariaHidden":case"aria-hidden":g!==!0&&g!=="true"&&delete l["aria-hidden"];break;default:r[v]===void 0&&(l[v]=g)}}const u=Cc(e,i),c=u.attributes;if(i.inline&&(s.verticalAlign="-0.125em"),o==="svg"){l.style={...s,...a},Object.assign(l,c);let v=0,g=t.id;return typeof g=="string"&&(g=g.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:sf(Ic(u.body,g?()=>g+"ID"+v++:"iconifyReact"))},j.createElement("svg",l)}const{body:f,width:d,height:h}=e,x=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),m=ef(f,{...c,width:d+"",height:h+""});return l.style={...s,"--svg":rf(m),width:Eo(c.width),height:Eo(c.height),...lf,...x?Kn:To,...a},j.createElement("span",l)};if(fo(!0),Dc("",Rc),typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!xc(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;jc(n,i)||console.error(r)}catch{console.error(r)}}}}function Ao(e){const[t,n]=j.useState(!!e.ssr),[r,i]=j.useState({});function o(h){if(h){const x=e.icon;if(typeof x=="object")return{name:"",data:x};const m=ho(x);if(m)return{name:x,data:m}}return{name:""}}const[s,a]=j.useState(o(!!e.ssr));function l(){const h=r.callback;h&&(h(),i({}))}function u(h){if(JSON.stringify(s)!==JSON.stringify(h))return l(),a(h),!0}function c(){var h;const x=e.icon;if(typeof x=="object"){u({name:"",data:x});return}const m=ho(x);if(u({name:x,data:m}))if(m===void 0){const v=Kc([x],c);i({callback:v})}else m&&((h=e.onLoad)===null||h===void 0||h.call(e,x))}j.useEffect(()=>(n(!0),l),[]),j.useEffect(()=>{t&&c()},[e.icon,t]);const{name:f,data:d}=s;return d?cf({...zn,...d},e,f):e.children?e.children:e.fallback?e.fallback:j.createElement("span",{})}const fe=j.forwardRef((e,t)=>Ao({...e,_ref:t}));j.forwardRef((e,t)=>Ao({inline:!0,...e,_ref:t}));const Io=({title:e,subtitle:t,items:n,className:r="",inverted:i=!1})=>b.jsx("section",{className:`bento-grid-section ${i?"theme-inverted":""} ${r}`,children:b.jsxs("div",{className:"bento-grid-container",children:[(e||t)&&b.jsxs("div",{className:"bento-grid-header",children:[e&&b.jsx("h2",{className:"section-title bento-grid-title",children:e}),t&&b.jsx("p",{className:"section-subtitle bento-grid-subtitle",children:t})]}),b.jsx("div",{className:"bento-grid",children:n.map((o,s)=>{const a=o.colSpan?`col-span-${o.colSpan}`:"col-span-1",l=o.rowSpan?`row-span-${o.rowSpan}`:"row-span-1",u=o.href?"a":"div",c=o.href?{href:o.href,className:`bento-card ${a} ${l} ${o.className||""} ${i?"theme-inverted":""} clickable`}:{className:`bento-card ${a} ${l} ${o.className||""} ${i?"theme-inverted":""}`};return b.jsxs(u,{...c,children:[o.image&&b.jsx("div",{className:"bento-card-image-wrapper",children:b.jsx("img",{src:o.image.imageSrc,alt:o.image.alt,className:"bento-card-image"})}),b.jsxs("div",{className:"bento-card-content",children:[o.icon&&b.jsx("div",{className:"bento-card-icon",children:b.jsx(fe,{icon:o.icon,width:"24",height:"24"})}),b.jsxs("div",{className:`bento-card-text ${o.cardTextClassName}`,children:[b.jsx("h3",{className:"bento-card-title",children:o.title}),o.description&&b.jsx("p",{className:"bento-card-description",children:o.description})]})]})]},s)})})]})}),Xn=({children:e,className:t="",variant:n="default",padding:r="md",hoverable:i=!1,elevation:o="sm",onClick:s,inverted:a=!1})=>{const l=["card",`card-${n}`,`card-padding-${r}`,ff("elevation",o),i?"card-hoverable":"",a?"theme-inverted":"",t].filter(Boolean).join(" ");return b.jsx("div",{className:l,onClick:s,children:e})},ff=(e,t)=>t&&t!=="none"?`card-${e}-${t}`:"",Do=e=>{const{menuBar:t,utilityButtons:n,sticky:r=!1,className:i="",logoHref:o,imageSrc:s,logoTarget:a="_self",logoClassName:l="",altText:u="Logo",inverted:c=!1}=e,[f,d]=j.useState(!1);return b.jsxs("header",{className:`header ${r?"header-sticky":""} ${c?"theme-inverted":""} ${i}`,children:[b.jsx("div",{className:"header-logo-wrapper",children:s&&b.jsx("a",{href:o||"#",target:a,className:`${l} hover-lift`,"aria-label":"Home",children:b.jsx("img",{src:s,alt:u})})}),b.jsx("button",{className:"header-toggle",onClick:()=>d(!f),"aria-label":"Toggle navigation",children:b.jsx(fe,{icon:f?"mdi:close":"mdi:menu"})}),b.jsxs("div",{className:`header-nav-container ${f?"active":""}`,onClick:()=>d(!1),children:[b.jsx("div",{className:"header-nav",children:t}),n&&n.length>0&&b.jsx("div",{className:"header-utility",children:n})]})]})},jo=j.createContext({});function df(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qn=typeof window<"u",hf=Qn?j.useLayoutEffect:j.useEffect,Zn=j.createContext(null);function Jn(e,t){e.indexOf(t)===-1&&e.push(t)}function er(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Be=(e,t,n)=>n>t?t:n<e?e:n;function tr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let st=()=>{},ze=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(st=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(tr(t,n))},ze=(e,t,n)=>{if(!e)throw new Error(tr(t,n))});const _e={},Mo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function No(e){return typeof e=="object"&&e!==null}const Vo=e=>/^0[^.\s]+$/u.test(e);function nr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=e=>e,pf=(e,t)=>n=>t(e(n)),Nt=(...e)=>e.reduce(pf),Vt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class rr{constructor(){this.subscriptions=[]}add(t){return Jn(this.subscriptions,t),()=>er(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const De=e=>e*1e3,Pe=e=>e/1e3;function Lo(e,t){return t?e*(1e3/t):0}const Ro=new Set;function ir(e,t,n){e||Ro.has(t)||(console.warn(tr(t,n)),Ro.add(t))}const Oo=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mf=1e-7,gf=12;function yf(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Oo(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>mf&&++a<gf);return s}function Lt(e,t,n,r){if(e===t&&n===r)return Ce;const i=o=>yf(o,0,1,e,n);return o=>o===0||o===1?o:Oo(i(o),t,r)}const Fo=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bo=e=>t=>1-e(1-t),zo=Lt(.33,1.53,.69,.99),or=Bo(zo),_o=Fo(or),$o=e=>(e*=2)<1?.5*or(e):.5*(2-Math.pow(2,-10*(e-1))),sr=e=>1-Math.sin(Math.acos(e)),Uo=Bo(sr),Ho=Fo(sr),xf=Lt(.42,0,1,1),bf=Lt(0,0,.58,1),Wo=Lt(.42,0,.58,1),vf=e=>Array.isArray(e)&&typeof e[0]!="number",qo=e=>Array.isArray(e)&&typeof e[0]=="number",Go={linear:Ce,easeIn:xf,easeInOut:Wo,easeOut:bf,circIn:sr,circInOut:Ho,circOut:Uo,backIn:or,backInOut:_o,backOut:zo,anticipate:$o},wf=e=>typeof e=="string",Yo=e=>{if(qo(e)){ze(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Lt(t,n,r,i)}else if(wf(e))return ze(Go[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Go[e];return e},fn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kf(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){s.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,f=!1,d=!1)=>{const x=d&&i?n:r;return f&&s.add(c),x.has(c)||x.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(a=c,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,u.process(c))}};return u}const Sf=40;function Ko(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=fn.reduce((w,P)=>(w[P]=kf(o),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:d,render:h,postRender:x}=s,m=()=>{const w=_e.useManualTiming?i.timestamp:performance.now();n=!1,_e.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,Sf),1)),i.timestamp=w,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),h.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},v=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:fn.reduce((w,P)=>{const E=s[P];return w[P]=(k,N=!1,M=!1)=>(n||v(),E.schedule(k,N,M)),w},{}),cancel:w=>{for(let P=0;P<fn.length;P++)s[fn[P]].cancel(w)},state:i,steps:s}}const{schedule:ne,cancel:He,state:ce,steps:ar}=Ko(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);let dn;function Tf(){dn=void 0}const ye={now:()=>(dn===void 0&&ye.set(ce.isProcessing||_e.useManualTiming?ce.timestamp:performance.now()),dn),set:e=>{dn=e,queueMicrotask(Tf)}},Xo=e=>t=>typeof t=="string"&&t.startsWith(e),Qo=Xo("--"),Cf=Xo("var(--"),lr=e=>Cf(e)?Pf.test(e.split("/*")[0].trim()):!1,Pf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,at={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Rt={...at,transform:e=>Be(0,1,e)},hn={...at,default:1},Ot=e=>Math.round(e*1e5)/1e5,ur=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ef(e){return e==null}const Af=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cr=(e,t)=>n=>!!(typeof n=="string"&&Af.test(n)&&n.startsWith(e)||t&&!Ef(n)&&Object.prototype.hasOwnProperty.call(n,t)),Zo=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(ur);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},If=e=>Be(0,255,e),fr={...at,transform:e=>Math.round(If(e))},Qe={test:cr("rgb","red"),parse:Zo("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+fr.transform(e)+", "+fr.transform(t)+", "+fr.transform(n)+", "+Ot(Rt.transform(r))+")"};function Df(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const dr={test:cr("#"),parse:Df,transform:Qe.transform},Ft=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),We=Ft("deg"),Ve=Ft("%"),V=Ft("px"),jf=Ft("vh"),Mf=Ft("vw"),Jo={...Ve,parse:e=>Ve.parse(e)/100,transform:e=>Ve.transform(e*100)},lt={test:cr("hsl","hue"),parse:Zo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ve.transform(Ot(t))+", "+Ve.transform(Ot(n))+", "+Ot(Rt.transform(r))+")"},se={test:e=>Qe.test(e)||dr.test(e)||lt.test(e),parse:e=>Qe.test(e)?Qe.parse(e):lt.test(e)?lt.parse(e):dr.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Qe.transform(e):lt.transform(e),getAnimatableNone:e=>{const t=se.parse(e);return t.alpha=0,se.transform(t)}},Nf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Vf(e){return isNaN(e)&&typeof e=="string"&&(e.match(ur)?.length||0)+(e.match(Nf)?.length||0)>0}const es="number",ts="color",Lf="var",Rf="var(",ns="${}",Of=/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 Bt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(Of,l=>(se.test(l)?(r.color.push(o),i.push(ts),n.push(se.parse(l))):l.startsWith(Rf)?(r.var.push(o),i.push(Lf),n.push(l)):(r.number.push(o),i.push(es),n.push(parseFloat(l))),++o,ns)).split(ns);return{values:n,split:a,indexes:r,types:i}}function rs(e){return Bt(e).values}function is(e){const{split:t,types:n}=Bt(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===es?o+=Ot(i[s]):a===ts?o+=se.transform(i[s]):o+=i[s]}return o}}const Ff=e=>typeof e=="number"?0:se.test(e)?se.getAnimatableNone(e):e;function Bf(e){const t=rs(e);return is(e)(t.map(Ff))}const qe={test:Vf,parse:rs,createTransformer:is,getAnimatableNone:Bf};function hr(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 zf({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=hr(l,a,e+1/3),o=hr(l,a,e),s=hr(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function pn(e,t){return n=>n>0?t:e}const re=(e,t,n)=>e+(t-e)*n,pr=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},_f=[dr,Qe,lt],$f=e=>_f.find(t=>t.test(e));function os(e){const t=$f(e);if(st(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===lt&&(n=zf(n)),n}const ss=(e,t)=>{const n=os(e),r=os(t);if(!n||!r)return pn(e,t);const i={...n};return o=>(i.red=pr(n.red,r.red,o),i.green=pr(n.green,r.green,o),i.blue=pr(n.blue,r.blue,o),i.alpha=re(n.alpha,r.alpha,o),Qe.transform(i))},mr=new Set(["none","hidden"]);function Uf(e,t){return mr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Hf(e,t){return n=>re(e,t,n)}function gr(e){return typeof e=="number"?Hf:typeof e=="string"?lr(e)?pn:se.test(e)?ss:Gf:Array.isArray(e)?as:typeof e=="object"?se.test(e)?ss:Wf:pn}function as(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>gr(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function Wf(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=gr(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function qf(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}const Gf=(e,t)=>{const n=qe.createTransformer(t),r=Bt(e),i=Bt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?mr.has(e)&&!i.values.length||mr.has(t)&&!r.values.length?Uf(e,t):Nt(as(qf(r,i),i.values),n):(st(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),pn(e,t))};function ls(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?re(e,t,n):gr(e)(e,t)}const Yf=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ne.update(t,n),stop:()=>He(t),now:()=>ce.isProcessing?ce.timestamp:ye.now()}},us=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},mn=2e4;function yr(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<mn;)t+=n,r=e.next(t);return t>=mn?1/0:t}function Kf(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(yr(r),mn);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Pe(i)}}const Xf=5;function cs(e,t,n){const r=Math.max(t-Xf,0);return Lo(n-e(r),t-r)}const ie={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},xr=.001;function Qf({duration:e=ie.duration,bounce:t=ie.bounce,velocity:n=ie.velocity,mass:r=ie.mass}){let i,o;st(e<=De(ie.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Be(ie.minDamping,ie.maxDamping,s),e=Be(ie.minDuration,ie.maxDuration,Pe(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=br(u,s),x=Math.exp(-f);return xr-d/h*x},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,x=Math.exp(-f),m=br(Math.pow(u,2),s);return(-i(u)+xr>0?-1:1)*((d-h)*x)/m}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-xr+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=Jf(i,o,a);if(e=De(e),isNaN(l))return{stiffness:ie.stiffness,damping:ie.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Zf=12;function Jf(e,t,n){let r=n;for(let i=1;i<Zf;i++)r=r-e(r)/t(r);return r}function br(e,t){return e*Math.sqrt(1-t*t)}const ed=["duration","bounce"],td=["stiffness","damping","mass"];function fs(e,t){return t.some(n=>e[n]!==void 0)}function nd(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!fs(e,td)&&fs(e,ed))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Be(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ie.mass,stiffness:i,damping:o}}else{const n=Qf(e);t={...t,...n,mass:ie.mass},t.isResolvedFromDuration=!0}return t}function gn(e=ie.visualDuration,t=ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:h}=nd({...n,velocity:-Pe(n.velocity||0)}),x=d||0,m=u/(2*Math.sqrt(l*c)),v=s-o,g=Pe(Math.sqrt(l/c)),S=Math.abs(v)<5;r||(r=S?ie.restSpeed.granular:ie.restSpeed.default),i||(i=S?ie.restDelta.granular:ie.restDelta.default);let w;if(m<1){const E=br(g,m);w=k=>{const N=Math.exp(-m*g*k);return s-N*((x+m*g*v)/E*Math.sin(E*k)+v*Math.cos(E*k))}}else if(m===1)w=E=>s-Math.exp(-g*E)*(v+(x+g*v)*E);else{const E=g*Math.sqrt(m*m-1);w=k=>{const N=Math.exp(-m*g*k),M=Math.min(E*k,300);return s-N*((x+m*g*v)*Math.sinh(M)+E*v*Math.cosh(M))/E}}const P={calculatedDuration:h&&f||null,next:E=>{const k=w(E);if(h)a.done=E>=f;else{let N=E===0?x:0;m<1&&(N=E===0?De(x):cs(w,E,k));const M=Math.abs(N)<=r,O=Math.abs(s-k)<=i;a.done=M&&O}return a.value=a.done?s:k,a},toString:()=>{const E=Math.min(yr(P),mn),k=us(N=>P.next(E*N).value,E,30);return E+"ms "+k},toTransition:()=>{}};return P}gn.applyToOptions=e=>{const t=Kf(e,100,gn);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function vr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=M=>a!==void 0&&M<a||l!==void 0&&M>l,x=M=>a===void 0?l:l===void 0||Math.abs(a-M)<Math.abs(l-M)?a:l;let m=n*t;const v=f+m,g=s===void 0?v:s(v);g!==v&&(m=g-f);const S=M=>-m*Math.exp(-M/r),w=M=>g+S(M),P=M=>{const O=S(M),B=w(M);d.done=Math.abs(O)<=u,d.value=d.done?g:B};let E,k;const N=M=>{h(d.value)&&(E=M,k=gn({keyframes:[d.value,x(d.value)],velocity:cs(w,M,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:M=>{let O=!1;return!k&&E===void 0&&(O=!0,P(M),N(M)),E!==void 0&&M>=E?k.next(M-E):(!O&&P(M),d)}}}function rd(e,t,n){const r=[],i=n||_e.mix||ls,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Ce:t;a=Nt(l,a)}r.push(a)}return r}function id(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(ze(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=rd(t,r,i),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=Vt(e[f],e[f+1],c);return a[f](d)};return n?c=>u(Be(e[0],e[o-1],c)):u}function od(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Vt(0,t,r);e.push(re(n,1,i))}}function sd(e){const t=[0];return od(t,e.length-1),t}function ad(e,t){return e.map(n=>n*t)}function ld(e,t){return e.map(()=>t||Wo).splice(0,e.length-1)}function ut({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=vf(r)?r.map(Yo):Yo(r),o={done:!1,value:t[0]},s=ad(n&&n.length===t.length?n:sd(t),e),a=id(s,t,{ease:Array.isArray(i)?i:ld(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const ud=e=>e!==null;function wr(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(ud),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const cd={decay:vr,inertia:vr,tween:ut,keyframes:ut,spring:gn};function ds(e){typeof e.type=="string"&&(e.type=cd[e.type])}class kr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const fd=e=>e/100;class Sr extends kr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ye.now()&&this.tick(ye.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ds(t);const{type:n=ut,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const l=n||ut;process.env.NODE_ENV!=="production"&&l!==ut&&ze(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==ut&&typeof a[0]!="number"&&(this.mixKeyframes=Nt(fd,ls(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=yr(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:h,type:x,onUpdate:m,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,P=r;if(f){const M=Math.min(this.currentTime,i)/a;let O=Math.floor(M),B=M%1;!B&&M>=1&&(B=1),B===1&&O--,O=Math.min(O,f+1),!!(O%2)&&(d==="reverse"?(B=1-B,h&&(B-=h/a)):d==="mirror"&&(P=s)),w=Be(0,1,B)*a}const E=S?{done:!1,value:c[0]}:P.next(w);o&&(E.value=o(E.value));let{done:k}=E;!S&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&x!==vr&&(E.value=wr(c,this.options,v,this.speed)),m&&m(E.value),N&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return Pe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pe(t)}get time(){return Pe(this.currentTime)}set time(t){t=De(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ye.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Pe(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Yf,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ye.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function dd(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ze=e=>e*180/Math.PI,Tr=e=>{const t=Ze(Math.atan2(e[1],e[0]));return Cr(t)},hd={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Tr,rotateZ:Tr,skewX:e=>Ze(Math.atan(e[1])),skewY:e=>Ze(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Cr=e=>(e=e%360,e<0&&(e+=360),e),hs=Tr,ps=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ms=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),pd={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ps,scaleY:ms,scale:e=>(ps(e)+ms(e))/2,rotateX:e=>Cr(Ze(Math.atan2(e[6],e[5]))),rotateY:e=>Cr(Ze(Math.atan2(-e[2],e[0]))),rotateZ:hs,rotate:hs,skewX:e=>Ze(Math.atan(e[4])),skewY:e=>Ze(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Pr(e){return e.includes("scale")?1:0}function Er(e,t){if(!e||e==="none")return Pr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=pd,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=hd,i=a}if(!i)return Pr(t);const o=r[t],s=i[1].split(",").map(gd);return typeof o=="function"?o(s):s[o]}const md=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Er(n,t)};function gd(e){return parseFloat(e.trim())}const ct=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ft=new Set(ct),gs=e=>e===at||e===V,yd=new Set(["x","y","z"]),xd=ct.filter(e=>!yd.has(e));function bd(e){const t=[];return xd.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Je={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:(e,{transform:t})=>Er(t,"x"),y:(e,{transform:t})=>Er(t,"y")};Je.translateX=Je.x,Je.translateY=Je.y;const et=new Set;let Ar=!1,Ir=!1,Dr=!1;function ys(){if(Ir){const e=Array.from(et).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=bd(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{r.getValue(o)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ir=!1,Ar=!1,et.forEach(e=>e.complete(Dr)),et.clear()}function xs(){et.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ir=!0)})}function vd(){Dr=!0,xs(),ys(),Dr=!1}class jr{constructor(t,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(et.add(this),Ar||(Ar=!0,ne.read(xs),ne.resolveKeyframes(ys))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i?.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}dd(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),et.delete(this)}cancel(){this.state==="scheduled"&&(et.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const wd=e=>e.startsWith("--");function kd(e,t,n){wd(t)?e.style.setProperty(t,n):e.style[t]=n}const Sd=nr(()=>window.ScrollTimeline!==void 0),Td={};function Cd(e,t){const n=nr(e);return()=>Td[t]??n()}const bs=Cd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,vs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zt([0,.65,.55,1]),circOut:zt([.55,0,1,.45]),backIn:zt([.31,.01,.66,-.59]),backOut:zt([.33,1.53,.69,.99])};function ws(e,t){if(e)return typeof e=="function"?bs()?us(e,t):"ease-out":qo(e)?zt(e):Array.isArray(e)?e.map(n=>ws(n,t)||vs.easeOut):vs[e]}function Pd(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=ws(a,i);Array.isArray(f)&&(c.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}function ks(e){return typeof e=="function"&&"applyToOptions"in e}function Ed({type:e,...t}){return ks(e)&&bs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ad extends kr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,ze(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Ed(t);this.animation=Pd(n,r,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=wr(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):kd(n,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Pe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pe(t)}get time(){return Pe(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=De(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Sd()?(this.animation.timeline=t,Ce):n(this)}}const Ss={anticipate:$o,backInOut:_o,circInOut:Ho};function Id(e){return e in Ss}function Dd(e){typeof e.ease=="string"&&Id(e.ease)&&(e.ease=Ss[e.ease])}const Ts=10;class jd extends Ad{constructor(t){Dd(t),ds(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Sr({...s,autoplay:!1}),l=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ts).value,a.sample(l).value,Ts),a.stop()}}const Cs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(qe.test(e)||e==="0")&&!e.startsWith("url("));function Md(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Nd(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Cs(i,t),a=Cs(o,t);return st(s===a,`You are trying to animate ${t} from "${i}" to "${o}". "${s?o:i}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:Md(e)||(n==="spring"||ks(n))&&r}function Mr(e){e.duration=0,e.type="keyframes"}const Vd=new Set(["opacity","clipPath","filter","transform"]),Ld=nr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Rd(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Ld()&&n&&Vd.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const Od=40;class Fd extends kr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ye.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:u,element:c,...f},h=c?.KeyframeResolver||jr;this.keyframeResolver=new h(a,(x,m,v)=>this.onKeyframesResolved(x,m,d,!v),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=ye.now(),Nd(t,o,s,a)||((_e.instantAnimations||!l)&&c?.(wr(t,r,n)),t[0]=t[t.length-1],Mr(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Od?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!u&&Rd(d)?new jd({...d,element:d.motionValue.owner.current}):new Sr(d);h.finished.then(()=>this.notifyFinished()).catch(Ce),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),vd()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Bd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zd(e){const t=Bd.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const _d=4;function Ps(e,t,n=1){ze(n<=_d,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=zd(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Mo(s)?parseFloat(s):s}return lr(i)?Ps(i,t,n+1):i}function Nr(e,t){return e?.[t]??e?.default??e}const Es=new Set(["width","height","top","left","right","bottom",...ct]),$d={test:e=>e==="auto",parse:e=>e},As=e=>t=>t.test(e),Is=[at,V,Ve,We,Mf,jf,$d],Ds=e=>Is.find(As(e));function Ud(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vo(e):!0}const Hd=new Set(["brightness","contrast","saturate","opacity"]);function Wd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ur)||[];if(!r)return e;const i=n.replace(r,"");let o=Hd.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const qd=/\b([a-z-]*)\(.*?\)/gu,Vr={...qe,getAnimatableNone:e=>{const t=e.match(qd);return t?t.map(Wd).join(" "):e}},js={...at,transform:Math.round},Lr={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,backgroundPositionX:V,backgroundPositionY:V,...{rotate:We,rotateX:We,rotateY:We,rotateZ:We,scale:hn,scaleX:hn,scaleY:hn,scaleZ:hn,skew:We,skewX:We,skewY:We,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Rt,originX:Jo,originY:Jo,originZ:V},zIndex:js,fillOpacity:Rt,strokeOpacity:Rt,numOctaves:js},Gd={...Lr,color:se,backgroundColor:se,outlineColor:se,fill:se,stroke:se,borderColor:se,borderTopColor:se,borderRightColor:se,borderBottomColor:se,borderLeftColor:se,filter:Vr,WebkitFilter:Vr},Ms=e=>Gd[e];function Ns(e,t){let n=Ms(e);return n!==Vr&&(n=qe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Yd=new Set(["auto","none","0"]);function Kd(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!Yd.has(o)&&Bt(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Ns(n,i)}class Xd extends jr{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),lr(u))){const c=Ps(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Es.has(r)||t.length!==2)return;const[i,o]=t,s=Ds(i),a=Ds(o);if(s!==a)if(gs(s)&&gs(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Je[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Ud(t[i]))&&r.push(i);r.length&&Kd(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Je[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=Je[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Qd(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Vs=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Zd(e){return No(e)&&"offsetHeight"in e}const Ls=30,Jd=e=>!isNaN(parseFloat(e));class eh{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=ye.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Jd(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ir(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new rr);const r=this.events[t].add(n);return t==="change"?()=>{r(),ne.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ls)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ls);return Lo(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dt(e,t){return new eh(e,t)}const{schedule:Rr}=Ko(queueMicrotask,!1),je={x:!1,y:!1};function Rs(){return je.x||je.y}function th(e){return e==="x"||e==="y"?je[e]?null:(je[e]=!0,()=>{je[e]=!1}):je.x||je.y?null:(je.x=je.y=!0,()=>{je.x=je.y=!1})}function Os(e,t){const n=Qd(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Fs(e){return!(e.pointerType==="touch"||Rs())}function nh(e,t,n={}){const[r,i,o]=Os(e,n),s=a=>{if(!Fs(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=f=>{Fs(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const Bs=(e,t)=>t?e===t?!0:Bs(e,t.parentElement):!1,Or=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,rh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ih(e){return rh.has(e.tagName)||e.tabIndex!==-1}const yn=new WeakSet;function zs(e){return t=>{t.key==="Enter"&&e(t)}}function Fr(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const oh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=zs(()=>{if(yn.has(n))return;Fr(n,"down");const i=zs(()=>{Fr(n,"up")}),o=()=>Fr(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function _s(e){return Or(e)&&!Rs()}function sh(e,t,n={}){const[r,i,o]=Os(e,n),s=a=>{const l=a.currentTarget;if(!_s(a))return;yn.add(l);const u=t(l,a),c=(h,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),yn.has(l)&&yn.delete(l),_s(h)&&typeof u=="function"&&u(h,{success:x})},f=h=>{c(h,l===window||l===document||n.useGlobalTarget||Bs(l,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),Zd(a)&&(a.addEventListener("focus",u=>oh(u,i)),!ih(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function $s(e){return No(e)&&"ownerSVGElement"in e}function ah(e){return $s(e)&&e.tagName==="svg"}const de=e=>!!(e&&e.getVelocity),lh=[...Is,se,qe],uh=e=>lh.find(As(e)),Us=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ch(e=!0){const t=j.useContext(Zn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=j.useId();j.useEffect(()=>{if(e)return i(o)},[e]);const s=j.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const Hs=j.createContext({strict:!1}),Ws={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"]},ht={};for(const e in Ws)ht[e]={isEnabled:t=>Ws[e].some(n=>!!t[n])};function fh(e){for(const t in e)ht[t]={...ht[t],...e[t]}}const dh=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 xn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dh.has(e)}let qs=e=>!xn(e);function hh(e){typeof e=="function"&&(qs=t=>t.startsWith("on")?!xn(t):e(t))}try{hh(require("@emotion/is-prop-valid").default)}catch{}function ph(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(qs(i)||n===!0&&xn(i)||!t&&!xn(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const bn=j.createContext({});function vn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function _t(e){return typeof e=="string"||Array.isArray(e)}const Br=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zr=["initial",...Br];function wn(e){return vn(e.animate)||zr.some(t=>_t(e[t]))}function Gs(e){return!!(wn(e)||e.variants)}function mh(e,t){if(wn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||_t(n)?n:void 0,animate:_t(r)?r:void 0}}return e.inherit!==!1?t:{}}function gh(e){const{initial:t,animate:n}=mh(e,j.useContext(bn));return j.useMemo(()=>({initial:t,animate:n}),[Ys(t),Ys(n)])}function Ys(e){return Array.isArray(e)?e.join(" "):e}function Ks(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $t={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Ks(e,t.target.x),r=Ks(e,t.target.y);return`${n}% ${r}%`}},yh={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=qe.parse(e);if(i.length>5)return r;const o=qe.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=re(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}},_r={borderRadius:{...$t,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$t,borderTopRightRadius:$t,borderBottomLeftRadius:$t,borderBottomRightRadius:$t,boxShadow:yh};function Xs(e,{layout:t,layoutId:n}){return ft.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_r[e]||e==="opacity")}const xh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bh=ct.length;function vh(e,t,n){let r="",i=!0;for(let o=0;o<bh;o++){const s=ct[o],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Vs(a,Lr[s]);if(!l){i=!1;const c=xh[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function $r(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(ft.has(l)){s=!0;continue}else if(Qo(l)){i[l]=u;continue}else{const c=Vs(u,Lr[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=vh(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;r.transformOrigin=`${l} ${u} ${c}`}}const Ur=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qs(e,t,n){for(const r in t)!de(t[r])&&!Xs(r,n)&&(e[r]=t[r])}function wh({transformTemplate:e},t){return j.useMemo(()=>{const n=Ur();return $r(n,t,e),Object.assign({},n.vars,n.style)},[t])}function kh(e,t){const n=e.style||{},r={};return Qs(r,n,e),Object.assign(r,wh(e,t)),r}function Sh(e,t){const n={},r=kh(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 Th={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ch={offset:"strokeDashoffset",array:"strokeDasharray"};function Ph(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Th:Ch;e[o.offset]=V.transform(-r);const s=V.transform(t),a=V.transform(n);e[o.array]=`${s} ${a}`}const Eh=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Zs(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if($r(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete f.transformBox);for(const h of Eh)f[h]!==void 0&&(d[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&Ph(f,i,o,s,!1)}const Js=()=>({...Ur(),attrs:{}}),ea=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ah(e,t,n,r){const i=j.useMemo(()=>{const o=Js();return Zs(o,t,ea(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Qs(o,e.style,e),i.style={...o,...i.style}}return i}const Ih=["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 Hr(e){return typeof e!="string"||e.includes("-")?!1:!!(Ih.indexOf(e)>-1||/[A-Z]/u.test(e))}function Dh(e,t,n,{latestValues:r},i,o=!1,s){const l=(s??Hr(e)?Ah:Sh)(t,r,i,e),u=ph(t,typeof e=="string",o),c=e!==j.Fragment?{...u,...l,ref:n}:{},{children:f}=t,d=j.useMemo(()=>de(f)?f.get():f,[f]);return j.createElement(e,{...c,children:d})}function ta(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Wr(e,t,n,r){if(typeof t=="function"){const[i,o]=ta(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=ta(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function kn(e){return de(e)?e.get():e}function jh({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Mh(n,r,i,e),renderState:t()}}function Mh(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=kn(o[d]);let{initial:s,animate:a}=e;const l=wn(e),u=Gs(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;if(f&&typeof f!="boolean"&&!vn(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const x=Wr(e,d[h]);if(x){const{transitionEnd:m,transition:v,...g}=x;for(const S in g){let w=g[S];if(Array.isArray(w)){const P=c?w.length-1:0;w=w[P]}w!==null&&(i[S]=w)}for(const S in m)i[S]=m[S]}}}return i}const na=e=>(t,n)=>{const r=j.useContext(bn),i=j.useContext(Zn),o=()=>jh(e,t,r,i);return n?o():df(o)};function qr(e,t,n){const{style:r}=e,i={};for(const o in r)(de(r[o])||t.style&&de(t.style[o])||Xs(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}const Nh=na({scrapeMotionValuesFromProps:qr,createRenderState:Ur});function ra(e,t,n){const r=qr(e,t,n);for(const i in e)if(de(e[i])||de(t[i])){const o=ct.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Vh=na({scrapeMotionValuesFromProps:ra,createRenderState:Js}),Lh=Symbol.for("motionComponentSymbol");function pt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ia(e,t){if(typeof e=="function")return e(t);pt(e)&&(e.current=t)}function Rh(e,t,n){const r=j.useRef(null);return j.useCallback(i=>{if(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n)if(i){const o=ia(n,i);typeof o=="function"&&(r.current=o)}else r.current?(r.current(),r.current=null):ia(n,i)},[t,e,n])}const Gr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),oa="data-"+Gr("framerAppearId"),sa=j.createContext({});function Oh(e,t,n,r,i,o){const{visualElement:s}=j.useContext(bn),a=j.useContext(Hs),l=j.useContext(Zn),u=j.useContext(Us).reducedMotion,c=j.useRef(null);r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:o}));const f=c.current,d=j.useContext(sa);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Fh(c.current,n,i,d);const h=j.useRef(!1);j.useInsertionEffect(()=>{f&&h.current&&f.update(n,l)});const x=n[oa],m=j.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return hf(()=>{f&&(h.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),m.current&&f.animationState&&f.animationState.animateChanges())}),j.useEffect(()=>{f&&(!m.current&&f.animationState&&f.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),m.current=!1),f.enteringChildren=void 0)}),f}function Fh(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:aa(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&pt(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function aa(e){if(e)return e.options.allowProjection!==!1?e.projection:aa(e.parent)}function Yr(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&fh(r);const o=n?n==="svg":Hr(e),s=o?Vh:Nh;function a(u,c){let f;const d={...j.useContext(Us),...u,layoutId:Bh(u)},{isStatic:h}=d,x=gh(u),m=s(u,h);if(!h&&Qn){zh(d,r);const v=_h(d);f=v.MeasureLayout,x.visualElement=Oh(e,m,d,i,v.ProjectionNode,o)}return b.jsxs(bn.Provider,{value:x,children:[f&&x.visualElement?b.jsx(f,{visualElement:x.visualElement,...d}):null,Dh(e,u,Rh(m,x.visualElement,c),m,h,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=j.forwardRef(a);return l[Lh]=e,l}function Bh({layoutId:e}){const t=j.useContext(jo).id;return t&&e!==void 0?t+"-"+e:e}function zh(e,t){const n=j.useContext(Hs).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?st(!1,r,"lazy-strict-mode"):ze(!1,r,"lazy-strict-mode")}}function _h(e){const{drag:t,layout:n}=ht;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function $h(e,t){if(typeof Proxy>"u")return Yr;const n=new Map,r=(o,s)=>Yr(o,s,e,t),i=(o,s)=>(process.env.NODE_ENV!=="production"&&ir(!1,"motion() is deprecated. Use motion.create() instead."),r(o,s));return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,Yr(s,void 0,e,t)),n.get(s))})}function la({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Uh({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Hh(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 Kr(e){return e===void 0||e===1}function Xr({scale:e,scaleX:t,scaleY:n}){return!Kr(e)||!Kr(t)||!Kr(n)}function tt(e){return Xr(e)||ua(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ua(e){return ca(e.x)||ca(e.y)}function ca(e){return e&&e!=="0%"}function Sn(e,t,n){const r=e-n,i=t*r;return n+i}function fa(e,t,n,r,i){return i!==void 0&&(e=Sn(e,i,r)),Sn(e,n,r)+t}function Qr(e,t=0,n=1,r,i){e.min=fa(e.min,t,n,r,i),e.max=fa(e.max,t,n,r,i)}function da(e,{x:t,y:n}){Qr(e.x,t.translate,t.scale,t.originPoint),Qr(e.y,n.translate,n.scale,n.originPoint)}const ha=.999999999999,pa=1.0000000000001;function Wh(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&gt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,da(e,s)),r&&tt(o.latestValues)&&gt(e,o.latestValues))}t.x<pa&&t.x>ha&&(t.x=1),t.y<pa&&t.y>ha&&(t.y=1)}function mt(e,t){e.min=e.min+t,e.max=e.max+t}function ma(e,t,n,r,i=.5){const o=re(e.min,e.max,i);Qr(e,t,n,o,r)}function gt(e,t){ma(e.x,t.x,t.scaleX,t.scale,t.originX),ma(e.y,t.y,t.scaleY,t.scale,t.originY)}function ga(e,t){return la(Hh(e.getBoundingClientRect(),t))}function qh(e,t,n){const r=ga(e,n),{scroll:i}=t;return i&&(mt(r.x,i.offset.x),mt(r.y,i.offset.y)),r}const ya=()=>({translate:0,scale:1,origin:0,originPoint:0}),yt=()=>({x:ya(),y:ya()}),xa=()=>({min:0,max:0}),ue=()=>({x:xa(),y:xa()}),Zr={current:null},ba={current:!1};function Gh(){if(ba.current=!0,!!Qn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Zr.current=e.matches;e.addEventListener("change",t),t()}else Zr.current=!1}const Yh=new WeakMap;function Kh(e,t,n){for(const r in t){const i=t[r],o=n[r];if(de(i))e.addValue(r,i);else if(de(o))e.addValue(r,dt(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,dt(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const va=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Xh{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=jr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=ye.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,ne.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=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=wn(n),this.isVariantNode=Gs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const h=f[d];l[d]!==void 0&&de(h)&&h.set(l[d])}}mount(t){this.current=t,Yh.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)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ba.current||Gh(),this.shouldReduceMotion=Zr.current),process.env.NODE_ENV!=="production"&&ir(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),He(this.notifyUpdate),He(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ft.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ne.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),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 ht){const n=ht[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ue()}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;r<va.length;r++){const i=va[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Kh(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.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=dt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Mo(r)||Vo(r))?r=parseFloat(r):!uh(r)&&qe.test(n)&&(r=Ns(t,n)),this.setBaseTarget(t,de(r)?r.get():r)),de(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Wr(this.props,n,this.presenceContext?.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!de(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new rr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Rr.render(this.render)}}class wa extends Xh{constructor(){super(...arguments),this.KeyframeResolver=Xd}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;de(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ka(e,{style:t,vars:n},r,i){const o=e.style;let s;for(s in t)o[s]=t[s];i?.applyProjectionStyles(o,r);for(s in n)o.setProperty(s,n[s])}function Qh(e){return window.getComputedStyle(e)}class Zh extends wa{constructor(){super(...arguments),this.type="html",this.renderInstance=ka}readValueFromInstance(t,n){if(ft.has(n))return this.projection?.isProjecting?Pr(n):md(t,n);{const r=Qh(t),i=(Qo(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ga(t,n)}build(t,n,r){$r(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return qr(t,n,r)}}const Sa=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 Jh(e,t,n,r){ka(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Sa.has(i)?i:Gr(i),t.attrs[i])}class ep extends wa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ue}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ft.has(n)){const r=Ms(n);return r&&r.default||0}return n=Sa.has(n)?n:Gr(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ra(t,n,r)}build(t,n,r){Zs(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Jh(t,n,r,i)}mount(t){this.isSVGTag=ea(t.tagName),super.mount(t)}}const tp=(e,t)=>t.isSVG??Hr(e)?new ep(t):new Zh(t,{allowProjection:e!==j.Fragment});function xt(e,t,n){const r=e.getProps();return Wr(r,t,n!==void 0?n:r.custom,e)}const Jr=e=>Array.isArray(e);function np(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dt(n))}function rp(e){return Jr(e)?e[e.length-1]||0:e}function ip(e,t){const n=xt(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=rp(o[s]);np(e,s,a)}}function op(e){return!!(de(e)&&e.add)}function ei(e,t){const n=e.getValue("willChange");if(op(n))return n.add(t);if(!n&&_e.WillChange){const r=new _e.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ta(e){return e.props[oa]}const sp=e=>e!==null;function ap(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(sp),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const lp={type:"spring",stiffness:500,damping:25,restSpeed:10},up=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cp={type:"keyframes",duration:.8},fp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dp=(e,{keyframes:t})=>t.length>2?cp:ft.has(e)?e.startsWith("scale")?up(t[1]):lp:fp;function hp({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const ti=(e,t,n,r={},i,o)=>s=>{const a=Nr(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-De(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};hp(a)||Object.assign(c,dp(e,c)),c.duration&&(c.duration=De(c.duration)),c.repeatDelay&&(c.repeatDelay=De(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Mr(c),c.delay===0&&(f=!0)),(_e.instantAnimations||_e.skipAnimations)&&(f=!0,Mr(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const d=ap(c.keyframes,a);if(d!==void 0){ne.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new Sr(c):new Fd(c)};function pp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ca(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(o=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const f=e.getValue(c,e.latestValues[c]??null),d=a[c];if(d===void 0||u&&pp(u,c))continue;const h={delay:n,...Nr(o||{},c)},x=f.get();if(x!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===x&&!h.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const g=Ta(e);if(g){const S=window.MotionHandoffAnimation(g,c,ne);S!==null&&(h.startTime=S,m=!0)}}ei(e,c),f.start(ti(c,f,d,e.shouldReduceMotion&&Es.has(c)?{type:!1}:h,e,m));const v=f.animation;v&&l.push(v)}return s&&Promise.all(l).then(()=>{ne.update(()=>{s&&ip(e,s)})}),l}function Pa(e,t,n,r=0,i=1){const o=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(o,s):i===1?o*r:a-o*r}function ni(e,t,n={}){const r=xt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Ca(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return mp(e,t,l,u,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function mp(e,t,n=0,r=0,i=0,o=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(ni(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Pa(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function gp(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ni(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ni(e,t,n);else{const i=typeof t=="function"?xt(e,t,n.custom):t;r=Promise.all(Ca(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ea(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const yp=zr.length;function Aa(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Aa(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<yp;n++){const r=zr[n],i=e.props[r];(_t(i)||i===!1)&&(t[r]=i)}return t}const xp=[...Br].reverse(),bp=Br.length;function vp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>gp(e,n,r)))}function wp(e){let t=vp(e),n=Ia(),r=!0;const i=l=>(u,c)=>{const f=xt(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:h,...x}=f;u={...u,...x,...h}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=Aa(e.parent)||{},f=[],d=new Set;let h={},x=1/0;for(let v=0;v<bp;v++){const g=xp[v],S=n[g],w=u[g]!==void 0?u[g]:c[g],P=_t(w),E=g===l?S.isActive:null;E===!1&&(x=v);let k=w===c[g]&&w!==u[g]&&P;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),S.protectedKeys={...h},!S.isActive&&E===null||!w&&!S.prevProp||vn(w)||typeof w=="boolean")continue;const N=kp(S.prevProp,w);let M=N||g===l&&S.isActive&&!k&&P||v>x&&P,O=!1;const B=Array.isArray(w)?w:[w];let L=B.reduce(i(g),{});E===!1&&(L={});const{prevResolvedValues:R={}}=S,K={...R,...L},F=W=>{M=!0,d.has(W)&&(O=!0,d.delete(W)),S.needsAnimating[W]=!0;const Q=e.getValue(W);Q&&(Q.liveStyle=!1)};for(const W in K){const Q=L[W],le=R[W];if(h.hasOwnProperty(W))continue;let y=!1;Jr(Q)&&Jr(le)?y=!Ea(Q,le):y=Q!==le,y?Q!=null?F(W):d.add(W):Q!==void 0&&d.has(W)?F(W):S.protectedKeys[W]=!0}S.prevProp=w,S.prevResolvedValues=L,S.isActive&&(h={...h,...L}),r&&e.blockInitialAnimation&&(M=!1);const D=k&&N;M&&(!D||O)&&f.push(...B.map(W=>{const Q={type:g};if(typeof W=="string"&&r&&!D&&e.manuallyAnimateOnMount&&e.parent){const{parent:le}=e,y=xt(le,W);if(le.enteringChildren&&y){const{delayChildren:C}=y.transition||{};Q.delay=Pa(le.enteringChildren,e,C)}}return{animation:W,options:Q}}))}if(d.size){const v={};if(typeof u.initial!="boolean"){const g=xt(e,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(v.transition=g.transition)}d.forEach(g=>{const S=e.getBaseTarget(g),w=e.getValue(g);w&&(w.liveStyle=!0),v[g]=S??null}),f.push({animation:v})}let m=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(f):Promise.resolve()}function a(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(l,u)),n[l].isActive=u;const c=s(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ia()}}}function kp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ea(t,e):!1}function nt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ia(){return{animate:nt(!0),whileInView:nt(),whileHover:nt(),whileTap:nt(),whileDrag:nt(),whileFocus:nt(),exit:nt()}}class Ge{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Sp extends Ge{constructor(t){super(t),t.animationState||(t.animationState=wp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();vn(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(){this.node.animationState.reset(),this.unmountControls?.()}}let Tp=0;class Cp extends Ge{constructor(){super(...arguments),this.id=Tp++}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 i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Pp={animation:{Feature:Sp},exit:{Feature:Cp}};function Ut(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ht(e){return{point:{x:e.pageX,y:e.pageY}}}const Ep=e=>t=>Or(t)&&e(t,Ht(t));function Wt(e,t,n,r){return Ut(e,t,Ep(n),r)}const Da=1e-4,Ap=1-Da,Ip=1+Da,ja=.01,Dp=0-ja,jp=0+ja;function pe(e){return e.max-e.min}function Mp(e,t,n){return Math.abs(e-t)<=n}function Ma(e,t,n,r=.5){e.origin=r,e.originPoint=re(t.min,t.max,e.origin),e.scale=pe(n)/pe(t),e.translate=re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ap&&e.scale<=Ip||isNaN(e.scale))&&(e.scale=1),(e.translate>=Dp&&e.translate<=jp||isNaN(e.translate))&&(e.translate=0)}function qt(e,t,n,r){Ma(e.x,t.x,n.x,r?r.originX:void 0),Ma(e.y,t.y,n.y,r?r.originY:void 0)}function Na(e,t,n){e.min=n.min+t.min,e.max=e.min+pe(t)}function Np(e,t,n){Na(e.x,t.x,n.x),Na(e.y,t.y,n.y)}function Va(e,t,n){e.min=t.min-n.min,e.max=e.min+pe(t)}function Tn(e,t,n){Va(e.x,t.x,n.x),Va(e.y,t.y,n.y)}function Ee(e){return[e("x"),e("y")]}const La=({current:e})=>e?e.ownerDocument.defaultView:null,Ra=(e,t)=>Math.abs(e-t);function Vp(e,t){const n=Ra(e.x,t.x),r=Ra(e.y,t.y);return Math.sqrt(n**2+r**2)}class Oa{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=ii(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,x=Vp(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!x)return;const{point:m}=d,{timestamp:v}=ce;this.history.push({...m,timestamp:v});const{onStart:g,onMove:S}=this.handlers;h||(g&&g(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ri(h,this.transformPagePoint),ne.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:x,onSessionEnd:m,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=ii(d.type==="pointercancel"?this.lastMoveEventInfo:ri(h,this.transformPagePoint),this.history);this.startEvent&&x&&x(d,g),m&&m(d,g)},!Or(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const a=Ht(t),l=ri(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=ce;this.history=[{...u,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,ii(l,this.history)),this.removeListeners=Nt(Wt(this.contextWindow,"pointermove",this.handlePointerMove),Wt(this.contextWindow,"pointerup",this.handlePointerUp),Wt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),He(this.updatePoint)}}function ri(e,t){return t?{point:t(e.point)}:e}function Fa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ii({point:e},t){return{point:e,delta:Fa(e,Ba(t)),offset:Fa(e,Lp(t)),velocity:Rp(t,.1)}}function Lp(e){return e[0]}function Ba(e){return e[e.length-1]}function Rp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Ba(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>De(t)));)n--;if(!r)return{x:0,y:0};const o=Pe(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Op(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?re(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?re(n,e,r.max):Math.min(e,n)),e}function za(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Fp(e,{top:t,left:n,bottom:r,right:i}){return{x:za(e.x,n,i),y:za(e.y,t,r)}}function _a(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Bp(e,t){return{x:_a(e.x,t.x),y:_a(e.y,t.y)}}function zp(e,t){let n=.5;const r=pe(e),i=pe(t);return i>r?n=Vt(t.min,t.max-r,e.min):r>i&&(n=Vt(e.min,e.max-i,t.min)),Be(0,1,n)}function _p(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const oi=.35;function $p(e=oi){return e===!1?e=0:e===!0&&(e=oi),{x:$a(e,"left","right"),y:$a(e,"top","bottom")}}function $a(e,t,n){return{min:Ua(e,t),max:Ua(e,n)}}function Ua(e,t){return typeof e=="number"?e:e[t]||0}const Up=new WeakMap;class Hp{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ue(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ht(f).point)},s=(f,d)=>{const{drag:h,dragPropagation:x,onDragStart:m}=this.getProps();if(h&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=th(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ee(g=>{let S=this.getAxisMotionValue(g).get()||0;if(Ve.test(S)){const{projection:w}=this.visualElement;if(w&&w.layout){const P=w.layout.layoutBox[g];P&&(S=pe(P)*(parseFloat(S)/100))}}this.originPoint[g]=S}),m&&ne.postRender(()=>m(f,d)),ei(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:x,onDirectionLock:m,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:g}=d;if(x&&this.currentDirection===null){this.currentDirection=Wp(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,g),this.updateAxis("y",d.point,g),this.visualElement.render(),v&&v(f,d)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Ee(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Oa(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:La(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&ne.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Cn(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Op(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&pt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Fp(r.layoutBox,t):this.constraints=!1,this.elastic=$p(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ee(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=_p(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!pt(t))return!1;const r=t.current;ze(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=qh(r,i.root,this.visualElement.getTransformPagePoint());let s=Bp(i.layout.layoutBox,o);if(n){const a=n(Uh(s));this.hasMutatedConstraints=!!a,a&&(s=la(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ee(c=>{if(!Cn(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,x={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ei(this.visualElement,t),r.start(ti(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ee(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ee(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ee(n=>{const{drag:r}=this.getProps();if(!Cn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(t[n]-re(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!pt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ee(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=zp({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ee(s=>{if(!Cn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(re(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;Up.set(this.visualElement,this);const t=this.visualElement.current,n=Wt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();pt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ne.read(r);const s=Ut(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ee(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=oi,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Cn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Wp(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class qp extends Ge{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new Hp(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ce}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ha=e=>(t,n)=>{e&&ne.postRender(()=>e(t,n))};class Gp extends Ge{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new Oa(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:La(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ha(t),onStart:Ha(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&ne.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Wt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Pn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let si=!1;class Yp extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),si&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Pn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,si=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||ne.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Rr.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;si=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wa(e){const[t,n]=ch(),r=j.useContext(jo);return b.jsx(Yp,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(sa),isPresent:t,safeToRemove:n})}function Kp(e,t,n){const r=de(e)?e:dt(e);return r.start(ti("",r,t,n)),r.animation}const Xp=(e,t)=>e.depth-t.depth;class Qp{constructor(){this.children=[],this.isDirty=!1}add(t){Jn(this.children,t),this.isDirty=!0}remove(t){er(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Xp),this.isDirty=!1,this.children.forEach(t)}}function Zp(e,t){const n=ye.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(He(r),e(o-t))};return ne.setup(r,!0),()=>He(r)}const qa=["TopLeft","TopRight","BottomLeft","BottomRight"],Jp=qa.length,Ga=e=>typeof e=="string"?parseFloat(e):e,Ya=e=>typeof e=="number"||V.test(e);function em(e,t,n,r,i,o){i?(e.opacity=re(0,n.opacity??1,tm(r)),e.opacityExit=re(t.opacity??1,0,nm(r))):o&&(e.opacity=re(t.opacity??1,n.opacity??1,r));for(let s=0;s<Jp;s++){const a=`border${qa[s]}Radius`;let l=Ka(t,a),u=Ka(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Ya(l)===Ya(u)?(e[a]=Math.max(re(Ga(l),Ga(u),r),0),(Ve.test(u)||Ve.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=re(t.rotate||0,n.rotate||0,r))}function Ka(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const tm=Xa(0,.5,Uo),nm=Xa(.5,.95,Ce);function Xa(e,t,n){return r=>r<e?0:r>t?1:n(Vt(e,t,r))}function Qa(e,t){e.min=t.min,e.max=t.max}function Me(e,t){Qa(e.x,t.x),Qa(e.y,t.y)}function Za(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ja(e,t,n,r,i){return e-=t,e=Sn(e,1/n,r),i!==void 0&&(e=Sn(e,1/i,r)),e}function rm(e,t=0,n=1,r=.5,i,o=e,s=e){if(Ve.test(t)&&(t=parseFloat(t),t=re(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=re(o.min,o.max,r);e===o&&(a-=t),e.min=Ja(e.min,t,n,a,i),e.max=Ja(e.max,t,n,a,i)}function el(e,t,[n,r,i],o,s){rm(e,t[n],t[r],t[i],t.scale,o,s)}const im=["x","scaleX","originX"],om=["y","scaleY","originY"];function tl(e,t,n,r){el(e.x,t,im,n?n.x:void 0,r?r.x:void 0),el(e.y,t,om,n?n.y:void 0,r?r.y:void 0)}function nl(e){return e.translate===0&&e.scale===1}function rl(e){return nl(e.x)&&nl(e.y)}function il(e,t){return e.min===t.min&&e.max===t.max}function sm(e,t){return il(e.x,t.x)&&il(e.y,t.y)}function ol(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sl(e,t){return ol(e.x,t.x)&&ol(e.y,t.y)}function al(e){return pe(e.x)/pe(e.y)}function ll(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class am{constructor(){this.members=[]}add(t){Jn(this.members,t),t.scheduleRender()}remove(t){if(er(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lm(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:h,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const ai=["","X","Y","Z"],um=1e3;let cm=0;function li(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ul(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ta(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ne,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ul(r)}function cl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t?.()){this.id=cm++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(hm),this.nodes.forEach(ym),this.nodes.forEach(xm),this.nodes.forEach(pm)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Qp)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new rr),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=$s(s)&&!ah(s),this.instance=s;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const d=()=>this.root.updateBlockedByResize=!1;ne.read(()=>{f=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,c&&c(),c=Zp(d,250),Pn.hasAnimatedSinceResize&&(Pn.hasAnimatedSinceResize=!1,this.nodes.forEach(hl)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||u.getDefaultTransition()||Sm,{onLayoutAnimationStart:m,onLayoutAnimationComplete:v}=u.getProps(),g=!this.targetLayout||!sl(this.targetLayout,h),S=!f&&d;if(this.options.layoutRoot||this.resumeFrom||S||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Nr(x,"layout"),onPlay:m,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(c,S)}else f||hl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),He(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bm),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ul(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(fl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(dl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(gm),this.nodes.forEach(fm),this.nodes.forEach(dm)):this.nodes.forEach(dl),this.clearAllSnapshots();const a=ye.now();ce.delta=Be(0,1e3/60,a-ce.timestamp),ce.timestamp=a,ce.isProcessing=!0,ar.update.process(ce),ar.preRender.process(ce),ar.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mm),this.sharedNodes.forEach(vm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ne.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ne.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pe(this.snapshot.measuredBox.x)&&!pe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!rl(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&this.instance&&(a||tt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Tm(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ue();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Cm))){const{scroll:u}=this.root;u&&(mt(a.x,u.offset.x),mt(a.y,u.offset.y))}return a}removeElementScroll(s){const a=ue();if(Me(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:f}=u;u!==this.root&&c&&f.layoutScroll&&(c.wasRoot&&Me(a,s),mt(a.x,c.offset.x),mt(a.y,c.offset.y))}return a}applyTransform(s,a=!1){const l=ue();Me(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&gt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),tt(c.latestValues)&&gt(l,c.latestValues)}return tt(this.latestValues)&&gt(l,this.latestValues),l}removeTransform(s){const a=ue();Me(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!tt(u.latestValues))continue;Xr(u.latestValues)&&u.updateSnapshot();const c=ue(),f=u.measurePageBox();Me(c,f),tl(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return tt(this.latestValues)&&tl(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=ce.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ue(),this.targetWithTransforms=ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Np(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Me(this.target,this.layout.layoutBox),da(this.target,this.targetDelta)):Me(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Xr(this.parent.latestValues)||ua(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),Tn(this.relativeTargetOrigin,a,l),Me(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ce.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Me(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;Wh(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ue());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Za(this.prevProjectionDelta.x,this.projectionDelta.x),Za(this.prevProjectionDelta.y,this.projectionDelta.y)),qt(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!ll(this.projectionDelta.x,this.prevProjectionDelta.x)||!ll(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yt(),this.projectionDelta=yt(),this.projectionDeltaWithTransform=yt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=yt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=ue(),h=l?l.source:void 0,x=this.layout?this.layout.source:void 0,m=h!==x,v=this.getStack(),g=!v||v.members.length<=1,S=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(km));this.animationProgress=0;let w;this.mixTargetDelta=P=>{const E=P/1e3;pl(f.x,s.x,E),pl(f.y,s.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Tn(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wm(this.relativeTarget,this.relativeTargetOrigin,d,E),w&&sm(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ue()),Me(w,this.relativeTarget)),m&&(this.animationValues=c,em(c,u,this.latestValues,E,S,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(He(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ne.update(()=>{Pn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=dt(0)),this.currentAnimation=Kp(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(um),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&bl(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ue();const f=pe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=pe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Me(a,l),gt(a,c),qt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new am),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&li("z",s,u,this.animationValues);for(let c=0;c<ai.length;c++)li(`rotate${ai[c]}`,s,u,this.animationValues),li(`skew${ai[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=kn(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=kn(a?.pointerEvents)||""),this.hasProjected&&!tt(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=lm(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),s.transform=f;const{x:d,y:h}=this.projectionDelta;s.transformOrigin=`${d.origin*100}% ${h.origin*100}% 0`,u.animationValues?s.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const x in _r){if(c[x]===void 0)continue;const{correct:m,applyTo:v,isCSSVariable:g}=_r[x],S=f==="none"?c[x]:m(c[x],u);if(v){const w=v.length;for(let P=0;P<w;P++)s[v[P]]=S}else g?this.options.visualElement.renderState.vars[x]=S:s[x]=S}this.options.layoutId&&(s.pointerEvents=u===this?kn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(fl),this.root.sharedNodes.clear()}}}function fm(e){e.updateLayout()}function dm(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?Ee(c=>{const f=o?t.measuredBox[c]:t.layoutBox[c],d=pe(f);f.min=n[c].min,f.max=f.min+d}):bl(i,t.layoutBox,n)&&Ee(c=>{const f=o?t.measuredBox[c]:t.layoutBox[c],d=pe(n[c]);f.max=f.min+d,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+d)});const s=yt();qt(s,n,t.layoutBox);const a=yt();o?qt(a,e.applyTransform(r,!0),t.measuredBox):qt(a,n,t.layoutBox);const l=!rl(s);let u=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:d}=c;if(f&&d){const h=ue();Tn(h,t.layoutBox,f.layoutBox);const x=ue();Tn(x,n,d.layoutBox),sl(h,x)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=h,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function hm(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mm(e){e.clearSnapshot()}function fl(e){e.clearMeasurements()}function dl(e){e.isLayoutDirty=!1}function gm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ym(e){e.resolveTargetDelta()}function xm(e){e.calcProjection()}function bm(e){e.resetSkewAndRotation()}function vm(e){e.removeLeadSnapshot()}function pl(e,t,n){e.translate=re(t.translate,0,n),e.scale=re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ml(e,t,n,r){e.min=re(t.min,n.min,r),e.max=re(t.max,n.max,r)}function wm(e,t,n,r){ml(e.x,t.x,n.x,r),ml(e.y,t.y,n.y,r)}function km(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Sm={duration:.45,ease:[.4,0,.1,1]},gl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yl=gl("applewebkit/")&&!gl("chrome/")?Math.round:Ce;function xl(e){e.min=yl(e.min),e.max=yl(e.max)}function Tm(e){xl(e.x),xl(e.y)}function bl(e,t,n){return e==="position"||e==="preserve-aspect"&&!Mp(al(t),al(n),.2)}function Cm(e){return e!==e.root&&e.scroll?.wasRoot}const Pm=cl({attachResizeListener:(e,t)=>Ut(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ui={current:void 0},vl=cl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ui.current){const e=new Pm({});e.mount(window),e.setOptions({layoutScroll:!0}),ui.current=e}return ui.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Em={pan:{Feature:Gp},drag:{Feature:qp,ProjectionNode:vl,MeasureLayout:Wa}};function wl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&ne.postRender(()=>o(t,Ht(t)))}class Am extends Ge{mount(){const{current:t}=this.node;t&&(this.unmount=nh(t,(n,r)=>(wl(this.node,r,"Start"),i=>wl(this.node,i,"End"))))}unmount(){}}class Im extends Ge{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=Nt(Ut(this.node.current,"focus",()=>this.onFocus()),Ut(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kl(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&ne.postRender(()=>o(t,Ht(t)))}class Dm extends Ge{mount(){const{current:t}=this.node;t&&(this.unmount=sh(t,(n,r)=>(kl(this.node,r,"Start"),(i,{success:o})=>kl(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ci=new WeakMap,fi=new WeakMap,jm=e=>{const t=ci.get(e.target);t&&t(e)},Mm=e=>{e.forEach(jm)};function Nm({root:e,...t}){const n=e||document;fi.has(n)||fi.set(n,{});const r=fi.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Mm,{root:e,...t})),r[i]}function Vm(e,t,n){const r=Nm(t);return ci.set(e,n),r.observe(e),()=>{ci.delete(e),r.unobserve(e)}}const Lm={some:0,all:1};class Rm extends Ge{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Lm[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return Vm(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(Om(t,n))&&this.startObserver()}unmount(){}}function Om({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Fm={...Pp,...{inView:{Feature:Rm},tap:{Feature:Dm},focus:{Feature:Im},hover:{Feature:Am}},...Em,...{layout:{ProjectionNode:vl,MeasureLayout:Wa}}},we=$h(Fm,tp),Sl=e=>{const{title:t,href:n,description:r,icon:i,badge:o,isActive:s=!1,className:a="",showDescription:l=!0,onClick:u,target:c="_self",compact:f=!1}=e,d=["menu-item",s?"active":"",f?"compact":"",!r||!l?"no-description":"",a].filter(Boolean).join(" ");return b.jsxs(we.a,{href:n,target:c,onClick:u,className:d,whileHover:{scale:1.01,x:4},whileTap:{scale:.99},transition:{duration:.1},children:[i&&b.jsx(we.div,{className:"menu-item-icon",whileHover:{rotate:5},children:b.jsx(fe,{icon:i})}),b.jsxs("div",{className:"menu-item-content",children:[b.jsxs("div",{className:"menu-item-header",children:[b.jsx("span",{className:"menu-item-title",children:t}),o&&b.jsx(we.span,{className:"menu-item-badge",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200},children:o})]}),r&&l&&b.jsx(we.p,{className:"menu-item-description",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{duration:.2},children:r})]})]})},Tl=e=>{const{children:t,columns:n=3,className:r="",gridClassName:i=""}=e,o=`menu-grid columns-${n} ${i}`;return b.jsx("div",{className:`menu-grid-container ${r}`,children:b.jsx("div",{className:o,children:t})})},Cl=e=>{const{title:t,description:n,href:r,icon:i,badge:o,compact:s=!1,showDescription:a=!0,className:l=""}=e,u=`menu-grid-item ${s?"compact":"regular"} ${l}`;return b.jsx(we.div,{className:`${u} hover-lift`,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},whileHover:{scale:1.02},whileTap:{scale:.98},children:r.startsWith("http")?b.jsxs("a",{href:r,className:"menu-grid-link",target:"_blank",rel:"noopener noreferrer",children:[o&&b.jsx(we.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:o}),b.jsxs("div",{className:"menu-grid-header",children:[i&&b.jsx(we.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:b.jsx(fe,{icon:i})}),b.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&b.jsx("span",{className:"menu-grid-description",children:n})]}):b.jsxs(Bn.Link,{to:r,className:"menu-grid-link",children:[o&&b.jsx(we.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:o}),b.jsxs("div",{className:"menu-grid-header",children:[i&&b.jsx(we.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:b.jsx(fe,{icon:i})}),b.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&b.jsx("span",{className:"menu-grid-description",children:n})]})})},Pl=({title:e,subtitle:t,imageSrc:n,actionLabel:r,href:i,textAlignment:o="left",padding:s="none",className:a="",inverted:l=!1,focalPoint:u="center"})=>{const c={top:"center top",left:"left center",right:"right center",bottom:"center bottom",center:"center center"},f=n?{backgroundImage:`url(${n})`,backgroundPosition:c[u]}:{},d={left:"text-left items-start",center:"text-center items-center",right:"text-right items-end",justify:"text-justify"}[o],h={none:"p-none",small:"p-small",medium:"p-medium",large:"p-large"}[s];return b.jsxs(we.div,{className:`hero-image relative ${a} ${l?"theme-inverted":""}`,style:f,initial:{opacity:0,scale:1.1},animate:{opacity:1,scale:1},transition:{duration:1.5,ease:"easeOut"},"data-theme":"light",children:[b.jsx("div",{className:"hero-overlay"}),b.jsxs("div",{className:`hero-text ${d} ${h}`,children:[b.jsx(we.div,{className:"hero-text-primary hero-title",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3,ease:"easeOut"},children:e}),t&&b.jsx(we.div,{className:"hero-text-primary hero-subtitle",initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:.5,ease:"easeOut"},children:t}),r&&b.jsx("div",{className:"hero-actions",children:b.jsx(we.a,{className:"btn hero-btn-primary hover-lift active-scale",href:i,initial:{opacity:0,y:20},animate:{opacity:1,y:0},whileHover:{scale:1.05},transition:{duration:.6,delay:.7,ease:"easeOut"},children:r})})]})]})},El=e=>{const{icon:t,onClick:n,ariaLabel:r,className:i=""}=e;return b.jsx("button",{className:`select-option ${i}`,onClick:n,"aria-label":r,type:"button",children:b.jsx(fe,{icon:t,className:"icon-button-icon"})})};function Fb(){}function Bb(){}function Bm(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const zm=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_m=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$m={};function Al(e,t){return($m.jsx?_m:zm).test(e)}const Um=/[ \t\n\f\r]/g;function Hm(e){return typeof e=="object"?e.type==="text"?Il(e.value):!1:Il(e)}function Il(e){return e.replace(Um,"")===""}class Gt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Gt.prototype.normal={},Gt.prototype.property={},Gt.prototype.space=void 0;function Dl(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Gt(n,r,t)}function di(e){return e.toLowerCase()}class xe{constructor(t,n){this.attribute=n,this.property=t}}xe.prototype.attribute="",xe.prototype.booleanish=!1,xe.prototype.boolean=!1,xe.prototype.commaOrSpaceSeparated=!1,xe.prototype.commaSeparated=!1,xe.prototype.defined=!1,xe.prototype.mustUseProperty=!1,xe.prototype.number=!1,xe.prototype.overloadedBoolean=!1,xe.prototype.property="",xe.prototype.spaceSeparated=!1,xe.prototype.space=void 0;let Wm=0;const H=rt(),ae=rt(),hi=rt(),A=rt(),J=rt(),bt=rt(),ke=rt();function rt(){return 2**++Wm}const pi=Object.freeze(Object.defineProperty({__proto__:null,boolean:H,booleanish:ae,commaOrSpaceSeparated:ke,commaSeparated:bt,number:A,overloadedBoolean:hi,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),mi=Object.keys(pi);class gi extends xe{constructor(t,n,r,i){let o=-1;if(super(t,n),jl(this,"space",i),typeof r=="number")for(;++o<mi.length;){const s=mi[o];jl(this,mi[o],(r&pi[s])===pi[s])}}}gi.prototype.defined=!0;function jl(e,t,n){n&&(e[t]=n)}function vt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new gi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[di(r)]=r,n[di(o.attribute)]=r}return new Gt(t,n,e.space)}const Ml=vt({properties:{ariaActiveDescendant:null,ariaAtomic:ae,ariaAutoComplete:null,ariaBusy:ae,ariaChecked:ae,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:ae,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:ae,ariaFlowTo:J,ariaGrabbed:ae,ariaHasPopup:null,ariaHidden:ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:A,ariaLive:null,ariaModal:ae,ariaMultiLine:ae,ariaMultiSelectable:ae,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:ae,ariaReadOnly:ae,ariaRelevant:null,ariaRequired:ae,ariaRoleDescription:J,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:ae,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Nl(e,t){return t in e?e[t]:t}function Vl(e,t){return Nl(e,t.toLowerCase())}const qm=vt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bt,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:J,autoFocus:H,autoPlay:H,blocking:J,capture:null,charSet:null,checked:H,cite:null,className:J,cols:A,colSpan:null,content:null,contentEditable:ae,controls:H,controlsList:J,coords:A|bt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:hi,draggable:ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:J,height:A,hidden:hi,high:A,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:J,itemRef:J,itemScope:H,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:H,optimum:A,pattern:null,ping:J,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:J,required:H,reversed:H,rows:A,rowSpan:A,sandbox:J,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:ae,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:ae,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:A,security:null,unselectable:null},space:"html",transform:Vl}),Gm=vt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ke,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:bt,g2:bt,glyphName:bt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:ke,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ke,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ke,rev:ke,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ke,requiredFeatures:ke,requiredFonts:ke,requiredFormats:ke,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:ke,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ke,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ke,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Nl}),Ll=vt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Rl=vt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Vl}),Ol=vt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ym={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Km=/[A-Z]/g,Fl=/-[a-z]/g,Xm=/^data[-\w.:]+$/i;function Qm(e,t){const n=di(t);let r=t,i=xe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xm.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Fl,Jm);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Fl.test(o)){let s=o.replace(Km,Zm);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=gi}return new i(r,t)}function Zm(e){return"-"+e.toLowerCase()}function Jm(e){return e.charAt(1).toUpperCase()}const eg=Dl([Ml,qm,Ll,Rl,Ol],"html"),yi=Dl([Ml,Gm,Ll,Rl,Ol],"svg");function tg(e){return e.join(" ").trim()}var wt={},xi,Bl;function ng(){if(Bl)return xi;Bl=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
8
- `,u="/",c="*",f="",d="comment",h="declaration";function x(v,g){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];g=g||{};var S=1,w=1;function P(F){var D=F.match(t);D&&(S+=D.length);var G=F.lastIndexOf(l);w=~G?F.length-G:w+F.length}function E(){var F={line:S,column:w};return function(D){return D.position=new k(F),O(),D}}function k(F){this.start=F,this.end={line:S,column:w},this.source=g.source}k.prototype.content=v;function N(F){var D=new Error(g.source+":"+S+":"+w+": "+F);if(D.reason=F,D.filename=g.source,D.line=S,D.column=w,D.source=v,!g.silent)throw D}function M(F){var D=F.exec(v);if(D){var G=D[0];return P(G),v=v.slice(G.length),D}}function O(){M(n)}function B(F){var D;for(F=F||[];D=L();)D!==!1&&F.push(D);return F}function L(){var F=E();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var D=2;f!=v.charAt(D)&&(c!=v.charAt(D)||u!=v.charAt(D+1));)++D;if(D+=2,f===v.charAt(D-1))return N("End of comment missing");var G=v.slice(2,D-2);return w+=2,P(G),v=v.slice(D),w+=2,F({type:d,comment:G})}}function R(){var F=E(),D=M(r);if(D){if(L(),!M(i))return N("property missing ':'");var G=M(o),W=F({type:h,property:m(D[0].replace(e,f)),value:G?m(G[0].replace(e,f)):f});return M(s),W}}function K(){var F=[];B(F);for(var D;D=R();)D!==!1&&(F.push(D),B(F));return F}return O(),K()}function m(v){return v?v.replace(a,f):f}return xi=x,xi}var zl;function rg(){if(zl)return wt;zl=1;var e=wt&&wt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wt,"__esModule",{value:!0}),wt.default=n;const t=e(ng());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const s=(0,t.default)(r),a=typeof i=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;a?i(u,c,l):c&&(o=o||{},o[u]=c)}),o}return wt}var Yt={},_l;function ig(){if(_l)return Yt;_l=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||n.test(u)||e.test(u)},s=function(u,c){return c.toUpperCase()},a=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),o(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(t,s))};return Yt.camelCase=l,Yt}var Kt,$l;function og(){if($l)return Kt;$l=1;var e=Kt&&Kt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(rg()),n=ig();function r(i,o){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(a,l){a&&l&&(s[(0,n.camelCase)(a,o)]=l)}),s}return r.default=r,Kt=r,Kt}var sg=og();const ag=eo(sg),Ul=Hl("end"),bi=Hl("start");function Hl(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function lg(e){const t=bi(e),n=Ul(e);if(t&&n)return{start:t,end:n}}function Xt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Wl(e.position):"start"in e||"end"in e?Wl(e):"line"in e||"column"in e?vi(e):""}function vi(e){return ql(e&&e.line)+":"+ql(e&&e.column)}function Wl(e){return vi(e&&e.start)+"-"+vi(e&&e.end)}function ql(e){return e&&typeof e=="number"?e:1}class he extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Xt(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}he.prototype.file="",he.prototype.name="",he.prototype.reason="",he.prototype.message="",he.prototype.stack="",he.prototype.column=void 0,he.prototype.line=void 0,he.prototype.ancestors=void 0,he.prototype.cause=void 0,he.prototype.fatal=void 0,he.prototype.place=void 0,he.prototype.ruleId=void 0,he.prototype.source=void 0;const wi={}.hasOwnProperty,ug=new Map,cg=/[A-Z]/g,fg=new Set(["table","tbody","thead","tfoot","tr"]),dg=new Set(["td","th"]),Gl="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hg(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=wg(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=vg(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?yi:eg,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Yl(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Yl(e,t,n){if(t.type==="element")return pg(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return mg(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return yg(e,t,n);if(t.type==="mdxjsEsm")return gg(e,t);if(t.type==="root")return xg(e,t,n);if(t.type==="text")return bg(e,t)}function pg(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=yi,e.schema=i),e.ancestors.push(t);const o=Xl(e,t.tagName,!1),s=kg(e,t);let a=Si(e,t);return fg.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Hm(l):!0})),Kl(e,s,o,t),ki(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function mg(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Qt(e,t.position)}function gg(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Qt(e,t.position)}function yg(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=yi,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Xl(e,t.name,!0),s=Sg(e,t),a=Si(e,t);return Kl(e,s,o,t),ki(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function xg(e,t,n){const r={};return ki(r,Si(e,t)),e.create(t,e.Fragment,r,n)}function bg(e,t){return t.value}function Kl(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ki(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function vg(e,t,n){return r;function r(i,o,s,a){const u=Array.isArray(s.children)?n:t;return a?u(o,s,a):u(o,s)}}function wg(e,t){return n;function n(r,i,o,s){const a=Array.isArray(o.children),l=bi(r);return t(i,o,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function kg(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&wi.call(t.properties,i)){const o=Tg(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&dg.has(t.tagName)?r=a:n[s]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Sg(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Qt(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Qt(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Si(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ug;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;s=l+"-"+u,i.set(l,u+1)}}const a=Yl(e,o,s);a!==void 0&&n.push(a)}return n}function Tg(e,t,n){const r=Qm(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Bm(n):tg(n)),r.property==="style"){let i=typeof n=="object"?n:Cg(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Pg(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Ym[r.property]||r.property:r.attribute,n]}}function Cg(e,t){try{return ag(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new he("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Gl+"#cannot-parse-style-attribute",i}}function Xl(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const a=Al(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=s}else r=Al(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return wi.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Qt(e)}function Qt(e,t){const n=new he("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Gl+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Pg(e){const t={};let n;for(n in e)wi.call(e,n)&&(t[Eg(n)]=e[n]);return t}function Eg(e){let t=e.replace(cg,Ag);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Ag(e){return"-"+e.toLowerCase()}const Ti={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ig={};function Dg(e,t){const n=Ig,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ql(e,r,i)}function Ql(e,t,n){if(jg(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Zl(e.children,t,n)}return Array.isArray(e)?Zl(e,t,n):""}function Zl(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ql(e[i],t,n);return r.join("")}function jg(e){return!!(e&&typeof e=="object")}const Jl=document.createElement("i");function Ci(e){const t="&"+e+";";Jl.innerHTML=t;const n=Jl.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Le(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function Ae(e,t){return e.length>0?(Le(e,e.length,0,t),e):t}const eu={}.hasOwnProperty;function Mg(e){const t={};let n=-1;for(;++n<e.length;)Ng(t,e[n]);return t}function Ng(e,t){let n;for(n in t){const i=(eu.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){eu.call(i,s)||(i[s]=[]);const a=o[s];Vg(i[s],Array.isArray(a)?a:a?[a]:[])}}}function Vg(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Le(e,0,0,r)}function tu(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function kt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Re=Ye(/[A-Za-z]/),Se=Ye(/[\dA-Za-z]/),Lg=Ye(/[#-'*+\--9=?A-Z^-~]/);function Pi(e){return e!==null&&(e<32||e===127)}const Ei=Ye(/\d/),Rg=Ye(/[\dA-Fa-f]/),Og=Ye(/[!-/:-@[-`{-~]/);function _(e){return e!==null&&e<-2}function be(e){return e!==null&&(e<0||e===32)}function Y(e){return e===-2||e===-1||e===32}const Fg=Ye(new RegExp("\\p{P}|\\p{S}","u")),Bg=Ye(/\s/);function Ye(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function St(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&Se(e.charCodeAt(n+1))&&Se(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ee(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return Y(l)?(e.enter(n),a(l)):t(l)}function a(l){return Y(l)&&o++<i?(e.consume(l),a):(e.exit(n),t(l))}}const zg={tokenize:_g};function _g(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ee(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return _(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}const $g={tokenize:Ug},nu={tokenize:Hg};function Ug(e){const t=this,n=[];let r=0,i,o,s;return a;function a(w){if(r<n.length){const P=n[r];return t.containerState=P[1],e.attempt(P[0].continuation,l,u)(w)}return u(w)}function l(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const P=t.events.length;let E=P,k;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){k=t.events[E][1].end;break}g(r);let N=P;for(;N<t.events.length;)t.events[N][1].end={...k},N++;return Le(t.events,E+1,0,t.events.slice(P)),t.events.length=N,u(w)}return a(w)}function u(w){if(r===n.length){if(!i)return d(w);if(i.currentConstruct&&i.currentConstruct.concrete)return x(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(nu,c,f)(w)}function c(w){return i&&S(),g(r),d(w)}function f(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,x(w)}function d(w){return t.containerState={},e.attempt(nu,h,x)(w)}function h(w){return r++,n.push([t.currentConstruct,t.containerState]),d(w)}function x(w){if(w===null){i&&S(),g(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),m(w)}function m(w){if(w===null){v(e.exit("chunkFlow"),!0),g(0),e.consume(w);return}return _(w)?(e.consume(w),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(w),m)}function v(w,P){const E=t.sliceStream(w);if(P&&E.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(E),t.parser.lazy[w.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<s&&(!i.events[k][1].end||i.events[k][1].end.offset>s))return;const N=t.events.length;let M=N,O,B;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(O){B=t.events[M][1].end;break}O=!0}for(g(r),k=N;k<t.events.length;)t.events[k][1].end={...B},k++;Le(t.events,M+1,0,t.events.slice(N)),t.events.length=k}}function g(w){let P=n.length;for(;P-- >w;){const E=n[P];t.containerState=E[1],E[0].exit.call(t,e)}n.length=w}function S(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Hg(e,t,n){return ee(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ru(e){if(e===null||be(e)||Bg(e))return 1;if(Fg(e))return 2}function Ai(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Ii={name:"attention",resolveAll:Wg,tokenize:qg};function Wg(e,t){let n=-1,r,i,o,s,a,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},d={...e[n][1].start};iu(f,-l),iu(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Ae(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ae(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=Ae(u,Ai(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ae(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Ae(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Le(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function qg(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ru(r);let o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;const u=e.exit("attentionSequence"),c=ru(l),f=!c||c===2&&i||n.includes(l),d=!i||i===2&&c||n.includes(r);return u._open=!!(o===42?f:f&&(i||!d)),u._close=!!(o===42?d:d&&(c||!f)),t(l)}}function iu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Gg={name:"autolink",tokenize:Yg};function Yg(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Re(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||Se(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||Se(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Pi(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):Lg(h)?(e.consume(h),u):n(h)}function c(h){return Se(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||Se(h))&&r++<63){const x=h===45?d:f;return e.consume(h),x}return n(h)}}const En={partial:!0,tokenize:Kg};function Kg(e,t,n){return r;function r(o){return Y(o)?ee(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||_(o)?t(o):n(o)}}const ou={continuation:{tokenize:Qg},exit:Zg,name:"blockQuote",tokenize:Xg};function Xg(e,t,n){const r=this;return i;function i(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return Y(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Qg(e,t,n){const r=this;return i;function i(s){return Y(s)?ee(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(ou,t,n)(s)}}function Zg(e){e.exit("blockQuote")}const su={name:"characterEscape",tokenize:Jg};function Jg(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Og(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const au={name:"characterReference",tokenize:ey};function ey(e,t,n){const r=this;let i=0,o,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=Se,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=Rg,c):(e.enter("characterReferenceValue"),o=7,s=Ei,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return s===Se&&!Ci(r.sliceSerialize(d))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<o?(e.consume(f),c):n(f)}}const lu={partial:!0,tokenize:ny},uu={concrete:!0,name:"codeFenced",tokenize:ty};function ty(e,t,n){const r=this,i={partial:!0,tokenize:E};let o=0,s=0,a;return l;function l(k){return u(k)}function u(k){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(k)}function c(k){return k===a?(s++,e.consume(k),c):s<3?n(k):(e.exit("codeFencedFenceSequence"),Y(k)?ee(e,f,"whitespace")(k):f(k))}function f(k){return k===null||_(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(lu,m,P)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(k))}function d(k){return k===null||_(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(k)):Y(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ee(e,h,"whitespace")(k)):k===96&&k===a?n(k):(e.consume(k),d)}function h(k){return k===null||_(k)?f(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||_(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(k)):k===96&&k===a?n(k):(e.consume(k),x)}function m(k){return e.attempt(i,P,v)(k)}function v(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),g}function g(k){return o>0&&Y(k)?ee(e,S,"linePrefix",o+1)(k):S(k)}function S(k){return k===null||_(k)?e.check(lu,m,P)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||_(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),w)}function P(k){return e.exit("codeFenced"),t(k)}function E(k,N,M){let O=0;return B;function B(D){return k.enter("lineEnding"),k.consume(D),k.exit("lineEnding"),L}function L(D){return k.enter("codeFencedFence"),Y(D)?ee(k,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):R(D)}function R(D){return D===a?(k.enter("codeFencedFenceSequence"),K(D)):M(D)}function K(D){return D===a?(O++,k.consume(D),K):O>=s?(k.exit("codeFencedFenceSequence"),Y(D)?ee(k,F,"whitespace")(D):F(D)):M(D)}function F(D){return D===null||_(D)?(k.exit("codeFencedFence"),N(D)):M(D)}}}function ny(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Di={name:"codeIndented",tokenize:iy},ry={partial:!0,tokenize:oy};function iy(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),ee(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):_(u)?e.attempt(ry,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||_(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function oy(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):_(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ee(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):_(s)?i(s):n(s)}}const sy={name:"codeText",previous:ly,resolve:ay,tokenize:uy};function ay(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function ly(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function uy(e,t,n){let r=0,i,o;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(o=e.enter("codeTextSequence"),i=0,c(f)):_(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||_(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(o.type="codeTextData",u(f))}}class cy{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Zt(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Zt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zt(this.left,n.reverse())}}}function Zt(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function cu(e){const t={};let n=-1,r,i,o,s,a,l,u;const c=new cy(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,fy(c,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return Le(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function fy(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],u={};let c,f,d=-1,h=n,x=0,m=0;const v=[m];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(m=d+1,v.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),d=v.length;d--;){const g=a.slice(v[d],v[d+1]),S=o.pop();l.push([S,S+g.length-1]),e.splice(S,2,g)}for(l.reverse(),d=-1;++d<l.length;)u[x+l[d][0]]=x+l[d][1],x+=l[d][1]-l[d][0]-1;return u}const dy={resolve:py,tokenize:my},hy={partial:!0,tokenize:gy};function py(e){return cu(e),e}function my(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):_(a)?e.check(hy,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function gy(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ee(e,o,"linePrefix")}function o(s){if(s===null||_(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function fu(e,t,n,r,i,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(g){return g===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(g),e.exit(o),d):g===null||g===32||g===41||Pi(g)?n(g):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(g))}function d(g){return g===62?(e.enter(o),e.consume(g),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===62?(e.exit("chunkString"),e.exit(a),d(g)):g===null||g===60||_(g)?n(g):(e.consume(g),g===92?x:h)}function x(g){return g===60||g===62||g===92?(e.consume(g),h):h(g)}function m(g){return!c&&(g===null||g===41||be(g))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(g)):c<u&&g===40?(e.consume(g),c++,m):g===41?(e.consume(g),c--,m):g===null||g===32||g===40||Pi(g)?n(g):(e.consume(g),g===92?v:m)}function v(g){return g===40||g===41||g===92?(e.consume(g),m):m(g)}}function du(e,t,n,r,i,o){const s=this;let a=0,l;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),c}function c(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):_(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||_(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Y(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function hu(e,t,n,r,i,o){let s;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),s=d===40?41:d,l):n(d)}function l(d){return d===s?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(o),u(d))}function u(d){return d===s?(e.exit(o),l(s)):d===null?n(d):_(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ee(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===s||d===null||_(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===s||d===92?(e.consume(d),c):c(d)}}function Jt(e,t){let n;return r;function r(i){return _(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Y(i)?ee(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const yy={name:"definition",tokenize:by},xy={partial:!0,tokenize:vy};function by(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return du.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=kt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return be(h)?Jt(e,u)(h):u(h)}function u(h){return fu(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(xy,f,f)(h)}function f(h){return Y(h)?ee(e,d,"whitespace")(h):d(h)}function d(h){return h===null||_(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function vy(e,t,n){return r;function r(a){return be(a)?Jt(e,i)(a):n(a)}function i(a){return hu(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return Y(a)?ee(e,s,"whitespace")(a):s(a)}function s(a){return a===null||_(a)?t(a):n(a)}}const wy={name:"hardBreakEscape",tokenize:ky};function ky(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return _(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Sy={name:"headingAtx",resolve:Ty,tokenize:Cy};function Ty(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Le(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Cy(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||be(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||_(c)?(e.exit("atxHeading"),t(c)):Y(c)?ee(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||be(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Py=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],pu=["pre","script","style","textarea"],Ey={concrete:!0,name:"htmlFlow",resolveTo:Dy,tokenize:jy},Ay={partial:!0,tokenize:Ny},Iy={partial:!0,tokenize:My};function Dy(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function jy(e,t,n){const r=this;let i,o,s,a,l;return u;function u(p){return c(p)}function c(p){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(p),f}function f(p){return p===33?(e.consume(p),d):p===47?(e.consume(p),o=!0,m):p===63?(e.consume(p),i=3,r.interrupt?t:y):Re(p)?(e.consume(p),s=String.fromCharCode(p),v):n(p)}function d(p){return p===45?(e.consume(p),i=2,h):p===91?(e.consume(p),i=5,a=0,x):Re(p)?(e.consume(p),i=4,r.interrupt?t:y):n(p)}function h(p){return p===45?(e.consume(p),r.interrupt?t:y):n(p)}function x(p){const X="CDATA[";return p===X.charCodeAt(a++)?(e.consume(p),a===X.length?r.interrupt?t:R:x):n(p)}function m(p){return Re(p)?(e.consume(p),s=String.fromCharCode(p),v):n(p)}function v(p){if(p===null||p===47||p===62||be(p)){const X=p===47,Ie=s.toLowerCase();return!X&&!o&&pu.includes(Ie)?(i=1,r.interrupt?t(p):R(p)):Py.includes(s.toLowerCase())?(i=6,X?(e.consume(p),g):r.interrupt?t(p):R(p)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(p):o?S(p):w(p))}return p===45||Se(p)?(e.consume(p),s+=String.fromCharCode(p),v):n(p)}function g(p){return p===62?(e.consume(p),r.interrupt?t:R):n(p)}function S(p){return Y(p)?(e.consume(p),S):B(p)}function w(p){return p===47?(e.consume(p),B):p===58||p===95||Re(p)?(e.consume(p),P):Y(p)?(e.consume(p),w):B(p)}function P(p){return p===45||p===46||p===58||p===95||Se(p)?(e.consume(p),P):E(p)}function E(p){return p===61?(e.consume(p),k):Y(p)?(e.consume(p),E):w(p)}function k(p){return p===null||p===60||p===61||p===62||p===96?n(p):p===34||p===39?(e.consume(p),l=p,N):Y(p)?(e.consume(p),k):M(p)}function N(p){return p===l?(e.consume(p),l=null,O):p===null||_(p)?n(p):(e.consume(p),N)}function M(p){return p===null||p===34||p===39||p===47||p===60||p===61||p===62||p===96||be(p)?E(p):(e.consume(p),M)}function O(p){return p===47||p===62||Y(p)?w(p):n(p)}function B(p){return p===62?(e.consume(p),L):n(p)}function L(p){return p===null||_(p)?R(p):Y(p)?(e.consume(p),L):n(p)}function R(p){return p===45&&i===2?(e.consume(p),G):p===60&&i===1?(e.consume(p),W):p===62&&i===4?(e.consume(p),C):p===63&&i===3?(e.consume(p),y):p===93&&i===5?(e.consume(p),le):_(p)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ay,z,K)(p)):p===null||_(p)?(e.exit("htmlFlowData"),K(p)):(e.consume(p),R)}function K(p){return e.check(Iy,F,z)(p)}function F(p){return e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),D}function D(p){return p===null||_(p)?K(p):(e.enter("htmlFlowData"),R(p))}function G(p){return p===45?(e.consume(p),y):R(p)}function W(p){return p===47?(e.consume(p),s="",Q):R(p)}function Q(p){if(p===62){const X=s.toLowerCase();return pu.includes(X)?(e.consume(p),C):R(p)}return Re(p)&&s.length<8?(e.consume(p),s+=String.fromCharCode(p),Q):R(p)}function le(p){return p===93?(e.consume(p),y):R(p)}function y(p){return p===62?(e.consume(p),C):p===45&&i===2?(e.consume(p),y):R(p)}function C(p){return p===null||_(p)?(e.exit("htmlFlowData"),z(p)):(e.consume(p),C)}function z(p){return e.exit("htmlFlow"),t(p)}}function My(e,t,n){const r=this;return i;function i(s){return _(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Ny(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(En,t,n)}}const Vy={name:"htmlText",tokenize:Ly};function Ly(e,t,n){const r=this;let i,o,s;return a;function a(y){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(y),l}function l(y){return y===33?(e.consume(y),u):y===47?(e.consume(y),E):y===63?(e.consume(y),w):Re(y)?(e.consume(y),M):n(y)}function u(y){return y===45?(e.consume(y),c):y===91?(e.consume(y),o=0,x):Re(y)?(e.consume(y),S):n(y)}function c(y){return y===45?(e.consume(y),h):n(y)}function f(y){return y===null?n(y):y===45?(e.consume(y),d):_(y)?(s=f,W(y)):(e.consume(y),f)}function d(y){return y===45?(e.consume(y),h):f(y)}function h(y){return y===62?G(y):y===45?d(y):f(y)}function x(y){const C="CDATA[";return y===C.charCodeAt(o++)?(e.consume(y),o===C.length?m:x):n(y)}function m(y){return y===null?n(y):y===93?(e.consume(y),v):_(y)?(s=m,W(y)):(e.consume(y),m)}function v(y){return y===93?(e.consume(y),g):m(y)}function g(y){return y===62?G(y):y===93?(e.consume(y),g):m(y)}function S(y){return y===null||y===62?G(y):_(y)?(s=S,W(y)):(e.consume(y),S)}function w(y){return y===null?n(y):y===63?(e.consume(y),P):_(y)?(s=w,W(y)):(e.consume(y),w)}function P(y){return y===62?G(y):w(y)}function E(y){return Re(y)?(e.consume(y),k):n(y)}function k(y){return y===45||Se(y)?(e.consume(y),k):N(y)}function N(y){return _(y)?(s=N,W(y)):Y(y)?(e.consume(y),N):G(y)}function M(y){return y===45||Se(y)?(e.consume(y),M):y===47||y===62||be(y)?O(y):n(y)}function O(y){return y===47?(e.consume(y),G):y===58||y===95||Re(y)?(e.consume(y),B):_(y)?(s=O,W(y)):Y(y)?(e.consume(y),O):G(y)}function B(y){return y===45||y===46||y===58||y===95||Se(y)?(e.consume(y),B):L(y)}function L(y){return y===61?(e.consume(y),R):_(y)?(s=L,W(y)):Y(y)?(e.consume(y),L):O(y)}function R(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),i=y,K):_(y)?(s=R,W(y)):Y(y)?(e.consume(y),R):(e.consume(y),F)}function K(y){return y===i?(e.consume(y),i=void 0,D):y===null?n(y):_(y)?(s=K,W(y)):(e.consume(y),K)}function F(y){return y===null||y===34||y===39||y===60||y===61||y===96?n(y):y===47||y===62||be(y)?O(y):(e.consume(y),F)}function D(y){return y===47||y===62||be(y)?O(y):n(y)}function G(y){return y===62?(e.consume(y),e.exit("htmlTextData"),e.exit("htmlText"),t):n(y)}function W(y){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),Q}function Q(y){return Y(y)?ee(e,le,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):le(y)}function le(y){return e.enter("htmlTextData"),s(y)}}const ji={name:"labelEnd",resolveAll:By,resolveTo:zy,tokenize:_y},Ry={tokenize:$y},Oy={tokenize:Uy},Fy={tokenize:Hy};function By(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Le(e,0,e.length,n),e}function zy(e,t){let n=e.length,r=0,i,o,s,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=Ae(a,e.slice(o+1,o+r+3)),a=Ae(a,[["enter",c,t]]),a=Ae(a,Ai(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),a=Ae(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=Ae(a,e.slice(s+1)),a=Ae(a,[["exit",l,t]]),Le(e,o,e.length,a),e}function _y(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(d){return o?o._inactive?f(d):(s=r.parser.defined.includes(kt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(Ry,c,s?c:f)(d):d===91?e.attempt(Oy,c,s?u:f)(d):s?c(d):f(d)}function u(d){return e.attempt(Fy,c,f)(d)}function c(d){return t(d)}function f(d){return o._balanced=!0,n(d)}}function $y(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return be(f)?Jt(e,o)(f):o(f)}function o(f){return f===41?c(f):fu(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return be(f)?Jt(e,l)(f):c(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?hu(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return be(f)?Jt(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Uy(e,t,n){const r=this;return i;function i(a){return du.call(r,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(kt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function Hy(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Wy={name:"labelStartImage",resolveAll:ji.resolveAll,tokenize:qy};function qy(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Gy={name:"labelStartLink",resolveAll:ji.resolveAll,tokenize:Yy};function Yy(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Mi={name:"lineEnding",tokenize:Ky};function Ky(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ee(e,t,"linePrefix")}}const An={name:"thematicBreak",tokenize:Xy};function Xy(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||_(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Y(u)?ee(e,a,"whitespace")(u):a(u))}}const ve={continuation:{tokenize:ex},exit:nx,name:"list",tokenize:Jy},Qy={partial:!0,tokenize:rx},Zy={partial:!0,tokenize:tx};function Jy(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(h){const x=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Ei(h)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(An,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return Ei(h)&&++s<10?(e.consume(h),l):(!r.interrupt||s<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(En,r.interrupt?n:c,e.attempt(Qy,d,f))}function c(h){return r.containerState.initialBlankLine=!0,o++,d(h)}function f(h){return Y(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function ex(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(En,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ee(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!Y(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Zy,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ee(e,e.attempt(ve,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tx(e,t,n){const r=this;return ee(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function nx(e){e.exit(this.containerState.type)}function rx(e,t,n){const r=this;return ee(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!Y(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const mu={name:"setextUnderline",resolveTo:ix,tokenize:ox};function ix(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function ox(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),Y(u)?ee(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||_(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const sx={tokenize:ax};function ax(e){const t=this,n=e.attempt(En,r,e.attempt(this.parser.constructs.flowInitial,i,ee(e,e.attempt(this.parser.constructs.flow,i,e.attempt(dy,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const lx={resolveAll:yu()},ux=gu("string"),cx=gu("text");function gu(e){return{resolveAll:yu(e==="text"?fx:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function yu(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function fx(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,s=-1,a=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const dx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:yy},disable:{null:[]},document:{42:ve,43:ve,45:ve,48:ve,49:ve,50:ve,51:ve,52:ve,53:ve,54:ve,55:ve,56:ve,57:ve,62:ou},flow:{35:Sy,42:An,45:[mu,An],60:Ey,61:mu,95:An,96:uu,126:uu},flowInitial:{[-2]:Di,[-1]:Di,32:Di},insideSpan:{null:[Ii,lx]},string:{38:au,92:su},text:{[-5]:Mi,[-4]:Mi,[-3]:Mi,33:Wy,38:au,42:Ii,60:[Gg,Vy],91:Gy,92:[wy,su],93:ji,95:Ii,96:sy}},Symbol.toStringTag,{value:"Module"}));function hx(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const l={attempt:N(E),check:N(k),consume:S,enter:w,exit:P,interrupt:N(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:m,events:[],now:x,parser:e,previous:null,sliceSerialize:d,sliceStream:h,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function f(L){return s=Ae(s,L),v(),s[s.length-1]!==null?[]:(M(t,0),u.events=Ai(o,u.events,u),u.events)}function d(L,R){return mx(h(L),R)}function h(L){return px(s,L)}function x(){const{_bufferIndex:L,_index:R,line:K,column:F,offset:D}=r;return{_bufferIndex:L,_index:R,line:K,column:F,offset:D}}function m(L){i[L.line]=L.column,B()}function v(){let L;for(;r._index<s.length;){const R=s[r._index];if(typeof R=="string")for(L=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===L&&r._bufferIndex<R.length;)g(R.charCodeAt(r._bufferIndex));else g(R)}}function g(L){c=c(L)}function S(L){_(L)?(r.line++,r.column=1,r.offset+=L===-3?2:1,B()):L!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=L}function w(L,R){const K=R||{};return K.type=L,K.start=x(),u.events.push(["enter",K,u]),a.push(K),K}function P(L){const R=a.pop();return R.end=x(),u.events.push(["exit",R,u]),R}function E(L,R){M(L,R.from)}function k(L,R){R.restore()}function N(L,R){return K;function K(F,D,G){let W,Q,le,y;return Array.isArray(F)?z(F):"tokenize"in F?z([F]):C(F);function C(oe){return te;function te(ge){const Fe=ge!==null&&oe[ge],Xe=ge!==null&&oe.null,Fn=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Xe)?Xe:Xe?[Xe]:[]];return z(Fn)(ge)}}function z(oe){return W=oe,Q=0,oe.length===0?G:p(oe[Q])}function p(oe){return te;function te(ge){return y=O(),le=oe,oe.partial||(u.currentConstruct=oe),oe.name&&u.parser.constructs.disable.null.includes(oe.name)?Ie():oe.tokenize.call(R?Object.assign(Object.create(u),R):u,l,X,Ie)(ge)}}function X(oe){return L(le,y),D}function Ie(oe){return y.restore(),++Q<W.length?p(W[Q]):G}}}function M(L,R){L.resolveAll&&!o.includes(L)&&o.push(L),L.resolve&&Le(u.events,R,u.events.length-R,L.resolve(u.events.slice(R),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function O(){const L=x(),R=u.previous,K=u.currentConstruct,F=u.events.length,D=Array.from(a);return{from:F,restore:G};function G(){r=L,u.previous=R,u.currentConstruct=K,u.events.length=F,a=D,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function px(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function mx(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
9
- `;break}case-3:{s=`\r
10
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function gx(e){const r={constructs:Mg([dx,...(e||{}).extensions||[]]),content:i(zg),defined:[],document:i($g),flow:i(sx),lazy:{},string:i(ux),text:i(cx)};return r;function i(o){return s;function s(a){return hx(r,o,a)}}}function yx(e){for(;!cu(e););return e}const xu=/[\0\t\n\r]/g;function xx(){let e=1,t="",n=!0,r;return i;function i(o,s,a){const l=[];let u,c,f,d,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,t="",n&&(o.charCodeAt(0)===65279&&f++,n=void 0);f<o.length;){if(xu.lastIndex=f,u=xu.exec(o),d=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(d),!u){t=o.slice(f);break}if(h===10&&f===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<d&&(l.push(o.slice(f,d)),e+=d-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=d+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const bx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vx(e){return e.replace(bx,wx)}function wx(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return tu(n.slice(o?2:1),o?16:10)}return Ci(n)||e}const bu={}.hasOwnProperty;function kx(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Sx(n)(yx(gx(n).document().write(xx()(e,t,!0))))}function Sx(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(sc),autolinkProtocol:O,autolinkEmail:O,atxHeading:o(rc),blockQuote:o(Xe),characterEscape:O,characterReference:O,codeFenced:o(Fn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Fn,s),codeText:o(Sb,s),codeTextData:O,data:O,codeFlowValue:O,definition:o(Tb),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Cb),hardBreakEscape:o(ic),hardBreakTrailing:o(ic),htmlFlow:o(oc,s),htmlFlowData:O,htmlText:o(oc,s),htmlTextData:O,image:o(Pb),label:s,link:o(sc),listItem:o(Eb),listItemValue:d,listOrdered:o(ac,f),listUnordered:o(ac),paragraph:o(Ab),reference:p,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(rc),strong:o(Ib),thematicBreak:o(jb)},exit:{atxHeading:l(),atxHeadingSequence:E,autolink:l(),autolinkEmail:Fe,autolinkProtocol:ge,blockQuote:l(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:Ie,characterReferenceMarkerNumeric:Ie,characterReferenceValue:oe,characterReference:te,codeFenced:l(v),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:x,codeFlowValue:B,codeIndented:l(g),codeText:l(D),codeTextData:B,data:B,definition:l(),definitionDestinationString:P,definitionLabelString:S,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(R),hardBreakTrailing:l(R),htmlFlow:l(K),htmlFlowData:B,htmlText:l(F),htmlTextData:B,image:l(W),label:le,labelText:Q,lineEnding:L,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:X,resourceDestinationString:y,resourceTitleString:C,resource:z,setextHeading:l(M),setextHeadingLineSequence:N,setextHeadingText:k,strong:l(),thematicBreak:l()}};vu(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let I={type:"root",children:[]};const U={stack:[I],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:n},q=[];let Z=-1;for(;++Z<T.length;)if(T[Z][1].type==="listOrdered"||T[Z][1].type==="listUnordered")if(T[Z][0]==="enter")q.push(Z);else{const Ne=q.pop();Z=i(T,Ne,Z)}for(Z=-1;++Z<T.length;){const Ne=t[T[Z][0]];bu.call(Ne,T[Z][1].type)&&Ne[T[Z][1].type].call(Object.assign({sliceSerialize:T[Z][2].sliceSerialize},U),T[Z][1])}if(U.tokenStack.length>0){const Ne=U.tokenStack[U.tokenStack.length-1];(Ne[1]||wu).call(U,void 0,Ne[0])}for(I.position={start:Ke(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Ke(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z<t.transforms.length;)I=t.transforms[Z](I)||I;return I}function i(T,I,U){let q=I-1,Z=-1,Ne=!1,it,$e,rn,on;for(;++q<=U;){const Te=T[q];switch(Te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Te[0]==="enter"?Z++:Z--,on=void 0;break}case"lineEndingBlank":{Te[0]==="enter"&&(it&&!on&&!Z&&!rn&&(rn=q),on=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:on=void 0}if(!Z&&Te[0]==="enter"&&Te[1].type==="listItemPrefix"||Z===-1&&Te[0]==="exit"&&(Te[1].type==="listUnordered"||Te[1].type==="listOrdered")){if(it){let Pt=q;for($e=void 0;Pt--;){const Ue=T[Pt];if(Ue[1].type==="lineEnding"||Ue[1].type==="lineEndingBlank"){if(Ue[0]==="exit")continue;$e&&(T[$e][1].type="lineEndingBlank",Ne=!0),Ue[1].type="lineEnding",$e=Pt}else if(!(Ue[1].type==="linePrefix"||Ue[1].type==="blockQuotePrefix"||Ue[1].type==="blockQuotePrefixWhitespace"||Ue[1].type==="blockQuoteMarker"||Ue[1].type==="listItemIndent"))break}rn&&(!$e||rn<$e)&&(it._spread=!0),it.end=Object.assign({},$e?T[$e][1].start:Te[1].end),T.splice($e||q,0,["exit",it,Te[2]]),q++,U++}if(Te[1].type==="listItemPrefix"){const Pt={type:"listItem",_spread:!1,start:Object.assign({},Te[1].start),end:void 0};it=Pt,T.splice(q,0,["enter",Pt,Te[2]]),q++,U++,rn=void 0,on=!0}}}return T[I][1]._spread=Ne,U}function o(T,I){return U;function U(q){a.call(this,T(q),q),I&&I.call(this,q)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(T,I,U){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([I,U||void 0]),T.position={start:Ke(I.start),end:void 0}}function l(T){return I;function I(U){T&&T.call(this,U),u.call(this,U)}}function u(T,I){const U=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==T.type&&(I?I.call(this,T,q[0]):(q[1]||wu).call(this,T,q[0]));else throw new Error("Cannot close `"+T.type+"` ("+Xt({start:T.start,end:T.end})+"): it’s not open");U.position.end=Ke(T.end)}function c(){return Dg(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(T){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function h(){const T=this.resume(),I=this.stack[this.stack.length-1];I.lang=T}function x(){const T=this.resume(),I=this.stack[this.stack.length-1];I.meta=T}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const T=this.resume(),I=this.stack[this.stack.length-1];I.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const T=this.resume(),I=this.stack[this.stack.length-1];I.value=T.replace(/(\r?\n|\r)$/g,"")}function S(T){const I=this.resume(),U=this.stack[this.stack.length-1];U.label=I,U.identifier=kt(this.sliceSerialize(T)).toLowerCase()}function w(){const T=this.resume(),I=this.stack[this.stack.length-1];I.title=T}function P(){const T=this.resume(),I=this.stack[this.stack.length-1];I.url=T}function E(T){const I=this.stack[this.stack.length-1];if(!I.depth){const U=this.sliceSerialize(T).length;I.depth=U}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function N(T){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function O(T){const U=this.stack[this.stack.length-1].children;let q=U[U.length-1];(!q||q.type!=="text")&&(q=Db(),q.position={start:Ke(T.start),end:void 0},U.push(q)),this.stack.push(q)}function B(T){const I=this.stack.pop();I.value+=this.sliceSerialize(T),I.position.end=Ke(T.end)}function L(T){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=I.children[I.children.length-1];U.position.end=Ke(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(O.call(this,T),B.call(this,T))}function R(){this.data.atHardBreak=!0}function K(){const T=this.resume(),I=this.stack[this.stack.length-1];I.value=T}function F(){const T=this.resume(),I=this.stack[this.stack.length-1];I.value=T}function D(){const T=this.resume(),I=this.stack[this.stack.length-1];I.value=T}function G(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=I,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function W(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=I,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function Q(T){const I=this.sliceSerialize(T),U=this.stack[this.stack.length-2];U.label=vx(I),U.identifier=kt(I).toLowerCase()}function le(){const T=this.stack[this.stack.length-1],I=this.resume(),U=this.stack[this.stack.length-1];if(this.data.inReference=!0,U.type==="link"){const q=T.children;U.children=q}else U.alt=I}function y(){const T=this.resume(),I=this.stack[this.stack.length-1];I.url=T}function C(){const T=this.resume(),I=this.stack[this.stack.length-1];I.title=T}function z(){this.data.inReference=void 0}function p(){this.data.referenceType="collapsed"}function X(T){const I=this.resume(),U=this.stack[this.stack.length-1];U.label=I,U.identifier=kt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function Ie(T){this.data.characterReferenceType=T.type}function oe(T){const I=this.sliceSerialize(T),U=this.data.characterReferenceType;let q;U?(q=tu(I,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=Ci(I);const Z=this.stack[this.stack.length-1];Z.value+=q}function te(T){const I=this.stack.pop();I.position.end=Ke(T.end)}function ge(T){B.call(this,T);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(T)}function Fe(T){B.call(this,T);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(T)}function Xe(){return{type:"blockquote",children:[]}}function Fn(){return{type:"code",lang:null,meta:null,value:""}}function Sb(){return{type:"inlineCode",value:""}}function Tb(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Cb(){return{type:"emphasis",children:[]}}function rc(){return{type:"heading",depth:0,children:[]}}function ic(){return{type:"break"}}function oc(){return{type:"html",value:""}}function Pb(){return{type:"image",title:null,url:"",alt:null}}function sc(){return{type:"link",title:null,url:"",children:[]}}function ac(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Eb(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Ab(){return{type:"paragraph",children:[]}}function Ib(){return{type:"strong",children:[]}}function Db(){return{type:"text",value:""}}function jb(){return{type:"thematicBreak"}}}function Ke(e){return{line:e.line,column:e.column,offset:e.offset}}function vu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?vu(e,r):Tx(e,r)}}function Tx(e,t){let n;for(n in t)if(bu.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function wu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Xt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Xt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Xt({start:t.start,end:t.end})+") is still open")}function Cx(e){const t=this;t.parser=n;function n(r){return kx(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Px(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Ex(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
11
- `}]}function Ax(e,t){const n=t.value?t.value+`
12
- `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Ix(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Dx(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jx(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=St(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Mx(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nx(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ku(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Vx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ku(e,t);const i={src:St(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Lx(e,t){const n={src:St(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Rx(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Ox(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ku(e,t);const i={href:St(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Fx(e,t){const n={href:St(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Bx(e,t,n){const r=e.all(t),i=n?zx(n):Su(t),o={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
13
- `}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
14
- `});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function zx(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Su(n[r])}return t}function Su(e){const t=e.spread;return t??e.children.length>1}function _x(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function $x(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ux(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Hx(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wx(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=bi(t.children[1]),l=Ul(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function qx(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const f=t.children[l],d={},h=s?s[l]:void 0;h&&(d.align=h);let x={type:"element",tagName:o,properties:d,children:[]};f&&(x.children=e.all(f),e.patch(f,x),x=e.applyData(f,x)),u.push(x)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function Gx(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Tu=9,Cu=32;function Yx(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Pu(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Pu(t.slice(i),i>0,!1)),o.join("")}function Pu(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Tu||o===Cu;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Tu||o===Cu;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Kx(e,t){const n={type:"text",value:Yx(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Xx(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Qx={blockquote:Px,break:Ex,code:Ax,delete:Ix,emphasis:Dx,footnoteReference:jx,heading:Mx,html:Nx,imageReference:Vx,image:Lx,inlineCode:Rx,linkReference:Ox,link:Fx,listItem:Bx,list:_x,paragraph:$x,root:Ux,strong:Hx,table:Wx,tableCell:Gx,tableRow:qx,text:Kx,thematicBreak:Xx,toml:In,yaml:In,definition:In,footnoteDefinition:In};function In(){}const Eu=-1,Dn=0,en=1,jn=2,Ni=3,Vi=4,Li=5,Ri=6,Au=7,Iu=8,Du=typeof self=="object"?self:globalThis,Zx=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case Dn:case Eu:return n(s,i);case en:{const a=n([],i);for(const l of s)a.push(r(l));return a}case jn:{const a=n({},i);for(const[l,u]of s)a[r(l)]=r(u);return a}case Ni:return n(new Date(s),i);case Vi:{const{source:a,flags:l}=s;return n(new RegExp(a,l),i)}case Li:{const a=n(new Map,i);for(const[l,u]of s)a.set(r(l),r(u));return a}case Ri:{const a=n(new Set,i);for(const l of s)a.add(r(l));return a}case Au:{const{name:a,message:l}=s;return n(new Du[a](l),i)}case Iu:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return n(new DataView(a),s)}}return n(new Du[o](s),i)};return r},ju=e=>Zx(new Map,e)(0),Tt="",{toString:Jx}={},{keys:e0}=Object,tn=e=>{const t=typeof e;if(t!=="object"||!e)return[Dn,t];const n=Jx.call(e).slice(8,-1);switch(n){case"Array":return[en,Tt];case"Object":return[jn,Tt];case"Date":return[Ni,Tt];case"RegExp":return[Vi,Tt];case"Map":return[Li,Tt];case"Set":return[Ri,Tt];case"DataView":return[en,n]}return n.includes("Array")?[en,n]:n.includes("Error")?[Au,n]:[jn,n]},Mn=([e,t])=>e===Dn&&(t==="function"||t==="symbol"),t0=(e,t,n,r)=>{const i=(s,a)=>{const l=r.push(s)-1;return n.set(a,l),l},o=s=>{if(n.has(s))return n.get(s);let[a,l]=tn(s);switch(a){case Dn:{let c=s;switch(l){case"bigint":a=Iu,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Eu],s)}return i([a,c],s)}case en:{if(l){let d=s;return l==="DataView"?d=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(s)),i([l,[...d]],s)}const c=[],f=i([a,c],s);for(const d of s)c.push(o(d));return f}case jn:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const c=[],f=i([a,c],s);for(const d of e0(s))(e||!Mn(tn(s[d])))&&c.push([o(d),o(s[d])]);return f}case Ni:return i([a,s.toISOString()],s);case Vi:{const{source:c,flags:f}=s;return i([a,{source:c,flags:f}],s)}case Li:{const c=[],f=i([a,c],s);for(const[d,h]of s)(e||!(Mn(tn(d))||Mn(tn(h))))&&c.push([o(d),o(h)]);return f}case Ri:{const c=[],f=i([a,c],s);for(const d of s)(e||!Mn(tn(d)))&&c.push(o(d));return f}}const{message:u}=s;return i([a,{name:l,message:u}],s)};return o},Mu=(e,{json:t,lossy:n}={})=>{const r=[];return t0(!(t||n),!!t,new Map,r)(e),r},Nn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ju(Mu(e,t)):structuredClone(e):(e,t)=>ju(Mu(e,t));function n0(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function r0(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function i0(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||n0,r=e.options.footnoteBackLabel||r0,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),d=St(f.toLowerCase());let h=0;const x=[],m=e.footnoteCounts.get(f);for(;m!==void 0&&++h<=m;){x.length>0&&x.push({type:"text",value:" "});let S=typeof n=="string"?n:n(l,h);typeof S=="string"&&(S={type:"text",value:S}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const v=c[c.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const S=v.children[v.children.length-1];S&&S.type==="text"?S.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...x)}else c.push(...x);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,g),a.push(g)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Nn(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
7
+ <%s key={someKey} {...props} />`,Q,ne,be,ne),w[ne+Q]=!0)}if(ne=null,x!==void 0&&(n(x),ne=""+x),o($)&&(n($.key),ne=""+$.key),"key"in $){x={};for(var _e in $)_e!=="key"&&(x[_e]=$[_e])}else x=$;return ne&&a(x,typeof P=="function"?P.displayName||P.name||"Unknown":P),u(P,ne,x,i(),je,se)}function f(P){h(P)?P._store&&(P._store.validated=1):typeof P=="object"&&P!==null&&P.$$typeof===V&&(P._payload.status==="fulfilled"?h(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function h(P){return typeof P=="object"&&P!==null&&P.$$typeof===p}var d=I,p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),E=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),R=Symbol.for("react.client.reference"),O=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,z=Array.isArray,N=console.createTask?console.createTask:function(){return null};d={react_stack_bottom_frame:function(P){return P()}};var X,W={},J=d.react_stack_bottom_frame.bind(d,s)(),ue=N(r(s)),w={};Nt.Fragment=y,Nt.jsx=function(P,$,x){var Q=1e4>O.recentlyCreatedOwnerStacks++;return c(P,$,x,!1,Q?Error("react-stack-top-frame"):J,Q?N(r(P)):ue)},Nt.jsxs=function(P,$,x){var Q=1e4>O.recentlyCreatedOwnerStacks++;return c(P,$,x,!0,Q?Error("react-stack-top-frame"):J,Q?N(r(P)):ue)}})()),Nt}var jo;function xf(){return jo||(jo=1,process.env.NODE_ENV==="production"?mn.exports=gf():mn.exports=yf()),mn.exports}var b=xf();function bf(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(o){if(n[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=r[o]&&r[o].parent,l=a&&s(a);l&&(i[o]=[a].concat(l))}return i[o]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}const Mo=Object.freeze({left:0,top:0,width:16,height:16}),gn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),rr=Object.freeze({...Mo,...gn}),ir=Object.freeze({...rr,body:"",hidden:!1});function wf(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Lo(e,t){const n=wf(e,t);for(const r in ir)r in gn?r in e&&!(r in n)&&(n[r]=gn[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function vf(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function o(a){s=Lo(r[a]||i[a],s)}return o(t),n.forEach(o),Lo(e,s)}function No(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=bf(e);for(const i in r){const s=r[i];s&&(t(i,vf(e,i,s)),n.push(i))}return n}const kf={provider:"",aliases:{},not_found:{},...Mo};function or(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ro(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!or(e,kf))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i||typeof s.body!="string"||!or(s,ir))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],o=s.parent;if(!i||typeof o!="string"||!n[o]&&!r[o]||!or(s,ir))return null}return t}const Fo=Object.create(null);function Sf(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ct(e,t){const n=Fo[e]||(Fo[e]=Object.create(null));return n[t]||(n[t]=Sf(e,t))}function Oo(e,t){return Ro(t)?No(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Cf(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}const Vo=/^[a-z0-9]+(-[a-z0-9]+)*$/,yn=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),u={provider:i.length>0?i[0]:r,prefix:l,name:a};return t&&!xn(u)?null:u}const s=i[0],o=s.split("-");if(o.length>1){const a={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!xn(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!xn(a,n)?null:a}return null},xn=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;let Rt=!1;function zo(e){return typeof e=="boolean"&&(Rt=e),Rt}function _o(e){const t=typeof e=="string"?yn(e,!0,Rt):e;if(t){const n=ct(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Tf(e,t){const n=yn(e,!0,Rt);if(!n)return!1;const r=ct(n.provider,n.prefix);return t?Cf(r,n.name,t):(r.missing.add(n.name),!0)}function Pf(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Rt&&!t&&!e.prefix){let i=!1;return Ro(e)&&(e.prefix="",No(e,(s,o)=>{Tf(s,o)&&(i=!0)})),i}const n=e.prefix;if(!xn({prefix:n,name:"a"}))return!1;const r=ct(t,n);return!!Oo(r,e)}const Bo=Object.freeze({width:null,height:null}),$o=Object.freeze({...Bo,...gn}),Af=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ef=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Uo(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Af);if(r===null||!r.length)return e;const i=[];let s=r.shift(),o=Ef.test(s);for(;;){if(o){const a=parseFloat(s);isNaN(a)?i.push(s):i.push(Math.ceil(a*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");o=!o}}function If(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),s=e.indexOf("</"+t);if(i===-1||s===-1)break;const o=e.indexOf(">",s);if(o===-1)break;n+=e.slice(i+1,s).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function Df(e,t){return e?"<defs>"+e+"</defs>"+t:t}function jf(e,t,n){const r=If(e);return Df(r.defs,t+r.content+n)}const Mf=e=>e==="unset"||e==="undefined"||e==="none";function Lf(e,t){const n={...rr,...e},r={...$o,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(m=>{const y=[],g=m.hFlip,k=m.vFlip;let v=m.rotate;g?k?v+=2:(y.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),y.push("scale(-1 1)"),i.top=i.left=0):k&&(y.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),y.push("scale(1 -1)"),i.top=i.left=0);let E;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:E=i.height/2+i.top,y.unshift("rotate(90 "+E.toString()+" "+E.toString()+")");break;case 2:y.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:E=i.width/2+i.left,y.unshift("rotate(-90 "+E.toString()+" "+E.toString()+")");break}v%2===1&&(i.left!==i.top&&(E=i.left,i.left=i.top,i.top=E),i.width!==i.height&&(E=i.width,i.width=i.height,i.height=E)),y.length&&(s=jf(s,'<g transform="'+y.join(" ")+'">',"</g>"))});const o=r.width,a=r.height,l=i.width,u=i.height;let c,f;o===null?(f=a===null?"1em":a==="auto"?u:a,c=Uo(f,l/u)):(c=o==="auto"?l:o,f=a===null?Uo(c,u/l):a==="auto"?u:a);const h={},d=(m,y)=>{Mf(y)||(h[m]=y.toString())};d("width",c),d("height",f);const p=[i.left,i.top,l,u];return h.viewBox=p.join(" "),{attributes:h,viewBox:p,body:s}}const Nf=/\sid="(\S+)"/g,Rf="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ff=0;function Of(e,t=Rf){const n=[];let r;for(;r=Nf.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const o=typeof t=="function"?t(s):t+(Ff++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const sr=Object.create(null);function Vf(e,t){sr[e]=t}function ar(e){return sr[e]||sr[""]}function lr(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ur=Object.create(null),Ft=["https://api.simplesvg.com","https://api.unisvg.com"],bn=[];for(;Ft.length>0;)Ft.length===1||Math.random()>.5?bn.push(Ft.shift()):bn.push(Ft.pop());ur[""]=lr({resources:["https://api.iconify.design"].concat(bn)});function zf(e,t){const n=lr(t);return n===null?!1:(ur[e]=n,!0)}function cr(e){return ur[e]}let Ho=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function _f(e,t){const n=cr(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(o=>{i=Math.max(i,o.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function Bf(e){return e===404}const $f=(e,t,n)=>{const r=[],i=_f(e,t),s="icons";let o={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,u)=>{a+=l.length+1,a>=i&&u>0&&(r.push(o),o={type:s,provider:e,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),r.push(o),r};function Uf(e){if(typeof e=="string"){const t=cr(e);if(t)return t.path}return"/"}const Hf={prepare:$f,send:(e,t,n)=>{if(!Ho){n("abort",424);return}let r=Uf(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;Ho(e+r).then(s=>{const o=s.status;if(o!==200){setTimeout(()=>{n(Bf(o)?"abort":"next",o)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})}};function Wo(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function Wf(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const o=s.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==i)return!0;const u=l.name;if(e.icons[u])o.loaded.push({provider:r,prefix:i,name:u});else if(e.missing.has(u))o.missing.push({provider:r,prefix:i,name:u});else return n=!0,!0;return!1}),o.pending.length!==a&&(n||Wo([e],s.id),s.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),s.abort))})}))}let qf=0;function Gf(e,t,n){const r=qf++,i=Wo.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(s)}),i}function Yf(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,o=i.prefix,a=i.name,l=n[s]||(n[s]=Object.create(null)),u=l[o]||(l[o]=ct(s,o));let c;a in u.icons?c=t.loaded:o===""||u.missing.has(a)?c=t.missing:c=t.pending;const f={provider:s,prefix:o,name:a};c.push(f)}),t}function Kf(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?yn(i,t,n):i;s&&r.push(s)}),r}const Xf={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Qf(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let o;if(e.random){let S=e.resources.slice(0);for(o=[];S.length>1;){const M=Math.floor(Math.random()*S.length);o.push(S[M]),S=S.slice(0,M).concat(S.slice(M+1))}o=o.concat(S)}else o=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let l="pending",u=0,c,f=null,h=[],d=[];typeof r=="function"&&d.push(r);function p(){f&&(clearTimeout(f),f=null)}function m(){l==="pending"&&(l="aborted"),p(),h.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),h=[]}function y(S,M){M&&(d=[]),typeof S=="function"&&d.push(S)}function g(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:h.length,subscribe:y,abort:m}}function k(){l="failed",d.forEach(S=>{S(void 0,c)})}function v(){h.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),h=[]}function E(S,M,D){const V=M!=="success";switch(h=h.filter(C=>C!==S),l){case"pending":break;case"failed":if(V||!e.dataAfterTimeout)return;break;default:return}if(M==="abort"){c=D,k();return}if(V){c=D,h.length||(o.length?A():k());return}if(p(),v(),!e.random){const C=e.resources.indexOf(S.resource);C!==-1&&C!==e.index&&(e.index=C)}l="completed",d.forEach(C=>{C(D)})}function A(){if(l!=="pending")return;p();const S=o.shift();if(S===void 0){if(h.length){f=setTimeout(()=>{p(),l==="pending"&&(v(),k())},e.timeout);return}k();return}const M={status:"pending",resource:S,callback:(D,V)=>{E(M,D,V)}};h.push(M),u++,f=setTimeout(A,e.rotate),n(S,t,M.callback)}return setTimeout(A),g}function qo(e){const t={...Xf,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function i(a,l,u){const c=Qf(t,a,l,(f,h)=>{r(),u&&u(f,h)});return n.push(c),c}function s(a){return n.find(l=>a(l))||null}return{query:i,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function Go(){}const fr=Object.create(null);function Zf(e){if(!fr[e]){const t=cr(e);if(!t)return;const n=qo(t),r={config:t,redundancy:n};fr[e]=r}return fr[e]}function Jf(e,t,n){let r,i;if(typeof e=="string"){const s=ar(e);if(!s)return n(void 0,424),Go;i=s.send;const o=Zf(e);o&&(r=o.redundancy)}else{const s=lr(e);if(s){r=qo(s);const o=e.resources?e.resources[0]:"",a=ar(o);a&&(i=a.send)}}return!r||!i?(n(void 0,424),Go):r.query(t,i,n)().abort}function Yo(){}function eh(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Wf(e)}))}function th(e){const t=[],n=[];return e.forEach(r=>{(r.match(Vo)?t:n).push(r)}),{valid:t,invalid:n}}function Ot(e,t,n){function r(){const i=e.pendingIcons;t.forEach(s=>{i&&i.delete(s),e.icons[s]||e.missing.add(s)})}if(n&&typeof n=="object")try{if(!Oo(e,n).length){r();return}}catch(i){console.error(i)}r(),eh(e)}function Ko(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function nh(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;if(delete e.iconsToLoad,!i||!i.length)return;const s=e.loadIcon;if(e.loadIcons&&(i.length>1||!s)){Ko(e.loadIcons(i,r,n),c=>{Ot(e,i,c)});return}if(s){i.forEach(c=>{const f=s(c,r,n);Ko(f,h=>{const d=h?{prefix:r,icons:{[c]:h}}:null;Ot(e,[c],d)})});return}const{valid:o,invalid:a}=th(i);if(a.length&&Ot(e,a,null),!o.length)return;const l=r.match(Vo)?ar(n):null;if(!l){Ot(e,o,null);return}l.prepare(n,r,o).forEach(c=>{Jf(n,c,f=>{Ot(e,c.icons,f)})})}))}const rh=(e,t)=>{const n=Kf(e,!0,zo()),r=Yf(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Yo)}),()=>{l=!1}}const i=Object.create(null),s=[];let o,a;return r.pending.forEach(l=>{const{provider:u,prefix:c}=l;if(c===a&&u===o)return;o=u,a=c,s.push(ct(u,c));const f=i[u]||(i[u]=Object.create(null));f[c]||(f[c]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:c,name:f}=l,h=ct(u,c),d=h.pendingIcons||(h.pendingIcons=new Set);d.has(f)||(d.add(f),i[u][c].push(f))}),s.forEach(l=>{const u=i[l.provider][l.prefix];u.length&&nh(l,u)}),t?Gf(t,r,s):Yo};function ih(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in Bo?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const oh=/[\s,]+/;function sh(e,t){t.split(oh).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function ah(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function lh(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function uh(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ch(e){return"data:image/svg+xml,"+uh(e)}function fh(e){return'url("'+ch(e)+'")'}let Vt;function hh(){try{Vt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Vt=null}}function dh(e){return Vt===void 0&&hh(),Vt?Vt.createHTML(e):e}const Xo={...$o,inline:!1},ph={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},mh={display:"inline-block"},hr={backgroundColor:"currentColor"},Qo={backgroundColor:"transparent"},Zo={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Jo={WebkitMask:hr,mask:hr,background:Qo};for(const e in Jo){const t=Jo[e];for(const n in Zo)t[e+n]=Zo[n]}const gh={...Xo,inline:!0};function es(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const yh=(e,t,n)=>{const r=t.inline?gh:Xo,i=ih(r,t),s=t.mode||"svg",o={},a=t.style||{},l={...s==="svg"?ph:{}};if(n){const y=yn(n,!1,!0);if(y){const g=["iconify"],k=["provider","prefix"];for(const v of k)y[v]&&g.push("iconify--"+y[v]);l.className=g.join(" ")}}for(let y in t){const g=t[y];if(g!==void 0)switch(y){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":l.ref=g;break;case"className":l[y]=(l[y]?l[y]+" ":"")+g;break;case"inline":case"hFlip":case"vFlip":i[y]=g===!0||g==="true"||g===1;break;case"flip":typeof g=="string"&&sh(i,g);break;case"color":o.color=g;break;case"rotate":typeof g=="string"?i[y]=ah(g):typeof g=="number"&&(i[y]=g);break;case"ariaHidden":case"aria-hidden":g!==!0&&g!=="true"&&delete l["aria-hidden"];break;default:r[y]===void 0&&(l[y]=g)}}const u=Lf(e,i),c=u.attributes;if(i.inline&&(o.verticalAlign="-0.125em"),s==="svg"){l.style={...o,...a},Object.assign(l,c);let y=0,g=t.id;return typeof g=="string"&&(g=g.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:dh(Of(u.body,g?()=>g+"ID"+y++:"iconifyReact"))},I.createElement("svg",l)}const{body:f,width:h,height:d}=e,p=s==="mask"||(s==="bg"?!1:f.indexOf("currentColor")!==-1),m=lh(f,{...c,width:h+"",height:d+""});return l.style={...o,"--svg":fh(m),width:es(c.width),height:es(c.height),...mh,...p?hr:Qo,...a},I.createElement("span",l)};if(zo(!0),Vf("",Hf),typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Pf(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;zf(n,i)||console.error(r)}catch{console.error(r)}}}}function ts(e){const[t,n]=I.useState(!!e.ssr),[r,i]=I.useState({});function s(d){if(d){const p=e.icon;if(typeof p=="object")return{name:"",data:p};const m=_o(p);if(m)return{name:p,data:m}}return{name:""}}const[o,a]=I.useState(s(!!e.ssr));function l(){const d=r.callback;d&&(d(),i({}))}function u(d){if(JSON.stringify(o)!==JSON.stringify(d))return l(),a(d),!0}function c(){var d;const p=e.icon;if(typeof p=="object"){u({name:"",data:p});return}const m=_o(p);if(u({name:p,data:m}))if(m===void 0){const y=rh([p],c);i({callback:y})}else m&&((d=e.onLoad)===null||d===void 0||d.call(e,p))}I.useEffect(()=>(n(!0),l),[]),I.useEffect(()=>{t&&c()},[e.icon,t]);const{name:f,data:h}=o;return h?yh({...rr,...h},e,f):e.children?e.children:e.fallback?e.fallback:I.createElement("span",{})}const he=I.forwardRef((e,t)=>ts({...e,_ref:t}));I.forwardRef((e,t)=>ts({inline:!0,...e,_ref:t}));const ns=({title:e,subtitle:t,items:n,className:r="",inverted:i=!1})=>b.jsx("section",{className:`bento-grid-section ${i?"theme-inverted":""} ${r}`,children:b.jsxs("div",{className:"bento-grid-container",children:[(e||t)&&b.jsxs("div",{className:"bento-grid-header",children:[e&&b.jsx("h2",{className:"section-title bento-grid-title",children:e}),t&&b.jsx("p",{className:"section-subtitle bento-grid-subtitle",children:t})]}),b.jsx("div",{className:"bento-grid",children:n.map((s,o)=>{const a=s.colSpan?`col-span-${s.colSpan}`:"col-span-1",l=s.rowSpan?`row-span-${s.rowSpan}`:"row-span-1",u=s.href?"a":"div",c=s.href?{href:s.href,className:`bento-card ${a} ${l} ${s.className||""} ${i?"theme-inverted":""} clickable`}:{className:`bento-card ${a} ${l} ${s.className||""} ${i?"theme-inverted":""}`};return b.jsxs(u,{...c,children:[s.image&&b.jsx("div",{className:"bento-card-image-wrapper",children:b.jsx("img",{src:s.image.imageSrc,alt:s.image.alt,className:"bento-card-image"})}),b.jsxs("div",{className:"bento-card-content",children:[s.icon&&b.jsx("div",{className:"bento-card-icon",children:b.jsx(he,{icon:s.icon,width:"24",height:"24"})}),b.jsxs("div",{className:`bento-card-text ${s.cardTextClassName}`,children:[b.jsx("h3",{className:"bento-card-title",children:s.title}),s.description&&b.jsx("p",{className:"bento-card-description",children:s.description})]})]})]},o)})})]})}),dr=({children:e,className:t="",variant:n="default",padding:r="md",hoverable:i=!1,elevation:s="sm",onClick:o,inverted:a=!1})=>{const l=["card",`card-${n}`,`card-padding-${r}`,xh("elevation",s),i?"card-hoverable":"",a?"theme-inverted":"",t].filter(Boolean).join(" ");return b.jsx("div",{className:l,onClick:o,children:e})},xh=(e,t)=>t&&t!=="none"?`card-${e}-${t}`:"",rs=e=>{const{menuBar:t,utilityButtons:n,sticky:r=!1,className:i="",logoHref:s,imageSrc:o,logoTarget:a="_self",logoClassName:l="",altText:u="Logo",inverted:c=!1}=e,[f,h]=I.useState(!1);return b.jsxs("header",{className:`header ${r?"header-sticky":""} ${c?"theme-inverted":""} ${i}`,children:[b.jsx("div",{className:"header-logo-wrapper",children:o&&b.jsx("a",{href:s||"#",target:a,className:`${l} hover-lift`,"aria-label":"Home",children:b.jsx("img",{src:o,alt:u})})}),b.jsx("button",{className:"header-toggle",onClick:()=>h(!f),"aria-label":"Toggle navigation",children:b.jsx(he,{icon:f?"mdi:close":"mdi:menu"})}),b.jsxs("div",{className:`header-nav-container ${f?"active":""}`,onClick:()=>h(!1),children:[b.jsx("div",{className:"header-nav",children:t}),n&&n.length>0&&b.jsx("div",{className:"header-utility",children:n})]})]})},pr=I.createContext({});function mr(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const gr=typeof window<"u",is=gr?I.useLayoutEffect:I.useEffect,wn=I.createContext(null);function yr(e,t){e.indexOf(t)===-1&&e.push(t)}function xr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Be=(e,t,n)=>n>t?t:n<e?e:n;function br(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let ft=()=>{},$e=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(ft=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(br(t,n))},$e=(e,t,n)=>{if(!e)throw new Error(br(t,n))});const Ue={},os=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ss(e){return typeof e=="object"&&e!==null}const as=e=>/^0[^.\s]+$/u.test(e);function wr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ae=e=>e,bh=(e,t)=>n=>t(e(n)),zt=(...e)=>e.reduce(bh),_t=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class vr{constructor(){this.subscriptions=[]}add(t){return yr(this.subscriptions,t),()=>xr(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Me=e=>e*1e3,Ee=e=>e/1e3;function ls(e,t){return t?e*(1e3/t):0}const us=new Set;function kr(e,t,n){e||us.has(t)||(console.warn(br(t,n)),us.add(t))}const cs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,wh=1e-7,vh=12;function kh(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=cs(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>wh&&++a<vh);return o}function Bt(e,t,n,r){if(e===t&&n===r)return Ae;const i=s=>kh(s,0,1,e,n);return s=>s===0||s===1?s:cs(i(s),t,r)}const fs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hs=e=>t=>1-e(1-t),ds=Bt(.33,1.53,.69,.99),Sr=hs(ds),ps=fs(Sr),ms=e=>(e*=2)<1?.5*Sr(e):.5*(2-Math.pow(2,-10*(e-1))),Cr=e=>1-Math.sin(Math.acos(e)),gs=hs(Cr),ys=fs(Cr),Sh=Bt(.42,0,1,1),Ch=Bt(0,0,.58,1),xs=Bt(.42,0,.58,1),Th=e=>Array.isArray(e)&&typeof e[0]!="number",bs=e=>Array.isArray(e)&&typeof e[0]=="number",ws={linear:Ae,easeIn:Sh,easeInOut:xs,easeOut:Ch,circIn:Cr,circInOut:ys,circOut:gs,backIn:Sr,backInOut:ps,backOut:ds,anticipate:ms},Ph=e=>typeof e=="string",vs=e=>{if(bs(e)){$e(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Bt(t,n,r,i)}else if(Ph(e))return $e(ws[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),ws[e];return e},vn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ah(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,f=!1,h=!1)=>{const p=h&&i?n:r;return f&&o.add(c),p.has(c)||p.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(a=c,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,u.process(c))}};return u}const Eh=40;function ks(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=vn.reduce((v,E)=>(v[E]=Ah(s),v),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:h,render:d,postRender:p}=o,m=()=>{const v=Ue.useManualTiming?i.timestamp:performance.now();n=!1,Ue.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,Eh),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),h.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},y=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:vn.reduce((v,E)=>{const A=o[E];return v[E]=(S,M=!1,D=!1)=>(n||y(),A.schedule(S,M,D)),v},{}),cancel:v=>{for(let E=0;E<vn.length;E++)o[vn[E]].cancel(v)},state:i,steps:o}}const{schedule:re,cancel:Ge,state:fe,steps:Tr}=ks(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ae,!0);let kn;function Ih(){kn=void 0}const we={now:()=>(kn===void 0&&we.set(fe.isProcessing||Ue.useManualTiming?fe.timestamp:performance.now()),kn),set:e=>{kn=e,queueMicrotask(Ih)}},Ss=e=>t=>typeof t=="string"&&t.startsWith(e),Cs=Ss("--"),Dh=Ss("var(--"),Pr=e=>Dh(e)?jh.test(e.split("/*")[0].trim()):!1,jh=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ht={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$t={...ht,transform:e=>Be(0,1,e)},Sn={...ht,default:1},Ut=e=>Math.round(e*1e5)/1e5,Ar=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mh(e){return e==null}const Lh=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Er=(e,t)=>n=>!!(typeof n=="string"&&Lh.test(n)&&n.startsWith(e)||t&&!Mh(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ts=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Ar);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Nh=e=>Be(0,255,e),Ir={...ht,transform:e=>Math.round(Nh(e))},et={test:Er("rgb","red"),parse:Ts("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ir.transform(e)+", "+Ir.transform(t)+", "+Ir.transform(n)+", "+Ut($t.transform(r))+")"};function Rh(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Dr={test:Er("#"),parse:Rh,transform:et.transform},Ht=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ye=Ht("deg"),Oe=Ht("%"),F=Ht("px"),Fh=Ht("vh"),Oh=Ht("vw"),Ps={...Oe,parse:e=>Oe.parse(e)/100,transform:e=>Oe.transform(e*100)},dt={test:Er("hsl","hue"),parse:Ts("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Oe.transform(Ut(t))+", "+Oe.transform(Ut(n))+", "+Ut($t.transform(r))+")"},ae={test:e=>et.test(e)||Dr.test(e)||dt.test(e),parse:e=>et.test(e)?et.parse(e):dt.test(e)?dt.parse(e):Dr.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?et.transform(e):dt.transform(e),getAnimatableNone:e=>{const t=ae.parse(e);return t.alpha=0,ae.transform(t)}},Vh=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function zh(e){return isNaN(e)&&typeof e=="string"&&(e.match(Ar)?.length||0)+(e.match(Vh)?.length||0)>0}const As="number",Es="color",_h="var",Bh="var(",Is="${}",$h=/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 Wt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace($h,l=>(ae.test(l)?(r.color.push(s),i.push(Es),n.push(ae.parse(l))):l.startsWith(Bh)?(r.var.push(s),i.push(_h),n.push(l)):(r.number.push(s),i.push(As),n.push(parseFloat(l))),++s,Is)).split(Is);return{values:n,split:a,indexes:r,types:i}}function Ds(e){return Wt(e).values}function js(e){const{split:t,types:n}=Wt(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===As?s+=Ut(i[o]):a===Es?s+=ae.transform(i[o]):s+=i[o]}return s}}const Uh=e=>typeof e=="number"?0:ae.test(e)?ae.getAnimatableNone(e):e;function Hh(e){const t=Ds(e);return js(e)(t.map(Uh))}const Ke={test:zh,parse:Ds,createTransformer:js,getAnimatableNone:Hh};function jr(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 Wh({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=jr(l,a,e+1/3),s=jr(l,a,e),o=jr(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Cn(e,t){return n=>n>0?t:e}const ie=(e,t,n)=>e+(t-e)*n,Mr=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},qh=[Dr,et,dt],Gh=e=>qh.find(t=>t.test(e));function Ms(e){const t=Gh(e);if(ft(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===dt&&(n=Wh(n)),n}const Ls=(e,t)=>{const n=Ms(e),r=Ms(t);if(!n||!r)return Cn(e,t);const i={...n};return s=>(i.red=Mr(n.red,r.red,s),i.green=Mr(n.green,r.green,s),i.blue=Mr(n.blue,r.blue,s),i.alpha=ie(n.alpha,r.alpha,s),et.transform(i))},Lr=new Set(["none","hidden"]);function Yh(e,t){return Lr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Kh(e,t){return n=>ie(e,t,n)}function Nr(e){return typeof e=="number"?Kh:typeof e=="string"?Pr(e)?Cn:ae.test(e)?Ls:Zh:Array.isArray(e)?Ns:typeof e=="object"?ae.test(e)?Ls:Xh:Cn}function Ns(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Nr(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Xh(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Nr(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Qh(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const Zh=(e,t)=>{const n=Ke.createTransformer(t),r=Wt(e),i=Wt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Lr.has(e)&&!i.values.length||Lr.has(t)&&!r.values.length?Yh(e,t):zt(Ns(Qh(r,i),i.values),n):(ft(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Cn(e,t))};function Rs(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ie(e,t,n):Nr(e)(e,t)}const Jh=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>re.update(t,n),stop:()=>Ge(t),now:()=>fe.isProcessing?fe.timestamp:we.now()}},Fs=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Tn=2e4;function Rr(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Tn;)t+=n,r=e.next(t);return t>=Tn?1/0:t}function ed(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Rr(r),Tn);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Ee(i)}}const td=5;function Os(e,t,n){const r=Math.max(t-td,0);return ls(n-e(r),t-r)}const oe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Fr=.001;function nd({duration:e=oe.duration,bounce:t=oe.bounce,velocity:n=oe.velocity,mass:r=oe.mass}){let i,s;ft(e<=Me(oe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=Be(oe.minDamping,oe.maxDamping,o),e=Be(oe.minDuration,oe.maxDuration,Ee(e)),o<1?(i=u=>{const c=u*o,f=c*e,h=c-n,d=Or(u,o),p=Math.exp(-f);return Fr-h/d*p},s=u=>{const f=u*o*e,h=f*n+n,d=Math.pow(o,2)*Math.pow(u,2)*e,p=Math.exp(-f),m=Or(Math.pow(u,2),o);return(-i(u)+Fr>0?-1:1)*((h-d)*p)/m}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Fr+c*f},s=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=id(i,s,a);if(e=Me(e),isNaN(l))return{stiffness:oe.stiffness,damping:oe.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const rd=12;function id(e,t,n){let r=n;for(let i=1;i<rd;i++)r=r-e(r)/t(r);return r}function Or(e,t){return e*Math.sqrt(1-t*t)}const od=["duration","bounce"],sd=["stiffness","damping","mass"];function Vs(e,t){return t.some(n=>e[n]!==void 0)}function ad(e){let t={velocity:oe.velocity,stiffness:oe.stiffness,damping:oe.damping,mass:oe.mass,isResolvedFromDuration:!1,...e};if(!Vs(e,sd)&&Vs(e,od))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Be(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:oe.mass,stiffness:i,damping:s}}else{const n=nd(e);t={...t,...n,mass:oe.mass},t.isResolvedFromDuration=!0}return t}function Pn(e=oe.visualDuration,t=oe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:f,velocity:h,isResolvedFromDuration:d}=ad({...n,velocity:-Ee(n.velocity||0)}),p=h||0,m=u/(2*Math.sqrt(l*c)),y=o-s,g=Ee(Math.sqrt(l/c)),k=Math.abs(y)<5;r||(r=k?oe.restSpeed.granular:oe.restSpeed.default),i||(i=k?oe.restDelta.granular:oe.restDelta.default);let v;if(m<1){const A=Or(g,m);v=S=>{const M=Math.exp(-m*g*S);return o-M*((p+m*g*y)/A*Math.sin(A*S)+y*Math.cos(A*S))}}else if(m===1)v=A=>o-Math.exp(-g*A)*(y+(p+g*y)*A);else{const A=g*Math.sqrt(m*m-1);v=S=>{const M=Math.exp(-m*g*S),D=Math.min(A*S,300);return o-M*((p+m*g*y)*Math.sinh(D)+A*y*Math.cosh(D))/A}}const E={calculatedDuration:d&&f||null,next:A=>{const S=v(A);if(d)a.done=A>=f;else{let M=A===0?p:0;m<1&&(M=A===0?Me(p):Os(v,A,S));const D=Math.abs(M)<=r,V=Math.abs(o-S)<=i;a.done=D&&V}return a.value=a.done?o:S,a},toString:()=>{const A=Math.min(Rr(E),Tn),S=Fs(M=>E.next(A*M).value,A,30);return A+"ms "+S},toTransition:()=>{}};return E}Pn.applyToOptions=e=>{const t=ed(e,100,Pn);return e.ease=t.ease,e.duration=Me(t.duration),e.type="keyframes",e};function Vr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],h={done:!1,value:f},d=D=>a!==void 0&&D<a||l!==void 0&&D>l,p=D=>a===void 0?l:l===void 0||Math.abs(a-D)<Math.abs(l-D)?a:l;let m=n*t;const y=f+m,g=o===void 0?y:o(y);g!==y&&(m=g-f);const k=D=>-m*Math.exp(-D/r),v=D=>g+k(D),E=D=>{const V=k(D),C=v(D);h.done=Math.abs(V)<=u,h.value=h.done?g:C};let A,S;const M=D=>{d(h.value)&&(A=D,S=Pn({keyframes:[h.value,p(h.value)],velocity:Os(v,D,h.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return M(0),{calculatedDuration:null,next:D=>{let V=!1;return!S&&A===void 0&&(V=!0,E(D),M(D)),A!==void 0&&D>=A?S.next(D-A):(!V&&E(D),h)}}}function ld(e,t,n){const r=[],i=n||Ue.mix||Rs,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ae:t;a=zt(l,a)}r.push(a)}return r}function ud(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if($e(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ld(t,r,i),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const h=_t(e[f],e[f+1],c);return a[f](h)};return n?c=>u(Be(e[0],e[s-1],c)):u}function cd(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=_t(0,t,r);e.push(ie(n,1,i))}}function fd(e){const t=[0];return cd(t,e.length-1),t}function hd(e,t){return e.map(n=>n*t)}function dd(e,t){return e.map(()=>t||xs).splice(0,e.length-1)}function pt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Th(r)?r.map(vs):vs(r),s={done:!1,value:t[0]},o=hd(n&&n.length===t.length?n:fd(t),e),a=ud(o,t,{ease:Array.isArray(i)?i:dd(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const pd=e=>e!==null;function zr(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(pd),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const md={decay:Vr,inertia:Vr,tween:pt,keyframes:pt,spring:Pn};function zs(e){typeof e.type=="string"&&(e.type=md[e.type])}class _r{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const gd=e=>e/100;class Br extends _r{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==we.now()&&this.tick(we.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;zs(t);const{type:n=pt,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||pt;process.env.NODE_ENV!=="production"&&l!==pt&&$e(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==pt&&typeof a[0]!="number"&&(this.mixKeyframes=zt(gd,Rs(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Rr(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:h,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,E=r;if(f){const D=Math.min(this.currentTime,i)/a;let V=Math.floor(D),C=D%1;!C&&D>=1&&(C=1),C===1&&V--,V=Math.min(V,f+1),!!(V%2)&&(h==="reverse"?(C=1-C,d&&(C-=d/a)):h==="mirror"&&(E=o)),v=Be(0,1,C)*a}const A=k?{done:!1,value:c[0]}:E.next(v);s&&(A.value=s(A.value));let{done:S}=A;!k&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return M&&p!==Vr&&(A.value=zr(c,this.options,y,this.speed)),m&&m(A.value),M&&this.finish(),A}then(t,n){return this.finished.then(t,n)}get duration(){return Ee(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(this.currentTime)}set time(t){t=Me(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(we.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ee(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Jh,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(we.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function yd(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const tt=e=>e*180/Math.PI,$r=e=>{const t=tt(Math.atan2(e[1],e[0]));return Ur(t)},xd={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:$r,rotateZ:$r,skewX:e=>tt(Math.atan(e[1])),skewY:e=>tt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ur=e=>(e=e%360,e<0&&(e+=360),e),_s=$r,Bs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),$s=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),bd={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bs,scaleY:$s,scale:e=>(Bs(e)+$s(e))/2,rotateX:e=>Ur(tt(Math.atan2(e[6],e[5]))),rotateY:e=>Ur(tt(Math.atan2(-e[2],e[0]))),rotateZ:_s,rotate:_s,skewX:e=>tt(Math.atan(e[4])),skewY:e=>tt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Hr(e){return e.includes("scale")?1:0}function Wr(e,t){if(!e||e==="none")return Hr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=bd,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=xd,i=a}if(!i)return Hr(t);const s=r[t],o=i[1].split(",").map(vd);return typeof s=="function"?s(o):o[s]}const wd=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Wr(n,t)};function vd(e){return parseFloat(e.trim())}const mt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gt=new Set(mt),Us=e=>e===ht||e===F,kd=new Set(["x","y","z"]),Sd=mt.filter(e=>!kd.has(e));function Cd(e){const t=[];return Sd.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const nt={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:(e,{transform:t})=>Wr(t,"x"),y:(e,{transform:t})=>Wr(t,"y")};nt.translateX=nt.x,nt.translateY=nt.y;const rt=new Set;let qr=!1,Gr=!1,Yr=!1;function Hs(){if(Gr){const e=Array.from(rt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Cd(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{r.getValue(s)?.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gr=!1,qr=!1,rt.forEach(e=>e.complete(Yr)),rt.clear()}function Ws(){rt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gr=!0)})}function Td(){Yr=!0,Ws(),Hs(),Yr=!1}class Kr{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(rt.add(this),qr||(qr=!0,re.read(Ws),re.resolveKeyframes(Hs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i?.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}yd(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),rt.delete(this)}cancel(){this.state==="scheduled"&&(rt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Pd=e=>e.startsWith("--");function Ad(e,t,n){Pd(t)?e.style.setProperty(t,n):e.style[t]=n}const Ed=wr(()=>window.ScrollTimeline!==void 0),Id={};function Dd(e,t){const n=wr(e);return()=>Id[t]??n()}const qs=Dd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Gs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qt([0,.65,.55,1]),circOut:qt([.55,0,1,.45]),backIn:qt([.31,.01,.66,-.59]),backOut:qt([.33,1.53,.69,.99])};function Ys(e,t){if(e)return typeof e=="function"?qs()?Fs(e,t):"ease-out":bs(e)?qt(e):Array.isArray(e)?e.map(n=>Ys(n,t)||Gs.easeOut):Gs[e]}function jd(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=Ys(a,i);Array.isArray(f)&&(c.easing=f);const h={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(c,h)}function Ks(e){return typeof e=="function"&&"applyToOptions"in e}function Md({type:e,...t}){return Ks(e)&&qs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ld extends _r{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,$e(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Md(t);this.animation=jd(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=zr(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Ad(n,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ee(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Me(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Ed()?(this.animation.timeline=t,Ae):n(this)}}const Xs={anticipate:ms,backInOut:ps,circInOut:ys};function Nd(e){return e in Xs}function Rd(e){typeof e.ease=="string"&&Nd(e.ease)&&(e.ease=Xs[e.ease])}const Qs=10;class Fd extends Ld{constructor(t){Rd(t),zs(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Br({...o,autoplay:!1}),l=Me(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Qs).value,a.sample(l).value,Qs),a.stop()}}const Zs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ke.test(e)||e==="0")&&!e.startsWith("url("));function Od(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Vd(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=Zs(i,t),a=Zs(s,t);return ft(o===a,`You are trying to animate ${t} from "${i}" to "${s}". "${o?s:i}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:Od(e)||(n==="spring"||Ks(n))&&r}function Xr(e){e.duration=0,e.type="keyframes"}const zd=new Set(["opacity","clipPath","filter","transform"]),_d=wr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Bd(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return _d()&&n&&zd.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const $d=40;class Ud extends _r{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=we.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...f},d=c?.KeyframeResolver||Kr;this.keyframeResolver=new d(a,(p,m,y)=>this.onKeyframesResolved(p,m,h,!y),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=we.now(),Vd(t,s,o,a)||((Ue.instantAnimations||!l)&&c?.(zr(t,r,n)),t[0]=t[t.length-1],Xr(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>$d?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},d=!u&&Bd(h)?new Fd({...h,element:h.motionValue.owner.current}):new Br(h);d.finished.then(()=>this.notifyFinished()).catch(Ae),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Td()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Hd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Wd(e){const t=Hd.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const qd=4;function Js(e,t,n=1){$e(n<=qd,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=Wd(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return os(o)?parseFloat(o):o}return Pr(i)?Js(i,t,n+1):i}function Qr(e,t){return e?.[t]??e?.default??e}const ea=new Set(["width","height","top","left","right","bottom",...mt]),Gd={test:e=>e==="auto",parse:e=>e},ta=e=>t=>t.test(e),na=[ht,F,Oe,Ye,Oh,Fh,Gd],ra=e=>na.find(ta(e));function Yd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||as(e):!0}const Kd=new Set(["brightness","contrast","saturate","opacity"]);function Xd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ar)||[];if(!r)return e;const i=n.replace(r,"");let s=Kd.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Qd=/\b([a-z-]*)\(.*?\)/gu,Zr={...Ke,getAnimatableNone:e=>{const t=e.match(Qd);return t?t.map(Xd).join(" "):e}},ia={...ht,transform:Math.round},Jr={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,radius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,inset:F,insetBlock:F,insetBlockStart:F,insetBlockEnd:F,insetInline:F,insetInlineStart:F,insetInlineEnd:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,paddingBlock:F,paddingBlockStart:F,paddingBlockEnd:F,paddingInline:F,paddingInlineStart:F,paddingInlineEnd:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,marginBlock:F,marginBlockStart:F,marginBlockEnd:F,marginInline:F,marginInlineStart:F,marginInlineEnd:F,backgroundPositionX:F,backgroundPositionY:F,...{rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scale:Sn,scaleX:Sn,scaleY:Sn,scaleZ:Sn,skew:Ye,skewX:Ye,skewY:Ye,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:$t,originX:Ps,originY:Ps,originZ:F},zIndex:ia,fillOpacity:$t,strokeOpacity:$t,numOctaves:ia},Zd={...Jr,color:ae,backgroundColor:ae,outlineColor:ae,fill:ae,stroke:ae,borderColor:ae,borderTopColor:ae,borderRightColor:ae,borderBottomColor:ae,borderLeftColor:ae,filter:Zr,WebkitFilter:Zr},oa=e=>Zd[e];function sa(e,t){let n=oa(e);return n!==Zr&&(n=Ke),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Jd=new Set(["auto","none","0"]);function ep(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Jd.has(s)&&Wt(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=sa(n,i)}class tp extends Kr{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Pr(u))){const c=Js(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ea.has(r)||t.length!==2)return;const[i,s]=t,o=ra(i),a=ra(s);if(o!==a)if(Us(o)&&Us(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else nt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Yd(t[i]))&&r.push(i);r.length&&ep(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=nt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=nt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function np(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const aa=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function la(e){return ss(e)&&"offsetHeight"in e}const ua=30,rp=e=>!isNaN(parseFloat(e));class ip{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=we.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=we.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=rp(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&kr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new vr);const r=this.events[t].add(n);return t==="change"?()=>{r(),re.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=we.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ua)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ua);return ls(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yt(e,t){return new ip(e,t)}const{schedule:ei}=ks(queueMicrotask,!1),Le={x:!1,y:!1};function ca(){return Le.x||Le.y}function op(e){return e==="x"||e==="y"?Le[e]?null:(Le[e]=!0,()=>{Le[e]=!1}):Le.x||Le.y?null:(Le.x=Le.y=!0,()=>{Le.x=Le.y=!1})}function fa(e,t){const n=np(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ha(e){return!(e.pointerType==="touch"||ca())}function sp(e,t,n={}){const[r,i,s]=fa(e,n),o=a=>{if(!ha(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=f=>{ha(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const da=(e,t)=>t?e===t?!0:da(e,t.parentElement):!1,ti=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ap=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lp(e){return ap.has(e.tagName)||e.tabIndex!==-1}const An=new WeakSet;function pa(e){return t=>{t.key==="Enter"&&e(t)}}function ni(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const up=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=pa(()=>{if(An.has(n))return;ni(n,"down");const i=pa(()=>{ni(n,"up")}),s=()=>ni(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ma(e){return ti(e)&&!ca()}function cp(e,t,n={}){const[r,i,s]=fa(e,n),o=a=>{const l=a.currentTarget;if(!ma(a))return;An.add(l);const u=t(l,a),c=(d,p)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),An.has(l)&&An.delete(l),ma(d)&&typeof u=="function"&&u(d,{success:p})},f=d=>{c(d,l===window||l===document||n.useGlobalTarget||da(l,d.target))},h=d=>{c(d,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),la(a)&&(a.addEventListener("focus",u=>up(u,i)),!lp(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function ga(e){return ss(e)&&"ownerSVGElement"in e}function fp(e){return ga(e)&&e.tagName==="svg"}const de=e=>!!(e&&e.getVelocity),hp=[...na,ae,Ke],dp=e=>hp.find(ta(e)),ri=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ya(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pp(...e){return t=>{let n=!1;const r=e.map(i=>{const s=ya(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():ya(e[i],null)}}}}function mp(...e){return pn.useCallback(pp(...e),e)}class gp extends pn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=la(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function yp({children:e,isPresent:t,anchorX:n,root:r}){const i=I.useId(),s=I.useRef(null),o=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=I.useContext(ri),l=e.props?.ref??e?.ref,u=mp(s,l);return I.useInsertionEffect(()=>{const{width:c,height:f,top:h,left:d,right:p}=o.current;if(t||!s.current||!c||!f)return;const m=n==="left"?`left: ${d}`:`right: ${p}`;s.current.dataset.motionPopId=i;const y=document.createElement("style");a&&(y.nonce=a);const g=r??document.head;return g.appendChild(y),y.sheet&&y.sheet.insertRule(`
8
+ [data-motion-pop-id="${i}"] {
9
+ position: absolute !important;
10
+ width: ${c}px !important;
11
+ height: ${f}px !important;
12
+ ${m}px !important;
13
+ top: ${h}px !important;
14
+ }
15
+ `),()=>{g.contains(y)&&g.removeChild(y)}},[t]),b.jsx(gp,{isPresent:t,childRef:s,sizeRef:o,children:pn.cloneElement(e,{ref:u})})}const xp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,root:l})=>{const u=mr(bp),c=I.useId();let f=!0,h=I.useMemo(()=>(f=!1,{id:c,initial:t,isPresent:n,custom:i,onExitComplete:d=>{u.set(d,!0);for(const p of u.values())if(!p)return;r&&r()},register:d=>(u.set(d,!1),()=>u.delete(d))}),[n,u,r]);return s&&f&&(h={...h}),I.useMemo(()=>{u.forEach((d,p)=>u.set(p,!1))},[n]),pn.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=b.jsx(yp,{isPresent:n,anchorX:a,root:l,children:e})),b.jsx(wn.Provider,{value:h,children:e})};function bp(){return new Map}function xa(e=!0){const t=I.useContext(wn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=I.useId();I.useEffect(()=>{if(e)return i(s)},[e]);const o=I.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const En=e=>e.key||"";function ba(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const wp=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",root:l})=>{const[u,c]=xa(o),f=I.useMemo(()=>ba(e),[e]),h=o&&!u?[]:f.map(En),d=I.useRef(!0),p=I.useRef(f),m=mr(()=>new Map),y=I.useRef(new Set),[g,k]=I.useState(f),[v,E]=I.useState(f);is(()=>{d.current=!1,p.current=f;for(let M=0;M<v.length;M++){const D=En(v[M]);h.includes(D)?(m.delete(D),y.current.delete(D)):m.get(D)!==!0&&m.set(D,!1)}},[v,h.length,h.join("-")]);const A=[];if(f!==g){let M=[...f];for(let D=0;D<v.length;D++){const V=v[D],C=En(V);h.includes(C)||(M.splice(D,0,V),A.push(V))}return s==="wait"&&A.length&&(M=A),E(ba(M)),k(f),null}process.env.NODE_ENV!=="production"&&s==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:S}=I.useContext(pr);return b.jsx(b.Fragment,{children:v.map(M=>{const D=En(M),V=o&&!u?!1:f===v||h.includes(D),C=()=>{if(y.current.has(D))return;if(y.current.add(D),m.has(D))m.set(D,!0);else return;let R=!0;m.forEach(O=>{O||(R=!1)}),R&&(S?.(),E(p.current),o&&c?.(),r&&r())};return b.jsx(xp,{isPresent:V,initial:!d.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:l,onExitComplete:V?void 0:C,anchorX:a,children:M},D)})})},wa=I.createContext({strict:!1}),va={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"]},xt={};for(const e in va)xt[e]={isEnabled:t=>va[e].some(n=>!!t[n])};function vp(e){for(const t in e)xt[t]={...xt[t],...e[t]}}const kp=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 In(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kp.has(e)}let ka=e=>!In(e);function Sp(e){typeof e=="function"&&(ka=t=>t.startsWith("on")?!In(t):e(t))}try{Sp(require("@emotion/is-prop-valid").default)}catch{}function Cp(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(ka(i)||n===!0&&In(i)||!t&&!In(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Dn=I.createContext({});function jn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Gt(e){return typeof e=="string"||Array.isArray(e)}const ii=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oi=["initial",...ii];function Mn(e){return jn(e.animate)||oi.some(t=>Gt(e[t]))}function Sa(e){return!!(Mn(e)||e.variants)}function Tp(e,t){if(Mn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Gt(n)?n:void 0,animate:Gt(r)?r:void 0}}return e.inherit!==!1?t:{}}function Pp(e){const{initial:t,animate:n}=Tp(e,I.useContext(Dn));return I.useMemo(()=>({initial:t,animate:n}),[Ca(t),Ca(n)])}function Ca(e){return Array.isArray(e)?e.join(" "):e}function Ta(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(F.test(e))e=parseFloat(e);else return e;const n=Ta(e,t.target.x),r=Ta(e,t.target.y);return`${n}% ${r}%`}},Ap={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ke.parse(e);if(i.length>5)return r;const s=Ke.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=ie(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}},si={borderRadius:{...Yt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yt,borderTopRightRadius:Yt,borderBottomLeftRadius:Yt,borderBottomRightRadius:Yt,boxShadow:Ap};function Pa(e,{layout:t,layoutId:n}){return gt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!si[e]||e==="opacity")}const Ep={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ip=mt.length;function Dp(e,t,n){let r="",i=!0;for(let s=0;s<Ip;s++){const o=mt[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=aa(a,Jr[o]);if(!l){i=!1;const c=Ep[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function ai(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(gt.has(l)){o=!0;continue}else if(Cs(l)){i[l]=u;continue}else{const c=aa(u,Jr[l]);l.startsWith("origin")?(a=!0,s[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=Dp(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}const li=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Aa(e,t,n){for(const r in t)!de(t[r])&&!Pa(r,n)&&(e[r]=t[r])}function jp({transformTemplate:e},t){return I.useMemo(()=>{const n=li();return ai(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Mp(e,t){const n=e.style||{},r={};return Aa(r,n,e),Object.assign(r,jp(e,t)),r}function Lp(e,t){const n={},r=Mp(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 Np={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rp={offset:"strokeDashoffset",array:"strokeDasharray"};function Fp(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Np:Rp;e[s.offset]=F.transform(-r);const o=F.transform(t),a=F.transform(n);e[s.array]=`${o} ${a}`}const Op=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ea(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(ai(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete f.transformBox);for(const d of Op)f[d]!==void 0&&(h[d]=f[d],delete f[d]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&Fp(f,i,s,o,!1)}const Ia=()=>({...li(),attrs:{}}),Da=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Vp(e,t,n,r){const i=I.useMemo(()=>{const s=Ia();return Ea(s,t,Da(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Aa(s,e.style,e),i.style={...s,...i.style}}return i}const zp=["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 ui(e){return typeof e!="string"||e.includes("-")?!1:!!(zp.indexOf(e)>-1||/[A-Z]/u.test(e))}function _p(e,t,n,{latestValues:r},i,s=!1,o){const l=(o??ui(e)?Vp:Lp)(t,r,i,e),u=Cp(t,typeof e=="string",s),c=e!==I.Fragment?{...u,...l,ref:n}:{},{children:f}=t,h=I.useMemo(()=>de(f)?f.get():f,[f]);return I.createElement(e,{...c,children:h})}function ja(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ci(e,t,n,r){if(typeof t=="function"){const[i,s]=ja(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=ja(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Ln(e){return de(e)?e.get():e}function Bp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:$p(n,r,i,e),renderState:t()}}function $p(e,t,n,r){const i={},s=r(e,{});for(const h in s)i[h]=Ln(s[h]);let{initial:o,animate:a}=e;const l=Mn(e),u=Sa(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?a:o;if(f&&typeof f!="boolean"&&!jn(f)){const h=Array.isArray(f)?f:[f];for(let d=0;d<h.length;d++){const p=ci(e,h[d]);if(p){const{transitionEnd:m,transition:y,...g}=p;for(const k in g){let v=g[k];if(Array.isArray(v)){const E=c?v.length-1:0;v=v[E]}v!==null&&(i[k]=v)}for(const k in m)i[k]=m[k]}}}return i}const Ma=e=>(t,n)=>{const r=I.useContext(Dn),i=I.useContext(wn),s=()=>Bp(e,t,r,i);return n?s():mr(s)};function fi(e,t,n){const{style:r}=e,i={};for(const s in r)(de(r[s])||t.style&&de(t.style[s])||Pa(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}const Up=Ma({scrapeMotionValuesFromProps:fi,createRenderState:li});function La(e,t,n){const r=fi(e,t,n);for(const i in e)if(de(e[i])||de(t[i])){const s=mt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Hp=Ma({scrapeMotionValuesFromProps:La,createRenderState:Ia}),Wp=Symbol.for("motionComponentSymbol");function bt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Na(e,t){if(typeof e=="function")return e(t);bt(e)&&(e.current=t)}function qp(e,t,n){const r=I.useRef(null);return I.useCallback(i=>{if(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n)if(i){const s=Na(n,i);typeof s=="function"&&(r.current=s)}else r.current?(r.current(),r.current=null):Na(n,i)},[t,e,n])}const hi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ra="data-"+hi("framerAppearId"),Fa=I.createContext({});function Gp(e,t,n,r,i,s){const{visualElement:o}=I.useContext(Dn),a=I.useContext(wa),l=I.useContext(wn),u=I.useContext(ri).reducedMotion,c=I.useRef(null);r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:s}));const f=c.current,h=I.useContext(Fa);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Yp(c.current,n,i,h);const d=I.useRef(!1);I.useInsertionEffect(()=>{f&&d.current&&f.update(n,l)});const p=n[Ra],m=I.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return is(()=>{f&&(d.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),m.current&&f.animationState&&f.animationState.animateChanges())}),I.useEffect(()=>{f&&(!m.current&&f.animationState&&f.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1),f.enteringChildren=void 0)}),f}function Yp(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Oa(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&bt(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function Oa(e){if(e)return e.options.allowProjection!==!1?e.projection:Oa(e.parent)}function di(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&vp(r);const s=n?n==="svg":ui(e),o=s?Hp:Up;function a(u,c){let f;const h={...I.useContext(ri),...u,layoutId:Kp(u)},{isStatic:d}=h,p=Pp(u),m=o(u,d);if(!d&&gr){Xp(h,r);const y=Qp(h);f=y.MeasureLayout,p.visualElement=Gp(e,m,h,i,y.ProjectionNode,s)}return b.jsxs(Dn.Provider,{value:p,children:[f&&p.visualElement?b.jsx(f,{visualElement:p.visualElement,...h}):null,_p(e,u,qp(m,p.visualElement,c),m,d,t,s)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=I.forwardRef(a);return l[Wp]=e,l}function Kp({layoutId:e}){const t=I.useContext(pr).id;return t&&e!==void 0?t+"-"+e:e}function Xp(e,t){const n=I.useContext(wa).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ft(!1,r,"lazy-strict-mode"):$e(!1,r,"lazy-strict-mode")}}function Qp(e){const{drag:t,layout:n}=xt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Zp(e,t){if(typeof Proxy>"u")return di;const n=new Map,r=(s,o)=>di(s,o,e,t),i=(s,o)=>(process.env.NODE_ENV!=="production"&&kr(!1,"motion() is deprecated. Use motion.create() instead."),r(s,o));return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,di(o,void 0,e,t)),n.get(o))})}function Va({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Jp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function em(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 pi(e){return e===void 0||e===1}function mi({scale:e,scaleX:t,scaleY:n}){return!pi(e)||!pi(t)||!pi(n)}function it(e){return mi(e)||za(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function za(e){return _a(e.x)||_a(e.y)}function _a(e){return e&&e!=="0%"}function Nn(e,t,n){const r=e-n,i=t*r;return n+i}function Ba(e,t,n,r,i){return i!==void 0&&(e=Nn(e,i,r)),Nn(e,n,r)+t}function gi(e,t=0,n=1,r,i){e.min=Ba(e.min,t,n,r,i),e.max=Ba(e.max,t,n,r,i)}function $a(e,{x:t,y:n}){gi(e.x,t.translate,t.scale,t.originPoint),gi(e.y,n.translate,n.scale,n.originPoint)}const Ua=.999999999999,Ha=1.0000000000001;function tm(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&vt(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,$a(e,o)),r&&it(s.latestValues)&&vt(e,s.latestValues))}t.x<Ha&&t.x>Ua&&(t.x=1),t.y<Ha&&t.y>Ua&&(t.y=1)}function wt(e,t){e.min=e.min+t,e.max=e.max+t}function Wa(e,t,n,r,i=.5){const s=ie(e.min,e.max,i);gi(e,t,n,s,r)}function vt(e,t){Wa(e.x,t.x,t.scaleX,t.scale,t.originX),Wa(e.y,t.y,t.scaleY,t.scale,t.originY)}function qa(e,t){return Va(em(e.getBoundingClientRect(),t))}function nm(e,t,n){const r=qa(e,n),{scroll:i}=t;return i&&(wt(r.x,i.offset.x),wt(r.y,i.offset.y)),r}const Ga=()=>({translate:0,scale:1,origin:0,originPoint:0}),kt=()=>({x:Ga(),y:Ga()}),Ya=()=>({min:0,max:0}),ce=()=>({x:Ya(),y:Ya()}),yi={current:null},Ka={current:!1};function rm(){if(Ka.current=!0,!!gr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>yi.current=e.matches;e.addEventListener("change",t),t()}else yi.current=!1}const im=new WeakMap;function om(e,t,n){for(const r in t){const i=t[r],s=n[r];if(de(i))e.addValue(r,i);else if(de(s))e.addValue(r,yt(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,yt(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Xa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sm{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Kr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=we.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,re.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;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=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Mn(n),this.isVariantNode=Sa(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const d=f[h];l[h]!==void 0&&de(d)&&d.set(l[h])}}mount(t){this.current=t,im.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)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ka.current||rm(),this.shouldReduceMotion=yi.current),process.env.NODE_ENV!=="production"&&kr(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ge(this.notifyUpdate),Ge(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=gt.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&re.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),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 xt){const n=xt[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ce()}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;r<Xa.length;r++){const i=Xa[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=om(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.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=yt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(os(r)||as(r))?r=parseFloat(r):!dp(r)&&Ke.test(n)&&(r=sa(t,n)),this.setBaseTarget(t,de(r)?r.get():r)),de(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=ci(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!de(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new vr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ei.render(this.render)}}class Qa extends sm{constructor(){super(...arguments),this.KeyframeResolver=tp}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;de(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Za(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i?.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function am(e){return window.getComputedStyle(e)}class lm extends Qa{constructor(){super(...arguments),this.type="html",this.renderInstance=Za}readValueFromInstance(t,n){if(gt.has(n))return this.projection?.isProjecting?Hr(n):wd(t,n);{const r=am(t),i=(Cs(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return qa(t,n)}build(t,n,r){ai(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return fi(t,n,r)}}const Ja=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 um(e,t,n,r){Za(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ja.has(i)?i:hi(i),t.attrs[i])}class cm extends Qa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ce}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gt.has(n)){const r=oa(n);return r&&r.default||0}return n=Ja.has(n)?n:hi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return La(t,n,r)}build(t,n,r){Ea(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){um(t,n,r,i)}mount(t){this.isSVGTag=Da(t.tagName),super.mount(t)}}const fm=(e,t)=>t.isSVG??ui(e)?new cm(t):new lm(t,{allowProjection:e!==I.Fragment});function St(e,t,n){const r=e.getProps();return ci(r,t,n!==void 0?n:r.custom,e)}const xi=e=>Array.isArray(e);function hm(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yt(n))}function dm(e){return xi(e)?e[e.length-1]||0:e}function pm(e,t){const n=St(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=dm(s[o]);hm(e,o,a)}}function mm(e){return!!(de(e)&&e.add)}function bi(e,t){const n=e.getValue("willChange");if(mm(n))return n.add(t);if(!n&&Ue.WillChange){const r=new Ue.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function el(e){return e.props[Ra]}const gm=e=>e!==null;function ym(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(gm),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const xm={type:"spring",stiffness:500,damping:25,restSpeed:10},bm=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),wm={type:"keyframes",duration:.8},vm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},km=(e,{keyframes:t})=>t.length>2?wm:gt.has(e)?e.startsWith("scale")?bm(t[1]):xm:vm;function Sm({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const wi=(e,t,n,r={},i,s)=>o=>{const a=Qr(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Me(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};Sm(a)||Object.assign(c,km(e,c)),c.duration&&(c.duration=Me(c.duration)),c.repeatDelay&&(c.repeatDelay=Me(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Xr(c),c.delay===0&&(f=!0)),(Ue.instantAnimations||Ue.skipAnimations)&&(f=!0,Xr(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const h=ym(c.keyframes,a);if(h!==void 0){re.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new Br(c):new Ud(c)};function Cm({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tl(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const f=e.getValue(c,e.latestValues[c]??null),h=a[c];if(h===void 0||u&&Cm(u,c))continue;const d={delay:n,...Qr(s||{},c)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===p&&!d.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const g=el(e);if(g){const k=window.MotionHandoffAnimation(g,c,re);k!==null&&(d.startTime=k,m=!0)}}bi(e,c),f.start(wi(c,f,h,e.shouldReduceMotion&&ea.has(c)?{type:!1}:d,e,m));const y=f.animation;y&&l.push(y)}return o&&Promise.all(l).then(()=>{re.update(()=>{o&&pm(e,o)})}),l}function nl(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function vi(e,t,n={}){const r=St(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(tl(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return Tm(e,t,l,u,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>u())}else return Promise.all([s(),o(n.delay)])}function Tm(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(vi(l,t,{...o,delay:n+(typeof r=="function"?0:r)+nl(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Pm(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>vi(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=vi(e,t,n);else{const i=typeof t=="function"?St(e,t,n.custom):t;r=Promise.all(tl(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function rl(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Am=oi.length;function il(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?il(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Am;n++){const r=oi[n],i=e.props[r];(Gt(i)||i===!1)&&(t[r]=i)}return t}const Em=[...ii].reverse(),Im=ii.length;function Dm(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Pm(e,n,r)))}function jm(e){let t=Dm(e),n=ol(),r=!0;const i=l=>(u,c)=>{const f=St(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:d,...p}=f;u={...u,...p,...d}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,c=il(e.parent)||{},f=[],h=new Set;let d={},p=1/0;for(let y=0;y<Im;y++){const g=Em[y],k=n[g],v=u[g]!==void 0?u[g]:c[g],E=Gt(v),A=g===l?k.isActive:null;A===!1&&(p=y);let S=v===c[g]&&v!==u[g]&&E;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),k.protectedKeys={...d},!k.isActive&&A===null||!v&&!k.prevProp||jn(v)||typeof v=="boolean")continue;const M=Mm(k.prevProp,v);let D=M||g===l&&k.isActive&&!S&&E||y>p&&E,V=!1;const C=Array.isArray(v)?v:[v];let R=C.reduce(i(g),{});A===!1&&(R={});const{prevResolvedValues:O={}}=k,K={...O,...R},z=W=>{D=!0,h.has(W)&&(V=!0,h.delete(W)),k.needsAnimating[W]=!0;const J=e.getValue(W);J&&(J.liveStyle=!1)};for(const W in K){const J=R[W],ue=O[W];if(d.hasOwnProperty(W))continue;let w=!1;xi(J)&&xi(ue)?w=!rl(J,ue):w=J!==ue,w?J!=null?z(W):h.add(W):J!==void 0&&h.has(W)?z(W):k.protectedKeys[W]=!0}k.prevProp=v,k.prevResolvedValues=R,k.isActive&&(d={...d,...R}),r&&e.blockInitialAnimation&&(D=!1);const N=S&&M;D&&(!N||V)&&f.push(...C.map(W=>{const J={type:g};if(typeof W=="string"&&r&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:ue}=e,w=St(ue,W);if(ue.enteringChildren&&w){const{delayChildren:P}=w.transition||{};J.delay=nl(ue.enteringChildren,e,P)}}return{animation:W,options:J}}))}if(h.size){const y={};if(typeof u.initial!="boolean"){const g=St(e,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(y.transition=g.transition)}h.forEach(g=>{const k=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),y[g]=k??null}),f.push({animation:y})}let m=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(f):Promise.resolve()}function a(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(l,u)),n[l].isActive=u;const c=o(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=ol()}}}function Mm(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rl(t,e):!1}function ot(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ol(){return{animate:ot(!0),whileInView:ot(),whileHover:ot(),whileTap:ot(),whileDrag:ot(),whileFocus:ot(),exit:ot()}}class Xe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Lm extends Xe{constructor(t){super(t),t.animationState||(t.animationState=jm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();jn(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(){this.node.animationState.reset(),this.unmountControls?.()}}let Nm=0;class Rm extends Xe{constructor(){super(...arguments),this.id=Nm++}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 i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Fm={animation:{Feature:Lm},exit:{Feature:Rm}};function Kt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xt(e){return{point:{x:e.pageX,y:e.pageY}}}const Om=e=>t=>ti(t)&&e(t,Xt(t));function Qt(e,t,n,r){return Kt(e,t,Om(n),r)}const sl=1e-4,Vm=1-sl,zm=1+sl,al=.01,_m=0-al,Bm=0+al;function ye(e){return e.max-e.min}function $m(e,t,n){return Math.abs(e-t)<=n}function ll(e,t,n,r=.5){e.origin=r,e.originPoint=ie(t.min,t.max,e.origin),e.scale=ye(n)/ye(t),e.translate=ie(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Vm&&e.scale<=zm||isNaN(e.scale))&&(e.scale=1),(e.translate>=_m&&e.translate<=Bm||isNaN(e.translate))&&(e.translate=0)}function Zt(e,t,n,r){ll(e.x,t.x,n.x,r?r.originX:void 0),ll(e.y,t.y,n.y,r?r.originY:void 0)}function ul(e,t,n){e.min=n.min+t.min,e.max=e.min+ye(t)}function Um(e,t,n){ul(e.x,t.x,n.x),ul(e.y,t.y,n.y)}function cl(e,t,n){e.min=t.min-n.min,e.max=e.min+ye(t)}function Rn(e,t,n){cl(e.x,t.x,n.x),cl(e.y,t.y,n.y)}function Ie(e){return[e("x"),e("y")]}const fl=({current:e})=>e?e.ownerDocument.defaultView:null,hl=(e,t)=>Math.abs(e-t);function Hm(e,t){const n=hl(e.x,t.x),r=hl(e.y,t.y);return Math.sqrt(n**2+r**2)}class dl{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Si(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=Hm(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!p)return;const{point:m}=h,{timestamp:y}=fe;this.history.push({...m,timestamp:y});const{onStart:g,onMove:k}=this.handlers;d||(g&&g(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ki(d,this.transformPagePoint),re.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Si(h.type==="pointercancel"?this.lastMoveEventInfo:ki(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,g),m&&m(h,g)},!ti(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=Xt(t),l=ki(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=fe;this.history=[{...u,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,Si(l,this.history)),this.removeListeners=zt(Qt(this.contextWindow,"pointermove",this.handlePointerMove),Qt(this.contextWindow,"pointerup",this.handlePointerUp),Qt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ge(this.updatePoint)}}function ki(e,t){return t?{point:t(e.point)}:e}function pl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Si({point:e},t){return{point:e,delta:pl(e,ml(t)),offset:pl(e,Wm(t)),velocity:qm(t,.1)}}function Wm(e){return e[0]}function ml(e){return e[e.length-1]}function qm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ml(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Me(t)));)n--;if(!r)return{x:0,y:0};const s=Ee(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Gm(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ie(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ie(n,e,r.max):Math.min(e,n)),e}function gl(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ym(e,{top:t,left:n,bottom:r,right:i}){return{x:gl(e.x,n,i),y:gl(e.y,t,r)}}function yl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Km(e,t){return{x:yl(e.x,t.x),y:yl(e.y,t.y)}}function Xm(e,t){let n=.5;const r=ye(e),i=ye(t);return i>r?n=_t(t.min,t.max-r,e.min):r>i&&(n=_t(e.min,e.max-i,t.min)),Be(0,1,n)}function Qm(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ci=.35;function Zm(e=Ci){return e===!1?e=0:e===!0&&(e=Ci),{x:xl(e,"left","right"),y:xl(e,"top","bottom")}}function xl(e,t,n){return{min:bl(e,t),max:bl(e,n)}}function bl(e,t){return typeof e=="number"?e:e[t]||0}const Jm=new WeakMap;class eg{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ce(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xt(f).point)},o=(f,h)=>{const{drag:d,dragPropagation:p,onDragStart:m}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=op(d),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ie(g=>{let k=this.getAxisMotionValue(g).get()||0;if(Oe.test(k)){const{projection:v}=this.visualElement;if(v&&v.layout){const E=v.layout.layoutBox[g];E&&(k=ye(E)*(parseFloat(k)/100))}}this.originPoint[g]=k}),m&&re.postRender(()=>m(f,h)),bi(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:m,onDrag:y}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:g}=h;if(p&&this.currentDirection===null){this.currentDirection=tg(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),y&&y(f,h)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Ie(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new dl(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:fl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&re.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Fn(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Gm(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&bt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ym(r.layoutBox,t):this.constraints=!1,this.elastic=Zm(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ie(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Qm(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!bt(t))return!1;const r=t.current;$e(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=nm(r,i.root,this.visualElement.getTransformPagePoint());let o=Km(i.layout.layoutBox,s);if(n){const a=n(Jp(o));this.hasMutatedConstraints=!!a,a&&(o=Va(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ie(c=>{if(!Fn(c,n,this.currentDirection))return;let f=l&&l[c]||{};o&&(f={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:r?t[c]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return bi(this.visualElement,t),r.start(wi(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ie(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ie(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ie(n=>{const{drag:r}=this.getProps();if(!Fn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=s.get()||0;s.set(t[n]-ie(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!bt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ie(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Xm({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ie(o=>{if(!Fn(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(ie(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Jm.set(this.visualElement,this);const t=this.visualElement.current,n=Qt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();bt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),re.read(r);const o=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ie(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())}));return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ci,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Fn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function tg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ng extends Xe{constructor(t){super(t),this.removeGroupControls=Ae,this.removeListeners=Ae,this.controls=new eg(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ae}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const wl=e=>(t,n)=>{e&&re.postRender(()=>e(t,n))};class rg extends Xe{constructor(){super(...arguments),this.removePointerDownListener=Ae}onPointerDown(t){this.session=new dl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:wl(t),onStart:wl(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&re.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Qt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const On={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Ti=!1;class ig extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Ti&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),On.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,Ti=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||re.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ei.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Ti=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function vl(e){const[t,n]=xa(),r=I.useContext(pr);return b.jsx(ig,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Fa),isPresent:t,safeToRemove:n})}function og(e,t,n){const r=de(e)?e:yt(e);return r.start(wi("",r,t,n)),r.animation}const sg=(e,t)=>e.depth-t.depth;class ag{constructor(){this.children=[],this.isDirty=!1}add(t){yr(this.children,t),this.isDirty=!0}remove(t){xr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sg),this.isDirty=!1,this.children.forEach(t)}}function lg(e,t){const n=we.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ge(r),e(s-t))};return re.setup(r,!0),()=>Ge(r)}const kl=["TopLeft","TopRight","BottomLeft","BottomRight"],ug=kl.length,Sl=e=>typeof e=="string"?parseFloat(e):e,Cl=e=>typeof e=="number"||F.test(e);function cg(e,t,n,r,i,s){i?(e.opacity=ie(0,n.opacity??1,fg(r)),e.opacityExit=ie(t.opacity??1,0,hg(r))):s&&(e.opacity=ie(t.opacity??1,n.opacity??1,r));for(let o=0;o<ug;o++){const a=`border${kl[o]}Radius`;let l=Tl(t,a),u=Tl(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Cl(l)===Cl(u)?(e[a]=Math.max(ie(Sl(l),Sl(u),r),0),(Oe.test(u)||Oe.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ie(t.rotate||0,n.rotate||0,r))}function Tl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const fg=Pl(0,.5,gs),hg=Pl(.5,.95,Ae);function Pl(e,t,n){return r=>r<e?0:r>t?1:n(_t(e,t,r))}function Al(e,t){e.min=t.min,e.max=t.max}function Ne(e,t){Al(e.x,t.x),Al(e.y,t.y)}function El(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Il(e,t,n,r,i){return e-=t,e=Nn(e,1/n,r),i!==void 0&&(e=Nn(e,1/i,r)),e}function dg(e,t=0,n=1,r=.5,i,s=e,o=e){if(Oe.test(t)&&(t=parseFloat(t),t=ie(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ie(s.min,s.max,r);e===s&&(a-=t),e.min=Il(e.min,t,n,a,i),e.max=Il(e.max,t,n,a,i)}function Dl(e,t,[n,r,i],s,o){dg(e,t[n],t[r],t[i],t.scale,s,o)}const pg=["x","scaleX","originX"],mg=["y","scaleY","originY"];function jl(e,t,n,r){Dl(e.x,t,pg,n?n.x:void 0,r?r.x:void 0),Dl(e.y,t,mg,n?n.y:void 0,r?r.y:void 0)}function Ml(e){return e.translate===0&&e.scale===1}function Ll(e){return Ml(e.x)&&Ml(e.y)}function Nl(e,t){return e.min===t.min&&e.max===t.max}function gg(e,t){return Nl(e.x,t.x)&&Nl(e.y,t.y)}function Rl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Fl(e,t){return Rl(e.x,t.x)&&Rl(e.y,t.y)}function Ol(e){return ye(e.x)/ye(e.y)}function Vl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class yg{constructor(){this.members=[]}add(t){yr(this.members,t),t.scheduleRender()}remove(t){if(xr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xg(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=n?.z||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:h,skewX:d,skewY:p}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),d&&(r+=`skewX(${d}deg) `),p&&(r+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Pi=["","X","Y","Z"],bg=1e3;let wg=0;function Ai(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function zl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=el(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",re,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&zl(r)}function _l({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t?.()){this.id=wg++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Sg),this.nodes.forEach(Ag),this.nodes.forEach(Eg),this.nodes.forEach(Cg)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new ag)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new vr),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=ga(o)&&!fp(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const h=()=>this.root.updateBlockedByResize=!1;re.read(()=>{f=window.innerWidth}),e(o,()=>{const d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,c&&c(),c=lg(h,250),On.hasAnimatedSinceResize&&(On.hasAnimatedSinceResize=!1,this.nodes.forEach(Ul)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Lg,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=u.getProps(),g=!this.targetLayout||!Fl(this.targetLayout,d),k=!f&&h;if(this.options.layoutRoot||this.resumeFrom||k||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Qr(p,"layout"),onPlay:m,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,k)}else f||Ul(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ge(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ig),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Bl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach($l);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Pg),this.nodes.forEach(vg),this.nodes.forEach(kg)):this.nodes.forEach($l),this.clearAllSnapshots();const a=we.now();fe.delta=Be(0,1e3/60,a-fe.timestamp),fe.timestamp=a,fe.isProcessing=!0,Tr.update.process(fe),Tr.preRender.process(fe),Tr.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ei.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Tg),this.sharedNodes.forEach(Dg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,re.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){re.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ce(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ll(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||it(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Ng(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return ce();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Rg))){const{scroll:u}=this.root;u&&(wt(a.x,u.offset.x),wt(a.y,u.offset.y))}return a}removeElementScroll(o){const a=ce();if(Ne(a,o),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:f}=u;u!==this.root&&c&&f.layoutScroll&&(c.wasRoot&&Ne(a,o),wt(a.x,c.offset.x),wt(a.y,c.offset.y))}return a}applyTransform(o,a=!1){const l=ce();Ne(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&vt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),it(c.latestValues)&&vt(l,c.latestValues)}return it(this.latestValues)&&vt(l,this.latestValues),l}removeTransform(o){const a=ce();Ne(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!it(u.latestValues))continue;mi(u.latestValues)&&u.updateSnapshot();const c=ce(),f=u.measurePageBox();Ne(c,f),jl(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return it(this.latestValues)&&jl(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=fe.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ce(),this.targetWithTransforms=ce()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Um(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ne(this.target,this.layout.layoutBox),$a(this.target,this.targetDelta)):Ne(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||mi(this.parent.latestValues)||za(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ce(),this.relativeTargetOrigin=ce(),Rn(this.relativeTargetOrigin,a,l),Ne(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===fe.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Ne(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;tm(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=ce());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(El(this.prevProjectionDelta.x,this.projectionDelta.x),El(this.prevProjectionDelta.y,this.projectionDelta.y)),Zt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Vl(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kt(),this.projectionDelta=kt(),this.projectionDeltaWithTransform=kt()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=kt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ce(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,y=this.getStack(),g=!y||y.members.length<=1,k=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(Mg));this.animationProgress=0;let v;this.mixTargetDelta=E=>{const A=E/1e3;Hl(f.x,o.x,A),Hl(f.y,o.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jg(this.relativeTarget,this.relativeTargetOrigin,h,A),v&&gg(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ce()),Ne(v,this.relativeTarget)),m&&(this.animationValues=c,cg(c,u,this.latestValues,A,k,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ge(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=re.update(()=>{On.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yt(0)),this.currentAnimation=og(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Kl(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ce();const f=ye(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=ye(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Ne(a,l),vt(a,c),Zt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new yg),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Ai("z",o,u,this.animationValues);for(let c=0;c<Pi.length;c++)Ai(`rotate${Pi[c]}`,o,u,this.animationValues),Ai(`skew${Pi[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Ln(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Ln(a?.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=xg(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),o.transform=f;const{x:h,y:d}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${d.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const p in si){if(c[p]===void 0)continue;const{correct:m,applyTo:y,isCSSVariable:g}=si[p],k=f==="none"?c[p]:m(c[p],u);if(y){const v=y.length;for(let E=0;E<v;E++)o[y[E]]=k}else g?this.options.visualElement.renderState.vars[p]=k:o[p]=k}this.options.layoutId&&(o.pointerEvents=u===this?Ln(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Bl),this.root.sharedNodes.clear()}}}function vg(e){e.updateLayout()}function kg(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?Ie(c=>{const f=s?t.measuredBox[c]:t.layoutBox[c],h=ye(f);f.min=n[c].min,f.max=f.min+h}):Kl(i,t.layoutBox,n)&&Ie(c=>{const f=s?t.measuredBox[c]:t.layoutBox[c],h=ye(n[c]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+h)});const o=kt();Zt(o,n,t.layoutBox);const a=kt();s?Zt(a,e.applyTransform(r,!0),t.measuredBox):Zt(a,n,t.layoutBox);const l=!Ll(o);let u=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:h}=c;if(f&&h){const d=ce();Rn(d,t.layoutBox,f.layoutBox);const p=ce();Rn(p,n,h.layoutBox),Fl(d,p)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=d,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Sg(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Cg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Tg(e){e.clearSnapshot()}function Bl(e){e.clearMeasurements()}function $l(e){e.isLayoutDirty=!1}function Pg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ul(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ag(e){e.resolveTargetDelta()}function Eg(e){e.calcProjection()}function Ig(e){e.resetSkewAndRotation()}function Dg(e){e.removeLeadSnapshot()}function Hl(e,t,n){e.translate=ie(t.translate,0,n),e.scale=ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Wl(e,t,n,r){e.min=ie(t.min,n.min,r),e.max=ie(t.max,n.max,r)}function jg(e,t,n,r){Wl(e.x,t.x,n.x,r),Wl(e.y,t.y,n.y,r)}function Mg(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Lg={duration:.45,ease:[.4,0,.1,1]},ql=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gl=ql("applewebkit/")&&!ql("chrome/")?Math.round:Ae;function Yl(e){e.min=Gl(e.min),e.max=Gl(e.max)}function Ng(e){Yl(e.x),Yl(e.y)}function Kl(e,t,n){return e==="position"||e==="preserve-aspect"&&!$m(Ol(t),Ol(n),.2)}function Rg(e){return e!==e.root&&e.scroll?.wasRoot}const Fg=_l({attachResizeListener:(e,t)=>Kt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ei={current:void 0},Xl=_l({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ei.current){const e=new Fg({});e.mount(window),e.setOptions({layoutScroll:!0}),Ei.current=e}return Ei.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Og={pan:{Feature:rg},drag:{Feature:ng,ProjectionNode:Xl,MeasureLayout:vl}};function Ql(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&re.postRender(()=>s(t,Xt(t)))}class Vg extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=sp(t,(n,r)=>(Ql(this.node,r,"Start"),i=>Ql(this.node,i,"End"))))}unmount(){}}class zg extends Xe{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=zt(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zl(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&re.postRender(()=>s(t,Xt(t)))}class _g extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=cp(t,(n,r)=>(Zl(this.node,r,"Start"),(i,{success:s})=>Zl(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ii=new WeakMap,Di=new WeakMap,Bg=e=>{const t=Ii.get(e.target);t&&t(e)},$g=e=>{e.forEach(Bg)};function Ug({root:e,...t}){const n=e||document;Di.has(n)||Di.set(n,{});const r=Di.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver($g,{root:e,...t})),r[i]}function Hg(e,t,n){const r=Ug(t);return Ii.set(e,n),r.observe(e),()=>{Ii.delete(e),r.unobserve(e)}}const Wg={some:0,all:1};class qg extends Xe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Wg[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),h=u?c:f;h&&h(l)};return Hg(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Gg(t,n))&&this.startObserver()}unmount(){}}function Gg({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Yg={...Fm,...{inView:{Feature:qg},tap:{Feature:_g},focus:{Feature:zg},hover:{Feature:Vg}},...Og,...{layout:{ProjectionNode:Xl,MeasureLayout:vl}}},ve=Zp(Yg,fm),Jl=e=>{const{title:t,href:n,description:r,icon:i,badge:s,isActive:o=!1,className:a="",showDescription:l=!0,onClick:u,target:c="_self",compact:f=!1}=e,h=["menu-item",o?"active":"",f?"compact":"",!r||!l?"no-description":"",a].filter(Boolean).join(" ");return b.jsxs(ve.a,{href:n,target:c,onClick:u,className:h,whileHover:{scale:1.01,x:4},whileTap:{scale:.99},transition:{duration:.1},children:[i&&b.jsx(ve.div,{className:"menu-item-icon",whileHover:{rotate:5},children:b.jsx(he,{icon:i})}),b.jsxs("div",{className:"menu-item-content",children:[b.jsxs("div",{className:"menu-item-header",children:[b.jsx("span",{className:"menu-item-title",children:t}),s&&b.jsx(ve.span,{className:"menu-item-badge",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200},children:s})]}),r&&l&&b.jsx(ve.p,{className:"menu-item-description",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{duration:.2},children:r})]})]})},eu=e=>{const{children:t,columns:n=3,className:r="",gridClassName:i=""}=e,s=`menu-grid columns-${n} ${i}`;return b.jsx("div",{className:`menu-grid-container ${r}`,children:b.jsx("div",{className:s,children:t})})},tu=e=>{const{title:t,description:n,href:r,icon:i,badge:s,compact:o=!1,showDescription:a=!0,className:l=""}=e,u=`menu-grid-item ${o?"compact":"regular"} ${l}`;return b.jsx(ve.div,{className:`${u} hover-lift`,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},whileHover:{scale:1.02},whileTap:{scale:.98},children:r.startsWith("http")?b.jsxs("a",{href:r,className:"menu-grid-link",target:"_blank",rel:"noopener noreferrer",children:[s&&b.jsx(ve.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:s}),b.jsxs("div",{className:"menu-grid-header",children:[i&&b.jsx(ve.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:b.jsx(he,{icon:i})}),b.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&b.jsx("span",{className:"menu-grid-description",children:n})]}):b.jsxs(nr.Link,{to:r,className:"menu-grid-link",children:[s&&b.jsx(ve.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:s}),b.jsxs("div",{className:"menu-grid-header",children:[i&&b.jsx(ve.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:b.jsx(he,{icon:i})}),b.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&b.jsx("span",{className:"menu-grid-description",children:n})]})})},nu=({title:e,subtitle:t,imageSrc:n,actionLabel:r,href:i,textAlignment:s="left",padding:o="none",className:a="",inverted:l=!1,focalPoint:u="center"})=>{const c={top:"center top",left:"left center",right:"right center",bottom:"center bottom",center:"center center"},f=n?{backgroundImage:`url(${n})`,backgroundPosition:c[u]}:{},h={left:"text-left items-start",center:"text-center items-center",right:"text-right items-end",justify:"text-justify"}[s],d={none:"p-none",small:"p-small",medium:"p-medium",large:"p-large"}[o];return b.jsxs(ve.div,{className:`hero-image relative ${a} ${l?"theme-inverted":""}`,style:f,initial:{opacity:0,scale:1.1},animate:{opacity:1,scale:1},transition:{duration:1.5,ease:"easeOut"},"data-theme":"light",children:[b.jsx("div",{className:"hero-overlay"}),b.jsxs("div",{className:`hero-text ${h} ${d}`,children:[b.jsx(ve.div,{className:"hero-text-primary hero-title",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3,ease:"easeOut"},children:e}),t&&b.jsx(ve.div,{className:"hero-text-primary hero-subtitle",initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:.5,ease:"easeOut"},children:t}),r&&b.jsx("div",{className:"hero-actions",children:b.jsx(ve.a,{className:"btn hero-btn-primary hover-lift active-scale",href:i,initial:{opacity:0,y:20},animate:{opacity:1,y:0},whileHover:{scale:1.05},transition:{duration:.6,delay:.7,ease:"easeOut"},children:r})})]})]})},ru=e=>{const{icon:t,onClick:n,ariaLabel:r,className:i=""}=e;return b.jsx("button",{className:`select-option ${i}`,onClick:n,"aria-label":r,type:"button",children:b.jsx(he,{icon:t,className:"icon-button-icon"})})};function Gk(){}function Yk(){}function Kg(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Xg=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qg=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zg={};function iu(e,t){return(Zg.jsx?Qg:Xg).test(e)}const Jg=/[ \t\n\f\r]/g;function ey(e){return typeof e=="object"?e.type==="text"?ou(e.value):!1:ou(e)}function ou(e){return e.replace(Jg,"")===""}class Jt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Jt.prototype.normal={},Jt.prototype.property={},Jt.prototype.space=void 0;function su(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Jt(n,r,t)}function ji(e){return e.toLowerCase()}class ke{constructor(t,n){this.attribute=n,this.property=t}}ke.prototype.attribute="",ke.prototype.booleanish=!1,ke.prototype.boolean=!1,ke.prototype.commaOrSpaceSeparated=!1,ke.prototype.commaSeparated=!1,ke.prototype.defined=!1,ke.prototype.mustUseProperty=!1,ke.prototype.number=!1,ke.prototype.overloadedBoolean=!1,ke.prototype.property="",ke.prototype.spaceSeparated=!1,ke.prototype.space=void 0;let ty=0;const H=st(),le=st(),Mi=st(),j=st(),te=st(),Ct=st(),Ce=st();function st(){return 2**++ty}const Li=Object.freeze(Object.defineProperty({__proto__:null,boolean:H,booleanish:le,commaOrSpaceSeparated:Ce,commaSeparated:Ct,number:j,overloadedBoolean:Mi,spaceSeparated:te},Symbol.toStringTag,{value:"Module"})),Ni=Object.keys(Li);class Ri extends ke{constructor(t,n,r,i){let s=-1;if(super(t,n),au(this,"space",i),typeof r=="number")for(;++s<Ni.length;){const o=Ni[s];au(this,Ni[s],(r&Li[o])===Li[o])}}}Ri.prototype.defined=!0;function au(e,t,n){n&&(e[t]=n)}function Tt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Ri(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[ji(r)]=r,n[ji(s.attribute)]=r}return new Jt(t,n,e.space)}const lu=Tt({properties:{ariaActiveDescendant:null,ariaAtomic:le,ariaAutoComplete:null,ariaBusy:le,ariaChecked:le,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:te,ariaCurrent:null,ariaDescribedBy:te,ariaDetails:null,ariaDisabled:le,ariaDropEffect:te,ariaErrorMessage:null,ariaExpanded:le,ariaFlowTo:te,ariaGrabbed:le,ariaHasPopup:null,ariaHidden:le,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:te,ariaLevel:j,ariaLive:null,ariaModal:le,ariaMultiLine:le,ariaMultiSelectable:le,ariaOrientation:null,ariaOwns:te,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:le,ariaReadOnly:le,ariaRelevant:null,ariaRequired:le,ariaRoleDescription:te,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:le,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function uu(e,t){return t in e?e[t]:t}function cu(e,t){return uu(e,t.toLowerCase())}const ny=Tt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ct,acceptCharset:te,accessKey:te,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:te,autoFocus:H,autoPlay:H,blocking:te,capture:null,charSet:null,checked:H,cite:null,className:te,cols:j,colSpan:null,content:null,contentEditable:le,controls:H,controlsList:te,coords:j|Ct,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:Mi,draggable:le,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:te,height:j,hidden:Mi,high:j,href:null,hrefLang:null,htmlFor:te,httpEquiv:te,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:te,itemRef:te,itemScope:H,itemType:te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:H,optimum:j,pattern:null,ping:te,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:te,required:H,reversed:H,rows:j,rowSpan:j,sandbox:te,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:le,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:le,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:te,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:le,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:cu}),ry=Tt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ce,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:te,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ct,g2:Ct,glyphName:Ct,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:Ce,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:j,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ce,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ce,rev:Ce,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ce,requiredFeatures:Ce,requiredFonts:Ce,requiredFormats:Ce,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:Ce,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ce,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ce,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:uu}),fu=Tt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),hu=Tt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:cu}),du=Tt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),iy={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},oy=/[A-Z]/g,pu=/-[a-z]/g,sy=/^data[-\w.:]+$/i;function ay(e,t){const n=ji(t);let r=t,i=ke;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&sy.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(pu,uy);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!pu.test(s)){let o=s.replace(oy,ly);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Ri}return new i(r,t)}function ly(e){return"-"+e.toLowerCase()}function uy(e){return e.charAt(1).toUpperCase()}const cy=su([lu,ny,fu,hu,du],"html"),Fi=su([lu,ry,fu,hu,du],"svg");function fy(e){return e.join(" ").trim()}var Pt={},Oi,mu;function hy(){if(mu)return Oi;mu=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
16
+ `,u="/",c="*",f="",h="comment",d="declaration";function p(y,g){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];g=g||{};var k=1,v=1;function E(z){var N=z.match(t);N&&(k+=N.length);var X=z.lastIndexOf(l);v=~X?z.length-X:v+z.length}function A(){var z={line:k,column:v};return function(N){return N.position=new S(z),V(),N}}function S(z){this.start=z,this.end={line:k,column:v},this.source=g.source}S.prototype.content=y;function M(z){var N=new Error(g.source+":"+k+":"+v+": "+z);if(N.reason=z,N.filename=g.source,N.line=k,N.column=v,N.source=y,!g.silent)throw N}function D(z){var N=z.exec(y);if(N){var X=N[0];return E(X),y=y.slice(X.length),N}}function V(){D(n)}function C(z){var N;for(z=z||[];N=R();)N!==!1&&z.push(N);return z}function R(){var z=A();if(!(u!=y.charAt(0)||c!=y.charAt(1))){for(var N=2;f!=y.charAt(N)&&(c!=y.charAt(N)||u!=y.charAt(N+1));)++N;if(N+=2,f===y.charAt(N-1))return M("End of comment missing");var X=y.slice(2,N-2);return v+=2,E(X),y=y.slice(N),v+=2,z({type:h,comment:X})}}function O(){var z=A(),N=D(r);if(N){if(R(),!D(i))return M("property missing ':'");var X=D(s),W=z({type:d,property:m(N[0].replace(e,f)),value:X?m(X[0].replace(e,f)):f});return D(o),W}}function K(){var z=[];C(z);for(var N;N=O();)N!==!1&&(z.push(N),C(z));return z}return V(),K()}function m(y){return y?y.replace(a,f):f}return Oi=p,Oi}var gu;function dy(){if(gu)return Pt;gu=1;var e=Pt&&Pt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.default=n;const t=e(hy());function n(r,i){let s=null;if(!r||typeof r!="string")return s;const o=(0,t.default)(r),a=typeof i=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;a?i(u,c,l):c&&(s=s||{},s[u]=c)}),s}return Pt}var en={},yu;function py(){if(yu)return en;yu=1,Object.defineProperty(en,"__esModule",{value:!0}),en.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(u){return!u||n.test(u)||e.test(u)},o=function(u,c){return c.toUpperCase()},a=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),s(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(t,o))};return en.camelCase=l,en}var tn,xu;function my(){if(xu)return tn;xu=1;var e=tn&&tn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(dy()),n=py();function r(i,s){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(a,l){a&&l&&(o[(0,n.camelCase)(a,s)]=l)}),o}return r.default=r,tn=r,tn}var gy=my();const yy=Eo(gy),bu=wu("end"),Vi=wu("start");function wu(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function xy(e){const t=Vi(e),n=bu(e);if(t&&n)return{start:t,end:n}}function nn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vu(e.position):"start"in e||"end"in e?vu(e):"line"in e||"column"in e?zi(e):""}function zi(e){return ku(e&&e.line)+":"+ku(e&&e.column)}function vu(e){return zi(e&&e.start)+"-"+zi(e&&e.end)}function ku(e){return e&&typeof e=="number"?e:1}class pe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(o=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=nn(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}pe.prototype.file="",pe.prototype.name="",pe.prototype.reason="",pe.prototype.message="",pe.prototype.stack="",pe.prototype.column=void 0,pe.prototype.line=void 0,pe.prototype.ancestors=void 0,pe.prototype.cause=void 0,pe.prototype.fatal=void 0,pe.prototype.place=void 0,pe.prototype.ruleId=void 0,pe.prototype.source=void 0;const _i={}.hasOwnProperty,by=new Map,wy=/[A-Z]/g,vy=new Set(["table","tbody","thead","tfoot","tr"]),ky=new Set(["td","th"]),Su="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Sy(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=jy(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Dy(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Fi:cy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=Cu(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function Cu(e,t,n){if(t.type==="element")return Cy(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ty(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Ay(e,t,n);if(t.type==="mdxjsEsm")return Py(e,t);if(t.type==="root")return Ey(e,t,n);if(t.type==="text")return Iy(e,t)}function Cy(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Fi,e.schema=i),e.ancestors.push(t);const s=Pu(e,t.tagName,!1),o=My(e,t);let a=$i(e,t);return vy.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!ey(l):!0})),Tu(e,o,s,t),Bi(o,a),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function Ty(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}rn(e,t.position)}function Py(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);rn(e,t.position)}function Ay(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Fi,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:Pu(e,t.name,!0),o=Ly(e,t),a=$i(e,t);return Tu(e,o,s,t),Bi(o,a),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function Ey(e,t,n){const r={};return Bi(r,$i(e,t)),e.create(t,e.Fragment,r,n)}function Iy(e,t){return t.value}function Tu(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Bi(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Dy(e,t,n){return r;function r(i,s,o,a){const u=Array.isArray(o.children)?n:t;return a?u(s,o,a):u(s,o)}}function jy(e,t){return n;function n(r,i,s,o){const a=Array.isArray(s.children),l=Vi(r);return t(i,s,o,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function My(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&_i.call(t.properties,i)){const s=Ny(e,i,t.properties[i]);if(s){const[o,a]=s;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&ky.has(t.tagName)?r=a:n[o]=a}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ly(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const o=s.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else rn(e,t.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,s=e.evaluater.evaluateExpression(a.expression)}else rn(e,t.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function $i(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:by;for(;++r<t.children.length;){const s=t.children[r];let o;if(e.passKeys){const l=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(l){const u=i.get(l)||0;o=l+"-"+u,i.set(l,u+1)}}const a=Cu(e,s,o);a!==void 0&&n.push(a)}return n}function Ny(e,t,n){const r=ay(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Kg(n):fy(n)),r.property==="style"){let i=typeof n=="object"?n:Ry(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Fy(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?iy[r.property]||r.property:r.attribute,n]}}function Ry(e,t){try{return yy(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new pe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Su+"#cannot-parse-style-attribute",i}}function Pu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,o;for(;++s<i.length;){const a=iu(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(s&&a.type==="Literal"),optional:!1}:a}r=o}else r=iu(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return _i.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);rn(e)}function rn(e,t){const n=new pe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Su+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Fy(e){const t={};let n;for(n in e)_i.call(e,n)&&(t[Oy(n)]=e[n]);return t}function Oy(e){let t=e.replace(wy,Vy);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Vy(e){return"-"+e.toLowerCase()}const Ui={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},zy={};function Hi(e,t){const n=zy,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Au(e,r,i)}function Au(e,t,n){if(_y(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Eu(e.children,t,n)}return Array.isArray(e)?Eu(e,t,n):""}function Eu(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Au(e[i],t,n);return r.join("")}function _y(e){return!!(e&&typeof e=="object")}const Iu=document.createElement("i");function Wi(e){const t="&"+e+";";Iu.innerHTML=t;const n=Iu.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Te(e,t,n,r){const i=e.length;let s=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function De(e,t){return e.length>0?(Te(e,e.length,0,t),e):t}const Du={}.hasOwnProperty;function ju(e){const t={};let n=-1;for(;++n<e.length;)By(t,e[n]);return t}function By(e,t){let n;for(n in t){const i=(Du.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){Du.call(i,o)||(i[o]=[]);const a=s[o];$y(i[o],Array.isArray(a)?a:a?[a]:[])}}}function $y(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Te(e,0,0,r)}function Mu(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Re(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const xe=Qe(/[A-Za-z]/),me=Qe(/[\dA-Za-z]/),Uy=Qe(/[#-'*+\--9=?A-Z^-~]/);function Vn(e){return e!==null&&(e<32||e===127)}const qi=Qe(/\d/),Hy=Qe(/[\dA-Fa-f]/),Wy=Qe(/[!-/:-@[-`{-~]/);function _(e){return e!==null&&e<-2}function Z(e){return e!==null&&(e<0||e===32)}function q(e){return e===-2||e===-1||e===32}const zn=Qe(new RegExp("\\p{P}|\\p{S}","u")),at=Qe(/\s/);function Qe(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function At(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let o="";if(s===37&&me(e.charCodeAt(n+1))&&me(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const a=e.charCodeAt(n+1);s<56320&&a>56319&&a<57344?(o=String.fromCharCode(s,a),i=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Y(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(l){return q(l)?(e.enter(n),a(l)):t(l)}function a(l){return q(l)&&s++<i?(e.consume(l),a):(e.exit(n),t(l))}}const qy={tokenize:Gy};function Gy(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Y(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),s(a)}function s(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return _(a)?(e.consume(a),e.exit("chunkText"),s):(e.consume(a),o)}}const Yy={tokenize:Ky},Lu={tokenize:Xy};function Ky(e){const t=this,n=[];let r=0,i,s,o;return a;function a(v){if(r<n.length){const E=n[r];return t.containerState=E[1],e.attempt(E[0].continuation,l,u)(v)}return u(v)}function l(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&k();const E=t.events.length;let A=E,S;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){S=t.events[A][1].end;break}g(r);let M=E;for(;M<t.events.length;)t.events[M][1].end={...S},M++;return Te(t.events,A+1,0,t.events.slice(E)),t.events.length=M,u(v)}return a(v)}function u(v){if(r===n.length){if(!i)return h(v);if(i.currentConstruct&&i.currentConstruct.concrete)return p(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Lu,c,f)(v)}function c(v){return i&&k(),g(r),h(v)}function f(v){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,p(v)}function h(v){return t.containerState={},e.attempt(Lu,d,p)(v)}function d(v){return r++,n.push([t.currentConstruct,t.containerState]),h(v)}function p(v){if(v===null){i&&k(),g(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),m(v)}function m(v){if(v===null){y(e.exit("chunkFlow"),!0),g(0),e.consume(v);return}return _(v)?(e.consume(v),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(v),m)}function y(v,E){const A=t.sliceStream(v);if(E&&A.push(null),v.previous=s,s&&(s.next=v),s=v,i.defineSkip(v.start),i.write(A),t.parser.lazy[v.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<o&&(!i.events[S][1].end||i.events[S][1].end.offset>o))return;const M=t.events.length;let D=M,V,C;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(V){C=t.events[D][1].end;break}V=!0}for(g(r),S=M;S<t.events.length;)t.events[S][1].end={...C},S++;Te(t.events,D+1,0,t.events.slice(M)),t.events.length=S}}function g(v){let E=n.length;for(;E-- >v;){const A=n[E];t.containerState=A[1],A[0].exit.call(t,e)}n.length=v}function k(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Xy(e,t,n){return Y(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Et(e){if(e===null||Z(e)||at(e))return 1;if(zn(e))return 2}function _n(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const Gi={name:"attention",resolveAll:Qy,tokenize:Zy};function Qy(e,t){let n=-1,r,i,s,o,a,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},h={...e[n][1].start};Nu(f,-l),Nu(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},s={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=De(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=De(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",s,t]]),u=De(u,_n(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=De(u,[["exit",s,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=De(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Te(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Zy(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Et(r);let s;return o;function o(l){return s=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===s)return e.consume(l),a;const u=e.exit("attentionSequence"),c=Et(l),f=!c||c===2&&i||n.includes(l),h=!i||i===2&&c||n.includes(r);return u._open=!!(s===42?f:f&&(i||!h)),u._close=!!(s===42?h:h&&(c||!f)),t(l)}}function Nu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Jy={name:"autolink",tokenize:ex};function ex(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(d){return xe(d)?(e.consume(d),o):d===64?n(d):u(d)}function o(d){return d===43||d===45||d===46||me(d)?(r=1,a(d)):u(d)}function a(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||me(d))&&r++<32?(e.consume(d),a):(r=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Vn(d)?n(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):Uy(d)?(e.consume(d),u):n(d)}function c(d){return me(d)?f(d):n(d)}function f(d){return d===46?(e.consume(d),r=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):h(d)}function h(d){if((d===45||me(d))&&r++<63){const p=d===45?h:f;return e.consume(d),p}return n(d)}}const on={partial:!0,tokenize:tx};function tx(e,t,n){return r;function r(s){return q(s)?Y(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||_(s)?t(s):n(s)}}const Ru={continuation:{tokenize:rx},exit:ix,name:"blockQuote",tokenize:nx};function nx(e,t,n){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return q(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function rx(e,t,n){const r=this;return i;function i(o){return q(o)?Y(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(Ru,t,n)(o)}}function ix(e){e.exit("blockQuote")}const Fu={name:"characterEscape",tokenize:ox};function ox(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return Wy(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const Ou={name:"characterReference",tokenize:sx};function sx(e,t,n){const r=this;let i=0,s,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),s=31,o=me,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=Hy,c):(e.enter("characterReferenceValue"),s=7,o=qi,c(f))}function c(f){if(f===59&&i){const h=e.exit("characterReferenceValue");return o===me&&!Wi(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<s?(e.consume(f),c):n(f)}}const Vu={partial:!0,tokenize:lx},zu={concrete:!0,name:"codeFenced",tokenize:ax};function ax(e,t,n){const r=this,i={partial:!0,tokenize:A};let s=0,o=0,a;return l;function l(S){return u(S)}function u(S){const M=r.events[r.events.length-1];return s=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===a?(o++,e.consume(S),c):o<3?n(S):(e.exit("codeFencedFenceSequence"),q(S)?Y(e,f,"whitespace")(S):f(S))}function f(S){return S===null||_(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Vu,m,E)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||_(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(S)):q(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Y(e,d,"whitespace")(S)):S===96&&S===a?n(S):(e.consume(S),h)}function d(S){return S===null||_(S)?f(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||_(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(S)):S===96&&S===a?n(S):(e.consume(S),p)}function m(S){return e.attempt(i,E,y)(S)}function y(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),g}function g(S){return s>0&&q(S)?Y(e,k,"linePrefix",s+1)(S):k(S)}function k(S){return S===null||_(S)?e.check(Vu,m,E)(S):(e.enter("codeFlowValue"),v(S))}function v(S){return S===null||_(S)?(e.exit("codeFlowValue"),k(S)):(e.consume(S),v)}function E(S){return e.exit("codeFenced"),t(S)}function A(S,M,D){let V=0;return C;function C(N){return S.enter("lineEnding"),S.consume(N),S.exit("lineEnding"),R}function R(N){return S.enter("codeFencedFence"),q(N)?Y(S,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):O(N)}function O(N){return N===a?(S.enter("codeFencedFenceSequence"),K(N)):D(N)}function K(N){return N===a?(V++,S.consume(N),K):V>=o?(S.exit("codeFencedFenceSequence"),q(N)?Y(S,z,"whitespace")(N):z(N)):D(N)}function z(N){return N===null||_(N)?(S.exit("codeFencedFence"),M(N)):D(N)}}}function lx(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Yi={name:"codeIndented",tokenize:cx},ux={partial:!0,tokenize:fx};function cx(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Y(e,s,"linePrefix",5)(u)}function s(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):_(u)?e.attempt(ux,o,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||_(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function fx(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):_(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Y(e,s,"linePrefix",5)(o)}function s(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):_(o)?i(o):n(o)}}const hx={name:"codeText",previous:px,resolve:dx,tokenize:mx};function dx(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function px(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function mx(e,t,n){let r=0,i,s;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(s=e.enter("codeTextSequence"),i=0,c(f)):_(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||_(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(s.type="codeTextData",u(f))}}class gx{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&sn(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),sn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),sn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);sn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);sn(this.left,n.reverse())}}}function sn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function _u(e){const t={};let n=-1,r,i,s,o,a,l,u;const c=new gx(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,yx(c,n)),n=t[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(o=c.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return Te(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function yx(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,l=[],u={};let c,f,h=-1,d=n,p=0,m=0;const y=[m];for(;d;){for(;e.get(++i)[1]!==d;);s.push(i),d._tokenizer||(c=r.sliceStream(d),d.next||c.push(null),f&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(m=h+1,y.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),h=y.length;h--;){const g=a.slice(y[h],y[h+1]),k=s.pop();l.push([k,k+g.length-1]),e.splice(k,2,g)}for(l.reverse(),h=-1;++h<l.length;)u[p+l[h][0]]=p+l[h][1],p+=l[h][1]-l[h][0]-1;return u}const xx={resolve:wx,tokenize:vx},bx={partial:!0,tokenize:kx};function wx(e){return _u(e),e}function vx(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?s(a):_(a)?e.check(bx,o,s)(a):(e.consume(a),i)}function s(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function kx(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Y(e,s,"linePrefix")}function s(o){if(o===null||_(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Bu(e,t,n,r,i,s,o,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(g){return g===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(g),e.exit(s),h):g===null||g===32||g===41||Vn(g)?n(g):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(g))}function h(g){return g===62?(e.enter(s),e.consume(g),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===62?(e.exit("chunkString"),e.exit(a),h(g)):g===null||g===60||_(g)?n(g):(e.consume(g),g===92?p:d)}function p(g){return g===60||g===62||g===92?(e.consume(g),d):d(g)}function m(g){return!c&&(g===null||g===41||Z(g))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(g)):c<u&&g===40?(e.consume(g),c++,m):g===41?(e.consume(g),c--,m):g===null||g===32||g===40||Vn(g)?n(g):(e.consume(g),g===92?y:m)}function y(g){return g===40||g===41||g===92?(e.consume(g),m):m(g)}}function $u(e,t,n,r,i,s){const o=this;let a=0,l;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(s),c}function c(d){return a>999||d===null||d===91||d===93&&!l||d===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(e.exit(s),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):_(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||_(d)||a++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!q(d)),d===92?h:f)}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,f):f(d)}}function Uu(e,t,n,r,i,s){let o;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,l):n(h)}function l(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(s),u(h))}function u(h){return h===o?(e.exit(s),l(o)):h===null?n(h):_(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Y(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===o||h===null||_(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:c)}function f(h){return h===o||h===92?(e.consume(h),c):c(h)}}function an(e,t){let n;return r;function r(i){return _(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):q(i)?Y(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Sx={name:"definition",tokenize:Tx},Cx={partial:!0,tokenize:Px};function Tx(e,t,n){const r=this;let i;return s;function s(d){return e.enter("definition"),o(d)}function o(d){return $u.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function a(d){return i=Re(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):n(d)}function l(d){return Z(d)?an(e,u)(d):u(d)}function u(d){return Bu(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(Cx,f,f)(d)}function f(d){return q(d)?Y(e,h,"whitespace")(d):h(d)}function h(d){return d===null||_(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function Px(e,t,n){return r;function r(a){return Z(a)?an(e,i)(a):n(a)}function i(a){return Uu(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function s(a){return q(a)?Y(e,o,"whitespace")(a):o(a)}function o(a){return a===null||_(a)?t(a):n(a)}}const Ax={name:"hardBreakEscape",tokenize:Ex};function Ex(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return _(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Ix={name:"headingAtx",resolve:Dx,tokenize:jx};function Dx(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Te(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function jx(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Z(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||_(c)?(e.exit("atxHeading"),t(c)):q(c)?Y(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Z(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Mx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Hu=["pre","script","style","textarea"],Lx={concrete:!0,name:"htmlFlow",resolveTo:Fx,tokenize:Ox},Nx={partial:!0,tokenize:zx},Rx={partial:!0,tokenize:Vx};function Fx(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ox(e,t,n){const r=this;let i,s,o,a,l;return u;function u(x){return c(x)}function c(x){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(x),f}function f(x){return x===33?(e.consume(x),h):x===47?(e.consume(x),s=!0,m):x===63?(e.consume(x),i=3,r.interrupt?t:w):xe(x)?(e.consume(x),o=String.fromCharCode(x),y):n(x)}function h(x){return x===45?(e.consume(x),i=2,d):x===91?(e.consume(x),i=5,a=0,p):xe(x)?(e.consume(x),i=4,r.interrupt?t:w):n(x)}function d(x){return x===45?(e.consume(x),r.interrupt?t:w):n(x)}function p(x){const Q="CDATA[";return x===Q.charCodeAt(a++)?(e.consume(x),a===Q.length?r.interrupt?t:O:p):n(x)}function m(x){return xe(x)?(e.consume(x),o=String.fromCharCode(x),y):n(x)}function y(x){if(x===null||x===47||x===62||Z(x)){const Q=x===47,je=o.toLowerCase();return!Q&&!s&&Hu.includes(je)?(i=1,r.interrupt?t(x):O(x)):Mx.includes(o.toLowerCase())?(i=6,Q?(e.consume(x),g):r.interrupt?t(x):O(x)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(x):s?k(x):v(x))}return x===45||me(x)?(e.consume(x),o+=String.fromCharCode(x),y):n(x)}function g(x){return x===62?(e.consume(x),r.interrupt?t:O):n(x)}function k(x){return q(x)?(e.consume(x),k):C(x)}function v(x){return x===47?(e.consume(x),C):x===58||x===95||xe(x)?(e.consume(x),E):q(x)?(e.consume(x),v):C(x)}function E(x){return x===45||x===46||x===58||x===95||me(x)?(e.consume(x),E):A(x)}function A(x){return x===61?(e.consume(x),S):q(x)?(e.consume(x),A):v(x)}function S(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),l=x,M):q(x)?(e.consume(x),S):D(x)}function M(x){return x===l?(e.consume(x),l=null,V):x===null||_(x)?n(x):(e.consume(x),M)}function D(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||Z(x)?A(x):(e.consume(x),D)}function V(x){return x===47||x===62||q(x)?v(x):n(x)}function C(x){return x===62?(e.consume(x),R):n(x)}function R(x){return x===null||_(x)?O(x):q(x)?(e.consume(x),R):n(x)}function O(x){return x===45&&i===2?(e.consume(x),X):x===60&&i===1?(e.consume(x),W):x===62&&i===4?(e.consume(x),P):x===63&&i===3?(e.consume(x),w):x===93&&i===5?(e.consume(x),ue):_(x)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Nx,$,K)(x)):x===null||_(x)?(e.exit("htmlFlowData"),K(x)):(e.consume(x),O)}function K(x){return e.check(Rx,z,$)(x)}function z(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),N}function N(x){return x===null||_(x)?K(x):(e.enter("htmlFlowData"),O(x))}function X(x){return x===45?(e.consume(x),w):O(x)}function W(x){return x===47?(e.consume(x),o="",J):O(x)}function J(x){if(x===62){const Q=o.toLowerCase();return Hu.includes(Q)?(e.consume(x),P):O(x)}return xe(x)&&o.length<8?(e.consume(x),o+=String.fromCharCode(x),J):O(x)}function ue(x){return x===93?(e.consume(x),w):O(x)}function w(x){return x===62?(e.consume(x),P):x===45&&i===2?(e.consume(x),w):O(x)}function P(x){return x===null||_(x)?(e.exit("htmlFlowData"),$(x)):(e.consume(x),P)}function $(x){return e.exit("htmlFlow"),t(x)}}function Vx(e,t,n){const r=this;return i;function i(o){return _(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function zx(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(on,t,n)}}const _x={name:"htmlText",tokenize:Bx};function Bx(e,t,n){const r=this;let i,s,o;return a;function a(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),l}function l(w){return w===33?(e.consume(w),u):w===47?(e.consume(w),A):w===63?(e.consume(w),v):xe(w)?(e.consume(w),D):n(w)}function u(w){return w===45?(e.consume(w),c):w===91?(e.consume(w),s=0,p):xe(w)?(e.consume(w),k):n(w)}function c(w){return w===45?(e.consume(w),d):n(w)}function f(w){return w===null?n(w):w===45?(e.consume(w),h):_(w)?(o=f,W(w)):(e.consume(w),f)}function h(w){return w===45?(e.consume(w),d):f(w)}function d(w){return w===62?X(w):w===45?h(w):f(w)}function p(w){const P="CDATA[";return w===P.charCodeAt(s++)?(e.consume(w),s===P.length?m:p):n(w)}function m(w){return w===null?n(w):w===93?(e.consume(w),y):_(w)?(o=m,W(w)):(e.consume(w),m)}function y(w){return w===93?(e.consume(w),g):m(w)}function g(w){return w===62?X(w):w===93?(e.consume(w),g):m(w)}function k(w){return w===null||w===62?X(w):_(w)?(o=k,W(w)):(e.consume(w),k)}function v(w){return w===null?n(w):w===63?(e.consume(w),E):_(w)?(o=v,W(w)):(e.consume(w),v)}function E(w){return w===62?X(w):v(w)}function A(w){return xe(w)?(e.consume(w),S):n(w)}function S(w){return w===45||me(w)?(e.consume(w),S):M(w)}function M(w){return _(w)?(o=M,W(w)):q(w)?(e.consume(w),M):X(w)}function D(w){return w===45||me(w)?(e.consume(w),D):w===47||w===62||Z(w)?V(w):n(w)}function V(w){return w===47?(e.consume(w),X):w===58||w===95||xe(w)?(e.consume(w),C):_(w)?(o=V,W(w)):q(w)?(e.consume(w),V):X(w)}function C(w){return w===45||w===46||w===58||w===95||me(w)?(e.consume(w),C):R(w)}function R(w){return w===61?(e.consume(w),O):_(w)?(o=R,W(w)):q(w)?(e.consume(w),R):V(w)}function O(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),i=w,K):_(w)?(o=O,W(w)):q(w)?(e.consume(w),O):(e.consume(w),z)}function K(w){return w===i?(e.consume(w),i=void 0,N):w===null?n(w):_(w)?(o=K,W(w)):(e.consume(w),K)}function z(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||Z(w)?V(w):(e.consume(w),z)}function N(w){return w===47||w===62||Z(w)?V(w):n(w)}function X(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function W(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),J}function J(w){return q(w)?Y(e,ue,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ue(w)}function ue(w){return e.enter("htmlTextData"),o(w)}}const Ki={name:"labelEnd",resolveAll:Wx,resolveTo:qx,tokenize:Gx},$x={tokenize:Yx},Ux={tokenize:Kx},Hx={tokenize:Xx};function Wx(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Te(e,0,e.length,n),e}function qx(e,t){let n=e.length,r=0,i,s,o,a;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const l={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=De(a,e.slice(s+1,s+r+3)),a=De(a,[["enter",c,t]]),a=De(a,_n(t.parser.constructs.insideSpan.null,e.slice(s+r+4,o-3),t)),a=De(a,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),a=De(a,e.slice(o+1)),a=De(a,[["exit",l,t]]),Te(e,s,e.length,a),e}function Gx(e,t,n){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return a;function a(h){return s?s._inactive?f(h):(o=r.parser.defined.includes(Re(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt($x,c,o?c:f)(h):h===91?e.attempt(Ux,c,o?u:f)(h):o?c(h):f(h)}function u(h){return e.attempt(Hx,c,f)(h)}function c(h){return t(h)}function f(h){return s._balanced=!0,n(h)}}function Yx(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Z(f)?an(e,s)(f):s(f)}function s(f){return f===41?c(f):Bu(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Z(f)?an(e,l)(f):c(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?Uu(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Z(f)?an(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Kx(e,t,n){const r=this;return i;function i(a){return $u.call(r,e,s,o,"reference","referenceMarker","referenceString")(a)}function s(a){return r.parser.defined.includes(Re(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function Xx(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Qx={name:"labelStartImage",resolveAll:Ki.resolveAll,tokenize:Zx};function Zx(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),s}function s(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Jx={name:"labelStartLink",resolveAll:Ki.resolveAll,tokenize:eb};function eb(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Xi={name:"lineEnding",tokenize:tb};function tb(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Y(e,t,"linePrefix")}}const Bn={name:"thematicBreak",tokenize:nb};function nb(e,t,n){let r=0,i;return s;function s(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||_(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),q(u)?Y(e,a,"whitespace")(u):a(u))}}const Se={continuation:{tokenize:sb},exit:lb,name:"list",tokenize:ob},rb={partial:!0,tokenize:ub},ib={partial:!0,tokenize:ab};function ob(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(d){const p=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:qi(d)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Bn,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return qi(d)&&++o<10?(e.consume(d),l):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(on,r.interrupt?n:c,e.attempt(rb,h,f))}function c(d){return r.containerState.initialBlankLine=!0,s++,h(d)}function f(d){return q(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),h):n(d)}function h(d){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function sb(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(on,i,s);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(e,t,"listItemIndent",r.containerState.size+1)(a)}function s(a){return r.containerState.furtherBlankLines||!q(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ib,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(e,e.attempt(Se,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ab(e,t,n){const r=this;return Y(e,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(s):n(s)}}function lb(e){e.exit(this.containerState.type)}function ub(e,t,n){const r=this;return Y(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!q(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const Wu={name:"setextUnderline",resolveTo:cb,tokenize:fb};function cb(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",o,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function fb(e,t,n){const r=this;let i;return s;function s(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),q(u)?Y(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||_(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const hb={tokenize:db};function db(e){const t=this,n=e.attempt(on,r,e.attempt(this.parser.constructs.flowInitial,i,Y(e,e.attempt(this.parser.constructs.flow,i,e.attempt(xx,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const pb={resolveAll:Gu()},mb=qu("string"),gb=qu("text");function qu(e){return{resolveAll:Gu(e==="text"?yb:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,o,a);return o;function o(c){return u(c)?s(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let h=-1;if(f)for(;++h<f.length;){const d=f[h];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function Gu(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function yb(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let s=i.length,o=-1,a=0,l;for(;s--;){const u=i[s];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)l=!0,a++;else if(u!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const xb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Sx},disable:{null:[]},document:{42:Se,43:Se,45:Se,48:Se,49:Se,50:Se,51:Se,52:Se,53:Se,54:Se,55:Se,56:Se,57:Se,62:Ru},flow:{35:Ix,42:Bn,45:[Wu,Bn],60:Lx,61:Wu,95:Bn,96:zu,126:zu},flowInitial:{[-2]:Yi,[-1]:Yi,32:Yi},insideSpan:{null:[Gi,pb]},string:{38:Ou,92:Fu},text:{[-5]:Xi,[-4]:Xi,[-3]:Xi,33:Qx,38:Ou,42:Gi,60:[Jy,_x],91:Jx,92:[Ax,Fu],93:Ki,95:Gi,96:hx}},Symbol.toStringTag,{value:"Module"}));function bb(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let o=[],a=[];const l={attempt:M(A),check:M(S),consume:k,enter:v,exit:E,interrupt:M(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:m,events:[],now:p,parser:e,previous:null,sliceSerialize:h,sliceStream:d,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&s.push(t),u;function f(R){return o=De(o,R),y(),o[o.length-1]!==null?[]:(D(t,0),u.events=_n(s,u.events,u),u.events)}function h(R,O){return vb(d(R),O)}function d(R){return wb(o,R)}function p(){const{_bufferIndex:R,_index:O,line:K,column:z,offset:N}=r;return{_bufferIndex:R,_index:O,line:K,column:z,offset:N}}function m(R){i[R.line]=R.column,C()}function y(){let R;for(;r._index<o.length;){const O=o[r._index];if(typeof O=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<O.length;)g(O.charCodeAt(r._bufferIndex));else g(O)}}function g(R){c=c(R)}function k(R){_(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,C()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=R}function v(R,O){const K=O||{};return K.type=R,K.start=p(),u.events.push(["enter",K,u]),a.push(K),K}function E(R){const O=a.pop();return O.end=p(),u.events.push(["exit",O,u]),O}function A(R,O){D(R,O.from)}function S(R,O){O.restore()}function M(R,O){return K;function K(z,N,X){let W,J,ue,w;return Array.isArray(z)?$(z):"tokenize"in z?$([z]):P(z);function P(se){return ne;function ne(be){const _e=be!==null&&se[be],Je=be!==null&&se.null,tr=[...Array.isArray(_e)?_e:_e?[_e]:[],...Array.isArray(Je)?Je:Je?[Je]:[]];return $(tr)(be)}}function $(se){return W=se,J=0,se.length===0?X:x(se[J])}function x(se){return ne;function ne(be){return w=V(),ue=se,se.partial||(u.currentConstruct=se),se.name&&u.parser.constructs.disable.null.includes(se.name)?je():se.tokenize.call(O?Object.assign(Object.create(u),O):u,l,Q,je)(be)}}function Q(se){return R(ue,w),N}function je(se){return w.restore(),++J<W.length?x(W[J]):X}}}function D(R,O){R.resolveAll&&!s.includes(R)&&s.push(R),R.resolve&&Te(u.events,O,u.events.length-O,R.resolve(u.events.slice(O),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function V(){const R=p(),O=u.previous,K=u.currentConstruct,z=u.events.length,N=Array.from(a);return{from:z,restore:X};function X(){r=R,u.previous=O,u.currentConstruct=K,u.events.length=z,a=N,C()}}function C(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function wb(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,s)];else{if(o=e.slice(n,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}s>0&&o.push(e[i].slice(0,s))}return o}function vb(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
17
+ `;break}case-3:{o=`\r
18
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}function kb(e){const r={constructs:ju([xb,...(e||{}).extensions||[]]),content:i(qy),defined:[],document:i(Yy),flow:i(hb),lazy:{},string:i(mb),text:i(gb)};return r;function i(s){return o;function o(a){return bb(r,s,a)}}}function Sb(e){for(;!_u(e););return e}const Yu=/[\0\t\n\r]/g;function Cb(){let e=1,t="",n=!0,r;return i;function i(s,o,a){const l=[];let u,c,f,h,d;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),f=0,t="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(Yu.lastIndex=f,u=Yu.exec(s),h=u&&u.index!==void 0?u.index:s.length,d=s.charCodeAt(h),!u){t=s.slice(f);break}if(d===10&&f===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<h&&(l.push(s.slice(f,h)),e+=h-f),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Tb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pb(e){return e.replace(Tb,Ab)}function Ab(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return Mu(n.slice(s?2:1),s?16:10)}return Wi(n)||e}const Ku={}.hasOwnProperty;function Eb(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Ib(n)(Sb(kb(n).document().write(Cb()(e,t,!0))))}function Ib(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(df),autolinkProtocol:V,autolinkEmail:V,atxHeading:s(cf),blockQuote:s(Je),characterEscape:V,characterReference:V,codeFenced:s(tr),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(tr,o),codeText:s(Mk,o),codeTextData:V,data:V,codeFlowValue:V,definition:s(Lk),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(Nk),hardBreakEscape:s(ff),hardBreakTrailing:s(ff),htmlFlow:s(hf,o),htmlFlowData:V,htmlText:s(hf,o),htmlTextData:V,image:s(Rk),label:o,link:s(df),listItem:s(Fk),listItemValue:h,listOrdered:s(pf,f),listUnordered:s(pf),paragraph:s(Ok),reference:x,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(cf),strong:s(Vk),thematicBreak:s(_k)},exit:{atxHeading:l(),atxHeadingSequence:A,autolink:l(),autolinkEmail:_e,autolinkProtocol:be,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:je,characterReferenceMarkerNumeric:je,characterReferenceValue:se,characterReference:ne,codeFenced:l(y),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:C,codeIndented:l(g),codeText:l(N),codeTextData:C,data:C,definition:l(),definitionDestinationString:E,definitionLabelString:k,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(K),htmlFlowData:C,htmlText:l(z),htmlTextData:C,image:l(W),label:ue,labelText:J,lineEnding:R,link:l(X),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Q,resourceDestinationString:w,resourceTitleString:P,resource:$,setextHeading:l(D),setextHeadingLineSequence:M,setextHeadingText:S,strong:l(),thematicBreak:l()}};Xu(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let L={type:"root",children:[]};const U={stack:[L],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:c,data:n},G=[];let ee=-1;for(;++ee<T.length;)if(T[ee][1].type==="listOrdered"||T[ee][1].type==="listUnordered")if(T[ee][0]==="enter")G.push(ee);else{const Fe=G.pop();ee=i(T,Fe,ee)}for(ee=-1;++ee<T.length;){const Fe=t[T[ee][0]];Ku.call(Fe,T[ee][1].type)&&Fe[T[ee][1].type].call(Object.assign({sliceSerialize:T[ee][2].sliceSerialize},U),T[ee][1])}if(U.tokenStack.length>0){const Fe=U.tokenStack[U.tokenStack.length-1];(Fe[1]||Qu).call(U,void 0,Fe[0])}for(L.position={start:Ze(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Ze(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},ee=-1;++ee<t.transforms.length;)L=t.transforms[ee](L)||L;return L}function i(T,L,U){let G=L-1,ee=-1,Fe=!1,ut,We,hn,dn;for(;++G<=U;){const Pe=T[G];switch(Pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Pe[0]==="enter"?ee++:ee--,dn=void 0;break}case"lineEndingBlank":{Pe[0]==="enter"&&(ut&&!dn&&!ee&&!hn&&(hn=G),dn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dn=void 0}if(!ee&&Pe[0]==="enter"&&Pe[1].type==="listItemPrefix"||ee===-1&&Pe[0]==="exit"&&(Pe[1].type==="listUnordered"||Pe[1].type==="listOrdered")){if(ut){let Mt=G;for(We=void 0;Mt--;){const qe=T[Mt];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;We&&(T[We][1].type="lineEndingBlank",Fe=!0),qe[1].type="lineEnding",We=Mt}else if(!(qe[1].type==="linePrefix"||qe[1].type==="blockQuotePrefix"||qe[1].type==="blockQuotePrefixWhitespace"||qe[1].type==="blockQuoteMarker"||qe[1].type==="listItemIndent"))break}hn&&(!We||hn<We)&&(ut._spread=!0),ut.end=Object.assign({},We?T[We][1].start:Pe[1].end),T.splice(We||G,0,["exit",ut,Pe[2]]),G++,U++}if(Pe[1].type==="listItemPrefix"){const Mt={type:"listItem",_spread:!1,start:Object.assign({},Pe[1].start),end:void 0};ut=Mt,T.splice(G,0,["enter",Mt,Pe[2]]),G++,U++,hn=void 0,dn=!0}}}return T[L][1]._spread=Fe,U}function s(T,L){return U;function U(G){a.call(this,T(G),G),L&&L.call(this,G)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(T,L,U){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([L,U||void 0]),T.position={start:Ze(L.start),end:void 0}}function l(T){return L;function L(U){T&&T.call(this,U),u.call(this,U)}}function u(T,L){const U=this.stack.pop(),G=this.tokenStack.pop();if(G)G[0].type!==T.type&&(L?L.call(this,T,G[0]):(G[1]||Qu).call(this,T,G[0]));else throw new Error("Cannot close `"+T.type+"` ("+nn({start:T.start,end:T.end})+"): it’s not open");U.position.end=Ze(T.end)}function c(){return Hi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(T){if(this.data.expectingFirstListItemValue){const L=this.stack[this.stack.length-2];L.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function d(){const T=this.resume(),L=this.stack[this.stack.length-1];L.lang=T}function p(){const T=this.resume(),L=this.stack[this.stack.length-1];L.meta=T}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T.replace(/(\r?\n|\r)$/g,"")}function k(T){const L=this.resume(),U=this.stack[this.stack.length-1];U.label=L,U.identifier=Re(this.sliceSerialize(T)).toLowerCase()}function v(){const T=this.resume(),L=this.stack[this.stack.length-1];L.title=T}function E(){const T=this.resume(),L=this.stack[this.stack.length-1];L.url=T}function A(T){const L=this.stack[this.stack.length-1];if(!L.depth){const U=this.sliceSerialize(T).length;L.depth=U}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function M(T){const L=this.stack[this.stack.length-1];L.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function V(T){const U=this.stack[this.stack.length-1].children;let G=U[U.length-1];(!G||G.type!=="text")&&(G=zk(),G.position={start:Ze(T.start),end:void 0},U.push(G)),this.stack.push(G)}function C(T){const L=this.stack.pop();L.value+=this.sliceSerialize(T),L.position.end=Ze(T.end)}function R(T){const L=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=L.children[L.children.length-1];U.position.end=Ze(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(L.type)&&(V.call(this,T),C.call(this,T))}function O(){this.data.atHardBreak=!0}function K(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T}function z(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T}function N(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T}function X(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=L,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function W(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=L,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function J(T){const L=this.sliceSerialize(T),U=this.stack[this.stack.length-2];U.label=Pb(L),U.identifier=Re(L).toLowerCase()}function ue(){const T=this.stack[this.stack.length-1],L=this.resume(),U=this.stack[this.stack.length-1];if(this.data.inReference=!0,U.type==="link"){const G=T.children;U.children=G}else U.alt=L}function w(){const T=this.resume(),L=this.stack[this.stack.length-1];L.url=T}function P(){const T=this.resume(),L=this.stack[this.stack.length-1];L.title=T}function $(){this.data.inReference=void 0}function x(){this.data.referenceType="collapsed"}function Q(T){const L=this.resume(),U=this.stack[this.stack.length-1];U.label=L,U.identifier=Re(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function je(T){this.data.characterReferenceType=T.type}function se(T){const L=this.sliceSerialize(T),U=this.data.characterReferenceType;let G;U?(G=Mu(L,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):G=Wi(L);const ee=this.stack[this.stack.length-1];ee.value+=G}function ne(T){const L=this.stack.pop();L.position.end=Ze(T.end)}function be(T){C.call(this,T);const L=this.stack[this.stack.length-1];L.url=this.sliceSerialize(T)}function _e(T){C.call(this,T);const L=this.stack[this.stack.length-1];L.url="mailto:"+this.sliceSerialize(T)}function Je(){return{type:"blockquote",children:[]}}function tr(){return{type:"code",lang:null,meta:null,value:""}}function Mk(){return{type:"inlineCode",value:""}}function Lk(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nk(){return{type:"emphasis",children:[]}}function cf(){return{type:"heading",depth:0,children:[]}}function ff(){return{type:"break"}}function hf(){return{type:"html",value:""}}function Rk(){return{type:"image",title:null,url:"",alt:null}}function df(){return{type:"link",title:null,url:"",children:[]}}function pf(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Fk(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Ok(){return{type:"paragraph",children:[]}}function Vk(){return{type:"strong",children:[]}}function zk(){return{type:"text",value:""}}function _k(){return{type:"thematicBreak"}}}function Ze(e){return{line:e.line,column:e.column,offset:e.offset}}function Xu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Xu(e,r):Db(e,r)}}function Db(e,t){let n;for(n in t)if(Ku.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Qu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is still open")}function jb(e){const t=this;t.parser=n;function n(r){return Eb(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Mb(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Lb(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
19
+ `}]}function Nb(e,t){const n=t.value?t.value+`
20
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function Rb(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Fb(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ob(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=At(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=s+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Vb(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zb(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Zu(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function _b(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zu(e,t);const i={src:At(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function Bb(e,t){const n={src:At(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function $b(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Ub(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zu(e,t);const i={href:At(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function Hb(e,t){const n={href:At(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Wb(e,t,n){const r=e.all(t),i=n?qb(n):Ju(t),s={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
21
+ `}),c.type==="element"&&c.tagName==="p"&&!i?o.push(...c.children):o.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
22
+ `});const u={type:"element",tagName:"li",properties:s,children:o};return e.patch(t,u),e.applyData(t,u)}function qb(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ju(n[r])}return t}function Ju(e){const t=e.spread;return t??e.children.length>1}function Gb(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function Yb(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Kb(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Xb(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Qb(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Vi(t.children[1]),l=bu(t.children[t.children.length-1]);a&&l&&(o.position={start:a,end:l}),i.push(o)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function Zb(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const f=t.children[l],h={},d=o?o[l]:void 0;d&&(h.align=d);let p={type:"element",tagName:s,properties:h,children:[]};f&&(p.children=e.all(f),e.patch(f,p),p=e.applyData(f,p)),u.push(p)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function Jb(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ec=9,tc=32;function e0(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(nc(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(nc(t.slice(i),i>0,!1)),s.join("")}function nc(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===ec||s===tc;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===ec||s===tc;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function t0(e,t){const n={type:"text",value:e0(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function n0(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const r0={blockquote:Mb,break:Lb,code:Nb,delete:Rb,emphasis:Fb,footnoteReference:Ob,heading:Vb,html:zb,imageReference:_b,image:Bb,inlineCode:$b,linkReference:Ub,link:Hb,listItem:Wb,list:Gb,paragraph:Yb,root:Kb,strong:Xb,table:Qb,tableCell:Jb,tableRow:Zb,text:t0,thematicBreak:n0,toml:$n,yaml:$n,definition:$n,footnoteDefinition:$n};function $n(){}const rc=-1,Un=0,ln=1,Hn=2,Qi=3,Zi=4,Ji=5,eo=6,ic=7,oc=8,sc=typeof self=="object"?self:globalThis,i0=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,o]=t[i];switch(s){case Un:case rc:return n(o,i);case ln:{const a=n([],i);for(const l of o)a.push(r(l));return a}case Hn:{const a=n({},i);for(const[l,u]of o)a[r(l)]=r(u);return a}case Qi:return n(new Date(o),i);case Zi:{const{source:a,flags:l}=o;return n(new RegExp(a,l),i)}case Ji:{const a=n(new Map,i);for(const[l,u]of o)a.set(r(l),r(u));return a}case eo:{const a=n(new Set,i);for(const l of o)a.add(r(l));return a}case ic:{const{name:a,message:l}=o;return n(new sc[a](l),i)}case oc:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(new sc[s](o),i)};return r},ac=e=>i0(new Map,e)(0),It="",{toString:o0}={},{keys:s0}=Object,un=e=>{const t=typeof e;if(t!=="object"||!e)return[Un,t];const n=o0.call(e).slice(8,-1);switch(n){case"Array":return[ln,It];case"Object":return[Hn,It];case"Date":return[Qi,It];case"RegExp":return[Zi,It];case"Map":return[Ji,It];case"Set":return[eo,It];case"DataView":return[ln,n]}return n.includes("Array")?[ln,n]:n.includes("Error")?[ic,n]:[Hn,n]},Wn=([e,t])=>e===Un&&(t==="function"||t==="symbol"),a0=(e,t,n,r)=>{const i=(o,a)=>{const l=r.push(o)-1;return n.set(a,l),l},s=o=>{if(n.has(o))return n.get(o);let[a,l]=un(o);switch(a){case Un:{let c=o;switch(l){case"bigint":a=oc,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([rc],o)}return i([a,c],o)}case ln:{if(l){let h=o;return l==="DataView"?h=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(o)),i([l,[...h]],o)}const c=[],f=i([a,c],o);for(const h of o)c.push(s(h));return f}case Hn:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return s(o.toJSON());const c=[],f=i([a,c],o);for(const h of s0(o))(e||!Wn(un(o[h])))&&c.push([s(h),s(o[h])]);return f}case Qi:return i([a,o.toISOString()],o);case Zi:{const{source:c,flags:f}=o;return i([a,{source:c,flags:f}],o)}case Ji:{const c=[],f=i([a,c],o);for(const[h,d]of o)(e||!(Wn(un(h))||Wn(un(d))))&&c.push([s(h),s(d)]);return f}case eo:{const c=[],f=i([a,c],o);for(const h of o)(e||!Wn(un(h)))&&c.push(s(h));return f}}const{message:u}=o;return i([a,{name:l,message:u}],o)};return s},lc=(e,{json:t,lossy:n}={})=>{const r=[];return a0(!(t||n),!!t,new Map,r)(e),r},qn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ac(lc(e,t)):structuredClone(e):(e,t)=>ac(lc(e,t));function l0(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function u0(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function c0(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||l0,r=e.options.footnoteBackLabel||u0,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),h=At(f.toLowerCase());let d=0;const p=[],m=e.footnoteCounts.get(f);for(;m!==void 0&&++d<=m;){p.length>0&&p.push({type:"text",value:" "});let k=typeof n=="string"?n:n(l,d);typeof k=="string"&&(k={type:"text",value:k}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,d),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const y=c[c.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const k=y.children[y.children.length-1];k&&k.type==="text"?k.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...p)}else c.push(...p);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(c,!0)};e.patch(u,g),a.push(g)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...qn(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
15
23
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
16
- `}]}}const Oi=(function(e){if(e==null)return l0;if(typeof e=="function")return Vn(e);if(typeof e=="object")return Array.isArray(e)?o0(e):s0(e);if(typeof e=="string")return a0(e);throw new Error("Expected function, string, or object as test")});function o0(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Oi(e[n]);return Vn(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function s0(e){const t=e;return Vn(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function a0(e){return Vn(t);function t(n){return n&&n.type===e}}function Vn(e){return t;function t(n,r,i){return!!(u0(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function l0(){return!0}function u0(e){return e!==null&&typeof e=="object"&&"type"in e}function Kb(e){return e}const Nu=[],c0=!0,Vu=!1,f0="skip";function Lu(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Oi(i),s=r?-1:1;a(e,void 0,[])();function a(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=Nu,x,m,v;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=d0(n(l,c)),h[0]===Vu))return h;if("children"in l&&l.children){const g=l;if(g.children&&h[0]!==f0)for(m=(r?g.children.length:-1)+s,v=c.concat(g);m>-1&&m<g.children.length;){const S=g.children[m];if(x=a(S,m,v)(),x[0]===Vu)return x;m=typeof x[1]=="number"?x[1]:m+s}}return h}}}function d0(e){return Array.isArray(e)?e:typeof e=="number"?[c0,e]:e==null?Nu:[e]}function Ru(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),Lu(e,o,a,i);function a(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}const Fi={}.hasOwnProperty,h0={};function p0(e,t){const n=t||h0,r=new Map,i=new Map,o=new Map,s={...Qx,...n.handlers},a={all:u,applyData:g0,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:m0,wrap:x0};return Ru(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,d=String(c.identifier).toUpperCase();f.has(d)||f.set(d,c)}}),a;function l(c,f){const d=c.type,h=a.handlers[d];if(Fi.call(a.handlers,d)&&h)return h(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(d)){if("children"in c){const{children:m,...v}=c,g=Nn(v);return g.children=a.all(c),g}return Nn(c)}return(a.options.unknownHandler||y0)(a,c,f)}function u(c){const f=[];if("children"in c){const d=c.children;let h=-1;for(;++h<d.length;){const x=a.one(d[h],c);if(x){if(h&&d[h-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=Ou(x.value)),!Array.isArray(x)&&x.type==="element")){const m=x.children[0];m&&m.type==="text"&&(m.value=Ou(m.value))}Array.isArray(x)?f.push(...x):f.push(x)}}}return f}}function m0(e,t){e.position&&(t.position=lg(e))}function g0(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,Nn(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function y0(e,t){const n=t.data||{},r="value"in t&&!(Fi.call(n,"hProperties")||Fi.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function x0(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
24
+ `}]}}const Gn=(function(e){if(e==null)return p0;if(typeof e=="function")return Yn(e);if(typeof e=="object")return Array.isArray(e)?f0(e):h0(e);if(typeof e=="string")return d0(e);throw new Error("Expected function, string, or object as test")});function f0(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Gn(e[n]);return Yn(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function h0(e){const t=e;return Yn(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function d0(e){return Yn(t);function t(n){return n&&n.type===e}}function Yn(e){return t;function t(n,r,i){return!!(m0(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function p0(){return!0}function m0(e){return e!==null&&typeof e=="object"&&"type"in e}function i1(e){return e}const uc=[],g0=!0,to=!1,y0="skip";function cc(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=Gn(i),o=r?-1:1;a(e,void 0,[])();function a(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return h;function h(){let d=uc,p,m,y;if((!t||s(l,u,c[c.length-1]||void 0))&&(d=x0(n(l,c)),d[0]===to))return d;if("children"in l&&l.children){const g=l;if(g.children&&d[0]!==y0)for(m=(r?g.children.length:-1)+o,y=c.concat(g);m>-1&&m<g.children.length;){const k=g.children[m];if(p=a(k,m,y)(),p[0]===to)return p;m=typeof p[1]=="number"?p[1]:m+o}}return d}}}function x0(e){return Array.isArray(e)?e:typeof e=="number"?[g0,e]:e==null?uc:[e]}function no(e,t,n,r){let i,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,i=n):(s=t,o=n,i=r),cc(e,s,a,i);function a(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return o(l,f,c)}}const ro={}.hasOwnProperty,b0={};function w0(e,t){const n=t||b0,r=new Map,i=new Map,s=new Map,o={...r0,...n.handlers},a={all:u,applyData:k0,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:o,one:l,options:n,patch:v0,wrap:C0};return no(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,h=String(c.identifier).toUpperCase();f.has(h)||f.set(h,c)}}),a;function l(c,f){const h=c.type,d=a.handlers[h];if(ro.call(a.handlers,h)&&d)return d(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in c){const{children:m,...y}=c,g=qn(y);return g.children=a.all(c),g}return qn(c)}return(a.options.unknownHandler||S0)(a,c,f)}function u(c){const f=[];if("children"in c){const h=c.children;let d=-1;for(;++d<h.length;){const p=a.one(h[d],c);if(p){if(d&&h[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=fc(p.value)),!Array.isArray(p)&&p.type==="element")){const m=p.children[0];m&&m.type==="text"&&(m.value=fc(m.value))}Array.isArray(p)?f.push(...p):f.push(p)}}}return f}}function v0(e,t){e.position&&(t.position=xy(e))}function k0(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,qn(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function S0(e,t){const n=t.data||{},r="value"in t&&!(ro.call(n,"hProperties")||ro.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function C0(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
17
25
  `});++r<e.length;)r&&n.push({type:"text",value:`
18
26
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
19
- `}),n}function Ou(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Fu(e,t){const n=p0(e,t),r=n.one(e,void 0),i=i0(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
20
- `},i),o}function b0(e,t){return e&&"run"in e?async function(n,r){const i=Fu(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Fu(n,{file:r,...e||t})}}function Bu(e){if(e)throw e}var Bi,zu;function v0(){if(zu)return Bi;zu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},o=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var d;for(d in u);return typeof d>"u"||e.call(u,d)},s=function(u,c){n&&c.name==="__proto__"?n(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},a=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return Bi=function l(){var u,c,f,d,h,x,m=arguments[0],v=1,g=arguments.length,S=!1;for(typeof m=="boolean"&&(S=m,m=arguments[1]||{},v=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});v<g;++v)if(u=arguments[v],u!=null)for(c in u)f=a(m,c),d=a(u,c),m!==d&&(S&&d&&(o(d)||(h=i(d)))?(h?(h=!1,x=f&&i(f)?f:[]):x=f&&o(f)?f:{},s(m,{name:c,newValue:l(S,x,d)})):typeof d<"u"&&s(m,{name:c,newValue:d}));return m},Bi}var w0=v0();const zi=eo(w0);function _i(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function k0(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){const c=e[++o];let f=-1;if(l){s(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?S0(c,a)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function S0(e,t){let n;return r;function r(...s){const a=e.length>s.length;let l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(a&&n)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}const Oe={basename:T0,dirname:C0,extname:P0,join:E0,sep:"/"};function T0(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');nn(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function C0(e){if(nn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function P0(e){nn(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function E0(...e){let t=-1,n;for(;++t<e.length;)nn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":A0(n)}function A0(e){nn(e);const t=e.codePointAt(0)===47;let n=I0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function I0(e,t){let n="",r=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function nn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const D0={cwd:j0};function j0(){return"/"}function $i(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function M0(e){if(typeof e=="string")e=new URL(e);else if(!$i(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return N0(e)}function N0(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ui=["history","path","basename","stem","extname","dirname"];class _u{constructor(t){let n;t?$i(t)?n={path:t}:typeof t=="string"||V0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":D0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ui.length;){const o=Ui[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Ui.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Oe.basename(this.path):void 0}set basename(t){Wi(t,"basename"),Hi(t,"basename"),this.path=Oe.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Oe.dirname(this.path):void 0}set dirname(t){$u(this.basename,"dirname"),this.path=Oe.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Oe.extname(this.path):void 0}set extname(t){if(Hi(t,"extname"),$u(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Oe.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){$i(t)&&(t=M0(t)),Wi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Oe.basename(this.path,this.extname):void 0}set stem(t){Wi(t,"stem"),Hi(t,"stem"),this.path=Oe.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new he(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Hi(e,t){if(e&&e.includes(Oe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Oe.sep+"`")}function Wi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function $u(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function V0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const L0=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),R0={}.hasOwnProperty;class qi extends L0{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=k0()}copy(){const t=new qi;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(zi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ki("data",this.frozen),this.namespace[t]=n,this):R0.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ki("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ln(t),r=this.parser||this.Parser;return Gi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Gi("process",this.parser||this.Parser),Yi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=Ln(t),l=r.parse(a);r.run(l,a,function(c,f,d){if(c||!f||!d)return u(c);const h=f,x=r.stringify(h,d);B0(x)?d.value=x:d.result=x,u(c,d)});function u(c,f){c||!f?s(c):o?o(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Gi("processSync",this.parser||this.Parser),Yi("processSync",this.compiler||this.Compiler),this.process(t,i),Hu("processSync","process",n),r;function i(o,s){n=!0,Bu(o),r=s}}run(t,n,r){Uu(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,a){const l=Ln(n);i.run(t,l,u);function u(c,f,d){const h=f||t;c?a(c):s?s(h):r(void 0,h,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Hu("runSync","run",r),i;function o(s,a){Bu(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=Ln(n),i=this.compiler||this.Compiler;return Yi("stringify",i),Uu(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ki("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=zi(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,d=-1;for(;++f<r.length;)if(r[f][0]===u){d=f;break}if(d===-1)r.push([u,...c]);else if(c.length>0){let[h,...x]=c;const m=r[d][1];_i(m)&&_i(h)&&(h=zi(!0,m,h)),r[d]=[u,h,...x]}}}}const O0=new qi().freeze();function Gi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Yi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ki(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Uu(e){if(!_i(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Hu(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ln(e){return F0(e)?e:new _u(e)}function F0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function B0(e){return typeof e=="string"||z0(e)}function z0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _0="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Wu=[],qu={allowDangerousHtml:!0},$0=/^(https?|ircs?|mailto|xmpp)$/i,U0=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Rn(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,a=e.rehypePlugins||Wu,l=e.remarkPlugins||Wu,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...qu}:qu,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||H0,h=O0().use(Cx).use(l).use(b0,u).use(a),x=new _u;typeof r=="string"&&(x.value=r);for(const S of U0)Object.hasOwn(e,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+_0+S.id,void 0);const m=h.parse(x);let v=h.runSync(m,x);return i&&(v={type:"element",tagName:"div",properties:{className:i},children:v.type==="root"?v.children:[v]}),Ru(v,g),hg(v,{Fragment:b.Fragment,components:o,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function g(S,w,P){if(S.type==="raw"&&P&&typeof w=="number")return c?P.children.splice(w,1):P.children[w]={type:"text",value:S.value},w;if(S.type==="element"){let E;for(E in Ti)if(Object.hasOwn(Ti,E)&&Object.hasOwn(S.properties,E)){const k=S.properties[E],N=Ti[E];(N===null||N.includes(S.tagName))&&(S.properties[E]=d(String(k||""),E,S))}}if(S.type==="element"){let E=t?!t.includes(S.tagName):s?s.includes(S.tagName):!1;if(!E&&n&&typeof w=="number"&&(E=!n(S,w,P)),E&&P&&typeof w=="number")return f&&S.children?P.children.splice(w,1,...S.children):P.children.splice(w,1),w}}}function H0(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||$0.test(e.slice(0,t))?e:""}function W0(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function q0(e,t,n){const i=Oi({}.ignore||[]),o=G0(t);let s=-1;for(;++s<o.length;)Lu(e,"text",a);function a(u,c){let f=-1,d;for(;++f<c.length;){const h=c[f],x=d?d.children:void 0;if(i(h,x?x.indexOf(h):void 0,d))return;d=h}if(d)return l(u,c)}function l(u,c){const f=c[c.length-1],d=o[s][0],h=o[s][1];let x=0;const v=f.children.indexOf(u);let g=!1,S=[];d.lastIndex=0;let w=d.exec(u.value);for(;w;){const P=w.index,E={index:w.index,input:w.input,stack:[...c,u]};let k=h(...w,E);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?d.lastIndex=P+1:(x!==P&&S.push({type:"text",value:u.value.slice(x,P)}),Array.isArray(k)?S.push(...k):k&&S.push(k),x=P+w[0].length,g=!0),!d.global)break;w=d.exec(u.value)}return g?(x<u.value.length&&S.push({type:"text",value:u.value.slice(x)}),f.children.splice(v,1,...S)):S=[u],v+S.length}}function G0(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Y0(i[0]),K0(i[1])])}return t}function Y0(e){return typeof e=="string"?new RegExp(W0(e),"g"):e}function K0(e){return typeof e=="function"?e:function(){return e}}function X0(e){q0(e,[/\r?\n|\r/g,Q0])}function Q0(){return{type:"break"}}function On(){return function(e){X0(e)}}const Gu=({title:e,subtitle:t,items:n=[],image:r,imagePosition:i="right",className:o="",actionLabel:s,href:a,inverted:l=!1})=>b.jsx("section",{className:`feature-split-section ${o} image-${i} ${l?"theme-inverted":""}`,children:b.jsxs("div",{className:"feature-split-container",children:[b.jsxs("div",{className:"feature-split-content",children:[b.jsx("div",{className:"section-title feature-split-title",children:e}),t&&b.jsx("div",{className:"feature-split-description",children:b.jsx(Rn,{remarkPlugins:[On],children:t})}),n&&n.length>0&&b.jsx("div",{className:"feature-split-list",children:n.map((u,c)=>b.jsxs("div",{className:"feature-split-item",children:[u.icon&&b.jsx("div",{className:"feature-split-icon-wrapper",children:b.jsx(fe,{icon:u.icon,width:"24",height:"24"})}),b.jsxs("div",{children:[b.jsx("h3",{className:"card-title feature-split-item-title",children:u.title}),b.jsx("div",{className:"feature-split-item-description",children:b.jsx(Rn,{remarkPlugins:[On],children:u.description})})]})]},c))}),s&&a&&b.jsx("div",{className:"feature-split-actions",children:b.jsx("button",{onClick:()=>window.location.href=a,children:s})})]}),b.jsx("div",{className:"feature-split-image-wrapper",children:b.jsx("img",{src:r.imageSrc,alt:r.alt,className:"feature-split-image"})})]})}),Yu=({title:e,subtitle:t,content:n,format:r="markdown",className:i="",image:o,inverted:s=!1})=>b.jsx("section",{className:`content-block-section ${s?"theme-inverted":""} ${i}`,children:b.jsxs("div",{className:"content-block-container",children:[b.jsxs("div",{className:"content-block-header",children:[e&&b.jsx("div",{className:"section-title content-block-title",children:e}),t&&b.jsx("div",{className:"section-subtitle content-block-subtitle",children:t})]}),o&&b.jsxs("div",{className:"content-block-featured-image",children:[b.jsx("img",{src:o.imageSrc,alt:o.alt}),o.caption&&b.jsx("figcaption",{children:o.caption})]}),b.jsx("div",{className:"content-block-body markdown-body",children:r==="html"?b.jsx("div",{dangerouslySetInnerHTML:{__html:n||""}}):b.jsx(Rn,{remarkPlugins:[On],children:n||""})})]})}),Xi=({icon:e,title:t,description:n,href:r,actionLabel:i="Learn more",className:o="",inverted:s=!1})=>b.jsx(Xn,{hoverable:!0,elevation:"sm",className:`feature-card ${o}`,inverted:s,children:b.jsxs("div",{className:"feature-card-content",children:[e&&b.jsx("div",{className:"feature-icon-wrapper",children:b.jsx(fe,{icon:e,width:"24",height:"24"})}),b.jsx("h3",{className:"card-title feature-title",children:t}),b.jsx("div",{className:"card-description feature-description",children:b.jsx(Rn,{remarkPlugins:[On],children:n})}),r&&(r.startsWith("http")?b.jsxs("a",{href:r,className:"feature-link",target:"_blank",rel:"noopener noreferrer",children:[i," ",b.jsx("span",{children:"→"})]}):b.jsxs(Bn.Link,{to:r,className:"feature-link",children:[i," ",b.jsx("span",{children:"→"})]}))]})}),Ku=({title:e,subtitle:t,items:n,children:r,className:i="",columns:o,actionLabel:s="Learn more",inverted:a=!1})=>{const l=o?{"--features-columns":o}:{};return b.jsx("section",{className:`features-section ${a?"theme-inverted":""} ${i}`,children:b.jsxs("div",{className:"features-container",children:[b.jsxs("div",{className:"features-header",children:[b.jsx("div",{className:"section-title features-title",children:e}),t&&b.jsx("div",{className:"section-subtitle features-subtitle",children:t})]}),b.jsxs("div",{className:"features-grid",style:l,children:[r,n&&n.map((u,c)=>b.jsx(Xi,{...u,actionLabel:s,inverted:a},c))]})]})})},Xu=j.createContext(void 0),Z0=()=>{const e=j.useContext(Xu);if(!e)throw new Error("useDropdownContext must be used within DropdownProvider");return e},J0=({children:e})=>{const[t,n]=j.useState(null);return b.jsx(Xu.Provider,{value:{activeDropdown:t,setActiveDropdown:n},children:e})},Qi=e=>{const{title:t,icon:n,iconPosition:r="left",iconSize:i="1.2rem",iconColor:o="currentColor",className:s="",itemGroupClassName:a="",children:l,href:u,id:c=t||n||"dropdown",target:f="_self"}=e,{activeDropdown:d,setActiveDropdown:h}=Z0(),x=j.useRef(null),m=j.useRef(null),v=d===c,g=v;j.useEffect(()=>{const w=P=>{x.current&&!x.current.contains(P.target)&&d===c&&h(null)};return g&&document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w)}},[g,d,c,h]);const S=w=>{w.stopPropagation(),l&&(w.preventDefault(),h(v?null:c))};return b.jsxs("div",{ref:x,className:"menu",children:[(t||n)&&b.jsx(b.Fragment,{children:u?b.jsxs("a",{href:u,onClick:S,className:`menu-title ${s} ${v?"active":""}`,target:f,"aria-haspopup":!!l,"aria-expanded":g,children:[n&&r==="left"&&b.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-left"}),t&&b.jsx("span",{children:t}),n&&r==="right"&&b.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-right"}),l&&b.jsx("span",{className:"arrow",children:g?"▲":"▼"})]}):b.jsxs("button",{onClick:S,className:`menu-title ${s} ${v?"active":""}`,type:"button","aria-haspopup":"true","aria-expanded":g,children:[n&&r==="left"&&b.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-left"}),t&&b.jsx("span",{children:t}),n&&r==="right"&&b.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-right"}),l&&b.jsx("span",{className:"arrow",children:g?"▲":"▼"})]})}),b.jsx("div",{ref:m,className:`menu-dropdown ${a} ${g?"show":""}`,onClick:()=>h(null),children:l})]})},Qu=({items:e,className:t=""})=>b.jsx("section",{className:`stats-section ${t}`,children:b.jsx("div",{className:"stats-container",children:b.jsx("div",{className:"stats-grid",children:e.map((n,r)=>b.jsxs("div",{className:"stat-item",children:[b.jsx("span",{className:"stat-value",children:n.value}),b.jsx("span",{className:"stat-label",children:n.label}),n.description&&b.jsx("span",{className:"stat-description",children:n.description})]},r))})})}),Zu=({title:e,subtitle:t,actionLabel:n,onAction:r,className:i="",imageSrc:o,inverted:s=!1})=>{const a=o?{backgroundImage:`url(${o})`,backgroundSize:"cover",backgroundPosition:"center"}:{};return b.jsx("section",{className:`cta-section ${s?"theme-inverted":""}`,style:a,children:b.jsxs("div",{className:`cta-container ${i}`,children:[b.jsx("h2",{className:"section-title cta-title",children:e}),t&&b.jsx("p",{className:"section-subtitle cta-description",children:t}),n&&b.jsx("div",{className:"cta-actions btn btn-outline",children:n&&b.jsx("button",{onClick:r,children:n})})]})})},Ju=({title:e,subtitle:t,items:n,className:r=""})=>b.jsx("section",{className:`testimonials-section ${r}`,children:b.jsxs("div",{className:"testimonials-container",children:[b.jsxs("div",{className:"testimonials-header",children:[b.jsx("h2",{className:"section-title testimonials-title",children:e}),t&&b.jsx("p",{className:"section-subtitle testimonials-subtitle",children:t})]}),b.jsx("div",{className:"testimonials-grid",children:n.map(i=>b.jsx(Xn,{elevation:"sm",className:"testimonial-card",children:b.jsxs("div",{className:"testimonial-card-content",children:[b.jsx("div",{className:"testimonial-stars",children:[...Array(i.rating||5)].map((o,s)=>b.jsx(fe,{icon:"mdi:star",width:"20",height:"20"},s))}),b.jsxs("blockquote",{className:"testimonial-quote",children:['"',i.quote,'"']}),b.jsxs("div",{className:"testimonial-author",children:[i.imageSrc?b.jsx("img",{src:i.imageSrc,alt:i.name,className:"testimonial-avatar"}):b.jsx("div",{className:"testimonial-avatar-placeholder",children:i.name.charAt(0)}),b.jsxs("div",{className:"testimonial-author-info",children:[b.jsx("span",{className:"testimonial-name",children:i.name}),b.jsxs("span",{className:"testimonial-role",children:[i.role," ",i.company&&`at ${i.company}`]})]})]})]})},i.id))})]})}),ec=({options:e=[],value:t,defaultValue:n,className:r,icon:i,id:o,hideSelectedLabel:s=!1})=>{const[a,l]=j.useState(n),u=t!==void 0,c=u?t:a,f=m=>{u||l(m.value),m.onClick?.()},d=e.find(m=>m.value===c),h=d?.icon||i;let x=d?.label||d?.value||c||"";return s&&h&&(x=""),b.jsx(Qi,{id:o,title:x,icon:h,className:`${r||""}`,itemGroupClassName:"select-options-group",children:e.map(m=>b.jsxs("div",{className:`select-option ${m.value===c?"selected":""} ${r}`,onClick:()=>f(m),role:"option","aria-selected":m.value===c,children:[m.icon&&b.jsx("span",{className:"option-icon",children:b.jsx(fe,{icon:m.icon})}),m.label&&b.jsx("span",{className:`option-label ${r}`,children:m.label})]},m.value))})},tc={Header:Do,MenuItem:Sl,MenuGrid:Tl,MenuGridItem:Cl,Dropdown:Qi,Hero:Pl,IconButton:El,FeatureSplit:Gu,ContentBlock:Yu,FeaturesSection:Ku,FeatureItem:Xi,BentoGrid:Io,Stats:Qu,CTASection:Zu,Testimonials:Ju,Select:ec};let Zi={...tc};function eb(e,t){Zi[e]=t}function nc(e){return Zi[e]}function tb(e){return e in Zi}function nb(e){return typeof e=="string"&&e.trim().length>0}const Ct=({config:e,className:t,handlers:n,onError:r})=>{if(Array.isArray(e))return b.jsx(b.Fragment,{children:e.map((m,v)=>b.jsx(Ct,{config:m,className:t,handlers:n,onError:r},m.id||`item-${v}`))});if(!e||typeof e!="object")return null;const{type:i,data:o,children:s,id:a,...l}=e,u=a||o?.id||i;if(!nb(i)){const m=new Error(`Invalid component type: "${i}"`);return r?.(m,e),console.error(`Invalid component type: "${i}"`),null}if(!tb(i)){const m=new Error(`Component "${i}" is not registered`);return r?.(m,e),console.error(`Component "${i}" is not registered`),null}const c=nc(i);if(!c){const m=new Error(`Failed to load component: "${i}"`);return r?.(m,e),console.error(`Failed to load component: "${i}"`),null}const f=m=>{if(!m||typeof m!="object"||j.isValidElement(m))return m;if(Array.isArray(m))return m.map(g=>f(g));const v={...m};return Object.keys(v).forEach(g=>{const S=v[g];if(typeof S=="string"&&S.startsWith("@action:")){const w=S.replace("@action:","");n&&n[w]&&(v[g]=n[w])}else typeof S=="object"&&S!==null&&(v[g]=f(S))}),v},h={...f(o),...l,id:a||o?.id};t&&(h.className=o?.className?`${o.className} ${t}`:t);const x=m=>{if(m){if(Array.isArray(m))return m.map((v,g)=>v&&typeof v=="object"&&v.type?b.jsx(Ct,{config:v,handlers:n,onError:r},v.id||`child-${g}`):v);if(m&&typeof m=="object"&&m.type){const v=m.id||m.data?.id||m.type;return b.jsx(Ct,{config:m,handlers:n,onError:r},v)}return m}};if(s!==void 0)if(i==="Header"){const m=x(s);if(m&&Array.isArray(m)){const v=m.filter(S=>{const w=S?.props?.config;return(w?.["data-position"]||w?.data?.["data-position"])!=="far-item"}),g=m.filter(S=>{const w=S?.props?.config;return(w?.["data-position"]||w?.data?.["data-position"])==="far-item"});h.menuBar=v,h.utilityButtons=g}}else if(i==="MenuGrid"){const m=x(s);m&&(h.children=m)}else if(i==="Dropdown"){const m=x(s);h.children=m}else h.children=x(s);if(o?.items&&Array.isArray(o.items)&&(h.items=o.items.map((m,v)=>m&&typeof m=="object"&&m.type?b.jsx(Ct,{config:m,handlers:n,onError:r},m.id||`item-${v}`):m)),o?.embeddedView&&typeof o.embeddedView=="object"&&o.embeddedView.type){const m=o.embeddedView.id||o.embeddedView.data?.id||o.embeddedView.type;h.embeddedView=b.jsx(Ct,{config:o.embeddedView,handlers:n,onError:r},m)}try{return b.jsx(c,{...h},u)}catch(m){const v=m instanceof Error?m:new Error("Unknown rendering error");return r?.(v,e),console.error(`Error rendering component "${i}":`,m),b.jsxs("div",{className:"error-boundary",style:{border:"1px solid red",padding:"1rem",color:"red",background:"#fee"},children:["Error rendering ",i,": ",v.message]},u)}},rb=({imageSrc:e,companyName:t,description:n,columns:r,socialLinks:i,poweredBy:o,poweredByLink:s,copyright:a,inverted:l=!1,className:u=""})=>{const c=`footer ${l?"theme-inverted":""} ${u}`.trim(),f=()=>!e&&!t?null:b.jsxs("div",{className:"footer-logo-container",children:[e&&b.jsx("img",{src:e,alt:t||"Logo",className:"footer-logo-img"}),t&&b.jsx("span",{className:"footer-company-name",children:t})]});return b.jsx("footer",{className:c,children:b.jsxs("div",{className:"footer-container",children:[b.jsxs("div",{className:"footer-grid",children:[b.jsxs("div",{className:"footer-brand",children:[b.jsx("div",{className:"footer-logo",children:f()}),n&&b.jsx("p",{className:"footer-description",children:n}),i&&b.jsx("div",{className:"footer-social",children:i.map((d,h)=>b.jsx("a",{href:d.href,className:"footer-social-link",target:"_blank",rel:"noopener noreferrer",children:b.jsx(fe,{icon:d.icon,width:"24",height:"24"})},h))})]}),r.map((d,h)=>b.jsxs("div",{className:"footer-column",children:[b.jsx("h4",{className:"footer-column-title",children:d.title}),b.jsx("div",{className:"footer-links",children:d.links.map((x,m)=>x.href.startsWith("http")?b.jsx("a",{href:x.href,className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:x.label},m):b.jsx(Bn.Link,{to:x.href,className:"footer-link",children:x.label},m))})]},h))]}),b.jsx("div",{className:"footer-bottom",children:b.jsxs("div",{className:"footer-copyright",children:[b.jsx("span",{children:a||`© ${new Date().getFullYear()} Company Name. All rights reserved.`}),o&&b.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"footer-powered-by",children:o})]})})]})})},ib=({title:e,subtitle:t,items:n,className:r="",allowMultiple:i=!1})=>{const[o,s]=j.useState(new Set),a=j.useRef({}),l=u=>{s(c=>{const f=new Set(i?c:[]);return c.has(u)?f.delete(u):f.add(u),f})};return b.jsx("section",{className:`accordion-section ${r}`,children:b.jsxs("div",{className:"accordion-container",children:[(e||t)&&b.jsxs("div",{className:"accordion-header-section",children:[e&&b.jsx("h2",{className:"accordion-title",children:e}),t&&b.jsx("p",{className:"accordion-subtitle",children:t})]}),b.jsx("div",{className:"accordion-list",children:n.map(u=>{const c=o.has(u.id);return b.jsxs("div",{className:`accordion-item ${c?"open":""}`,children:[b.jsxs("button",{className:"accordion-trigger",onClick:f=>{f.stopPropagation(),l(u.id)},"aria-expanded":c,"aria-controls":`content-${u.id}`,children:[b.jsx("span",{className:"accordion-item-title",children:u.title}),b.jsx(fe,{icon:"mdi:chevron-down",width:"24",height:"24",className:`accordion-icon ${c?"rotate":""}`})]}),b.jsx("div",{id:`content-${u.id}`,className:"accordion-content",style:{height:c?a.current[u.id]?.scrollHeight:0},children:b.jsx("div",{ref:f=>{a.current[u.id]=f},className:"accordion-content-inner",children:u.content})})]},u.id)})})]})})};let ob;function sb({endpoint:e,storyName:t="Default",params:n={},autoFetch:r=!0,apiService:i}){const[o,s]=j.useState(null),[a,l]=j.useState(r),[u,c]=j.useState(null),f=i||ob,d=async(h,x)=>{if(!f){c("API service not configured"),l(!1);return}const m=h||t;l(!0),c(null);try{const v=new URLSearchParams({story:m,...n,...x}).toString(),g=v?`${e}?${v}`:e,S=await f.get(g);S.status===200?s(S.data):c(`Error ${S.status}: ${S.statusText}`)}catch(v){console.error(`Failed to fetch from ${e}:`,v),c(v.message||"Failed to fetch configuration")}finally{l(!1)}};return j.useEffect(()=>{r&&f?d():r&&!f&&(c("API service not configured"),l(!1))},[e,t,JSON.stringify(n),r,f]),{data:o,loading:a,error:u,refetch:d,setData:s}}const ab={MenuGridItem:"/menu-grid-item",MenuGrid:"/menu-grid",Dropdown:"/dropdown",Header:"/header",Hero:"/hero",Card:"/card",ItemsAccordion:"/items-accordion",Footer:"/footer",Stats:"/stats",FeatureSplit:"/feature-split",ContentBlock:"/content-block",FeaturesSection:"/features-section",BentoGrid:"/bento-grid",CTASection:"/cta-section",Testimonials:"/testimonials",Select:"/select"};function me(e){const{component:t,story:n="Default",variant:r,apiService:i}=e,o=ab[t],s={};return r&&(s.variant=r),sb({endpoint:o,storyName:n,params:s,apiService:i})}function lb(e,t,n){return me({component:"MenuGridItem",story:e,apiService:t,variant:n})}function ub(e,t,n){return me({component:"MenuGrid",story:e,apiService:t,variant:n})}function cb(e,t,n){return me({component:"Dropdown",story:e,apiService:t,variant:n})}function fb(e,t,n){return me({component:"Hero",story:e,apiService:t,variant:n})}function db(e,t,n){return me({component:"Header",story:e,apiService:t,variant:n})}function hb(e,t,n){return me({component:"ItemsAccordion",story:e,apiService:t,variant:n})}function pb(e,t,n){return me({component:"Footer",story:e,apiService:t,variant:n})}function mb(e,t,n){return me({component:"Stats",story:e,apiService:t,variant:n})}function gb(e,t,n){return me({component:"FeatureSplit",story:e,apiService:t,variant:n})}function yb(e,t,n){return me({component:"ContentBlock",story:e,apiService:t,variant:n})}function xb(e,t,n){return me({component:"FeaturesSection",story:e,apiService:t,variant:n})}function bb(e,t,n){return me({component:"BentoGrid",story:e,apiService:t,variant:n})}function vb(e,t,n){return me({component:"CTASection",story:e,apiService:t,variant:n})}function wb(e,t,n){return me({component:"Testimonials",story:e,apiService:t,variant:n})}function kb(e,t,n){return me({component:"Select",story:e,apiService:t,variant:n})}$.BentoGrid=Io,$.CTASection=Zu,$.Card=Xn,$.ContentBlock=Yu,$.Dropdown=Qi,$.DropdownProvider=J0,$.DynamicRenderer=Ct,$.FeatureItem=Xi,$.FeatureSplit=Gu,$.FeaturesSection=Ku,$.Footer=rb,$.Header=Do,$.Hero=Pl,$.IconButton=El,$.ItemsAccordion=ib,$.MenuGrid=Tl,$.MenuGridItem=Cl,$.MenuItem=Sl,$.Select=ec,$.Stats=Qu,$.Testimonials=Ju,$.baseComponents=tc,$.getComponent=nc,$.registerComponent=eb,$.useBentoGridConfig=bb,$.useCTASectionConfig=vb,$.useContentBlockConfig=yb,$.useDropdownConfig=cb,$.useFeatureSplitConfig=gb,$.useFeaturesSectionConfig=xb,$.useFooterConfig=pb,$.useHeaderConfig=db,$.useHeroConfig=fb,$.useItemsAccordionConfig=hb,$.useMenuGridConfig=ub,$.useMenuGridItemConfig=lb,$.useSelectConfig=kb,$.useStatsConfig=mb,$.useTestimonialsConfig=wb,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
27
+ `}),n}function fc(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function hc(e,t){const n=w0(e,t),r=n.one(e,void 0),i=c0(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
28
+ `},i),s}function T0(e,t){return e&&"run"in e?async function(n,r){const i=hc(n,{file:r,...t});await e.run(i,r)}:function(n,r){return hc(n,{file:r,...e||t})}}function dc(e){if(e)throw e}var io,pc;function P0(){if(pc)return io;pc=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},s=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},o=function(u,c){n&&c.name==="__proto__"?n(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},a=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return io=function l(){var u,c,f,h,d,p,m=arguments[0],y=1,g=arguments.length,k=!1;for(typeof m=="boolean"&&(k=m,m=arguments[1]||{},y=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});y<g;++y)if(u=arguments[y],u!=null)for(c in u)f=a(m,c),h=a(u,c),m!==h&&(k&&h&&(s(h)||(d=i(h)))?(d?(d=!1,p=f&&i(f)?f:[]):p=f&&s(f)?f:{},o(m,{name:c,newValue:l(k,p,h)})):typeof h<"u"&&o(m,{name:c,newValue:h}));return m},io}var A0=P0();const oo=Eo(A0);function so(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function E0(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(l,...u){const c=e[++s];let f=-1;if(l){o(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?I0(c,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function I0(e,t){let n;return r;function r(...o){const a=e.length>o.length;let l;a&&o.push(i);try{l=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(o,...a){n||(n=!0,t(o,...a))}function s(o){i(null,o)}}const Ve={basename:D0,dirname:j0,extname:M0,join:L0,sep:"/"};function D0(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');cn(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function j0(e){if(cn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function M0(e){cn(e);let t=e.length,n=-1,r=0,i=-1,s=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function L0(...e){let t=-1,n;for(;++t<e.length;)cn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":N0(n)}function N0(e){cn(e);const t=e.codePointAt(0)===47;let n=R0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function R0(e,t){let n="",r=0,i=-1,s=0,o=-1,a,l;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else a===46&&s>-1?s++:s=-1}return n}function cn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const F0={cwd:O0};function O0(){return"/"}function ao(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function V0(e){if(typeof e=="string")e=new URL(e);else if(!ao(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return z0(e)}function z0(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const lo=["history","path","basename","stem","extname","dirname"];class mc{constructor(t){let n;t?ao(t)?n={path:t}:typeof t=="string"||_0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":F0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<lo.length;){const s=lo[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)lo.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ve.basename(this.path):void 0}set basename(t){co(t,"basename"),uo(t,"basename"),this.path=Ve.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ve.dirname(this.path):void 0}set dirname(t){gc(this.basename,"dirname"),this.path=Ve.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ve.extname(this.path):void 0}set extname(t){if(uo(t,"extname"),gc(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ve.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ao(t)&&(t=V0(t)),co(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ve.basename(this.path,this.extname):void 0}set stem(t){co(t,"stem"),uo(t,"stem"),this.path=Ve.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new pe(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function uo(e,t){if(e&&e.includes(Ve.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ve.sep+"`")}function co(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function gc(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function _0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const B0=(function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),$0={}.hasOwnProperty;class fo extends B0{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=E0()}copy(){const t=new fo;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(oo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(mo("data",this.frozen),this.namespace[t]=n,this):$0.call(this.namespace,t)&&this.namespace[t]||void 0:t?(mo("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Kn(t),r=this.parser||this.Parser;return ho("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ho("process",this.parser||this.Parser),po("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const a=Kn(t),l=r.parse(a);r.run(l,a,function(c,f,h){if(c||!f||!h)return u(c);const d=f,p=r.stringify(d,h);W0(p)?h.value=p:h.result=p,u(c,h)});function u(c,f){c||!f?o(c):s?s(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),ho("processSync",this.parser||this.Parser),po("processSync",this.compiler||this.Compiler),this.process(t,i),xc("processSync","process",n),r;function i(s,o){n=!0,dc(s),r=o}}run(t,n,r){yc(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,a){const l=Kn(n);i.run(t,l,u);function u(c,f,h){const d=f||t;c?a(c):o?o(d):r(void 0,d,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),xc("runSync","run",r),i;function s(o,a){dc(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=Kn(n),i=this.compiler||this.Compiler;return po("stringify",i),yc(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(mo("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=oo(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];s(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===u){h=f;break}if(h===-1)r.push([u,...c]);else if(c.length>0){let[d,...p]=c;const m=r[h][1];so(m)&&so(d)&&(d=oo(!0,m,d)),r[h]=[u,d,...p]}}}}const U0=new fo().freeze();function ho(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function po(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function mo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function yc(e){if(!so(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function xc(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Kn(e){return H0(e)?e:new mc(e)}function H0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function W0(e){return typeof e=="string"||q0(e)}function q0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const G0="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",bc=[],wc={allowDangerousHtml:!0},Y0=/^(https?|ircs?|mailto|xmpp)$/i,K0=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Xn(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,s=e.components,o=e.disallowedElements,a=e.rehypePlugins||bc,l=e.remarkPlugins||bc,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...wc}:wc,c=e.skipHtml,f=e.unwrapDisallowed,h=e.urlTransform||X0,d=U0().use(jb).use(l).use(T0,u).use(a),p=new mc;typeof r=="string"&&(p.value=r);for(const k of K0)Object.hasOwn(e,k.from)&&(""+k.from+(k.to?"use `"+k.to+"` instead":"remove it")+G0+k.id,void 0);const m=d.parse(p);let y=d.runSync(m,p);return i&&(y={type:"element",tagName:"div",properties:{className:i},children:y.type==="root"?y.children:[y]}),no(y,g),Sy(y,{Fragment:b.Fragment,components:s,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function g(k,v,E){if(k.type==="raw"&&E&&typeof v=="number")return c?E.children.splice(v,1):E.children[v]={type:"text",value:k.value},v;if(k.type==="element"){let A;for(A in Ui)if(Object.hasOwn(Ui,A)&&Object.hasOwn(k.properties,A)){const S=k.properties[A],M=Ui[A];(M===null||M.includes(k.tagName))&&(k.properties[A]=h(String(S||""),A,k))}}if(k.type==="element"){let A=t?!t.includes(k.tagName):o?o.includes(k.tagName):!1;if(!A&&n&&typeof v=="number"&&(A=!n(k,v,E)),A&&E&&typeof v=="number")return f&&k.children?E.children.splice(v,1,...k.children):E.children.splice(v,1),v}}}function X0(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Y0.test(e.slice(0,t))?e:""}function Q0(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function vc(e,t,n){const i=Gn((n||{}).ignore||[]),s=Z0(t);let o=-1;for(;++o<s.length;)cc(e,"text",a);function a(u,c){let f=-1,h;for(;++f<c.length;){const d=c[f],p=h?h.children:void 0;if(i(d,p?p.indexOf(d):void 0,h))return;h=d}if(h)return l(u,c)}function l(u,c){const f=c[c.length-1],h=s[o][0],d=s[o][1];let p=0;const y=f.children.indexOf(u);let g=!1,k=[];h.lastIndex=0;let v=h.exec(u.value);for(;v;){const E=v.index,A={index:v.index,input:v.input,stack:[...c,u]};let S=d(...v,A);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?h.lastIndex=E+1:(p!==E&&k.push({type:"text",value:u.value.slice(p,E)}),Array.isArray(S)?k.push(...S):S&&k.push(S),p=E+v[0].length,g=!0),!h.global)break;v=h.exec(u.value)}return g?(p<u.value.length&&k.push({type:"text",value:u.value.slice(p)}),f.children.splice(y,1,...k)):k=[u],y+k.length}}function Z0(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([J0(i[0]),ew(i[1])])}return t}function J0(e){return typeof e=="string"?new RegExp(Q0(e),"g"):e}function ew(e){return typeof e=="function"?e:function(){return e}}function tw(e){vc(e,[/\r?\n|\r/g,nw])}function nw(){return{type:"break"}}function Qn(){return function(e){tw(e)}}function kc(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const go="phrasing",yo=["autolink","link","image","label"];function rw(){return{transforms:[cw],enter:{literalAutolink:ow,literalAutolinkEmail:xo,literalAutolinkHttp:xo,literalAutolinkWww:xo},exit:{literalAutolink:uw,literalAutolinkEmail:lw,literalAutolinkHttp:sw,literalAutolinkWww:aw}}}function iw(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:go,notInConstruct:yo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:go,notInConstruct:yo},{character:":",before:"[ps]",after:"\\/",inConstruct:go,notInConstruct:yo}]}}function ow(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function xo(e){this.config.enter.autolinkProtocol.call(this,e)}function sw(e){this.config.exit.autolinkProtocol.call(this,e)}function aw(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function lw(e){this.config.exit.autolinkEmail.call(this,e)}function uw(e){this.exit(e)}function cw(e){vc(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,fw],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),hw]],{ignore:["link","linkReference"]})}function fw(e,t,n,r,i){let s="";if(!Sc(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!dw(n)))return!1;const o=pw(n+r);if(!o[0])return!1;const a={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function hw(e,t,n,r){return!Sc(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function dw(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function pw(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=kc(e,"(");let s=kc(e,")");for(;r!==-1&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function Sc(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||at(n)||zn(n))&&(!t||n!==47)}Cc.peek=Sw;function mw(){this.buffer()}function gw(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function yw(){this.buffer()}function xw(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Re(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ww(e){this.exit(e)}function vw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Re(this.sliceSerialize(e)).toLowerCase(),n.label=t}function kw(e){this.exit(e)}function Sw(){return"["}function Cc(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const o=n.enter("footnoteReference"),a=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),a(),o(),s+=i.move("]"),s}function Cw(){return{enter:{gfmFootnoteCallString:mw,gfmFootnoteCall:gw,gfmFootnoteDefinitionLabelString:yw,gfmFootnoteDefinition:xw},exit:{gfmFootnoteCallString:bw,gfmFootnoteCall:ww,gfmFootnoteDefinitionLabelString:vw,gfmFootnoteDefinition:kw}}}function Tw(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Cc},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,o){const a=s.createTracker(o);let l=a.move("[^");const u=s.enter("footnoteDefinition"),c=s.enter("label");return l+=a.move(s.safe(s.associationId(r),{before:l,after:"]"})),c(),l+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),l+=a.move((t?`
29
+ `:" ")+s.indentLines(s.containerFlow(r,a.current()),t?Tc:Pw))),u(),l}}function Pw(e,t,n){return t===0?e:Tc(e,t,n)}function Tc(e,t,n){return(n?"":" ")+e}const Aw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Pc.peek=Mw;function Ew(){return{canContainEols:["delete"],enter:{strikethrough:Dw},exit:{strikethrough:jw}}}function Iw(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Aw}],handlers:{delete:Pc}}}function Dw(e){this.enter({type:"delete",children:[]},e)}function jw(e){this.exit(e)}function Pc(e,t,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),s(),o}function Mw(){return"~"}function Lw(e){return e.length}function Nw(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Lw,s=[],o=[],a=[],l=[];let u=0,c=-1;for(;++c<e.length;){const m=[],y=[];let g=-1;for(e[c].length>u&&(u=e[c].length);++g<e[c].length;){const k=Rw(e[c][g]);if(n.alignDelimiters!==!1){const v=i(k);y[g]=v,(l[g]===void 0||v>l[g])&&(l[g]=v)}m.push(k)}o[c]=m,a[c]=y}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<u;)s[f]=Ac(r[f]);else{const m=Ac(r);for(;++f<u;)s[f]=m}f=-1;const h=[],d=[];for(;++f<u;){const m=s[f];let y="",g="";m===99?(y=":",g=":"):m===108?y=":":m===114&&(g=":");let k=n.alignDelimiters===!1?1:Math.max(1,l[f]-y.length-g.length);const v=y+"-".repeat(k)+g;n.alignDelimiters!==!1&&(k=y.length+k+g.length,k>l[f]&&(l[f]=k),d[f]=k),h[f]=v}o.splice(1,0,h),a.splice(1,0,d),c=-1;const p=[];for(;++c<o.length;){const m=o[c],y=a[c];f=-1;const g=[];for(;++f<u;){const k=m[f]||"";let v="",E="";if(n.alignDelimiters!==!1){const A=l[f]-(y[f]||0),S=s[f];S===114?v=" ".repeat(A):S===99?A%2?(v=" ".repeat(A/2+.5),E=" ".repeat(A/2-.5)):(v=" ".repeat(A/2),E=v):E=" ".repeat(A)}n.delimiterStart!==!1&&!f&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&k==="")&&(n.delimiterStart!==!1||f)&&g.push(" "),n.alignDelimiters!==!1&&g.push(v),g.push(k),n.alignDelimiters!==!1&&g.push(E),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||f!==u-1)&&g.push("|")}p.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return p.join(`
30
+ `)}function Rw(e){return e==null?"":String(e)}function Ac(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Fw(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),Ow);return i(),o}function Ow(e,t,n){return">"+(n?"":" ")+e}function Vw(e,t){return Ec(e,t.inConstruct,!0)&&!Ec(e,t.notInConstruct,!1)}function Ec(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Ic(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
31
+ `&&Vw(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
32
+ `}function zw(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>o&&(o=s):s=1,i=r+t.length,r=n.indexOf(t,i);return o}function _w(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Bw(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function $w(e,t,n,r){const i=Bw(n),s=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(_w(e,n)){const f=n.enter("codeIndented"),h=n.indentLines(s,Uw);return f(),h}const a=n.createTracker(r),l=i.repeat(Math.max(zw(s,i)+1,3)),u=n.enter("codeFenced");let c=a.move(l);if(e.lang){const f=n.enter(`codeFencedLang${o}`);c+=a.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${o}`);c+=a.move(" "),c+=a.move(n.safe(e.meta,{before:c,after:`
33
+ `,encode:["`"],...a.current()})),f()}return c+=a.move(`
34
+ `),s&&(c+=a.move(s+`
35
+ `)),c+=a.move(l),u(),c}function Uw(e,t,n){return(n?"":" ")+e}function bo(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Hw(e,t,n,r){const i=bo(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
36
+ `,...l.current()}))),a(),e.title&&(a=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),o(),u}function Ww(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function fn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Zn(e,t,n){const r=Et(e),i=Et(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Dc.peek=qw;function Dc(e,t,n,r){const i=Ww(n),s=n.enter("emphasis"),o=n.createTracker(r),a=o.move(i);let l=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=l.charCodeAt(0),c=Zn(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=fn(u)+l.slice(1));const f=l.charCodeAt(l.length-1),h=Zn(r.after.charCodeAt(0),f,i);h.inside&&(l=l.slice(0,-1)+fn(f));const d=o.move(i);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},a+l+d}function qw(e,t,n){return n.options.emphasis||"*"}function Gw(e,t){let n=!1;return no(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,to}),!!((!e.depth||e.depth<3)&&Hi(e)&&(t.options.setext||n))}function Yw(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(Gw(e,n)){const c=n.enter("headingSetext"),f=n.enter("phrasing"),h=n.containerPhrasing(e,{...s.current(),before:`
37
+ `,after:`
38
+ `});return f(),c(),h+`
39
+ `+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
40
+ `))+1))}const o="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");s.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
41
+ `,...s.current()});return/^[\t ]/.test(u)&&(u=fn(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),l(),a(),u}jc.peek=Kw;function jc(e){return e.value||""}function Kw(){return"<"}Mc.peek=Xw;function Mc(e,t,n,r){const i=bo(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),o(),u}function Xw(){return"!"}Lc.peek=Qw;function Lc(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();const c=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function Qw(){return"!"}Nc.peek=Zw;function Nc(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const o=n.unsafe[s],a=n.compilePattern(o);let l;if(o.atBreak)for(;l=a.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function Zw(){return"`"}function Rc(e,t){const n=Hi(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Fc.peek=Jw;function Fc(e,t,n,r){const i=bo(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let a,l;if(Rc(e,n)){const c=n.stack;n.stack=[],a=n.enter("autolink");let f=o.move("<");return f+=o.move(n.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),a(),n.stack=c,f}a=n.enter("link"),l=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${s}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),l()),u+=o.move(")"),a(),u}function Jw(e,t,n){return Rc(e,n)?"<":"["}Oc.peek=ev;function Oc(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();const c=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function ev(){return"["}function wo(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function tv(e){const t=wo(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function nv(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Vc(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function rv(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?nv(n):wo(n);const a=e.ordered?o==="."?")":".":tv(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Vc(n)===o&&c){let f=-1;for(;++f<e.children.length;){const h=e.children[f];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=a),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),u}function iv(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ov(e,t,n,r){const i=iv(n);let s=n.bulletCurrent||wo(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=n.createTracker(r);a.move(s+" ".repeat(o-s.length)),a.shift(o);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),c);return l(),u;function c(f,h,d){return h?(d?"":" ".repeat(o))+f:(d?s:s+" ".repeat(o-s.length))+f}}function sv(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,r);return s(),i(),o}const av=Gn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lv(e,t,n,r){return(e.children.some(function(o){return av(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function uv(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}zc.peek=cv;function zc(e,t,n,r){const i=uv(n),s=n.enter("strong"),o=n.createTracker(r),a=o.move(i+i);let l=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=l.charCodeAt(0),c=Zn(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=fn(u)+l.slice(1));const f=l.charCodeAt(l.length-1),h=Zn(r.after.charCodeAt(0),f,i);h.inside&&(l=l.slice(0,-1)+fn(f));const d=o.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},a+l+d}function cv(e,t,n){return n.options.strong||"*"}function fv(e,t,n,r){return n.safe(e.value,r)}function hv(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function dv(e,t,n){const r=(Vc(n)+(n.options.ruleSpaces?" ":"")).repeat(hv(n));return n.options.ruleSpaces?r.slice(0,-1):r}const _c={blockquote:Fw,break:Ic,code:$w,definition:Hw,emphasis:Dc,hardBreak:Ic,heading:Yw,html:jc,image:Mc,imageReference:Lc,inlineCode:Nc,link:Fc,linkReference:Oc,list:rv,listItem:ov,paragraph:sv,root:lv,strong:zc,text:fv,thematicBreak:dv};function pv(){return{enter:{table:mv,tableData:Bc,tableHeader:Bc,tableRow:yv},exit:{codeText:xv,table:gv,tableData:vo,tableHeader:vo,tableRow:vo}}}function mv(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function gv(e){this.exit(e),this.data.inTable=void 0}function yv(e){this.enter({type:"tableRow",children:[]},e)}function vo(e){this.exit(e)}function Bc(e){this.enter({type:"tableCell",children:[]},e)}function xv(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bv));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bv(e,t){return t==="|"?t:e}function wv(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
42
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:l,tableRow:a}};function o(d,p,m,y){return u(c(d,m,y),d.align)}function a(d,p,m,y){const g=f(d,m,y),k=u([g]);return k.slice(0,k.indexOf(`
43
+ `))}function l(d,p,m,y){const g=m.enter("tableCell"),k=m.enter("phrasing"),v=m.containerPhrasing(d,{...y,before:s,after:s});return k(),g(),v}function u(d,p){return Nw(d,{align:p,alignDelimiters:r,padding:n,stringLength:i})}function c(d,p,m){const y=d.children;let g=-1;const k=[],v=p.enter("table");for(;++g<y.length;)k[g]=f(y[g],p,m);return v(),k}function f(d,p,m){const y=d.children;let g=-1;const k=[],v=p.enter("tableRow");for(;++g<y.length;)k[g]=l(y[g],d,p,m);return v(),k}function h(d,p,m){let y=_c.inlineCode(d,p,m);return m.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function vv(){return{exit:{taskListCheckValueChecked:$c,taskListCheckValueUnchecked:$c,paragraph:Sv}}}function kv(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Cv}}}function $c(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Sv(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,o;for(;++s<i.length;){const a=i[s];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Cv(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(o);let l=_c.listItem(e,t,n,{...r,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function Tv(){return[rw(),Cw(),Ew(),pv(),vv()]}function Pv(e){return{extensions:[iw(),Tw(e),Iw(),wv(e),kv()]}}const Av={tokenize:Lv,partial:!0},Uc={tokenize:Nv,partial:!0},Hc={tokenize:Rv,partial:!0},Wc={tokenize:Fv,partial:!0},Ev={tokenize:Ov,partial:!0},qc={name:"wwwAutolink",tokenize:jv,previous:Yc},Gc={name:"protocolAutolink",tokenize:Mv,previous:Kc},He={name:"emailAutolink",tokenize:Dv,previous:Xc},ze={};function Iv(){return{text:ze}}let lt=48;for(;lt<123;)ze[lt]=He,lt++,lt===58?lt=65:lt===91&&(lt=97);ze[43]=He,ze[45]=He,ze[46]=He,ze[95]=He,ze[72]=[He,Gc],ze[104]=[He,Gc],ze[87]=[He,qc],ze[119]=[He,qc];function Dv(e,t,n){const r=this;let i,s;return o;function o(f){return!ko(f)||!Xc.call(r,r.previous)||So(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return ko(f)?(e.consume(f),a):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(Ev,c,u)(f):f===45||f===95||me(f)?(s=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),i=!0,l}function c(f){return s&&i&&xe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function jv(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Yc.call(r,r.previous)||So(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Av,e.attempt(Uc,e.attempt(Hc,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Mv(e,t,n){const r=this;let i="",s=!1;return o;function o(f){return(f===72||f===104)&&Kc.call(r,r.previous)&&!So(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(xe(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),s?u:(s=!0,l)):n(f)}function u(f){return f===null||Vn(f)||Z(f)||at(f)||zn(f)?n(f):e.attempt(Uc,e.attempt(Hc,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function Lv(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function Nv(e,t,n){let r,i,s;return o;function o(u){return u===46||u===95?e.check(Wc,l,a)(u):u===null||Z(u)||at(u)||u!==45&&zn(u)?l(u):(s=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!s?n(u):t(u)}}function Rv(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Wc,t,s)(o):o===null||Z(o)||at(o)?t(o):(e.consume(o),i)}function s(o){return o===41&&r++,e.consume(o),i}}function Fv(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),s):a===93?(e.consume(a),i):a===60||a===null||Z(a)||at(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||Z(a)||at(a)?t(a):r(a)}function s(a){return xe(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):xe(a)?(e.consume(a),o):n(a)}}function Ov(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return me(s)?n(s):t(s)}}function Yc(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Z(e)}function Kc(e){return!xe(e)}function Xc(e){return!(e===47||ko(e))}function ko(e){return e===43||e===45||e===46||e===95||me(e)}function So(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Vv={tokenize:qv,partial:!0};function zv(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Uv,continuation:{tokenize:Hv},exit:Wv}},text:{91:{name:"gfmFootnoteCall",tokenize:$v},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:_v,resolveTo:Bv}}}}function _v(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return n(l);const u=Re(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Bv(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function $v(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(s>999||f===93&&!o||f===null||f===91||Z(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Re(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Z(f)||(o=!0),s++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),s++,u):u(f)}}function Uv(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,a;return l;function l(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(p)}function c(p){if(o>999||p===93&&!a||p===null||p===91||Z(p))return n(p);if(p===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return s=Re(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Z(p)||(a=!0),o++,e.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(e.consume(p),o++,c):c(p)}function h(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),i.includes(s)||i.push(s),Y(e,d,"gfmFootnoteDefinitionWhitespace")):n(p)}function d(p){return t(p)}}function Hv(e,t,n){return e.check(on,t,e.attempt(Vv,t,n))}function Wv(e){e.exit("gfmFootnoteDefinition")}function qv(e,t,n){const r=this;return Y(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function Gv(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},f={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},h=[["enter",c,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",f,a]],d=a.parser.constructs.insideSpan.null;d&&Te(h,h.length,0,_n(d,o.slice(u+1,l),a)),Te(h,h.length,0,[["exit",f,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",c,a]]),Te(o,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,a,l){const u=this.previous,c=this.events;let f=0;return h;function h(p){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(p):(o.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const m=Et(u);if(p===126)return f>1?l(p):(o.consume(p),f++,d);if(f<2&&!n)return l(p);const y=o.exit("strikethroughSequenceTemporary"),g=Et(p);return y._open=!g||g===2&&!!m,y._close=!m||m===2&&!!g,a(p)}}}class Yv{constructor(){this.map=[]}add(t,n,r){Kv(this,t,n,r)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0}}function Kv(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Xv(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Qv(){return{flow:{null:{name:"table",tokenize:Zv,resolveAll:Jv}}}}function Zv(e,t,n){const r=this;let i=0,s=0,o;return a;function a(C){let R=r.events.length-1;for(;R>-1;){const z=r.events[R][1].type;if(z==="lineEnding"||z==="linePrefix")R--;else break}const O=R>-1?r.events[R][1].type:null,K=O==="tableHead"||O==="tableRow"?S:l;return K===S&&r.parser.lazy[r.now().line]?n(C):K(C)}function l(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(o=!0,s+=1),c(C)}function c(C){return C===null?n(C):_(C)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),d):n(C):q(C)?Y(e,c,"whitespace")(C):(s+=1,o&&(o=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),f(C)))}function f(C){return C===null||C===124||Z(C)?(e.exit("data"),c(C)):(e.consume(C),C===92?h:f)}function h(C){return C===92||C===124?(e.consume(C),f):f(C)}function d(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),o=!1,q(C)?Y(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):p(C))}function p(C){return C===45||C===58?y(C):C===124?(o=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),m):A(C)}function m(C){return q(C)?Y(e,y,"whitespace")(C):y(C)}function y(C){return C===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),g):C===45?(s+=1,g(C)):C===null||_(C)?E(C):A(C)}function g(C){return C===45?(e.enter("tableDelimiterFiller"),k(C)):A(C)}function k(C){return C===45?(e.consume(C),k):C===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(C))}function v(C){return q(C)?Y(e,E,"whitespace")(C):E(C)}function E(C){return C===124?p(C):C===null||_(C)?!o||i!==s?A(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):A(C)}function A(C){return n(C)}function S(C){return e.enter("tableRow"),M(C)}function M(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),M):C===null||_(C)?(e.exit("tableRow"),t(C)):q(C)?Y(e,M,"whitespace")(C):(e.enter("data"),D(C))}function D(C){return C===null||C===124||Z(C)?(e.exit("data"),M(C)):(e.consume(C),C===92?V:D)}function V(C){return C===92||C===124?(e.consume(C),D):D(C)}}function Jv(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,u,c,f;const h=new Yv;for(;++n<e.length;){const d=e[n],p=d[1];d[0]==="enter"?p.type==="tableHead"?(a=!1,l!==0&&(Qc(h,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(n,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(r=!0,f=void 0,s=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(n,0,[["enter",c,t]])),i=p.type==="tableDelimiterRow"?2:c?3:1):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],f=Jn(h,t,s,i,void 0,f),s=[0,0,0,0]),o[2]=n)):p.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],f=Jn(h,t,s,i,void 0,f)),s=o,o=[s[1],n,0,0])):p.type==="tableHead"?(a=!0,l=n):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],f=Jn(h,t,s,i,n,f)):o[1]!==0&&(f=Jn(h,t,o,i,n,f)),i=0):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&Qc(h,t,l,u,c),h.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Xv(t.events,n))}return e}function Jn(e,t,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},Dt(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const l=Dt(t.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const u=Dt(t.events,n[2]),c=Dt(t.events,n[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const h=t.events[n[2]],d=t.events[n[3]];if(h[1].end=Object.assign({},d[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const p=n[2]+1,m=n[3]-n[2]-1;e.add(p,m,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(s.end=Object.assign({},Dt(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function Qc(e,t,n,r,i){const s=[],o=Dt(t.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function Dt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const ek={name:"tasklistCheck",tokenize:nk};function tk(){return{text:{91:ek}}}function nk(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),s)}function s(l){return Z(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return _(l)?t(l):q(l)?e.check({tokenize:rk},t,n)(l):n(l)}}function rk(e,t,n){return Y(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function ik(e){return ju([Iv(),zv(),Gv(e),Qv(),tk()])}const ok={};function er(e){const t=this,n=e||ok,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(ik(n)),s.push(Tv()),o.push(Pv(n))}const Zc=({title:e,subtitle:t,items:n=[],image:r,imagePosition:i="right",className:s="",actionLabel:o,href:a,inverted:l=!1})=>b.jsx("section",{className:`feature-split-section ${s} image-${i} ${l?"theme-inverted":""}`,children:b.jsxs("div",{className:"feature-split-container",children:[b.jsxs("div",{className:"feature-split-content",children:[b.jsx("div",{className:"section-title feature-split-title",children:e}),t&&b.jsx("div",{className:"feature-split-description",children:b.jsx(Xn,{remarkPlugins:[Qn,er],children:t})}),n&&n.length>0&&b.jsx("div",{className:"feature-split-list",children:n.map((u,c)=>b.jsxs("div",{className:"feature-split-item",children:[u.icon&&b.jsx("div",{className:"feature-split-icon-wrapper",children:b.jsx(he,{icon:u.icon,width:"24",height:"24"})}),b.jsxs("div",{children:[b.jsx("h3",{className:"card-title feature-split-item-title",children:u.title}),b.jsx("div",{className:"feature-split-item-description",children:b.jsx(Xn,{remarkPlugins:[Qn,er],children:u.description})})]})]},c))}),o&&a&&b.jsx("div",{className:"feature-split-actions",children:b.jsx("button",{onClick:()=>window.location.href=a,children:o})})]}),b.jsx("div",{className:"feature-split-image-wrapper",children:b.jsx("img",{src:r.imageSrc,alt:r.alt,className:"feature-split-image"})})]})}),Jc=({title:e,subtitle:t,content:n,format:r="markdown",className:i="",image:s,inverted:o=!1})=>b.jsx("section",{className:`content-block-section ${o?"theme-inverted":""} ${i}`,children:b.jsxs("div",{className:"content-block-container",children:[b.jsxs("div",{className:"content-block-header",children:[e&&b.jsx("div",{className:"section-title content-block-title",children:e}),t&&b.jsx("div",{className:"section-subtitle content-block-subtitle",children:t})]}),s&&b.jsxs("div",{className:"content-block-featured-image",children:[b.jsx("img",{src:s.imageSrc,alt:s.alt}),s.caption&&b.jsx("figcaption",{children:s.caption})]}),b.jsx("div",{className:"content-block-body markdown-body",children:r==="html"?b.jsx("div",{dangerouslySetInnerHTML:{__html:n||""}}):b.jsx(Xn,{remarkPlugins:[Qn,er],children:n||""})})]})}),Co=({icon:e,title:t,description:n,href:r,actionLabel:i="Learn more",className:s="",inverted:o=!1})=>b.jsx(dr,{hoverable:!0,elevation:"sm",className:`feature-card ${s}`,inverted:o,children:b.jsxs("div",{className:"feature-card-content",children:[e&&b.jsx("div",{className:"feature-icon-wrapper",children:b.jsx(he,{icon:e,width:"24",height:"24"})}),b.jsx("h3",{className:"card-title feature-title",children:t}),b.jsx("div",{className:"card-description feature-description",children:b.jsx(Xn,{remarkPlugins:[Qn,er],children:n})}),r&&(r.startsWith("http")?b.jsxs("a",{href:r,className:"feature-link",target:"_blank",rel:"noopener noreferrer",children:[i," ",b.jsx("span",{children:"→"})]}):b.jsxs(nr.Link,{to:r,className:"feature-link",children:[i," ",b.jsx("span",{children:"→"})]}))]})}),ef=({title:e,subtitle:t,items:n,children:r,className:i="",columns:s,actionLabel:o="Learn more",inverted:a=!1})=>{const l=s?{"--features-columns":s}:{};return b.jsx("section",{className:`features-section ${a?"theme-inverted":""} ${i}`,children:b.jsxs("div",{className:"features-container",children:[b.jsxs("div",{className:"features-header",children:[b.jsx("div",{className:"section-title features-title",children:e}),t&&b.jsx("div",{className:"section-subtitle features-subtitle",children:t})]}),b.jsxs("div",{className:"features-grid",style:l,children:[r,n&&n.map((u,c)=>b.jsx(Co,{...u,actionLabel:o,inverted:a},c))]})]})})},tf=I.createContext(void 0),sk=()=>{const e=I.useContext(tf);if(!e)throw new Error("useDropdownContext must be used within DropdownProvider");return e},ak=({children:e})=>{const[t,n]=I.useState(null);return b.jsx(tf.Provider,{value:{activeDropdown:t,setActiveDropdown:n},children:e})},To=e=>{const{title:t,icon:n,iconPosition:r="left",iconSize:i="1.2rem",iconColor:s="currentColor",className:o="",itemGroupClassName:a="",children:l,href:u,id:c=t||n||"dropdown",target:f="_self"}=e,{activeDropdown:h,setActiveDropdown:d}=sk(),p=I.useRef(null),m=I.useRef(null),y=h===c,g=y;I.useEffect(()=>{const v=E=>{p.current&&!p.current.contains(E.target)&&h===c&&d(null)};return g&&document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}},[g,h,c,d]);const k=v=>{v.stopPropagation(),l&&(v.preventDefault(),d(y?null:c))};return b.jsxs("div",{ref:p,className:"menu",children:[(t||n)&&b.jsx(b.Fragment,{children:u?b.jsxs("a",{href:u,onClick:k,className:`menu-title ${o} ${y?"active":""}`,target:f,"aria-haspopup":!!l,"aria-expanded":g,children:[n&&r==="left"&&b.jsx(he,{icon:n,style:{width:i,height:i,color:s},className:"icon-left"}),t&&b.jsx("span",{children:t}),n&&r==="right"&&b.jsx(he,{icon:n,style:{width:i,height:i,color:s},className:"icon-right"}),l&&b.jsx("span",{className:"arrow",children:g?"▲":"▼"})]}):b.jsxs("button",{onClick:k,className:`menu-title ${o} ${y?"active":""}`,type:"button","aria-haspopup":"true","aria-expanded":g,children:[n&&r==="left"&&b.jsx(he,{icon:n,style:{width:i,height:i,color:s},className:"icon-left"}),t&&b.jsx("span",{children:t}),n&&r==="right"&&b.jsx(he,{icon:n,style:{width:i,height:i,color:s},className:"icon-right"}),l&&b.jsx("span",{className:"arrow",children:g?"▲":"▼"})]})}),b.jsx("div",{ref:m,className:`menu-dropdown ${a} ${g?"show":""}`,onClick:()=>d(null),children:l})]})},nf=({items:e,className:t=""})=>b.jsx("section",{className:`stats-section ${t}`,children:b.jsx("div",{className:"stats-container",children:b.jsx("div",{className:"stats-grid",children:e.map((n,r)=>b.jsxs("div",{className:"stat-item",children:[b.jsx("span",{className:"stat-value",children:n.value}),b.jsx("span",{className:"stat-label",children:n.label}),n.description&&b.jsx("span",{className:"stat-description",children:n.description})]},r))})})}),rf=({title:e,subtitle:t,actionLabel:n,onAction:r,className:i="",imageSrc:s,inverted:o=!1})=>{const a=s?{backgroundImage:`url(${s})`,backgroundSize:"cover",backgroundPosition:"center"}:{};return b.jsx("section",{className:`cta-section ${o?"theme-inverted":""}`,style:a,children:b.jsxs("div",{className:`cta-container ${i}`,children:[b.jsx("h2",{className:"section-title cta-title",children:e}),t&&b.jsx("p",{className:"section-subtitle cta-description",children:t}),n&&b.jsx("div",{className:"cta-actions btn btn-outline",children:n&&b.jsx("button",{onClick:r,children:n})})]})})},of=({title:e,subtitle:t,items:n,className:r=""})=>b.jsx("section",{className:`testimonials-section ${r}`,children:b.jsxs("div",{className:"testimonials-container",children:[b.jsxs("div",{className:"testimonials-header",children:[b.jsx("h2",{className:"section-title testimonials-title",children:e}),t&&b.jsx("p",{className:"section-subtitle testimonials-subtitle",children:t})]}),b.jsx("div",{className:"testimonials-grid",children:n.map(i=>b.jsx(dr,{elevation:"sm",className:"testimonial-card",children:b.jsxs("div",{className:"testimonial-card-content",children:[b.jsx("div",{className:"testimonial-stars",children:[...Array(i.rating||5)].map((s,o)=>b.jsx(he,{icon:"mdi:star",width:"20",height:"20"},o))}),b.jsxs("blockquote",{className:"testimonial-quote",children:['"',i.quote,'"']}),b.jsxs("div",{className:"testimonial-author",children:[i.imageSrc?b.jsx("img",{src:i.imageSrc,alt:i.name,className:"testimonial-avatar"}):b.jsx("div",{className:"testimonial-avatar-placeholder",children:i.name.charAt(0)}),b.jsxs("div",{className:"testimonial-author-info",children:[b.jsx("span",{className:"testimonial-name",children:i.name}),b.jsxs("span",{className:"testimonial-role",children:[i.role," ",i.company&&`at ${i.company}`]})]})]})]})},i.id))})]})}),sf=({options:e=[],value:t,defaultValue:n,className:r,icon:i,id:s,hideSelectedLabel:o=!1})=>{const[a,l]=I.useState(n),u=t!==void 0,c=u?t:a,f=m=>{u||l(m.value),m.onClick?.()},h=e.find(m=>m.value===c),d=h?.icon||i;let p=h?.label||h?.value||c||"";return o&&d&&(p=""),b.jsx(To,{id:s,title:p,icon:d,className:`${r||""}`,itemGroupClassName:"select-options-group",children:e.map(m=>b.jsxs("div",{className:`select-option ${m.value===c?"selected":""} ${r}`,onClick:()=>f(m),role:"option","aria-selected":m.value===c,children:[m.icon&&b.jsx("span",{className:"option-icon",children:b.jsx(he,{icon:m.icon})}),m.label&&b.jsx("span",{className:`option-label ${r}`,children:m.label})]},m.value))})},af=({children:e,autoPlay:t=!0,interval:n=5e3,className:r="",showArrows:i=!0,showIndicators:s=!0})=>{const[o,a]=I.useState(0),[l,u]=I.useState(0),c=I.useCallback(()=>{u(1),a(p=>(p+1)%e.length)},[e.length]),f=()=>{u(-1),a(p=>(p-1+e.length)%e.length)},h=p=>{u(p>o?1:-1),a(p)};I.useEffect(()=>{if(!t)return;const p=setInterval(c,n);return()=>clearInterval(p)},[t,n,c]);const d={enter:p=>({x:p>0?1e3:-1e3,opacity:0}),center:{zIndex:1,x:0,opacity:1},exit:p=>({zIndex:0,x:p<0?1e3:-1e3,opacity:0})};return!e||e.length===0?null:b.jsxs("div",{className:`carousel-container ${r}`,children:[b.jsx(wp,{initial:!1,custom:l,mode:"wait",children:b.jsx(ve.div,{custom:l,variants:d,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},style:{width:"100%",height:"100%"},children:e[o]},o)}),i&&e.length>1&&b.jsxs(b.Fragment,{children:[b.jsx("button",{className:"carousel-nav-btn carousel-prev",onClick:f,"aria-label":"Previous Slide",children:"❮"}),b.jsx("button",{className:"carousel-nav-btn carousel-next",onClick:c,"aria-label":"Next Slide",children:"❯"})]}),s&&e.length>1&&b.jsx("div",{className:"carousel-indicators",children:e.map((p,m)=>b.jsx("button",{className:`carousel-dot ${m===o?"active":""}`,onClick:()=>h(m),"aria-label":`Go to slide ${m+1}`},m))})]})},lf={Header:rs,MenuItem:Jl,MenuGrid:eu,MenuGridItem:tu,Dropdown:To,Hero:nu,IconButton:ru,FeatureSplit:Zc,ContentBlock:Jc,FeaturesSection:ef,FeatureItem:Co,BentoGrid:ns,Stats:nf,CTASection:rf,Testimonials:of,Select:sf,Carousel:af};let Po={...lf};function lk(e,t){Po[e]=t}function uf(e){return Po[e]}function uk(e){return e in Po}function ck(e){return typeof e=="string"&&e.trim().length>0}const jt=({config:e,className:t,handlers:n,onError:r})=>{if(Array.isArray(e))return b.jsx(b.Fragment,{children:e.map((m,y)=>b.jsx(jt,{config:m,className:t,handlers:n,onError:r},m.id||`item-${y}`))});if(!e||typeof e!="object")return null;const{type:i,data:s,children:o,id:a,...l}=e,u=a||s?.id||i;if(!ck(i)){const m=new Error(`Invalid component type: "${i}"`);return r?.(m,e),console.error(`Invalid component type: "${i}"`),null}if(!uk(i)){const m=new Error(`Component "${i}" is not registered`);return r?.(m,e),console.error(`Component "${i}" is not registered`),null}const c=uf(i);if(!c){const m=new Error(`Failed to load component: "${i}"`);return r?.(m,e),console.error(`Failed to load component: "${i}"`),null}const f=m=>{if(!m||typeof m!="object"||I.isValidElement(m))return m;if(Array.isArray(m))return m.map(g=>f(g));const y={...m};return Object.keys(y).forEach(g=>{const k=y[g];if(typeof k=="string"&&k.startsWith("@action:")){const v=k.replace("@action:","");n&&n[v]&&(y[g]=n[v])}else typeof k=="object"&&k!==null&&(y[g]=f(k))}),y},d={...f(s),...l,id:a||s?.id};t&&(d.className=s?.className?`${s.className} ${t}`:t);const p=m=>{if(m){if(Array.isArray(m))return m.map((y,g)=>y&&typeof y=="object"&&y.type?b.jsx(jt,{config:y,handlers:n,onError:r},y.id||`child-${g}`):y);if(m&&typeof m=="object"&&m.type){const y=m.id||m.data?.id||m.type;return b.jsx(jt,{config:m,handlers:n,onError:r},y)}return m}};if(o!==void 0)if(i==="Header"){const m=p(o);if(m&&Array.isArray(m)){const y=m.filter(k=>{const v=k?.props?.config;return(v?.["data-position"]||v?.data?.["data-position"])!=="far-item"}),g=m.filter(k=>{const v=k?.props?.config;return(v?.["data-position"]||v?.data?.["data-position"])==="far-item"});d.menuBar=y,d.utilityButtons=g}}else if(i==="MenuGrid"){const m=p(o);m&&(d.children=m)}else if(i==="Dropdown"){const m=p(o);d.children=m}else if(i==="Carousel"){const m=p(o);d.children=m}else d.children=p(o);if(s?.items&&Array.isArray(s.items)&&(d.items=s.items.map((m,y)=>m&&typeof m=="object"&&m.type?b.jsx(jt,{config:m,handlers:n,onError:r},m.id||`item-${y}`):m)),s?.embeddedView&&typeof s.embeddedView=="object"&&s.embeddedView.type){const m=s.embeddedView.id||s.embeddedView.data?.id||s.embeddedView.type;d.embeddedView=b.jsx(jt,{config:s.embeddedView,handlers:n,onError:r},m)}try{return b.jsx(c,{...d},u)}catch(m){const y=m instanceof Error?m:new Error("Unknown rendering error");return r?.(y,e),console.error(`Error rendering component "${i}":`,m),b.jsxs("div",{className:"error-boundary",style:{border:"1px solid red",padding:"1rem",color:"red",background:"#fee"},children:["Error rendering ",i,": ",y.message]},u)}},fk=({imageSrc:e,companyName:t,description:n,columns:r,socialLinks:i,poweredBy:s,poweredByLink:o,copyright:a,inverted:l=!1,className:u=""})=>{const c=`footer ${l?"theme-inverted":""} ${u}`.trim(),f=()=>!e&&!t?null:b.jsxs("div",{className:"footer-logo-container",children:[e&&b.jsx("img",{src:e,alt:t||"Logo",className:"footer-logo-img"}),t&&b.jsx("span",{className:"footer-company-name",children:t})]});return b.jsx("footer",{className:c,children:b.jsxs("div",{className:"footer-container",children:[b.jsxs("div",{className:"footer-grid",children:[b.jsxs("div",{className:"footer-brand",children:[b.jsx("div",{className:"footer-logo",children:f()}),n&&b.jsx("p",{className:"footer-description",children:n}),i&&b.jsx("div",{className:"footer-social",children:i.map((h,d)=>b.jsx("a",{href:h.href,className:"footer-social-link",target:"_blank",rel:"noopener noreferrer",children:b.jsx(he,{icon:h.icon,width:"24",height:"24"})},d))})]}),r.map((h,d)=>b.jsxs("div",{className:"footer-column",children:[b.jsx("h4",{className:"footer-column-title",children:h.title}),b.jsx("div",{className:"footer-links",children:h.links.map((p,m)=>p.href.startsWith("http")?b.jsx("a",{href:p.href,className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:p.label},m):b.jsx(nr.Link,{to:p.href,className:"footer-link",children:p.label},m))})]},d))]}),b.jsx("div",{className:"footer-bottom",children:b.jsxs("div",{className:"footer-copyright",children:[b.jsx("span",{children:a||`© ${new Date().getFullYear()} Company Name. All rights reserved.`}),s&&b.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"footer-powered-by",children:s})]})})]})})},hk=({title:e,subtitle:t,items:n,className:r="",allowMultiple:i=!1})=>{const[s,o]=I.useState(new Set),a=I.useRef({}),l=u=>{o(c=>{const f=new Set(i?c:[]);return c.has(u)?f.delete(u):f.add(u),f})};return b.jsx("section",{className:`accordion-section ${r}`,children:b.jsxs("div",{className:"accordion-container",children:[(e||t)&&b.jsxs("div",{className:"accordion-header-section",children:[e&&b.jsx("h2",{className:"accordion-title",children:e}),t&&b.jsx("p",{className:"accordion-subtitle",children:t})]}),b.jsx("div",{className:"accordion-list",children:n.map(u=>{const c=s.has(u.id);return b.jsxs("div",{className:`accordion-item ${c?"open":""}`,children:[b.jsxs("button",{className:"accordion-trigger",onClick:f=>{f.stopPropagation(),l(u.id)},"aria-expanded":c,"aria-controls":`content-${u.id}`,children:[b.jsx("span",{className:"accordion-item-title",children:u.title}),b.jsx(he,{icon:"mdi:chevron-down",width:"24",height:"24",className:`accordion-icon ${c?"rotate":""}`})]}),b.jsx("div",{id:`content-${u.id}`,className:"accordion-content",style:{height:c?a.current[u.id]?.scrollHeight:0},children:b.jsx("div",{ref:f=>{a.current[u.id]=f},className:"accordion-content-inner",children:u.content})})]},u.id)})})]})})};let dk;function pk({endpoint:e,storyName:t="Default",params:n={},autoFetch:r=!0,apiService:i}){const[s,o]=I.useState(null),[a,l]=I.useState(r),[u,c]=I.useState(null),f=i||dk,h=async(d,p)=>{if(!f){c("API service not configured"),l(!1);return}const m=d||t;l(!0),c(null);try{const y=new URLSearchParams({story:m,...n,...p}).toString(),g=y?`${e}?${y}`:e,k=await f.get(g);k.status===200?o(k.data):c(`Error ${k.status}: ${k.statusText}`)}catch(y){console.error(`Failed to fetch from ${e}:`,y),c(y.message||"Failed to fetch configuration")}finally{l(!1)}};return I.useEffect(()=>{r&&f?h():r&&!f&&(c("API service not configured"),l(!1))},[e,t,JSON.stringify(n),r,f]),{data:s,loading:a,error:u,refetch:h,setData:o}}const mk={MenuGridItem:"/menu-grid-item",MenuGrid:"/menu-grid",Dropdown:"/dropdown",Header:"/header",Hero:"/hero",Card:"/card",ItemsAccordion:"/items-accordion",Footer:"/footer",Stats:"/stats",FeatureSplit:"/feature-split",ContentBlock:"/content-block",FeaturesSection:"/features-section",BentoGrid:"/bento-grid",CTASection:"/cta-section",Testimonials:"/testimonials",Select:"/select",Carousel:"/carousel"};function ge(e){const{component:t,story:n="Default",variant:r,apiService:i}=e,s=mk[t],o={};return r&&(o.variant=r),pk({endpoint:s,storyName:n,params:o,apiService:i})}function gk(e,t,n){return ge({component:"MenuGridItem",story:e,apiService:t,variant:n})}function yk(e,t,n){return ge({component:"MenuGrid",story:e,apiService:t,variant:n})}function xk(e,t,n){return ge({component:"Dropdown",story:e,apiService:t,variant:n})}function bk(e,t,n){return ge({component:"Hero",story:e,apiService:t,variant:n})}function wk(e,t,n){return ge({component:"Header",story:e,apiService:t,variant:n})}function vk(e,t,n){return ge({component:"ItemsAccordion",story:e,apiService:t,variant:n})}function kk(e,t,n){return ge({component:"Footer",story:e,apiService:t,variant:n})}function Sk(e,t,n){return ge({component:"Stats",story:e,apiService:t,variant:n})}function Ck(e,t,n){return ge({component:"FeatureSplit",story:e,apiService:t,variant:n})}function Tk(e,t,n){return ge({component:"ContentBlock",story:e,apiService:t,variant:n})}function Pk(e,t,n){return ge({component:"FeaturesSection",story:e,apiService:t,variant:n})}function Ak(e,t,n){return ge({component:"BentoGrid",story:e,apiService:t,variant:n})}function Ek(e,t,n){return ge({component:"CTASection",story:e,apiService:t,variant:n})}function Ik(e,t,n){return ge({component:"Testimonials",story:e,apiService:t,variant:n})}function Dk(e,t,n){return ge({component:"Select",story:e,apiService:t,variant:n})}function jk(e,t,n){return ge({component:"Carousel",story:e,apiService:t,variant:n})}B.BentoGrid=ns,B.CTASection=rf,B.Card=dr,B.Carousel=af,B.ContentBlock=Jc,B.Dropdown=To,B.DropdownProvider=ak,B.DynamicRenderer=jt,B.FeatureItem=Co,B.FeatureSplit=Zc,B.FeaturesSection=ef,B.Footer=fk,B.Header=rs,B.Hero=nu,B.IconButton=ru,B.ItemsAccordion=hk,B.MenuGrid=eu,B.MenuGridItem=tu,B.MenuItem=Jl,B.Select=sf,B.Stats=nf,B.Testimonials=of,B.baseComponents=lf,B.getComponent=uf,B.registerComponent=lk,B.useBentoGridConfig=Ak,B.useCTASectionConfig=Ek,B.useCarouselConfig=jk,B.useContentBlockConfig=Tk,B.useDropdownConfig=xk,B.useFeatureSplitConfig=Ck,B.useFeaturesSectionConfig=Pk,B.useFooterConfig=kk,B.useHeaderConfig=wk,B.useHeroConfig=bk,B.useItemsAccordionConfig=vk,B.useMenuGridConfig=yk,B.useMenuGridItemConfig=gk,B.useSelectConfig=Dk,B.useStatsConfig=Sk,B.useTestimonialsConfig=Ik,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
21
44
  //# sourceMappingURL=index.umd.js.map